addCourse.vue 410 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606
  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. this.CourseType = res.data;
  7784. this.CourseType2 = [
  7785. { name: "智见课程", id: [] },
  7786. { name: "智行课程", id: [] },
  7787. { name: "智创课程", id: [] },
  7788. ];
  7789. for (var cti = 0; cti < res.data[0].length; cti++) {
  7790. if (
  7791. res.data[0][cti].name == "年级" ||
  7792. res.data[0][cti].name == "学科"
  7793. ) {
  7794. this.CourseType2[1].id.push(res.data[0][cti].id);
  7795. this.CourseType2[0].id.push(res.data[0][cti].id);
  7796. } else if (res.data[0][cti].name == "主题") {
  7797. this.CourseType2[2].id.push(res.data[0][cti].id);
  7798. }
  7799. if(res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5"){
  7800. res.data[0][cti].name = "年级";
  7801. }else if(res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"){
  7802. res.data[0][cti].name = "学科";
  7803. }else if(res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"){
  7804. res.data[0][cti].name = "主题";
  7805. }
  7806. }
  7807. let _courseTypeId = [];
  7808. for (var i = 0; i < res.data[0].length; i++) {
  7809. if (!this.cid) {
  7810. this.courseTypeId[res.data[0][i].id] = [];
  7811. }
  7812. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  7813. // }
  7814. this.CourseTypeJson[res.data[0][i].id] = [];
  7815. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7816. if (res.data[0][i].name == "栏目") {
  7817. this.CourseType[0][i].name = "主题";
  7818. }
  7819. }
  7820. if (res.data[2].length == 0 && res.data[3].length == 0) {
  7821. for (var j = 0; j < res.data[1].length; j++) {
  7822. if (
  7823. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  7824. _courseTypeId.indexOf(res.data[1][j].id) == -1
  7825. ) {
  7826. _courseTypeId.push(res.data[1][j].id);
  7827. }
  7828. if (res.data[0][i].id == res.data[1][j].pid) {
  7829. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7830. }
  7831. }
  7832. } else {
  7833. if (res.data[2].length > 0) {
  7834. for (var j = 0; j < res.data[2].length; j++) {
  7835. if (
  7836. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  7837. _courseTypeId.indexOf(res.data[2][j].id) == -1
  7838. ) {
  7839. _courseTypeId.push(res.data[2][j].id);
  7840. }
  7841. if (res.data[0][i].id == res.data[2][j].pid) {
  7842. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  7843. }
  7844. }
  7845. }
  7846. if (res.data[3].length > 0) {
  7847. for (var j = 0; j < res.data[3].length; j++) {
  7848. if (
  7849. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  7850. _courseTypeId.indexOf(res.data[3][j].id) == -1
  7851. ) {
  7852. _courseTypeId.push(res.data[3][j].id);
  7853. }
  7854. if (res.data[0][i].id == res.data[3][j].pid) {
  7855. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  7856. }
  7857. }
  7858. }
  7859. }
  7860. }
  7861. this.courseTypeId = _courseTypeId;
  7862. })
  7863. .catch((err) => {
  7864. console.error(err);
  7865. });
  7866. },
  7867. selectType() {
  7868. this.ajax
  7869. .get(this.$store.state.api + "selectType")
  7870. .then((res) => {
  7871. this.CourseType = res.data;
  7872. for (var i = 0; i < res.data[0].length; i++) {
  7873. if (!this.cid) {
  7874. this.courseTypeId[res.data[0][i].id] = "";
  7875. }
  7876. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7877. if (res.data[0][i].name == "栏目") {
  7878. this.CourseType[0][i].name = "主题";
  7879. }
  7880. }
  7881. for (var j = 0; j < res.data[1].length; j++) {
  7882. if (res.data[0][i].id == res.data[1][j].pid) {
  7883. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7884. this.CourseTypeJson[res.data[0][i].id] = [];
  7885. }
  7886. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7887. }
  7888. }
  7889. }
  7890. this.selectTypeByOid();
  7891. this.selectTypeByOrg();
  7892. })
  7893. .catch((err) => {
  7894. console.error(err);
  7895. });
  7896. },
  7897. selectTypeByOid() {
  7898. let params = {
  7899. oid: this.oid,
  7900. };
  7901. this.ajax
  7902. .get(this.$store.state.api + "selectTypeByOid", params)
  7903. .then((res) => {
  7904. for (var i = 0; i < res.data[0].length; i++) {
  7905. for (var j = 0; j < res.data[1].length; j++) {
  7906. if (res.data[0][i].id == res.data[1][j].pid) {
  7907. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7908. this.CourseTypeJson[res.data[0][i].id] = [];
  7909. }
  7910. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7911. }
  7912. }
  7913. }
  7914. })
  7915. .catch((err) => {
  7916. console.error(err);
  7917. });
  7918. },
  7919. selectTypeByOrg() {
  7920. let params = {
  7921. oid: this.org,
  7922. };
  7923. this.ajax
  7924. .get(this.$store.state.api + "selectTypeByOrg", params)
  7925. .then((res) => {
  7926. for (var i = 0; i < res.data[0].length; i++) {
  7927. for (var j = 0; j < res.data[1].length; j++) {
  7928. if (res.data[0][i].id == res.data[1][j].pid) {
  7929. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7930. this.CourseTypeJson[res.data[0][i].id] = [];
  7931. }
  7932. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7933. }
  7934. }
  7935. }
  7936. this.$forceUpdate();
  7937. })
  7938. .catch((err) => {
  7939. console.error(err);
  7940. });
  7941. },
  7942. OtherMb(type) {
  7943. this.typeMode = type;
  7944. setTimeout(() => {
  7945. this.checkEva(this.checkId);
  7946. }, 0);
  7947. },
  7948. openMember() {
  7949. this.searchTN = "";
  7950. this.getTeacher();
  7951. this.dialogVisibleMember = true;
  7952. },
  7953. checkEva(id, type) {
  7954. this.dialogVisiblemb = false;
  7955. this.selectEva();
  7956. if (this.evalua != id && type == 2) {
  7957. this.$message.success("导入成功");
  7958. }
  7959. this.evalua = id;
  7960. this.checkId = id;
  7961. if (this.evalua != "") {
  7962. for (var i = 0; i < this.evaJuri.length; i++) {
  7963. if (this.evalua == this.evaJuri[i].id) {
  7964. this.eTitle = this.evaJuri[i].title;
  7965. this.eJson = JSON.parse(this.evaJuri[i].content);
  7966. }
  7967. }
  7968. this.data.data = [];
  7969. this.$forceUpdate();
  7970. setTimeout(() => {
  7971. this.setMindData();
  7972. }, 500);
  7973. }
  7974. },
  7975. deleteEva() {
  7976. let _this = this;
  7977. if (_this.evalua == "") {
  7978. this.$message.warning("内容已经清空了,请勿重复清空");
  7979. return;
  7980. }
  7981. _this
  7982. .$confirm("确定删除此目标吗?", "提示", {
  7983. confirmButtonText: "确定",
  7984. cancelButtonText: "取消",
  7985. type: "warning",
  7986. })
  7987. .then(() => {
  7988. _this.evalua = "";
  7989. _this.checkId = "";
  7990. _this.eTitle = "";
  7991. let _unitJson = _this.unitJson;
  7992. for (var i = 0; i < _unitJson.length; i++) {
  7993. let _task = _unitJson[i].chapterInfo[0].taskJson;
  7994. for (var j = 0; j < _task.length; j++) {
  7995. let _eList = _task[j].eList;
  7996. for (var k = 0; k < _eList.length; k++) {
  7997. delete _eList[k].target;
  7998. }
  7999. }
  8000. }
  8001. _this.$forceUpdate();
  8002. if (_this.cid) {
  8003. _this.updateWork();
  8004. }
  8005. })
  8006. .catch(() => {
  8007. return;
  8008. });
  8009. },
  8010. selectEva() {
  8011. let params = {
  8012. oid: this.oid,
  8013. };
  8014. this.ajax
  8015. .get(this.$store.state.api + "selectAllEvaluation", params)
  8016. .then((res) => {
  8017. this.evaJuri = res.data[0];
  8018. })
  8019. .catch((err) => {
  8020. console.error(err);
  8021. });
  8022. },
  8023. setMindData() {
  8024. let targetArray = [];
  8025. this.data.data = [];
  8026. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  8027. let _eJson = Object.keys(this.eJson);
  8028. let _e = this.eJson;
  8029. for (let i = 0; i < _eJson.length; i++) {
  8030. let element = _e[_eJson[i]];
  8031. this.data.data.push({
  8032. id: element.id,
  8033. parentid: "root",
  8034. topic: element.name,
  8035. });
  8036. // targetArray.push({
  8037. // id: element.id,
  8038. // parentid: "root",
  8039. // name: element.name,
  8040. // });
  8041. targetArray.push({
  8042. value: element.name,
  8043. label: element.name,
  8044. children: [],
  8045. });
  8046. let _eJsonc = Object.keys(element.child);
  8047. let _e2 = element.child;
  8048. for (let j = 0; j < _eJsonc.length; j++) {
  8049. let _ec = _e2[_eJsonc[j]];
  8050. this.data.data.push({
  8051. id: _ec.id,
  8052. parentid: element.id,
  8053. topic: _ec.name,
  8054. });
  8055. // targetArray.push({
  8056. // id: _ec.id,
  8057. // parentid: element.id,
  8058. // name: _ec.name,
  8059. // });
  8060. targetArray[i].children.push({
  8061. value: _ec.name,
  8062. label: _ec.name,
  8063. children: [],
  8064. });
  8065. let _eJsonz = Object.keys(_ec.child);
  8066. let _e3 = _ec.child;
  8067. for (let z = 0; z < _eJsonz.length; z++) {
  8068. let _ez = _e3[_eJsonz[z]];
  8069. this.data.data.push({
  8070. id: _ez.id,
  8071. parentid: _ec.id,
  8072. topic: _ez.name,
  8073. });
  8074. // targetArray.push({
  8075. // id: _ez.id,
  8076. // parentid: _ec.id,
  8077. // name: _ez.name,
  8078. // });
  8079. targetArray[i].children[j].children.push({
  8080. value: _ez.name,
  8081. label: _ez.name,
  8082. });
  8083. }
  8084. }
  8085. }
  8086. this.targetArray = targetArray;
  8087. this.$forceUpdate();
  8088. },
  8089. /*添加评价 */
  8090. addEList(index, tIndex) {
  8091. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  8092. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  8093. value: "",
  8094. detail: "",
  8095. score: 5,
  8096. })
  8097. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  8098. { value: "", detail: "", score: 5 },
  8099. ]);
  8100. this.$forceUpdate();
  8101. },
  8102. forceUpdate() {
  8103. this.$forceUpdate();
  8104. },
  8105. deletEList(index, tIndex, eIndex) {
  8106. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  8107. eIndex,
  8108. 1
  8109. );
  8110. this.$forceUpdate();
  8111. },
  8112. getChoosePic(t) {
  8113. this.chooseType = t;
  8114. this.getAllBanner();
  8115. },
  8116. getAllBanner() {
  8117. this.sysPicVisible = true;
  8118. let params = {
  8119. t: this.chooseType,
  8120. };
  8121. this.ajax
  8122. .get(this.$store.state.api + "selectAllBanner", params)
  8123. .then((res) => {
  8124. this.sysPic = res.data[0];
  8125. })
  8126. .catch((err) => {
  8127. console.error(err);
  8128. });
  8129. },
  8130. // getClass() {
  8131. // let params = {
  8132. // oid: this.oid,
  8133. // };
  8134. // this.ajax
  8135. // .get(this.$store.state.api + "selectClassBySchool", params)
  8136. // .then((res) => {
  8137. // this.classJuri = res.data[0];
  8138. // })
  8139. // .catch((err) => {
  8140. // console.error(err);
  8141. // });
  8142. // },
  8143. deleteSysPic() {
  8144. this.cover = [];
  8145. this.isSysPic = false;
  8146. },
  8147. deleteSelectPic() {
  8148. this.selectJson.url = "";
  8149. },
  8150. setEListStar() {
  8151. this.$forceUpdate();
  8152. },
  8153. deletRateList(i) {
  8154. this.rateJson.splice(i, 1);
  8155. },
  8156. addRateList() {
  8157. this.rateJson.push({ detail: "", score: 5, value: "" });
  8158. },
  8159. addSt() {
  8160. this.sentenceList.push({
  8161. sentenceTitle: "",
  8162. addSentence: [],
  8163. rightAnswer: [],
  8164. });
  8165. },
  8166. addSen(i) {
  8167. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  8168. // this.isPushTitleList.push(this.sentenceTitle);
  8169. this.sentenceList[i].sentenceTitle = "";
  8170. },
  8171. setRightAnswer(s, i, j) {
  8172. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  8173. this.sentenceList[i].rightAnswer.push(s);
  8174. }
  8175. },
  8176. returnCard(r, i, j) {
  8177. this.sentenceList[i].rightAnswer.splice(j, 1);
  8178. },
  8179. addSentenceTool() {
  8180. for (var i = 0; i < this.sentenceList.length; i++) {
  8181. if (this.sentenceList[i].rightAnswer.length == 0) {
  8182. this.$message.error("请将信息填写完整!");
  8183. return;
  8184. }
  8185. if (
  8186. this.sentenceList[i].addSentence.length !=
  8187. this.sentenceList[i].rightAnswer.length
  8188. ) {
  8189. this.$message.error("请将信息填写完整!");
  8190. return;
  8191. }
  8192. }
  8193. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8194. this.taskCount
  8195. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  8196. this.sentenceList = [
  8197. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  8198. ];
  8199. this.dialogVisibleSentence = false;
  8200. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8201. // itemTaskIndex
  8202. // ].toolChoose[toolIndex].tool = [];
  8203. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8204. // itemTaskIndex
  8205. // ].toolChoose[toolIndex].tool.push(i);
  8206. if (
  8207. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8208. .toolChoose[this.toolIndex].tool != 47
  8209. ) {
  8210. this.addTools(47, this.taskCount, this.toolIndex);
  8211. }
  8212. },
  8213. addTableJson() {
  8214. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8215. // this.$message.error("请将信息填写完整!");
  8216. // return;
  8217. // }
  8218. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8219. this.taskCount
  8220. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  8221. // this.tableJson = [{ text: "" }];
  8222. // this.dialogVisibleTable = false;
  8223. this.$message.success("上传成功");
  8224. if (
  8225. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8226. .toolChoose[this.toolIndex].tool != 48
  8227. ) {
  8228. this.addTools(48, this.taskCount, this.toolIndex);
  8229. }
  8230. },
  8231. addWordJson() {
  8232. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8233. this.taskCount
  8234. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  8235. // this.wordJson = [{ text: "" }];
  8236. // this.dialogVisibleWord = false;
  8237. this.$message.success("上传成功");
  8238. if (
  8239. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8240. .toolChoose[this.toolIndex].tool != 52
  8241. ) {
  8242. this.addTools(52, this.taskCount, this.toolIndex);
  8243. }
  8244. },
  8245. addMoreUpload() {
  8246. if (this.uploadJson.length == 0) {
  8247. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8248. this.taskCount
  8249. ].toolChoose[this.toolIndex].uploadJson = [];
  8250. } else {
  8251. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8252. this.taskCount
  8253. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  8254. }
  8255. this.uploadJson = [];
  8256. this.dialogVisibleMoreUpload = false;
  8257. if (
  8258. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8259. .toolChoose[this.toolIndex].tool != 50
  8260. ) {
  8261. this.addTools(50, this.taskCount, this.toolIndex);
  8262. }
  8263. },
  8264. addPreTime() {
  8265. if (this.preTime == 0) {
  8266. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8267. this.taskCount
  8268. ].toolChoose[this.toolIndex].preTime = 0;
  8269. } else {
  8270. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8271. this.taskCount
  8272. ].toolChoose[this.toolIndex].preTime = this.preTime;
  8273. }
  8274. this.preTime = 0;
  8275. this.dialogVisiblePreTime = false;
  8276. if (
  8277. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8278. .toolChoose[this.toolIndex].tool != 10
  8279. ) {
  8280. this.addTools(10, this.taskCount, this.toolIndex);
  8281. }
  8282. },
  8283. goToTask(i) {
  8284. $(".rightBox")[0].scrollTop =
  8285. $(".taskBorder")[i+1].offsetTop +
  8286. $(".taskBorder")[i+1].parentElement.parentElement.offsetTop;
  8287. this.isClickColor = i + 1;
  8288. },
  8289. taskMove(type, index) {
  8290. // this
  8291. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  8292. // confirmButtonText: "确定",
  8293. // cancelButtonText: "取消",
  8294. // type: "warning",
  8295. // })
  8296. // .then(() => {
  8297. if (type == 1) {
  8298. if (index > 0) {
  8299. let a = JSON.parse(
  8300. JSON.stringify(
  8301. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  8302. )
  8303. );
  8304. let b = JSON.parse(
  8305. JSON.stringify(
  8306. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  8307. )
  8308. );
  8309. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  8310. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8311. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8312. if (index - 1 == 0) {
  8313. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8314. index - 1
  8315. ].chapterData = a.chapterData;
  8316. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8317. index
  8318. ].chapterData = b.chapterData;
  8319. }
  8320. }
  8321. } else {
  8322. if (
  8323. index <
  8324. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  8325. ) {
  8326. let a = JSON.parse(
  8327. JSON.stringify(
  8328. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  8329. )
  8330. );
  8331. let b = JSON.parse(
  8332. JSON.stringify(
  8333. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  8334. )
  8335. );
  8336. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  8337. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8338. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8339. if (index == 0) {
  8340. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8341. index + 1
  8342. ].chapterData = a.chapterData;
  8343. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8344. index
  8345. ].chapterData = b.chapterData;
  8346. }
  8347. }
  8348. }
  8349. this.$forceUpdate();
  8350. // })
  8351. // .catch(() => {
  8352. // return;
  8353. // })
  8354. },
  8355. addGroup(i) {
  8356. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  8357. this.groupJson.group.push({
  8358. name: "第" + (this.groupJson.group.length + 1) + "组",
  8359. });
  8360. },
  8361. deleteGroup(i) {
  8362. this.groupJson.group.splice(i, 1);
  8363. },
  8364. addGroupJson() {
  8365. for (var i = 0; i < this.groupJson.group.length; i++) {
  8366. if (!this.groupJson.group[i].name) {
  8367. this.$message.error("请将信息填写完整!");
  8368. return;
  8369. }
  8370. }
  8371. if (!this.groupJson.number) {
  8372. this.$message.error("请将信息填写完整!");
  8373. return;
  8374. }
  8375. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8376. this.taskCount
  8377. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  8378. JSON.stringify(this.groupJson)
  8379. );
  8380. this.dialogVisibleGroup = false;
  8381. this.groupJson = {};
  8382. if (
  8383. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8384. .toolChoose[this.toolIndex].tool != 49
  8385. ) {
  8386. this.addTools(49, this.taskCount, this.toolIndex);
  8387. }
  8388. },
  8389. updateTime(preTime) {
  8390. this.preTime = preTime;
  8391. },
  8392. InviteChange(val) {
  8393. console.log(val);
  8394. return;
  8395. let array = JSON.parse(JSON.stringify(val));
  8396. this.inviteCode = this.inviteCode.filter((el) => {
  8397. if (val.indexOf(el.cid) != -1) {
  8398. array.splice(array.indexOf(el.cid), 1);
  8399. return el;
  8400. }
  8401. });
  8402. for (var i = 0; i < array.length; i++) {
  8403. this.getInviteCode(array[i]);
  8404. }
  8405. },
  8406. async getInviteCode(cid) {
  8407. let code = this.randomNumber();
  8408. let params = {
  8409. code: code,
  8410. oid: this.oid,
  8411. };
  8412. let type = 1;
  8413. for (var i = 0; i < this.inviteCode.length; i++) {
  8414. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  8415. type = 2;
  8416. }
  8417. }
  8418. if (type == 2) {
  8419. this.getInviteCode(cid);
  8420. return;
  8421. }
  8422. const res = await this.ajax.get(
  8423. this.$store.state.api + "selectInviteCode2",
  8424. params
  8425. );
  8426. if (
  8427. res.data.length &&
  8428. res.data[0].length &&
  8429. res.data[0][0].courseId != this.cid
  8430. ) {
  8431. this.getInviteCode(cid);
  8432. return;
  8433. }
  8434. let array = [];
  8435. for (var i = 0; i < this.inviteCode.length; i++) {
  8436. array.push(this.inviteCode[i].cid);
  8437. }
  8438. if (array.indexOf(cid) != -1) {
  8439. this.inviteCode[array.indexOf(cid)].ic = code;
  8440. } else {
  8441. this.inviteCode.push({ cid: cid, ic: code });
  8442. }
  8443. },
  8444. OpenInviteD(cid) {
  8445. let array = [];
  8446. this.icode = "";
  8447. for (var i = 0; i < this.inviteCode.length; i++) {
  8448. array.push(this.inviteCode[i].cid);
  8449. }
  8450. if (array.indexOf(cid) != -1) {
  8451. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  8452. }
  8453. this.inviteId = cid;
  8454. this.dialogVisibleInvite = true;
  8455. },
  8456. addInvite() {
  8457. let reg = /^[A-Za-z0-9]{4,}$/;
  8458. if (!reg.test(this.icode)) {
  8459. this.$message.error("请输入至少四位数字或英文组合的随机码");
  8460. return;
  8461. }
  8462. let type = 1;
  8463. for (var i = 0; i < this.inviteCode.length; i++) {
  8464. if (
  8465. this.inviteCode[i].cid != this.inviteId &&
  8466. this.icode == this.inviteCode[i].ic
  8467. ) {
  8468. type = 2;
  8469. }
  8470. }
  8471. if (type == 2) {
  8472. this.$message.error("已有此随机码,不能重复");
  8473. return;
  8474. }
  8475. let params = {
  8476. code: this.icode,
  8477. oid: this.oid,
  8478. };
  8479. this.ajax
  8480. .get(this.$store.state.api + "selectInviteCode", params)
  8481. .then((res) => {
  8482. if (
  8483. res.data.length &&
  8484. res.data[0].length &&
  8485. res.data[0][0].courseId != this.cid
  8486. ) {
  8487. this.$message.error("已有此随机码,不能重复");
  8488. return;
  8489. }
  8490. let array = [];
  8491. for (var i = 0; i < this.inviteCode.length; i++) {
  8492. array.push(this.inviteCode[i].cid);
  8493. }
  8494. if (array.indexOf(this.inviteId) != -1) {
  8495. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  8496. } else {
  8497. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  8498. }
  8499. this.icode = "";
  8500. this.dialogVisibleInvite = false;
  8501. })
  8502. .catch((err) => {
  8503. console.error(err);
  8504. });
  8505. },
  8506. randomNumber() {
  8507. // 随机生成两位数
  8508. // let num = Math.floor(Math.random() * 900) + 100;
  8509. // 生成 0 到 99 之间的随机整数
  8510. const randomNumber = Math.floor(Math.random() * 100);
  8511. // 如果随机数小于 10,补上前导零
  8512. const num =
  8513. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  8514. // 随机生成两个大写字母
  8515. let letters = "";
  8516. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  8517. for (let i = 0; i < 3; i++) {
  8518. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  8519. }
  8520. // 随机生成两位数字和字母的组合
  8521. let mix = "";
  8522. let chars =
  8523. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  8524. for (let i = 0; i < 3; i++) {
  8525. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  8526. mix += char;
  8527. }
  8528. // 随机选择一种类型
  8529. let type = Math.floor(Math.random() * 3);
  8530. return num;
  8531. // 根据类型输出结果
  8532. switch (type) {
  8533. case 0:
  8534. console.log(num); // 输出两位数
  8535. return num;
  8536. case 1:
  8537. console.log(letters); // 输出两个大写字母
  8538. return letters;
  8539. case 2:
  8540. console.log(mix); // 输出两位数字和字母的组合
  8541. return mix;
  8542. }
  8543. },
  8544. },
  8545. beforeDestroy() {
  8546. clearTimeout(this.timer);
  8547. this.timer = null;
  8548. clearInterval(this.timer2);
  8549. this.timer2 = null;
  8550. },
  8551. beforeRouteLeave(to, from, next) {
  8552. clearTimeout(this.timer);
  8553. this.timer = null;
  8554. clearInterval(this.timer2);
  8555. this.timer2 = null;
  8556. next();
  8557. },
  8558. created() {
  8559. this.getStudent();
  8560. this.getTeacher();
  8561. this.getClass();
  8562. this.getTemplate();
  8563. // this.selectType();
  8564. this.selectEva();
  8565. this.loading = false;
  8566. this.timer2 = setInterval(() => {
  8567. this.selectEva();
  8568. }, 5000);
  8569. setTimeout(() => {
  8570. this.selectCourseDetail();
  8571. }, 500);
  8572. },
  8573. mounted() {
  8574. this.$nextTick(() => {
  8575. //监听这个dom的scroll事件
  8576. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  8577. });
  8578. },
  8579. };
  8580. </script>
  8581. <style scoped>
  8582. @media screen and (max-width: 1280px) {
  8583. .mbCss {
  8584. flex-direction: column !important;
  8585. }
  8586. .pjCss {
  8587. width: 100% !important;
  8588. }
  8589. .evaCss {
  8590. width: 100% !important;
  8591. }
  8592. }
  8593. .dialog_diy>>>.el-dialog__header {
  8594. background: #3c3c3c !important;
  8595. padding: 15px 20px;
  8596. }
  8597. .dialog_diy>>>.el-dialog__title {
  8598. color: #fff;
  8599. }
  8600. .dialog_diy>>>.el-dialog__headerbtn {
  8601. top: 19px;
  8602. }
  8603. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  8604. color: #fff;
  8605. }
  8606. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  8607. color: #fff;
  8608. }
  8609. .dialog_diy>>>.el-dialog__body,
  8610. .dialog_diy>>>.el-dialog__footer {
  8611. background: #fafafa;
  8612. }
  8613. .dialog_diy3>>>.el-dialog__body,
  8614. .dialog_diy3>>>.el-dialog__footer {
  8615. background: #eee !important;
  8616. }
  8617. .dialog_diy3>>>.el-dialog__body {
  8618. padding: 20px 20px;
  8619. }
  8620. .source_diy>>>.el-dialog {
  8621. height: 100% !important;
  8622. margin: 0 auto !important;
  8623. }
  8624. .source_diy>>>.el-dialog__body {
  8625. height: calc(100% - 185px);
  8626. overflow: auto;
  8627. background: #e6eaf0;
  8628. }
  8629. .source_diy>>>.el-dialog__footer {
  8630. background: #e6eaf0 !important;
  8631. }
  8632. .left {
  8633. border-right: 1px solid rgb(60, 94, 143);
  8634. display: flex;
  8635. flex-direction: column;
  8636. align-items: center;
  8637. min-height: 600px;
  8638. width: 385px;
  8639. height: 80%;
  8640. }
  8641. .tips {
  8642. color: rgb(128, 128, 128);
  8643. font-size: 12px;
  8644. width: 270px;
  8645. margin: 40px;
  8646. }
  8647. .pb_content {
  8648. height: 100% !important;
  8649. /* margin: 0 20px 0 20px; */
  8650. }
  8651. .pb_content_body {
  8652. width: 100% !important;
  8653. height: 100%;
  8654. }
  8655. .info_solid {
  8656. width: 270px;
  8657. height: 30px;
  8658. border-left: 1px solid #bdbdbd;
  8659. margin: 10px 0px 10px 30px;
  8660. }
  8661. .info_steps {
  8662. width: 270px;
  8663. font-size: 0.875rem;
  8664. display: flex;
  8665. align-items: center;
  8666. }
  8667. .info_steps span:nth-child(1) {
  8668. width: 30px;
  8669. height: 30px;
  8670. background: rgba(0, 0, 0, 0.38);
  8671. display: block;
  8672. color: #fff;
  8673. border-radius: 40px;
  8674. text-align: center;
  8675. line-height: 30px;
  8676. }
  8677. .steps_active {
  8678. background: #3d67bc !important;
  8679. }
  8680. .info_steps span:nth-child(2) {
  8681. margin-left: 5px;
  8682. }
  8683. .right {
  8684. height: 100%;
  8685. width: calc(100% - 40px);
  8686. display: flex;
  8687. overflow: hidden;
  8688. margin: 0 auto;
  8689. }
  8690. .basic_box {
  8691. margin: 0 auto;
  8692. position: relative;
  8693. padding: 0 20px 0 20px;
  8694. }
  8695. .basic_box2 {
  8696. position: relative;
  8697. width: calc(100% - 300px);
  8698. }
  8699. .basic_box_success {
  8700. width: 100%;
  8701. height: 100%;
  8702. padding: 50px 0;
  8703. position: relative;
  8704. text-align: center;
  8705. /* border-bottom: 1px solid #bfbfbf; */
  8706. box-sizing: border-box;
  8707. display: flex;
  8708. align-items: center;
  8709. flex-direction: column;
  8710. justify-content: center;
  8711. }
  8712. .info_title {
  8713. font-size: 1.5em;
  8714. margin-right: 25px;
  8715. /* margin: 20px 30px 20px 30px; */
  8716. }
  8717. .bInfo_title {
  8718. text-align: left;
  8719. margin: 10px 0;
  8720. }
  8721. .small_title {
  8722. font-size: 14px;
  8723. line-height: 40px;
  8724. }
  8725. .chapter_beizhu {
  8726. font-size: 12px;
  8727. font-weight: bold;
  8728. float: right;
  8729. color: rgb(128, 128, 128);
  8730. margin-top: 5px;
  8731. }
  8732. .chapter_uploadBox1 {
  8733. text-align: left;
  8734. background-color: rgb(242, 242, 242);
  8735. width: 100%;
  8736. height: 67px;
  8737. padding: 0px 15px;
  8738. border-radius: 8px;
  8739. overflow: hidden;
  8740. font-size: 16px;
  8741. box-sizing: border-box;
  8742. position: relative;
  8743. }
  8744. .chapter_add {
  8745. width: 100%;
  8746. height: 32px;
  8747. margin-top: 15px;
  8748. cursor: pointer;
  8749. }
  8750. .chapter_add_l {
  8751. margin-left: 5px;
  8752. width: 30px;
  8753. height: 30px;
  8754. float: left;
  8755. border: 1px solid #aaa;
  8756. color: #aaa;
  8757. border-radius: 50%;
  8758. font-size: 25px;
  8759. text-align: center;
  8760. }
  8761. .chapter_add_r {
  8762. font-size: 18px;
  8763. height: 40px;
  8764. line-height: 30px;
  8765. text-indent: 10px;
  8766. color: #aaa;
  8767. }
  8768. .chapter_add_r span {
  8769. font-size: 12px;
  8770. color: rgb(204, 204, 204);
  8771. }
  8772. .chapter_add_input {
  8773. display: none;
  8774. }
  8775. .line {
  8776. width: 85%;
  8777. margin: 0 auto;
  8778. border-top: 1px solid #e5e5e5;
  8779. margin-top: 20px;
  8780. }
  8781. .info_btnBox {
  8782. width: calc(100%);
  8783. display: flex;
  8784. justify-content: center;
  8785. height: 70px;
  8786. align-items: center;
  8787. background: #fff;
  8788. margin: 0 auto;
  8789. border-top: 2px solid rgb(228, 232, 237);
  8790. box-sizing: border-box;
  8791. border-radius: 0px 0 5px 5px;
  8792. }
  8793. .info_btn+.info_btn {
  8794. margin-left: 15px;
  8795. }
  8796. .info_btn,
  8797. .teacherWord {
  8798. color: #fff;
  8799. background-color: #0f7eff;
  8800. padding: 8px 24px;
  8801. font-size: 0.9375rem;
  8802. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  8803. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  8804. min-width: 64px;
  8805. font-weight: 500;
  8806. border-radius: 4px;
  8807. box-sizing: border-box;
  8808. border: none;
  8809. cursor: pointer;
  8810. }
  8811. .teacherWord {
  8812. width: 105px !important;
  8813. text-align: center !important;
  8814. line-height: 36px !important;
  8815. padding: 0 !important;
  8816. font-size: 14px !important;
  8817. margin: 10px 0 !important;
  8818. }
  8819. .wordTeacher {
  8820. display: flex;
  8821. flex-direction: column;
  8822. width: 20%;
  8823. text-align: center;
  8824. font-size: 14px;
  8825. margin: 30px 30px 0 10px;
  8826. background: #fff;
  8827. position: relative;
  8828. border-radius: 5px;
  8829. padding: 25px 0px;
  8830. }
  8831. .wordPic {
  8832. margin: 0 auto;
  8833. width: 60px;
  8834. height: 60px;
  8835. cursor: pointer;
  8836. }
  8837. .deleteWord {
  8838. width: 22px;
  8839. height: 22px;
  8840. position: absolute;
  8841. right: 5px;
  8842. top: -15px;
  8843. cursor: pointer;
  8844. display: none;
  8845. z-index: 999;
  8846. }
  8847. .wordPic>img,
  8848. .deleteWord>img,
  8849. .addToolImg>img {
  8850. width: 100%;
  8851. height: 100%;
  8852. }
  8853. .info_btn:hover {
  8854. background-color: #4f7cd5 !important;
  8855. }
  8856. .cru_selectBox {
  8857. display: flex;
  8858. margin: 24px 0 10px;
  8859. flex-wrap: nowrap;
  8860. white-space: nowrap;
  8861. overflow: auto;
  8862. position: relative;
  8863. height: 47px;
  8864. }
  8865. .cru_selectBox::-webkit-scrollbar {
  8866. /*滚动条整体样式*/
  8867. width: 6px;
  8868. /*高宽分别对应横竖滚动条的尺寸*/
  8869. height: 6px;
  8870. }
  8871. /*定义滚动条轨道 内阴影+圆角*/
  8872. .cru_selectBox::-webkit-scrollbar-track {
  8873. border-radius: 10px;
  8874. background-color: #eee;
  8875. }
  8876. /*定义滑块 内阴影+圆角*/
  8877. .cru_selectBox::-webkit-scrollbar-thumb {
  8878. border-radius: 10px;
  8879. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  8880. background-color: rgba(0, 0, 0, 0.1);
  8881. }
  8882. .cru_line {
  8883. position: absolute;
  8884. bottom: 0px;
  8885. transition: all 0.5s;
  8886. left: 0px;
  8887. width: 125px;
  8888. margin-left: -25px;
  8889. }
  8890. .cru_select {
  8891. font-size: 21px;
  8892. margin-right: 37px;
  8893. margin-left: 5px;
  8894. cursor: pointer;
  8895. color: #a6a6a6;
  8896. }
  8897. .cru_selected {
  8898. color: #0b7fc2 !important;
  8899. }
  8900. .chapter_contentbox {
  8901. display: flex;
  8902. align-items: center;
  8903. margin-top: 15px;
  8904. }
  8905. .chapter_contentbox .cc_title {
  8906. margin: 0px;
  8907. color: black;
  8908. display: block;
  8909. white-space: nowrap;
  8910. overflow: hidden;
  8911. text-overflow: ellipsis;
  8912. margin-right: 20px;
  8913. font-size: 18px;
  8914. height: 20px;
  8915. line-height: 22px;
  8916. min-width: fit-content;
  8917. display: flex;
  8918. }
  8919. .chapter_contentbox .cc_title::before {
  8920. content: '';
  8921. height: 100%;
  8922. width: 3px;
  8923. background: #3681FC;
  8924. border-radius: 3px;
  8925. opacity: 1;
  8926. display: block;
  8927. margin-right: 10px;
  8928. }
  8929. .chapter_contentbox .cc_input {
  8930. width: 100%;
  8931. }
  8932. .remove {
  8933. background-image: url("../../../assets/icon/new/delete_u.png");
  8934. cursor: pointer;
  8935. opacity: 0.5;
  8936. width: 30px;
  8937. min-width: 30px;
  8938. height: 30px;
  8939. background-size: 100% 100%;
  8940. background-repeat: no-repeat;
  8941. margin-left: 10px;
  8942. }
  8943. .remove1 {
  8944. background-image: url("../../../assets/remove1.png");
  8945. background-repeat: no-repeat;
  8946. background-position: 5px 10px;
  8947. width: 40px;
  8948. height: 50px;
  8949. cursor: pointer;
  8950. }
  8951. .binfo_input {
  8952. width: 100%;
  8953. margin: 0;
  8954. padding: 12px 14px;
  8955. display: block;
  8956. min-width: 0;
  8957. outline: none;
  8958. box-sizing: border-box;
  8959. background: none;
  8960. border: none;
  8961. border-radius: 4px;
  8962. background: #fff;
  8963. font-size: 16px;
  8964. resize: none;
  8965. font-family: 'Microsoft YaHei';
  8966. min-height: 48px;
  8967. border: 1px solid #3682fc00;
  8968. }
  8969. .binfo_textarea {
  8970. border: 1px solid #CAD1DC;
  8971. font-size: 16px;
  8972. resize: none;
  8973. background: #fcfcfc;
  8974. font-family: 'Microsoft YaHei';
  8975. }
  8976. .binfo_input:focus-visible {
  8977. border: 1px solid #3681FC !important;
  8978. }
  8979. .time {
  8980. display: flex;
  8981. margin: 35px 0 80px 0;
  8982. }
  8983. .chapter_btnbox {
  8984. width: 160px;
  8985. border-radius: 5px;
  8986. border: 2px dashed gray;
  8987. display: flex;
  8988. padding: 8px 50px;
  8989. align-items: center;
  8990. justify-content: center;
  8991. margin: 30px auto 0;
  8992. cursor: pointer;
  8993. }
  8994. .icon_add {
  8995. position: relative;
  8996. width: 24px;
  8997. padding-top: 20px;
  8998. border-radius: 100%;
  8999. border-width: 2px;
  9000. border-style: solid;
  9001. border-color: gray;
  9002. }
  9003. .icon_add i:nth-child(1) {
  9004. position: absolute;
  9005. left: 50%;
  9006. top: 50%;
  9007. height: 60%;
  9008. transform: translate(-50%, -50%);
  9009. border-width: 1px;
  9010. border-style: solid;
  9011. border-color: inherit;
  9012. }
  9013. .icon_add i:nth-child(2) {
  9014. position: absolute;
  9015. top: 50%;
  9016. left: 50%;
  9017. width: 60%;
  9018. transform: translate(-50%, -50%);
  9019. border-width: 1px;
  9020. border-style: solid;
  9021. border-color: inherit;
  9022. }
  9023. .chapter_btn_w {
  9024. font-size: 0.9375rem;
  9025. font-weight: bold;
  9026. color: gray;
  9027. margin-left: 20px;
  9028. }
  9029. .disUoloadSty>>>.el-icon-plus {
  9030. display: none !important;
  9031. /* 上传按钮隐藏 */
  9032. }
  9033. .imgLeft {
  9034. margin: 15px 0;
  9035. }
  9036. .add_info_box {
  9037. margin: 20px 0 0;
  9038. display: flex;
  9039. flex-wrap: wrap;
  9040. }
  9041. .add_info_box button {
  9042. /* margin: 0 10px 10px 0; */
  9043. }
  9044. .add_info_box2 {
  9045. display: flex;
  9046. align-items: center;
  9047. flex-wrap: wrap;
  9048. }
  9049. .add_info_box2::after {
  9050. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  9051. color: red;
  9052. font-size: 14px;
  9053. margin-bottom: 10px;
  9054. }
  9055. .add_chapters_box {
  9056. text-align: left;
  9057. background-color: #fff;
  9058. width: 100%;
  9059. border-radius: 4px;
  9060. font-size: 16px;
  9061. box-sizing: border-box;
  9062. position: relative;
  9063. padding: 20px 15px;
  9064. height: 200px;
  9065. overflow-y: auto;
  9066. overflow-x: hidden;
  9067. }
  9068. .add_chapters_box.add_c_none{
  9069. display: flex;
  9070. justify-content: center;
  9071. align-items: center;
  9072. }
  9073. .add_c_none > img{
  9074. width: 135px;
  9075. }
  9076. .homework_box {
  9077. display: flex;
  9078. align-items: flex-start;
  9079. flex-wrap: wrap;
  9080. margin: 15px 0 0 0;
  9081. flex-direction: column;
  9082. align-content: flex-start;
  9083. }
  9084. .course_homework {
  9085. display: flex;
  9086. justify-content: center;
  9087. flex-direction: row;
  9088. align-items: center;
  9089. margin: 0 10px 0 0;
  9090. }
  9091. .course_homework>>>.el-input__inner {
  9092. width: 140px;
  9093. margin-left: 15px;
  9094. }
  9095. .chapter_upload_move {
  9096. position: relative;
  9097. background-color: #fff;
  9098. position: absolute;
  9099. width: 100%;
  9100. top: 0px;
  9101. left: 0px;
  9102. border: 1px solid #eee;
  9103. border-radius: 5px;
  9104. transition: width 2s;
  9105. -moz-transition: width 2s;
  9106. -webkit-transition: width 2s;
  9107. -o-transition: width 2s;
  9108. }
  9109. .chapter_upload_l_i {
  9110. background-image: url("../../../assets/icon.png");
  9111. background-position: 3px -165px;
  9112. width: 30px;
  9113. height: 30px;
  9114. margin: 10px auto 0 auto;
  9115. }
  9116. .course_input_box {
  9117. display: flex;
  9118. margin-right: 20px;
  9119. width: 800px;
  9120. align-items: center;
  9121. }
  9122. .course_input_box>.binfo_input {
  9123. width: calc(100% - 48px - 200px - 20px);
  9124. margin: 0 10px;
  9125. }
  9126. .bb_courseIcon {
  9127. width: 48px;
  9128. height: 48px;
  9129. background: #3681FC;
  9130. border-radius: 6px;
  9131. display: flex;
  9132. align-items: center;
  9133. justify-content: center;
  9134. }
  9135. .bb_courseIcon>img {
  9136. width: 25px;
  9137. height: auto
  9138. }
  9139. .big_box {
  9140. margin-top: 20px;
  9141. display: flex;
  9142. border-bottom: 1px solid #E0E2ED;
  9143. }
  9144. .left_first {
  9145. display: flex;
  9146. flex-direction: column;
  9147. flex-wrap: nowrap;
  9148. width: calc(100% - 400px);
  9149. padding: 0 100px 0 0;
  9150. box-sizing: border-box;
  9151. }
  9152. .right_first {
  9153. width: 400px;
  9154. display: flex;
  9155. align-items: center;
  9156. justify-content: center;
  9157. border-left: 1px solid #E0E2ED;
  9158. box-sizing: border-box;
  9159. }
  9160. .right_title {
  9161. /* height: 30px; */
  9162. padding: 0 20px;
  9163. font-size: 18px;
  9164. font-weight: bold;
  9165. /* color: #0f7eff; */
  9166. margin: 20px auto 0;
  9167. display: flex;
  9168. /* justify-content: space-between; */
  9169. align-items: center;
  9170. }
  9171. .people {
  9172. border: 1px solid rgb(229 229 229);
  9173. height: 495px;
  9174. border-radius: 5px;
  9175. width: 100%;
  9176. overflow: auto;
  9177. }
  9178. .people_top {
  9179. display: flex;
  9180. width: 100%;
  9181. /* justify-content: space-between; */
  9182. /* align-items: center; */
  9183. flex-direction: column;
  9184. padding: 10px 25px 0;
  9185. box-sizing: border-box;
  9186. }
  9187. .people_nav,
  9188. .people_top_right {
  9189. /* padding: 20px 0 0 20px; */
  9190. }
  9191. .people_top_right {
  9192. height: 40px;
  9193. margin-bottom: 10px;
  9194. }
  9195. .people_search {
  9196. display: flex;
  9197. position: relative;
  9198. }
  9199. .people_search>>>.el-input__inner {
  9200. /* height: 25px; */
  9201. width: 95%;
  9202. }
  9203. .search_img {
  9204. width: 20px;
  9205. height: 20px;
  9206. position: absolute;
  9207. right: 30px;
  9208. top: 50%;
  9209. transform: translateY(-50%);
  9210. }
  9211. .search_img>img {
  9212. width: 100%;
  9213. height: 100%;
  9214. }
  9215. .people_name {
  9216. display: flex;
  9217. justify-content: flex-start;
  9218. padding: 20px 0 0 25px;
  9219. flex-direction: column;
  9220. flex-wrap: wrap;
  9221. }
  9222. .p_box {
  9223. position: relative;
  9224. }
  9225. .people_name>>>.el-checkbox {
  9226. width: 100%;
  9227. display: flex;
  9228. align-items: center;
  9229. margin-bottom: 10px;
  9230. }
  9231. .people_name>>>.el-checkbox__label {
  9232. text-overflow: ellipsis;
  9233. overflow: hidden;
  9234. width: calc(100%);
  9235. }
  9236. .people_name2>>>.el-checkbox__label {
  9237. width: calc(100% - 130px);
  9238. }
  9239. .inviteCode {
  9240. position: absolute;
  9241. right: 30px;
  9242. color: #237ade;
  9243. top: 0;
  9244. cursor: pointer;
  9245. font-size: 13px;
  9246. }
  9247. .noneInvite {
  9248. color: #a8a8a8;
  9249. }
  9250. .inviteImg {
  9251. position: absolute;
  9252. right: 5px;
  9253. top: 0;
  9254. width: 20px;
  9255. }
  9256. .right_img {
  9257. width: 150px;
  9258. height: 150px;
  9259. margin: 20px auto;
  9260. }
  9261. .right_img>img {
  9262. width: 100%;
  9263. height: 100%;
  9264. }
  9265. .number {
  9266. margin-top: 20px;
  9267. color: #4aa6ff;
  9268. text-decoration: underline;
  9269. }
  9270. .success_button {
  9271. display: flex;
  9272. text-align: center;
  9273. margin: 5% 0 auto;
  9274. flex-direction: row;
  9275. justify-content: center;
  9276. }
  9277. .look_course {
  9278. margin-right: 40px;
  9279. background: #3d67bc;
  9280. width: 200px;
  9281. height: 35px;
  9282. line-height: 35px;
  9283. color: #fff;
  9284. text-align: center;
  9285. font-size: 14px;
  9286. border-radius: 5px;
  9287. cursor: pointer;
  9288. }
  9289. .attend_others {
  9290. width: 250px;
  9291. background: #4fb13c;
  9292. height: 35px;
  9293. line-height: 35px;
  9294. color: #fff;
  9295. text-align: center;
  9296. font-size: 14px;
  9297. border-radius: 5px;
  9298. cursor: pointer;
  9299. }
  9300. .dialog_diy2>>>.el-dialog__body {
  9301. text-align: center;
  9302. }
  9303. .write_togother {
  9304. position: absolute;
  9305. right: 45px;
  9306. display: flex;
  9307. top: 5%;
  9308. }
  9309. .write_people {
  9310. font-size: 14px;
  9311. line-height: 50px;
  9312. padding-right: 10px;
  9313. }
  9314. .end_write {
  9315. background: #3d67bc;
  9316. color: #fff;
  9317. width: 100px;
  9318. height: 35px;
  9319. line-height: 35px;
  9320. text-align: center;
  9321. font-size: 14px;
  9322. border-radius: 5px;
  9323. cursor: pointer;
  9324. }
  9325. .chapter_upload+.chapter_upload {
  9326. margin-top: 15px;
  9327. }
  9328. .chapter_upload {
  9329. height: 35px;
  9330. position: relative;
  9331. display: flex;
  9332. align-items: center;
  9333. width: 100%;
  9334. min-height: 35px;
  9335. box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16);
  9336. border-radius: 4px;
  9337. overflow: hidden;
  9338. }
  9339. .chapter_upload_t {
  9340. background-color: #fff;
  9341. position: absolute;
  9342. height: 100%;
  9343. top: 0px;
  9344. left: 0px;
  9345. box-sizing: border-box;
  9346. }
  9347. .chapter_upload_o {
  9348. width: 100%;
  9349. height: 100%;
  9350. position: relative;
  9351. z-index: 1;
  9352. }
  9353. .chapter_upload_ic {
  9354. margin: 0 15px 0px auto;
  9355. display: flex;
  9356. align-items: center;
  9357. }
  9358. .chapter_upload_ic_l {
  9359. width: 50px;
  9360. height: 50px;
  9361. float: left;
  9362. }
  9363. .chapter_upload_ic_l div {
  9364. width: 30px;
  9365. height: 35px;
  9366. background: url("../../../assets/icon/icon.png");
  9367. }
  9368. .chapter_upload_ic_r {
  9369. height: 100%;
  9370. display: flex;
  9371. align-items: center;
  9372. cursor: pointer;
  9373. }
  9374. .chapter_upload_ic_r div {
  9375. width: 18px;
  9376. height: 18px;
  9377. background-image: url("../../../assets/icon/new/delete_u.png");
  9378. background-size: 100% 100%;
  9379. }
  9380. .chapter_upload_n {
  9381. display: flex;
  9382. text-indent: 10px;
  9383. text-decoration: none;
  9384. text-overflow: ellipsis;
  9385. white-space: nowrap;
  9386. overflow: hidden;
  9387. width: 55%;
  9388. margin-left: 10px;
  9389. cursor: pointer;
  9390. margin-top: 2px;
  9391. align-items: center;
  9392. }
  9393. .chapter_upload_l_i2,
  9394. .chapter_upload_l_i3,
  9395. .chapter_upload_l_i8,
  9396. .chapter_upload_l_i6,
  9397. .chapter_upload_l_i12,
  9398. .chapter_upload_l_i13 {
  9399. width: 15px;
  9400. height: 15px;
  9401. background-size: 100% 100%;
  9402. }
  9403. .chapter_upload_l_i2 {
  9404. background-image: url("../../../assets/icon/new/u_word.png");
  9405. }
  9406. .chapter_upload_l_i3 {
  9407. background-image: url("../../../assets/icon/new/u_video.png");
  9408. }
  9409. .chapter_upload_l_i8 {
  9410. background-image: url("../../../assets/icon/new/u_url.png");
  9411. }
  9412. .chapter_upload_l_i6 {
  9413. background-image: url("../../../assets/icon/new/u_url.png");
  9414. }
  9415. .chapter_upload_l_i12 {
  9416. background-image: url("../../../assets/icon/new/u_word.png");
  9417. }
  9418. .chapter_upload_l_i13 {
  9419. background-image: url("../../../assets/icon/new/u_img.png");
  9420. }
  9421. .chapter_upload_noSee {
  9422. background-image: url("../../../assets/icon/new/u_noUpload.png");
  9423. width: 18px;
  9424. height: 18px;
  9425. background-size: 100% 100%;
  9426. display: block;
  9427. margin-right: 20px;
  9428. }
  9429. .chapter_upload_ud {
  9430. display: flex;
  9431. flex-direction: row;
  9432. justify-content: center;
  9433. margin: 0 20px 0 0;
  9434. }
  9435. .chapter_upload_ud>.chapter_upload_up {
  9436. margin-bottom: 0;
  9437. margin-right: 5px;
  9438. }
  9439. .chapter_upload_down,
  9440. .chapter_upload_up {
  9441. width: 20px;
  9442. height: 20px;
  9443. background: #F0F4FA;
  9444. cursor: pointer;
  9445. margin: 0 auto;
  9446. border-radius: 5px;
  9447. display: flex;
  9448. justify-content: center;
  9449. align-items: center;
  9450. }
  9451. .chapter_upload_up::after,
  9452. .chapter_upload_down::after {
  9453. content: '';
  9454. background-image: url('../../../assets/icon/new/downBtn.png');
  9455. width: 13px;
  9456. height: 13px;
  9457. background-size: 100% 100%;
  9458. display: block;
  9459. }
  9460. .chapter_upload_up::after {
  9461. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  9462. }
  9463. .chapter_upload_up {
  9464. margin-bottom: 5px;
  9465. }
  9466. .addWordStyle {
  9467. display: flex;
  9468. flex-direction: row;
  9469. justify-content: flex-start;
  9470. overflow-x: auto;
  9471. white-space: nowrap;
  9472. flex-wrap: wrap;
  9473. }
  9474. /* table 样式 */
  9475. .cont>>>table {
  9476. border-top: 1px solid #ccc;
  9477. border-left: 1px solid #ccc;
  9478. }
  9479. .cont>>>table td,
  9480. .cont>>>table th {
  9481. border-bottom: 1px solid #ccc;
  9482. border-right: 1px solid #ccc;
  9483. /* padding: 20px 5px; */
  9484. padding: 5px 10px;
  9485. max-width: 0px;
  9486. height: 30px;
  9487. vertical-align: baseline;
  9488. }
  9489. .cont>>>table th {
  9490. border-bottom: 2px solid #ccc;
  9491. text-align: center;
  9492. }
  9493. /* blockquote 样式 */
  9494. .cont>>>blockquote {
  9495. display: block;
  9496. border-left: 8px solid #d0e5f2;
  9497. padding: 5px 10px;
  9498. margin: 10px 0;
  9499. line-height: 1.4;
  9500. font-size: 100%;
  9501. background-color: #f1f1f1;
  9502. }
  9503. /* code 样式 */
  9504. .cont>>>code {
  9505. display: inline-block;
  9506. *display: inline;
  9507. *zoom: 1;
  9508. background-color: #f1f1f1;
  9509. border-radius: 3px;
  9510. padding: 3px 5px;
  9511. margin: 0 3px;
  9512. }
  9513. .cont>>>pre code {
  9514. display: block;
  9515. }
  9516. /* ul ol 样式 */
  9517. .cont>>>ul,
  9518. ol {
  9519. margin: 10px 0 10px 20px;
  9520. }
  9521. .wordbox {
  9522. display: flex;
  9523. flex-wrap: wrap;
  9524. cursor: pointer;
  9525. width: 100%;
  9526. }
  9527. .checkword {
  9528. width: 22px;
  9529. height: 22px;
  9530. margin: 10px auto 0;
  9531. cursor: pointer;
  9532. }
  9533. .checkword img {
  9534. width: 100%;
  9535. }
  9536. .stepBg {
  9537. display: flex;
  9538. flex-direction: column;
  9539. justify-content: space-between;
  9540. align-items: center;
  9541. background: #fff;
  9542. width: 300px;
  9543. margin: 0 25px 0 0;
  9544. }
  9545. .stepTop {
  9546. min-width: 300px;
  9547. width: 300px;
  9548. /* border-radius: 10px; */
  9549. display: flex;
  9550. flex-direction: column;
  9551. justify-content: flex-start;
  9552. align-items: center;
  9553. flex-wrap: nowrap;
  9554. background: #fff;
  9555. /* top: 18%; */
  9556. }
  9557. .stepTop>div {
  9558. height: 80px;
  9559. width: 85%;
  9560. cursor: pointer;
  9561. margin: 10px 0;
  9562. border-radius: 10px;
  9563. }
  9564. .first,
  9565. .second,
  9566. .third,
  9567. .four {
  9568. background: #4a83d0;
  9569. height: 90px;
  9570. color: #fff;
  9571. display: flex;
  9572. flex-direction: row;
  9573. align-items: center;
  9574. justify-content: center;
  9575. }
  9576. .first>div:nth-child(1),
  9577. .second>div:nth-child(1),
  9578. .third>div:nth-child(1),
  9579. .four>div:nth-child(1) {
  9580. margin: 5px 10px 0 0;
  9581. width: 2rem;
  9582. }
  9583. .firstNo,
  9584. .secondNo,
  9585. .thirdNo,
  9586. .fourNo {
  9587. background: #e7e7e7;
  9588. color: #adadad;
  9589. display: flex;
  9590. flex-direction: row;
  9591. align-items: center;
  9592. justify-content: center;
  9593. }
  9594. .firstNo>div:nth-child(1),
  9595. .secondNo>div:nth-child(1),
  9596. .thirdNo>div:nth-child(1),
  9597. .fourNo>div:nth-child(1) {
  9598. margin: 5px 10px 0 0;
  9599. width: 2rem;
  9600. }
  9601. .uploadWidth>>>.el-upload {
  9602. width: 60px;
  9603. height: 60px;
  9604. position: relative;
  9605. }
  9606. .addPeople {
  9607. background: #fa6060;
  9608. width: 150px;
  9609. height: 40px;
  9610. color: #fff;
  9611. border-radius: 5px;
  9612. text-align: center;
  9613. line-height: 40px;
  9614. font-size: 14px;
  9615. cursor: pointer;
  9616. }
  9617. .kcImg {
  9618. width: 60px;
  9619. margin-left: 10px;
  9620. }
  9621. .zyImg {
  9622. width: 55px;
  9623. margin: 0 10px;
  9624. }
  9625. .deleteZy {
  9626. width: 20px;
  9627. position: absolute;
  9628. top: 5px;
  9629. right: 5px;
  9630. cursor: pointer;
  9631. }
  9632. .kcImg>img,
  9633. .zyImg>img,
  9634. .deleteZy>img {
  9635. width: 100%;
  9636. height: 100%;
  9637. }
  9638. .zyBox {
  9639. display: flex;
  9640. flex-direction: row;
  9641. align-items: center;
  9642. background: #67d37d;
  9643. color: #fff;
  9644. width: 210px;
  9645. margin: 20px 20px 0 0;
  9646. border-radius: 10px;
  9647. height: 70px;
  9648. position: relative;
  9649. }
  9650. .upCss {
  9651. display: flex;
  9652. flex-direction: row;
  9653. justify-content: flex-start;
  9654. }
  9655. .upCss>>>.el-icon-plus {
  9656. position: none !important;
  9657. width: 200px;
  9658. height: 100px;
  9659. display: flex;
  9660. flex-wrap: nowrap;
  9661. flex-direction: column;
  9662. align-items: center;
  9663. justify-content: center;
  9664. border: 1px dashed #ccc;
  9665. min-width: 78px;
  9666. min-height: 100px;
  9667. z-index: 999;
  9668. }
  9669. .upCss>>>.el-upload-list__item-name {
  9670. width: 100px;
  9671. white-space: nowrap;
  9672. overflow: hidden;
  9673. text-overflow: ellipsis;
  9674. }
  9675. .addStageImg {
  9676. min-width: 25px;
  9677. min-height: 25px;
  9678. width: 25px;
  9679. height: 25px;
  9680. cursor: pointer;
  9681. }
  9682. .addHW {
  9683. width: 28px;
  9684. height: 28px;
  9685. cursor: pointer;
  9686. }
  9687. .addStageImg>img,
  9688. .addHW>img {
  9689. width: 100%;
  9690. height: 100%;
  9691. }
  9692. .addNewPP>>>.el-dialog__body {
  9693. padding: 5px 20px;
  9694. }
  9695. .isHeight {
  9696. height: 680px;
  9697. }
  9698. .toolChoose {
  9699. display: flex;
  9700. /* width: 100%; */
  9701. flex-direction: row;
  9702. flex-wrap: wrap;
  9703. }
  9704. .tool {
  9705. display: flex;
  9706. flex-direction: column;
  9707. flex-wrap: nowrap;
  9708. width: fit-content;
  9709. margin: 10px 0 10px 0;
  9710. align-items: center;
  9711. }
  9712. .tool+.tool {
  9713. margin-right: 45px;
  9714. }
  9715. .whiteBIcon {
  9716. width: 80px;
  9717. cursor: pointer;
  9718. display: flex;
  9719. flex-direction: column;
  9720. flex-wrap: nowrap;
  9721. align-items: center;
  9722. font-size: 14px;
  9723. }
  9724. .whiteBIcon>img,
  9725. .toolIcon>img,
  9726. .arrow>img {
  9727. width: 100%;
  9728. height: 100%;
  9729. }
  9730. .check img {
  9731. width: 20px;
  9732. height: 20px;
  9733. }
  9734. .whiteBIcon>img {
  9735. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  9736. border-radius: 15px;
  9737. }
  9738. .check {
  9739. /* width: 20px;
  9740. height: 20px; */
  9741. cursor: pointer;
  9742. margin: 10px 0;
  9743. }
  9744. .checkDiv {
  9745. display: flex;
  9746. align-items: center;
  9747. }
  9748. .checkDiv span {
  9749. margin-left: 5px;
  9750. color: #858585;
  9751. }
  9752. .customWidth>>>.el-dialog {
  9753. min-width: 500px !important;
  9754. }
  9755. .a_addBox {
  9756. margin: 10px 0;
  9757. background: #fff;
  9758. padding: 15px;
  9759. max-height: 600px;
  9760. overflow: auto;
  9761. }
  9762. .a_add_box {
  9763. border-bottom: 2px solid #eee;
  9764. padding-bottom: 25px;
  9765. }
  9766. .a_add_head {
  9767. display: flex;
  9768. align-items: center;
  9769. justify-content: space-between;
  9770. margin: 10px 0 0 0;
  9771. font-size: 18px;
  9772. }
  9773. .a_add_checkType {
  9774. margin-top: 10px;
  9775. display: flex;
  9776. font-size: 16px;
  9777. align-items: center;
  9778. }
  9779. .a_add_checkType span {
  9780. box-sizing: border-box;
  9781. padding: 0 0 5px 0;
  9782. cursor: pointer;
  9783. }
  9784. .a_add_checkType span+span {
  9785. margin-left: 10px;
  9786. }
  9787. .a_add_checkType .active {
  9788. border-bottom: 2px solid #409eff;
  9789. color: #409eff;
  9790. }
  9791. .a_add_head .a_add_head_input {
  9792. width: 300px;
  9793. }
  9794. .a_add_head .a_add_head_div {
  9795. display: flex;
  9796. align-items: center;
  9797. justify-content: space-between;
  9798. }
  9799. .a_add_body {
  9800. display: flex;
  9801. /* align-items: center; */
  9802. align-items: flex-end;
  9803. }
  9804. .a_add_input {
  9805. display: flex;
  9806. align-items: center;
  9807. flex-wrap: wrap;
  9808. }
  9809. .a_add_input_choice {
  9810. flex-direction: column;
  9811. margin-right: 10px;
  9812. }
  9813. .a_add_input_choice>>>.el-radio {
  9814. display: flex;
  9815. align-items: center;
  9816. flex-direction: row-reverse;
  9817. margin: 30px 0 0 0;
  9818. }
  9819. .a_add_input_choice>>>.el-checkbox {
  9820. display: flex;
  9821. align-items: center;
  9822. flex-direction: row-reverse;
  9823. margin: 30px 0 0 0;
  9824. }
  9825. .width100 {
  9826. width: 100%;
  9827. }
  9828. .a_add_input .a_add_persent {
  9829. width: 100%;
  9830. }
  9831. .a_add_persent_div {
  9832. width: 100%;
  9833. display: flex;
  9834. align-items: center;
  9835. }
  9836. .a_add_persent_div span {
  9837. margin: 5px 0;
  9838. }
  9839. .a_add_persent_div span:nth-child(1) {
  9840. width: 30%;
  9841. }
  9842. .a_add_persent_div span:nth-child(2) {
  9843. width: 7%;
  9844. }
  9845. .a_add_persent_div span:nth-child(3) {
  9846. width: 40%;
  9847. }
  9848. .a_add_body_div {
  9849. display: flex;
  9850. align-items: center;
  9851. justify-content: center;
  9852. /* flex-direction: column; */
  9853. }
  9854. .all_choose {
  9855. display: flex;
  9856. flex-direction: row;
  9857. align-items: flex-start;
  9858. width: 100%;
  9859. }
  9860. .all_choose>span {
  9861. min-width: fit-content;
  9862. display: block;
  9863. white-space: nowrap;
  9864. overflow: hidden;
  9865. text-overflow: ellipsis;
  9866. margin-right: 20px;
  9867. font-weight: bold;
  9868. font-size: 14px;
  9869. }
  9870. .all_choose>>>.el-checkbox-group {
  9871. display: flex;
  9872. flex-direction: row;
  9873. width: 100%;
  9874. flex-wrap: wrap;
  9875. align-content: center;
  9876. justify-content: flex-start;
  9877. align-items: center;
  9878. margin-top: 3px;
  9879. }
  9880. .all_choose>.el-checkbox-group>>>.el-checkbox {
  9881. margin-bottom: 10px;
  9882. display: flex;
  9883. flex-direction: row;
  9884. align-items: center;
  9885. }
  9886. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  9887. min-width: 80px;
  9888. overflow: hidden;
  9889. width: 80px;
  9890. text-overflow: ellipsis;
  9891. white-space: nowrap;
  9892. }
  9893. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  9894. width: auto;
  9895. }
  9896. .choose>div:nth-child(3)>span {
  9897. /* letter-spacing: 0 !important; */
  9898. }
  9899. .choose {
  9900. display: flex;
  9901. flex-direction: column;
  9902. flex-wrap: nowrap;
  9903. height: 100%;
  9904. justify-content: space-evenly;
  9905. align-items: flex-start;
  9906. }
  9907. .both {
  9908. display: flex;
  9909. flex-direction: row;
  9910. flex-wrap: wrap;
  9911. width: 100%;
  9912. align-items: center;
  9913. justify-content: flex-start;
  9914. margin: 15px 0;
  9915. }
  9916. .notice>>>.el-dialog {
  9917. width: 500px !important;
  9918. text-align: center;
  9919. }
  9920. .notice>>>.el-button {
  9921. margin-top: 20px;
  9922. }
  9923. .whiteBg {
  9924. background: #fff;
  9925. border-radius: 10px;
  9926. }
  9927. .wb_j_box {
  9928. display: flex;
  9929. width: 100%;
  9930. padding: 20px 20px 0;
  9931. box-sizing: border-box;
  9932. }
  9933. .wb_j_box_content {
  9934. width: calc(100% - 55% - 100px);
  9935. display: flex;
  9936. align-items: center;
  9937. }
  9938. .wb_j_box_p_box {
  9939. max-width: calc(100% - 200px);
  9940. word-break: break-all;
  9941. overflow: hidden;
  9942. margin: 0 0 0 10px;
  9943. font-size: 14px;
  9944. color: #6e6e6e;
  9945. }
  9946. .chooseWho {
  9947. display: flex;
  9948. width: 380px;
  9949. flex-direction: row;
  9950. flex-wrap: nowrap;
  9951. justify-content: space-between;
  9952. padding-bottom: 10px;
  9953. }
  9954. .chooseWho>div {
  9955. cursor: pointer;
  9956. padding-bottom: 10px;
  9957. font-weight: bold;
  9958. }
  9959. .isChooseActive {
  9960. color: #3e88f4;
  9961. border-bottom: 2px solid #2f80f3;
  9962. }
  9963. .toolSort {
  9964. display: flex;
  9965. flex-direction: row;
  9966. flex-wrap: wrap;
  9967. justify-content: flex-start;
  9968. align-items: flex-start;
  9969. }
  9970. .toolSort>div {
  9971. margin-right: 45px;
  9972. }
  9973. .tools {
  9974. width: 100%;
  9975. display: flex;
  9976. flex-direction: column;
  9977. flex-wrap: nowrap;
  9978. align-items: flex-start;
  9979. }
  9980. .leftTools,
  9981. .rightTools {
  9982. width: 50%;
  9983. }
  9984. .leftTools+.leftTools{
  9985. border-top: 1px solid #dbdbdb;
  9986. padding-top: 30px;
  9987. }
  9988. .rightTools {
  9989. display: flex;
  9990. flex-direction: row;
  9991. flex-wrap: nowrap;
  9992. justify-content: space-around;
  9993. }
  9994. .firstToolList {
  9995. display: flex;
  9996. flex-direction: column;
  9997. flex-wrap: nowrap;
  9998. align-items: center;
  9999. }
  10000. .iconList {
  10001. display: flex;
  10002. flex-direction: row;
  10003. flex-wrap: wrap;
  10004. justify-content: flex-start;
  10005. align-items: center;
  10006. margin: 20px 0 5px 0;
  10007. width: 240px;
  10008. min-width: 240px;
  10009. }
  10010. .iconTool {
  10011. display: flex;
  10012. flex-direction: column;
  10013. flex-wrap: nowrap;
  10014. align-items: center;
  10015. justify-content: flex-start;
  10016. margin: 15px 10px;
  10017. }
  10018. .toolIcon {
  10019. width: 50px;
  10020. }
  10021. .taskBorder {
  10022. /*border: 1px solid #e1e1e1; */
  10023. border-radius: 8px;
  10024. margin-top: 20px;
  10025. /* min-height: 1160px; */
  10026. position: relative;
  10027. background: #F0F4FA;
  10028. padding: 20px;
  10029. box-sizing: border-box;
  10030. }
  10031. .smallTaskBorder {
  10032. height: 170px;
  10033. min-height: 170px !important;
  10034. overflow: hidden;
  10035. }
  10036. .taskBorder>div {
  10037. /* padding: 30px 0 10px 30px; */
  10038. }
  10039. .addTaskBorder {
  10040. border: 2px solid #5E9AFC;
  10041. border-radius: 8px;
  10042. margin-top: 25px;
  10043. cursor: pointer;
  10044. height: 50px;
  10045. line-height: 50px;
  10046. }
  10047. .addTaskBorder>div {
  10048. margin: 0 auto;
  10049. display: flex;
  10050. align-items: center;
  10051. justify-content: center;
  10052. }
  10053. .addTaskBorder>div>img {
  10054. width: 20px;
  10055. }
  10056. .addTaskBorder>div>span {
  10057. font-size: 16px;
  10058. margin-left: 10px;
  10059. color: #5E9AFC;
  10060. }
  10061. .funBlock {
  10062. display: flex;
  10063. padding: 15px 0;
  10064. flex-direction: row;
  10065. justify-content: flex-end;
  10066. align-items: center;
  10067. position: absolute;
  10068. right: 15px;
  10069. bottom: 35px;
  10070. }
  10071. .fold {
  10072. display: flex;
  10073. margin: 0 10px;
  10074. flex-direction: row;
  10075. align-items: center;
  10076. cursor: pointer;
  10077. }
  10078. .arrow {
  10079. width: 15px;
  10080. height: 15px;
  10081. margin-left: 10px;
  10082. }
  10083. .addToolFun {
  10084. display: flex;
  10085. width: 150px;
  10086. flex-direction: row;
  10087. align-items: center;
  10088. justify-content: center;
  10089. border: 1px dashed;
  10090. border-radius: 5px;
  10091. height: 50px;
  10092. margin: 20px auto 35px;
  10093. cursor: pointer;
  10094. }
  10095. .addToolFun2 {
  10096. display: flex;
  10097. width: 100%;
  10098. border: 2px dashed #CAD1DC;
  10099. flex-direction: row;
  10100. align-items: center;
  10101. justify-content: center;
  10102. border-radius: 5px;
  10103. height: 50px;
  10104. margin: 35px auto 0;
  10105. cursor: pointer;
  10106. }
  10107. .addToolImg {
  10108. width: 20px;
  10109. height: 20px;
  10110. margin-right: 10px;
  10111. }
  10112. .addToolsDia>>>.el-dialog__body {
  10113. padding: 20px;
  10114. }
  10115. .addToolsDia>>>.el-dialog__body>.toolChoose {
  10116. padding: 0;
  10117. }
  10118. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  10119. padding: 0;
  10120. border-bottom: none;
  10121. margin-bottom: 0;
  10122. }
  10123. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  10124. width: 100%;
  10125. }
  10126. .lineCss>>>.el-form-item__label {
  10127. width: auto !important;
  10128. }
  10129. .lineCss>>>.el-form-item__content {
  10130. margin-left: 50px !important;
  10131. }
  10132. .newSteps {
  10133. display: flex;
  10134. width: 100% !important;
  10135. height: 80px;
  10136. cursor: pointer;
  10137. margin: 10px 0;
  10138. border-radius: 10px;
  10139. flex-direction: row;
  10140. align-content: center;
  10141. justify-content: center;
  10142. align-items: center;
  10143. margin: 0 !important;
  10144. }
  10145. /* 评价样式 */
  10146. .elist_css {
  10147. padding-bottom: 60px !important;
  10148. }
  10149. .elist_title {
  10150. margin-bottom: 10px;
  10151. }
  10152. .elist_input {}
  10153. .elist_input_box {
  10154. display: flex;
  10155. align-items: center;
  10156. flex-wrap: wrap;
  10157. }
  10158. .elist_input_box+.elist_input_box {
  10159. margin-top: 30px;
  10160. }
  10161. .elist_input .elist_input_box input {
  10162. font: inherit;
  10163. color: currentColor;
  10164. /* width: 200px; */
  10165. max-width: 200px;
  10166. padding: 8px 14px;
  10167. display: block;
  10168. min-width: 0;
  10169. outline: none;
  10170. border: 1px solid rgba(0, 0, 0, 0.23);
  10171. border-radius: 4px;
  10172. box-sizing: border-box;
  10173. background: #fff;
  10174. margin: 0 5px 0 0;
  10175. }
  10176. .elist_input .elist_input_box span {
  10177. height: 36px;
  10178. line-height: 36px;
  10179. color: rgb(82, 82, 82);
  10180. min-width: 80px;
  10181. }
  10182. .elist_input .elist_input_box .remove {
  10183. height: 20px;
  10184. width: 20px;
  10185. min-width:20px;
  10186. background-size: 100% 100%;
  10187. background-position: unset;
  10188. margin-left: 5px;
  10189. }
  10190. .elist_input_box>>>.el-rate {
  10191. display: flex;
  10192. height: 36px;
  10193. align-items: center;
  10194. }
  10195. .elist_input_box .elist_inptu_text {
  10196. width: 100%;
  10197. display: flex;
  10198. align-items: center;
  10199. margin-top: 10px;
  10200. }
  10201. .elist_input_box .elist_inptu_text input {
  10202. /* width: 500px; */
  10203. width: 100%;
  10204. max-width: unset;
  10205. }
  10206. .elist_input_box>>>.el-rate__icon {
  10207. font-size: 24px;
  10208. }
  10209. .elist_btn {
  10210. margin-top: 10px;
  10211. }
  10212. .lineTitle {
  10213. /* margin-top: 15px; */
  10214. width: 110px;
  10215. font-size:18px;
  10216. }
  10217. .courseTop {
  10218. display: flex;
  10219. flex-direction: row;
  10220. justify-content: flex-start;
  10221. align-items: center;
  10222. width: calc(100%);
  10223. padding: 10px 0;
  10224. margin: 0 auto;
  10225. }
  10226. .stepsNav {
  10227. display: flex;
  10228. flex-direction: row;
  10229. justify-content: flex-start;
  10230. align-items: center;
  10231. }
  10232. .stepsWord {
  10233. font-size: 18px;
  10234. color: #fff;
  10235. font-weight: bold;
  10236. margin-left: auto;
  10237. background: rgb(15, 126, 255);
  10238. border-radius: 5px;
  10239. padding: 3px 25px;
  10240. box-sizing: border-box;
  10241. }
  10242. .rightBox {
  10243. width: calc(100%);
  10244. background: rgb(255, 255, 255);
  10245. /* border-radius: 10px; */
  10246. overflow: auto;
  10247. height: calc(100% - 120px);
  10248. margin: 0 auto;
  10249. position: relative;
  10250. box-sizing: border-box;
  10251. border-radius: 5px 0px;
  10252. }
  10253. .e_add_top {
  10254. display: flex;
  10255. justify-content: space-between;
  10256. padding: 20px 20px 0 20px;
  10257. border-radius: 3px;
  10258. background: #fff;
  10259. }
  10260. .e_add_title2 {
  10261. display: flex;
  10262. align-items: center;
  10263. }
  10264. .e_add_title2 span {
  10265. width: 40px;
  10266. }
  10267. .e_add_title {
  10268. display: flex;
  10269. align-items: center;
  10270. color: #b8b8b8;
  10271. font-size: 18px;
  10272. position: relative;
  10273. height: 40px;
  10274. }
  10275. .e_add_title span {
  10276. margin-right: 10px;
  10277. }
  10278. .e_add_title .el_input {
  10279. width: 300px;
  10280. }
  10281. .e_add_title>>>.el-input__inner {
  10282. width: 400px;
  10283. }
  10284. .e_add_btn {}
  10285. .e_add_content {
  10286. display: flex;
  10287. width: 100%;
  10288. }
  10289. .e_add_list {
  10290. background: #fff;
  10291. height: 500px;
  10292. width: 210px;
  10293. position: relative;
  10294. margin: 15px 5px 0 0;
  10295. flex-shrink: 0;
  10296. display: flex;
  10297. flex-direction: column;
  10298. }
  10299. .e_add_list_title {
  10300. font-size: 20px;
  10301. width: 100%;
  10302. box-sizing: border-box;
  10303. padding: 15px 40px;
  10304. text-align: center;
  10305. border-bottom: 1px solid #eaeaea;
  10306. position: relative;
  10307. display: flex;
  10308. align-items: center;
  10309. justify-content: center;
  10310. height: 57px;
  10311. background: #f6f6f6;
  10312. }
  10313. .e_add_list_title span {
  10314. overflow: hidden;
  10315. white-space: nowrap;
  10316. text-overflow: ellipsis;
  10317. }
  10318. .e_add_list_title img {
  10319. position: absolute;
  10320. right: 15px;
  10321. width: 25px;
  10322. cursor: pointer;
  10323. top: 50%;
  10324. transform: translateY(-50%);
  10325. }
  10326. .e_add_list_body {
  10327. height: calc(100% - 187px);
  10328. overflow: auto;
  10329. }
  10330. .e_add_list_child {
  10331. width: 100%;
  10332. display: flex;
  10333. align-items: center;
  10334. justify-content: center;
  10335. position: relative;
  10336. box-sizing: border-box;
  10337. padding: 15px 40px;
  10338. text-align: center;
  10339. }
  10340. .e_add_list_child span {
  10341. overflow: hidden;
  10342. white-space: nowrap;
  10343. text-overflow: ellipsis;
  10344. cursor: pointer;
  10345. }
  10346. .e_add_list_child img {
  10347. position: absolute;
  10348. right: 10px;
  10349. width: 21px;
  10350. cursor: pointer;
  10351. top: 50%;
  10352. transform: translateY(-50%);
  10353. }
  10354. .e_add_list_child+.e_add_list_child {
  10355. border-top: 1px solid #eaeaea;
  10356. }
  10357. .e_add_list_child .active {
  10358. color: #409eff;
  10359. }
  10360. .e_add_list_btn {
  10361. position: absolute;
  10362. bottom: 0;
  10363. height: 50px;
  10364. background: rgb(120, 120, 254);
  10365. width: 100%;
  10366. color: #fff;
  10367. font-size: 16px;
  10368. text-align: center;
  10369. line-height: 50px;
  10370. cursor: pointer;
  10371. }
  10372. .e_add_list_detail {
  10373. position: absolute;
  10374. bottom: 0;
  10375. height: 130px;
  10376. background: rgb(120, 120, 254);
  10377. width: 100%;
  10378. color: #fff;
  10379. font-size: 16px;
  10380. display: flex;
  10381. align-items: center;
  10382. justify-content: center;
  10383. }
  10384. .e_add_list_detail textarea {
  10385. height: 90%;
  10386. width: 95%;
  10387. border: none;
  10388. resize: none;
  10389. outline: none;
  10390. padding: 5px;
  10391. box-sizing: border-box;
  10392. }
  10393. .e_add_list_pbox {
  10394. width: 100%;
  10395. }
  10396. .e_add_list_pbox_title {
  10397. height: 50px;
  10398. background: #fff;
  10399. display: flex;
  10400. align-items: center;
  10401. width: 100%;
  10402. box-sizing: border-box;
  10403. padding: 0 20px;
  10404. flex-direction: row;
  10405. flex-wrap: wrap;
  10406. }
  10407. .type_title {
  10408. font-size: 18px;
  10409. font-weight: 700;
  10410. }
  10411. .type_content {
  10412. font-size: 16px;
  10413. margin-left: 30px;
  10414. }
  10415. .type_content span+span {
  10416. margin-left: 20px;
  10417. }
  10418. .type_content span {
  10419. cursor: pointer;
  10420. padding-bottom: 5px;
  10421. box-sizing: border-box;
  10422. }
  10423. .type_content .active {
  10424. color: #409eff;
  10425. border-bottom: 2px solid #409eff;
  10426. }
  10427. .e_add_list_pbox_content {
  10428. height: calc(100% - 50px);
  10429. display: flex;
  10430. align-items: center;
  10431. width: 100%;
  10432. background: #fff;
  10433. }
  10434. .mbCss {
  10435. width: 100%;
  10436. display: flex;
  10437. flex-direction: row;
  10438. flex-wrap: nowrap;
  10439. align-content: center;
  10440. align-items: flex-start;
  10441. justify-content: flex-start;
  10442. }
  10443. .pjCss {
  10444. /* width: 42%; */
  10445. width: calc(100% - 55%);
  10446. display: flex;
  10447. flex-direction: column;
  10448. flex-wrap: nowrap;
  10449. align-items: flex-start;
  10450. margin-top: 1.5%;
  10451. }
  10452. .e_box {
  10453. display: flex;
  10454. flex-wrap: wrap;
  10455. max-height: 500px;
  10456. align-items: flex-start;
  10457. overflow: auto;
  10458. }
  10459. .e_card {
  10460. border: 1px solid #ccc;
  10461. background: #fff;
  10462. margin-right: 20px;
  10463. width: 270px;
  10464. display: flex;
  10465. flex-direction: column;
  10466. align-items: center;
  10467. border-radius: 5px;
  10468. margin-top: 10px;
  10469. text-align: center;
  10470. }
  10471. .e_card_picture {
  10472. margin: 10px 0;
  10473. }
  10474. .e_card_picture>img {
  10475. width: 50px;
  10476. }
  10477. .e_card_name {
  10478. width: 100%;
  10479. padding: 0 10px;
  10480. box-sizing: border-box;
  10481. margin-bottom: 10px;
  10482. overflow: hidden;
  10483. text-overflow: ellipsis;
  10484. white-space: nowrap;
  10485. }
  10486. .e_card_time {
  10487. width: 100%;
  10488. padding: 0 10px;
  10489. box-sizing: border-box;
  10490. font-size: 15px;
  10491. color: #c3c3c3;
  10492. margin-bottom: 10px;
  10493. }
  10494. .e_card_btn {
  10495. height: 40px;
  10496. display: flex;
  10497. align-items: center;
  10498. width: 100%;
  10499. background: rgb(244, 244, 244);
  10500. }
  10501. .e_card_btn:hover {
  10502. background: rgb(221 221 221);
  10503. }
  10504. .e_card_btn span {
  10505. flex: 1 1 auto;
  10506. text-align: center;
  10507. cursor: pointer;
  10508. }
  10509. .addEva {
  10510. border: 1px solid #ccc;
  10511. background: #fff;
  10512. margin-right: 20px;
  10513. width: 270px;
  10514. height: 149px;
  10515. display: flex;
  10516. flex-direction: column;
  10517. align-items: center;
  10518. border-radius: 5px;
  10519. margin-top: 10px;
  10520. text-align: center;
  10521. cursor: pointer;
  10522. justify-content: center;
  10523. }
  10524. .addEva>img {
  10525. width: 50px;
  10526. object-fit: cover;
  10527. }
  10528. .uploadFm {
  10529. border: 1px dashed #ccc;
  10530. width: 202px;
  10531. height: 102px;
  10532. position: relative;
  10533. cursor: pointer;
  10534. display: flex;
  10535. flex-direction: column;
  10536. justify-content: center;
  10537. align-items: center;
  10538. font-size: 14px;
  10539. color: #6e6e6e;
  10540. }
  10541. .uploadFm>img {
  10542. width: 50px;
  10543. }
  10544. .fileCss {
  10545. width: 100%;
  10546. display: flex;
  10547. flex-direction: row;
  10548. flex-wrap: nowrap;
  10549. justify-content: space-around;
  10550. align-items: center;
  10551. padding-top: 15px;
  10552. }
  10553. .sysPicBox {
  10554. display: flex;
  10555. flex-direction: row;
  10556. flex-wrap: wrap;
  10557. align-content: flex-start;
  10558. height: 435px;
  10559. overflow: auto;
  10560. }
  10561. .sysPic {
  10562. width: 200px;
  10563. height: 115px;
  10564. margin: 0 20px 20px 0;
  10565. cursor: pointer;
  10566. }
  10567. .sysPic>img,
  10568. .isSysPic>img,
  10569. .deletePic>img {
  10570. width: 100%;
  10571. height: 100%;
  10572. object-fit: cover;
  10573. }
  10574. .isSysPic {
  10575. width: 200px;
  10576. height: 115px;
  10577. position: relative;
  10578. }
  10579. .deletePic {
  10580. width: 20px;
  10581. height: 20px;
  10582. position: absolute;
  10583. top: 0;
  10584. right: 0;
  10585. cursor: pointer;
  10586. }
  10587. .select_box1 {}
  10588. .select_box1_img {
  10589. background: #fff;
  10590. border-radius: 5px;
  10591. padding: 15px;
  10592. box-sizing: border-box;
  10593. margin-bottom: 20px;
  10594. }
  10595. .select_box1_title {
  10596. padding: 0 0 15px 0;
  10597. border-bottom: 1px solid #eee;
  10598. margin-bottom: 15px;
  10599. }
  10600. .select_box1_title span:nth-child(1) {
  10601. font-size: 16px;
  10602. margin-right: 20px;
  10603. color: #000;
  10604. }
  10605. .select_box1_title span:nth-child(2) {
  10606. font-size: 14px;
  10607. color: rgb(112, 112, 112);
  10608. }
  10609. .select_box1_add_img {}
  10610. .select_box1_select {
  10611. background: #fff;
  10612. border-radius: 5px;
  10613. padding: 15px;
  10614. box-sizing: border-box;
  10615. }
  10616. .select_box2 {}
  10617. .select_box2_title {
  10618. background: #fff;
  10619. border-radius: 5px;
  10620. padding: 5px 10px;
  10621. box-sizing: border-box;
  10622. margin-bottom: 10px;
  10623. }
  10624. .select_box2_box {
  10625. display: flex;
  10626. height: 500px;
  10627. }
  10628. .select_box2_img {
  10629. width: calc(100% - 310px);
  10630. height: 100%;
  10631. overflow: auto;
  10632. background: #fff;
  10633. border-radius: 5px;
  10634. }
  10635. .select_box2_img img {
  10636. width: 100%;
  10637. }
  10638. .select_box2_answer {
  10639. background: #fff;
  10640. margin-left: 10px;
  10641. border-radius: 5px;
  10642. width: 300px;
  10643. overflow: auto;
  10644. height: 100%;
  10645. display: flex;
  10646. flex-direction: column;
  10647. align-items: center;
  10648. padding-top: 10px;
  10649. box-sizing: border-box;
  10650. }
  10651. .select_box2_answer_box {
  10652. margin: 0 0 10px 0;
  10653. width: 85%;
  10654. }
  10655. .rate_textarea {
  10656. font: inherit;
  10657. color: currentColor;
  10658. width: 100%;
  10659. padding: 8px 14px;
  10660. display: block;
  10661. min-width: 0;
  10662. outline: none;
  10663. border: 1px solid rgba(0, 0, 0, 0.23);
  10664. border-radius: 4px;
  10665. box-sizing: border-box;
  10666. background: #fff;
  10667. margin: 0 20px 0 0;
  10668. resize: none;
  10669. }
  10670. .select_answer_title {
  10671. text-align: left;
  10672. width: 85%;
  10673. margin-bottom: 10px;
  10674. font-size: 18px;
  10675. color: #8e8e8e;
  10676. }
  10677. .mask {
  10678. background-color: rgb(0 0 0 / 30%);
  10679. /* position: fixed; */
  10680. position: absolute;
  10681. top: 0;
  10682. left: 0;
  10683. width: 100%;
  10684. height: 100%;
  10685. z-index: 90;
  10686. display: flex;
  10687. align-items: center;
  10688. justify-content: center;
  10689. }
  10690. .progressBox {
  10691. width: 300px;
  10692. height: 150px;
  10693. background: #fff;
  10694. border-radius: 10px;
  10695. box-shadow: 0 0 6px 1px #bfbfbf;
  10696. display: flex;
  10697. align-items: center;
  10698. justify-content: center;
  10699. flex-direction: column;
  10700. position: relative;
  10701. color: #6c6c6c;
  10702. }
  10703. .progressBox>>>.el-progress-bar__outer {
  10704. background-color: #d1dfff !important;
  10705. }
  10706. .progressBox .lbox {
  10707. height: 50px;
  10708. font-size: 19px;
  10709. display: flex;
  10710. align-items: center;
  10711. color: #747474;
  10712. }
  10713. .progressBox .lbox img {
  10714. width: 40px;
  10715. margin-right: 20px;
  10716. }
  10717. .closeCss {
  10718. position: absolute;
  10719. top: 8px;
  10720. right: 8px;
  10721. cursor: pointer;
  10722. width: 20px;
  10723. height: 20px;
  10724. }
  10725. .closeCss>img {
  10726. width: 100%;
  10727. height: 100%;
  10728. }
  10729. .updateTips::after {
  10730. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  10731. font-size: 14px;
  10732. margin-left: 20px;
  10733. font-weight: 400;
  10734. color: #ff3a3a;
  10735. }
  10736. .updateMask {
  10737. width: 100%;
  10738. z-index: 3;
  10739. top: 0;
  10740. position: absolute;
  10741. /* background-color: rgba(0,0,0,.3); */
  10742. }
  10743. .t_j_box {
  10744. display: flex;
  10745. }
  10746. .t_j_box span:nth-child(1) {
  10747. width: 15%;
  10748. overflow: hidden;
  10749. margin-right: 10px;
  10750. text-overflow: ellipsis;
  10751. white-space: nowrap;
  10752. }
  10753. .t_j_box span:nth-child(2) {
  10754. width: 30%;
  10755. overflow: hidden;
  10756. text-overflow: ellipsis;
  10757. margin-right: 10px;
  10758. }
  10759. .t_j_box span:nth-child(3) {
  10760. max-width: calc(55% - 20px);
  10761. overflow: hidden;
  10762. text-overflow: ellipsis;
  10763. }
  10764. .sentenBox {
  10765. background: #fff;
  10766. height: 600px;
  10767. overflow: auto;
  10768. background-image: url("../../../assets/icon/conSentences/csBg.png");
  10769. background-position: 102%;
  10770. background-repeat: no-repeat;
  10771. background-size: 60%;
  10772. }
  10773. .addSen {
  10774. background: #409efe;
  10775. width: 90px;
  10776. color: #fff;
  10777. height: 35px;
  10778. text-align: center;
  10779. line-height: 35px;
  10780. border-radius: 5px;
  10781. float: right;
  10782. margin: 10px 20px 0 0;
  10783. cursor: pointer;
  10784. }
  10785. .sentenTop {
  10786. display: flex;
  10787. flex-direction: row;
  10788. flex-wrap: nowrap;
  10789. align-items: center;
  10790. }
  10791. .sentenTop>div:nth-child(2) {
  10792. width: 300px;
  10793. margin: 0 15px;
  10794. }
  10795. .sentenTop>div:nth-child(3) {
  10796. background: #409efe;
  10797. color: #fff;
  10798. width: 65px;
  10799. height: 35px;
  10800. text-align: center;
  10801. line-height: 35px;
  10802. border-radius: 5px;
  10803. cursor: pointer;
  10804. }
  10805. .cardList {
  10806. padding: 30px 0 20px 0;
  10807. display: flex;
  10808. flex-direction: row;
  10809. flex-wrap: wrap;
  10810. align-items: center;
  10811. box-sizing: border-box;
  10812. border-bottom: 1px solid #f4f4f4;
  10813. width: 98%;
  10814. margin: 0 auto;
  10815. }
  10816. .cardBox {
  10817. display: flex;
  10818. flex-direction: row;
  10819. flex-wrap: wrap;
  10820. align-items: center;
  10821. align-content: center;
  10822. }
  10823. .isCard,
  10824. .isCard1 {
  10825. width: 140px;
  10826. height: 65px;
  10827. text-align: center;
  10828. line-height: 65px;
  10829. font-size: 20px;
  10830. cursor: pointer;
  10831. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  10832. background-size: cover;
  10833. position: relative;
  10834. z-index: 99;
  10835. }
  10836. .isCard1 {
  10837. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  10838. }
  10839. .isCard:hover .deleteWord {
  10840. display: block;
  10841. }
  10842. .isCard>div:nth-child(1),
  10843. .isCard1>div:nth-child(1) {
  10844. white-space: nowrap;
  10845. overflow: hidden;
  10846. text-overflow: ellipsis;
  10847. width: 80%;
  10848. margin: 0 auto;
  10849. }
  10850. .card {
  10851. width: 140px;
  10852. height: 65px;
  10853. }
  10854. .card>img {
  10855. width: 100%;
  10856. height: 100%;
  10857. }
  10858. .rightCardBox {
  10859. margin: 10px 0 0 10px;
  10860. }
  10861. .rightCardBox>div:nth-child(1) {
  10862. margin-bottom: 10px;
  10863. }
  10864. .cardCss {
  10865. display: flex;
  10866. flex-direction: column;
  10867. flex-wrap: nowrap;
  10868. align-items: center;
  10869. border-bottom: 3px solid #b4c3d3;
  10870. padding: 0 0 5px 0;
  10871. margin-right: 10px;
  10872. }
  10873. .cardCss>div:nth-child(2) {
  10874. background: #5b7b9d;
  10875. color: #fff;
  10876. width: 20px;
  10877. height: 20px;
  10878. border-radius: 50%;
  10879. text-align: center;
  10880. line-height: 20px;
  10881. }
  10882. .sentenTopBox {
  10883. display: flex;
  10884. flex-direction: row;
  10885. flex-wrap: nowrap;
  10886. align-items: center;
  10887. justify-content: space-between;
  10888. padding: 55px 0 0 20px;
  10889. box-sizing: border-box;
  10890. width: 85%;
  10891. }
  10892. .stepsBottom {
  10893. width: 85%;
  10894. margin-bottom: 20px;
  10895. box-shadow: 0 0 10px 10px #f7f7f7;
  10896. background: #f7f7f7;
  10897. border-radius: 10px;
  10898. overflow: hidden;
  10899. }
  10900. .course_left {
  10901. width: 300px;
  10902. height: auto;
  10903. position: relative;
  10904. }
  10905. .stepsBottom2 {
  10906. width: 300px;
  10907. margin: 20px 0;
  10908. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  10909. /* background: #f7f7f7; */
  10910. border-radius: 8px;
  10911. overflow: hidden;
  10912. height: fit-content;
  10913. position: relative;
  10914. /* transition: all .5s; */
  10915. }
  10916. .navTop {
  10917. background: #53749b;
  10918. color: #fff;
  10919. height: 40px;
  10920. line-height: 40px;
  10921. padding-left: 15px;
  10922. font-size: 18px;
  10923. }
  10924. .navBottom {
  10925. background: #F0F4FA;
  10926. height: 300px;
  10927. overflow: auto;
  10928. }
  10929. .navTask {
  10930. display: flex;
  10931. flex-direction: row;
  10932. flex-wrap: nowrap;
  10933. align-items: center;
  10934. padding: 10px 10px 10px 0;
  10935. cursor: pointer;
  10936. background: #ffffff;
  10937. width: 95%;
  10938. margin: 10px auto;
  10939. box-sizing: border-box;
  10940. border-radius: 5px;
  10941. }
  10942. .isNavTask {
  10943. background: #3681FC;
  10944. }
  10945. .isNavTask .nt_taskName {
  10946. color: #fff !important;
  10947. }
  10948. .isNavTask .nt_taskTitle {
  10949. color: #AECCFE !important;
  10950. }
  10951. .navTask .nt_taskBox {
  10952. width: calc(100% - 40px);
  10953. padding: 0 10px 0 20px;
  10954. box-sizing: border-box;
  10955. }
  10956. .navTask .nt_taskTitle {
  10957. color: #717C8D;
  10958. line-height: 25px;
  10959. font-size: 14px;
  10960. }
  10961. .navTask .nt_taskName {
  10962. /* color: #fff; */
  10963. /* max-width: 130px; */
  10964. width: 100%;
  10965. white-space: nowrap;
  10966. overflow: hidden;
  10967. text-overflow: ellipsis;
  10968. font-size: 15px;
  10969. color: #0E1E33;
  10970. }
  10971. .groupBox {}
  10972. .groupContent+.groupContent {
  10973. margin-top: 30px;
  10974. }
  10975. .groupTitle {
  10976. font-size: 24px;
  10977. color: rgb(80, 80, 80);
  10978. margin-bottom: 20px;
  10979. }
  10980. .groupName {
  10981. display: flex;
  10982. align-items: center;
  10983. }
  10984. .groupn {
  10985. font-size: 15px;
  10986. margin-right: 10px;
  10987. }
  10988. .groupName+.groupName {
  10989. margin-top: 15px;
  10990. }
  10991. .groupBtn {
  10992. margin-left: 10px;
  10993. }
  10994. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  10995. text-align: left;
  10996. }
  10997. .radioBox>div {
  10998. margin: 10px 0 0 10px;
  10999. }
  11000. .radioBox>>>.el-radio__input,
  11001. .radioBox>>>.el-checkbox__inner {
  11002. margin-left: 10px;
  11003. }
  11004. .radioBox>>>.el-radio__label,
  11005. .radioBox>>>.el-checkbox__label {
  11006. display: flex;
  11007. align-items: center;
  11008. }
  11009. .inImg {
  11010. width: 50px;
  11011. }
  11012. .inImg>img {
  11013. width: 100%;
  11014. height: 100%;
  11015. object-fit: cover;
  11016. }
  11017. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  11018. height: auto;
  11019. }
  11020. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  11021. width: 200px;
  11022. height: 100px;
  11023. object-fit: contain;
  11024. background: unset;
  11025. }
  11026. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  11027. display: none;
  11028. }
  11029. .tcMember+.tcMember::before {
  11030. content: "、";
  11031. }
  11032. .xzUpImg {
  11033. width: 25px;
  11034. height: 25px;
  11035. cursor: pointer;
  11036. }
  11037. .xzUpImg>img {
  11038. width: 100%;
  11039. height: 100%;
  11040. }
  11041. .closeCss {
  11042. position: absolute;
  11043. top: 8px;
  11044. right: 8px;
  11045. cursor: pointer;
  11046. width: 20px;
  11047. height: 20px;
  11048. }
  11049. .closeCss>img {
  11050. width: 100%;
  11051. height: 100%;
  11052. }
  11053. .moveBtn {
  11054. display: flex;
  11055. flex-direction: column;
  11056. align-items: flex-end;
  11057. width: 40px;
  11058. }
  11059. .timuUpImg {
  11060. display: flex;
  11061. flex-direction: row;
  11062. align-items: center;
  11063. }
  11064. .timuUpImg>div:nth-child(1) {
  11065. margin-right: 10px;
  11066. }
  11067. .timuImgBox {
  11068. margin: 10px 0;
  11069. display: flex;
  11070. flex-direction: column;
  11071. flex-wrap: wrap;
  11072. align-items: flex-start;
  11073. }
  11074. .timuImg {
  11075. width: 100px;
  11076. margin: 5px 0;
  11077. cursor: pointer;
  11078. position: relative;
  11079. }
  11080. .timuImg:hover .deleteWord {
  11081. display: block;
  11082. }
  11083. .deleteWord {
  11084. width: 25px;
  11085. height: 25px;
  11086. position: absolute;
  11087. right: -5px;
  11088. top: -5px;
  11089. cursor: pointer;
  11090. display: none;
  11091. }
  11092. .timuImg>img,
  11093. .deleteWord>img {
  11094. width: 100%;
  11095. height: 100%;
  11096. object-fit: cover;
  11097. }
  11098. .e_add_delete {
  11099. cursor: pointer;
  11100. margin-left: 10px;
  11101. }
  11102. .pType_box {
  11103. margin-top: 30px;
  11104. align-items: flex-end;
  11105. }
  11106. .noneBox {
  11107. height: 100%;
  11108. width: 100%;
  11109. display: flex;
  11110. align-items: center;
  11111. justify-content: center;
  11112. margin-top: 150px;
  11113. }
  11114. .noneBox>img {
  11115. width: 300px;
  11116. }
  11117. </style>