addCourse.vue 457 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211
  1. <template>
  2. <div class="pb_content" style="background: #F0F2F5;">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="courseTop">
  6. <div class="stepsNav">
  7. <el-breadcrumb separator-class="el-icon-arrow-right">
  8. <el-breadcrumb-item :to="{
  9. path:
  10. '/course?userid=' +
  11. userid +
  12. '&oid=' +
  13. oid +
  14. '&org=' +
  15. org +
  16. '&role=' +
  17. role,
  18. }">课程管理</el-breadcrumb-item>
  19. <el-breadcrumb-item>
  20. <span style="color: rgb(15, 126, 255)">添加课程</span>
  21. </el-breadcrumb-item>
  22. </el-breadcrumb>
  23. </div>
  24. <div class="r_pub_button_retrun" @click="retrunCourse">返回</div>
  25. </div>
  26. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  27. <div ref="stepBox" class="stepBox">
  28. <div class="stepBg" v-if="false">
  29. <div :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }" @mouseenter="stepDisplay(true)"
  30. @mouseleave="stepDisplay(false)">
  31. <div v-if="steps > 0 && isStepDisplay" class="first" @click="navSteps(1)">
  32. <div>
  33. <img src="../../assets/icon/first.png" alt />
  34. </div>
  35. <div>填写基本信息</div>
  36. </div>
  37. <div v-else-if="isStepDisplay" class="firstNo" @click="navSteps(1)">
  38. <div>
  39. <img src="../../assets/icon/firstNo.png" alt />
  40. </div>
  41. <div>填写基本信息</div>
  42. </div>
  43. <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0 && isStepDisplay"></div>
  44. <div v-if="steps > 1 && cidType === 0 && isStepDisplay" class="second" @click="navSteps(2)">
  45. <div style="margin: 5px 10px 0 0; width: 2rem">
  46. <img src="../../assets/icon/second.png" alt />
  47. </div>
  48. <div>选择课程模版</div>
  49. </div>
  50. <div v-else-if="cidType === 0 && isStepDisplay" class="secondNo" @click="navSteps(2)">
  51. <div>
  52. <img src="../../assets/icon/secondNo.png" alt />
  53. </div>
  54. <div>选择课程模版</div>
  55. </div>
  56. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 2 }"></div>
  57. <div v-if="steps > 2 && isStepDisplay" class="third" @click="navSteps(3)">
  58. <div>
  59. <img src="../../assets/icon/third.png" alt />
  60. </div>
  61. <div>上传课程内容</div>
  62. </div>
  63. <div v-else-if="isStepDisplay" class="thirdNo" @click="navSteps(3)">
  64. <div>
  65. <img src="../../assets/icon/thirdNo.png" alt />
  66. </div>
  67. <div>上传课程内容</div>
  68. </div>
  69. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
  70. <div v-if="steps > 3 && isStepDisplay" class="four">
  71. <div>
  72. <img src="../../assets/icon/four.png" alt />
  73. </div>
  74. <div>上传完成</div>
  75. </div>
  76. <div v-else-if="isStepDisplay" class="fourNo">
  77. <div>
  78. <img src="../../assets/icon/fourNo.png" alt />
  79. </div>
  80. <div>上传完成</div>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange" style="padding:0;"
  85. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 20px)' : 'calc(100% - 100px)' }">
  86. <div class="updateMask" :style="{
  87. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  88. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  89. <div class="whiteBg" style="background:unset;padding: 0;">
  90. <div>
  91. <div class="basic_box" style="padding: 0;">
  92. <div class="big_box">
  93. <div class="left_first">
  94. <div :class="{
  95. updateTips: cid && userid != courseUserid && role != '1',
  96. }">
  97. <div style="width: 100%;">
  98. <div class="course_input_box">
  99. <div class="bb_courseIcon"><img src="../../assets/icon/new/course.png" /></div>
  100. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  101. style="border: 1.5px solid rgb(202, 209, 220);margin: 0px 10px 0px 0px;border-radius: 5px;font-weight: 600;padding: 12px 14px 12px 71px;" />
  102. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  103. style="justify-content: center;width: 200px;"></el-switch>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  108. <span>类型</span>
  109. <!-- 学科+ 主题+ 未来+ -->
  110. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  111. style="display: flex; align-items: center">
  112. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  113. <el-radio :label="item.name">{{
  114. item.name
  115. }}</el-radio>
  116. </div>
  117. </el-radio-group>
  118. </div>
  119. <div class="both">
  120. <div class="choose">
  121. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  122. <span v-if="CourseTypeJson[item.id].length > 0 &&
  123. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  124. ? pTypeCheck.indexOf(item.id) != -1
  125. : true)
  126. ">{{ item.name }}:</span>
  127. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  128. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  129. ? pTypeCheck.indexOf(item.id) != -1
  130. : true)
  131. ">
  132. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  133. item1.name }}</el-checkbox>
  134. </el-checkbox-group>
  135. <!-- <div
  136. v-else
  137. style="font-size: 14px; margin-left: -8px"
  138. >
  139. 暂无
  140. </div> -->
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="right_first">
  146. <!-- <div class="ai_box">
  147. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  148. </div> -->
  149. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  150. <div style="width: 100%;">
  151. <div class="uploadFm" @click="choosePicVisible = true" :class="{uploadFm2:cover.length}">
  152. <img src="../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0"/>
  153. <img :src="cover[0].url" alt="" class="cover_p" v-else/>
  154. <div v-if="cover.length == 0">点击添加封面</div>
  155. <div class="cover_mask"><img src="../../assets/icon/new/cover_update.png" /><span style="margin-top:5px;">修改封面</span></div>
  156. </div>
  157. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  158. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  159. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  160. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  161. <i class="el-icon-plus"></i>
  162. </el-upload> -->
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. <div class="whiteBg" style="background:#fff;margin: 10px 0;">
  170. <div class="whiteBg" style="border-radius: 0">
  171. <div class="c_info_title">课程权限设置</div>
  172. <div class="wb_j_box">
  173. <div class="wb_j_box_content">
  174. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  175. (dialogVisibleClass = true),
  176. (classSearch = ''),
  177. (gradeId = ''),
  178. getClass()
  179. ">添加班级</button>
  180. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  181. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  182. getClassC(tc) }}</span>
  183. </div> -->
  184. <div class="wb_j_box_btn" @click="
  185. (dialogVisibleClass = true),
  186. (classSearch = ''),
  187. (gradeId = ''),
  188. getClass()
  189. ">
  190. <div class="wb_j_box_title">授课班级</div>
  191. <div class="wb_j_box_btn_c">
  192. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  193. v-if="checkboxList2.length" popper-class="text_tooltip2">
  194. <div class="wb_j_box_span">{{ getListClassC(checkboxList2) }}</div>
  195. </el-tooltip>
  196. <div v-else class="wb_j_box_span">请选择授课班级</div>
  197. <div class="wb_j_box_arrow"></div>
  198. </div>
  199. </div>
  200. </div>
  201. <div class="wb_j_box_content">
  202. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  203. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  204. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  205. checkBoolean
  206. ? checkboxList3
  207. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  208. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  209. </div> -->
  210. <div class="wb_j_box_btn" @click="openMember">
  211. <div class="wb_j_box_title">协同人员</div>
  212. <div class="wb_j_box_btn_c">
  213. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  214. v-if="checkboxList3.length" popper-class="text_tooltip2">
  215. <div class="wb_j_box_span">{{ getListMan2(checkboxList3) }}</div>
  216. </el-tooltip>
  217. <div v-else class="wb_j_box_span">请选择协同人员</div>
  218. <div class="wb_j_box_arrow"></div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  225. <div class="c_info_title">课程简要描述</div>
  226. <div style="width: 95%; padding: 0 0px 0 20px">
  227. <div style="width: 55%">
  228. <textarea rows="6" class="binfo_input binfo_textarea" cols v-model="courseText" placeholder="请输入课程简要描述"></textarea>
  229. </div>
  230. </div>
  231. </div>
  232. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px">
  233. <div class="c_info_title">目标管理</div>
  234. <div style="margin: 0 auto;padding:0 20px">
  235. <div style="
  236. width: 95%;
  237. min-height: 200px;
  238. border: 1px solid #CAD1DC;
  239. border-radius: 4px;
  240. position: relative;
  241. ">
  242. <div class="e_add_top">
  243. <div class="e_add_title">
  244. <button class="c_pub_button_delete pub_btn_delete_img" @click="deleteEva()"
  245. v-if="evalua">清除</button>
  246. <button class="c_pub_button_confirm pub_btn_add_img2" @click="dialogVisiblemb = true">添加</button>
  247. <!-- <span>当前使用目标管理</span>
  248. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  249. <img
  250. src="../../assets/line.png"
  251. class="cru_line"
  252. style="
  253. width: 125px;
  254. height: 20px;
  255. bottom: -10px;
  256. left: 155px;
  257. "
  258. /> -->
  259. </div>
  260. <div style="
  261. display: flex;
  262. flex-direction: row;
  263. align-items: center;
  264. ">
  265. <!-- <el-button
  266. type="primary"
  267. size="small"
  268. @click="dialogVisiblemb = true"
  269. >添加目标管理</el-button
  270. >
  271. <el-button
  272. type="primary"
  273. size="small"
  274. @click="deleteEva()"
  275. >清除内容</el-button
  276. > -->
  277. <!-- <div class="e_add_delete" @click="deleteEva()">
  278. <img src="../../assets/icon/delete.png" alt="" />
  279. </div> -->
  280. </div>
  281. </div>
  282. <div v-if="evalua == ''">
  283. <div class="noneBox">
  284. <img src="../../assets/icon/new/eva_none.png" />
  285. <span>请添加目标管理</span>
  286. </div>
  287. </div>
  288. <div class="e_add_content" v-else>
  289. <div class="e_add_list_pbox">
  290. <div class="e_add_list_pbox_title">
  291. <span class="type_title">切换模式</span>
  292. <div class="type_content">
  293. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  294. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  295. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  296. </div>
  297. </div>
  298. <div class="e_add_list_pbox_content">
  299. <Mind :showBar="false" :mindData="data" v-show="typeMode == 1"></Mind>
  300. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  301. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  302. v-if="typeMode == 3">
  303. </SeeBoard>
  304. </div>
  305. </div>
  306. </div>
  307. </div>
  308. </div>
  309. </div>
  310. </div>
  311. <div class="info_btnBox3">
  312. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  313. goTo(
  314. '/course?userid=' +
  315. userid +
  316. '&oid=' +
  317. oid +
  318. '&org=' +
  319. org +
  320. '&role=' +
  321. role
  322. )
  323. ">
  324. 返回课程
  325. </button>
  326. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  327. {{ steps == 4 ? "返回课程" : "上一步" }}
  328. </button>
  329. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  330. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  331. {{ steps == 3 ? "确认上传" : "下一步" }}
  332. </button>
  333. </div>
  334. </div>
  335. <div class="rightBox" v-if="this.steps == 2"
  336. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  337. <div class="basic_box"
  338. style="padding: 20px 30px 0px !important; box-sizing: border-box;height: calc(100% - 80px);overflow: auto;background:#fff">
  339. <!-- <div
  340. style="
  341. color: #b8b8b8;
  342. background: #fff;
  343. width: 26%;
  344. height: 40px;
  345. border-radius: 15px;
  346. padding-left: 20px;
  347. line-height: 40px;
  348. font-size: 17px;
  349. box-shadow: 0px 1px 2px 2px #e0e0e0;
  350. "
  351. >-->
  352. <div class="right_title" style="border: none; margin: 0; padding: 0">
  353. 请选择合适的课程模板
  354. </div>
  355. <div class="wordbox">
  356. <div class="wordTeacher" @click="checkTemplate2()">
  357. <div class="wordPic">
  358. <img src="../../assets/icon/new/template_none.png" alt />
  359. </div>
  360. <div style="
  361. margin-top: 10px;
  362. line-height: 19px;
  363. overflow: hidden;
  364. text-overflow: ellipsis;
  365. white-space: nowrap;
  366. padding: 0 20px;
  367. ">
  368. 空白模板
  369. </div>
  370. </div>
  371. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  372. <div class="wordPic">
  373. <img src="../../assets/icon/new/template.png" alt />
  374. </div>
  375. <div style="
  376. margin-top: 10px;
  377. line-height: 19px;
  378. overflow: hidden;
  379. text-overflow: ellipsis;
  380. white-space: nowrap;
  381. padding: 0 20px;
  382. ">
  383. {{ aa.title }}
  384. </div>
  385. </div>
  386. <div class="wordTeacher" @click="checkTemplate3()" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  387. <div class="wordPic">
  388. <img src="../../assets/icon/new/template.png" alt />
  389. </div>
  390. <div style="
  391. margin-top: 10px;
  392. line-height: 19px;
  393. overflow: hidden;
  394. text-overflow: ellipsis;
  395. white-space: nowrap;
  396. padding: 0 20px;
  397. ">
  398. 简易模板
  399. </div>
  400. </div>
  401. <div class="wordTeacher" @click="pasteStage()" v-if="isPasteStage">
  402. <div class="wordPic">
  403. <img src="../../assets/icon/new/template.png" alt />
  404. </div>
  405. <div style="
  406. margin-top: 10px;
  407. line-height: 19px;
  408. overflow: hidden;
  409. text-overflow: ellipsis;
  410. white-space: nowrap;
  411. padding: 0 20px;
  412. ">
  413. 智能粘贴模式
  414. </div>
  415. </div>
  416. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  417. <div class="wordPic">
  418. <img src="../../assets/icon/wordMub.png" alt />
  419. </div>
  420. <div style="
  421. margin-top: 10px;
  422. line-height: 19px;
  423. overflow: hidden;
  424. text-overflow: ellipsis;
  425. white-space: nowrap;
  426. padding: 0 20px;
  427. ">
  428. 未来小学课程设计
  429. </div>
  430. </div> -->
  431. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  432. <div class="wordPic">
  433. <img src="../../assets/icon/wordMub.png" alt />
  434. </div>
  435. <div style="
  436. margin-top: 10px;
  437. line-height: 19px;
  438. overflow: hidden;
  439. text-overflow: ellipsis;
  440. white-space: nowrap;
  441. padding: 0 20px;
  442. ">
  443. 我的课程
  444. </div>
  445. </div> -->
  446. </div>
  447. </div>
  448. <div class="info_btnBox3" style="position: absolute;bottom: 0;">
  449. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  450. goTo(
  451. '/course?userid=' +
  452. userid +
  453. '&oid=' +
  454. oid +
  455. '&org=' +
  456. org +
  457. '&role=' +
  458. role
  459. )
  460. ">
  461. 返回课程
  462. </button>
  463. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  464. {{ steps == 4 ? "返回课程" : "上一步" }}
  465. </button>
  466. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  467. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  468. {{ steps == 3 ? "确认上传" : "下一步" }}
  469. </button>
  470. </div>
  471. </div>
  472. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR"
  473. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  474. <div class="rb_c_box">
  475. <div class="rb_c_box_left" v-if="steps == 3 && unitJson[unitIndex].easy != 1">
  476. <div class="stepsBottom">
  477. <!-- <div class="navTop">辅助导航</div> -->
  478. <div class="navBottom">
  479. <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  480. <div class="nt_taskBox" style="width: 100%;">
  481. <div class="nt_taskTitle"
  482. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  483. unitIndex + 1 }}</div>
  484. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  485. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  486. <span>{{ unitJson[unitIndex].dyName }}</span>
  487. </el-tooltip>
  488. </div>
  489. </div>
  490. </div>
  491. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  492. .taskJson" :key="tIndex" :class="{
  493. dragOverTop: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex > tIndex,
  494. dragOverBottom: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex < tIndex,
  495. }">
  496. <div @dragstart="dragTaskStart(t, tIndex)" @dragover.prevent="dragTaskOver(tIndex)"
  497. @dragend="dragTaskEnd()" draggable @click="goToTask(tIndex)" class="navTask" :class="{
  498. isNavTask:
  499. isClickColor > 0 && isClickColor == tIndex + 1,
  500. isNavOpen: t.toolOpen
  501. }">
  502. <div
  503. style="left: 8px;"
  504. class="chapter_upload_drag"
  505. ></div>
  506. <div class="nt_taskBox">
  507. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  508. <div class="nt_taskName">
  509. <el-tooltip effect="light" :content="t.task" placement="top">
  510. <span>{{ t.task }}</span>
  511. </el-tooltip>
  512. </div>
  513. </div>
  514. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  515. 1
  516. ">
  517. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  518. @click.stop="taskMove(1, tIndex)"></div>
  519. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  520. @click.stop="taskMove(2, tIndex)"></div>
  521. </div> -->
  522. </div>
  523. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  524. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  525. @click="jumpGj(tIndex, toolIndex2)">
  526. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  527. <div>工具{{ toolIndex2 + 1 }}:</div>
  528. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  529. </div>
  530. </div>
  531. </div>
  532. </div>
  533. </div>
  534. </div>
  535. </div>
  536. <div class="rb_c_box_right">
  537. <!-- <div class="rb_c_box_btn">
  538. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  539. </div> -->
  540. <div class="basic_box" ref="unitBox">
  541. <div style="
  542. display: flex;
  543. flex-direction: row;
  544. align-items: center;
  545. position: sticky;
  546. top: 0;
  547. z-index: 99;
  548. width: 100%;
  549. padding: 0 20px 0 20px;
  550. box-sizing: border-box;
  551. background: #fff;
  552. border-radius: 8px;
  553. ">
  554. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  555. <div class="cru_selectBox"
  556. :style="{ maxWidth: isPasteTask ? 'calc(100% - 175px)' : 'calc(100% - 40px)' }">
  557. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  558. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  559. <!-- item.dyName ? item.dyName : -->
  560. <span v-if="unitJson[unitJson.length - 1].easy == 4 ||
  561. unitJson[unitJson.length - 1].easy == 6
  562. ">{{
  563. item.dyName ? item.dyName : "第" + (index + 1) + "阶段"
  564. }}</span>
  565. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  566. </div>
  567. <div class="cru_line" :style="{
  568. left: offsetLetfPx + 'px',
  569. }"></div>
  570. </div>
  571. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  572. !(unitJson[unitJson.length - 1].easy == 6)
  573. ">
  574. <img src="../../assets/icon/new/addStage.png" alt />
  575. </div>
  576. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  577. <button class="c_pub_button_add" @click="openStageBox" v-show="false"
  578. style="margin: 0 0 0 auto;">阶段顺序</button>
  579. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3 && isPasteTask"
  580. style="margin: 0 0 0 auto;">智能粘贴</button>
  581. </div>
  582. <div style="margin: 0 0 10px 0; padding: 0;" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  583. :key="index">
  584. <div class="chapter_box">
  585. <div class="chapter_contentbox">
  586. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  587. <div class="cc_input">
  588. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  589. v-model="unitJson[unitIndex].dyName" />
  590. </div>
  591. <div class="remove" v-if="unitJson.length > 1 &&
  592. !(unitJson[unitJson.length - 1].easy == 4) &&
  593. !(unitJson[unitJson.length - 1].easy == 6)
  594. " @click="deleteUnit(unitIndex)"></div>
  595. </div>
  596. </div>
  597. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  598. margin: 50px 0px 10px;
  599. font-size: 1.5em;
  600. font-weight: 700;
  601. color: #0f7eff;
  602. ">
  603. 添加任务
  604. </div> -->
  605. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  606. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  607. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  608. <div style="background: #fff;border-radius: 5px;">
  609. <!-- padding: 20px; -->
  610. <div v-if="unitJson[unitIndex].easy != 1">
  611. <div :style="{
  612. marginBottom:
  613. unitJson[unitIndex].easy == 3 ||
  614. (unitJson[unitIndex].easy == 5 &&
  615. itemTask.taskType == 1)
  616. ? '75px'
  617. : '0',
  618. }">
  619. <div style="
  620. display: flex;
  621. margin: 0px 0 20px;
  622. flex-direction: row;
  623. justify-content: flex-start;
  624. align-items: center;
  625. ">
  626. <div class="lineTitle">任务{{ itemTaskIndex + 1 }}概述</div>
  627. </div>
  628. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  629. flex-direction: row;
  630. justify-content: flex-start;
  631. align-items: center;
  632. margin:0;
  633. ">
  634. <!-- <div class="cc_title">
  635. 任务{{ itemTaskIndex + 1 }}
  636. </div> -->
  637. <div class="cc_input">
  638. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  639. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  640. itemTaskIndex
  641. ].task
  642. " />
  643. </div>
  644. <div class="remove" v-if="item.taskJson.length > 1 &&
  645. (!unitJson[unitIndex].easy ||
  646. unitJson[unitIndex].easy == 6)
  647. " @click="deleteTask(itemTaskIndex)"></div>
  648. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2"
  649. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  650. src="../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  651. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  652. @click="fold2(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开任务描述
  653. </div>
  654. </div>
  655. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  656. display: flex;
  657. margin: 20px 0;
  658. flex-direction: row;
  659. justify-content: flex-start;
  660. align-items: center;
  661. ">
  662. <div class="lineTitle">任务描述</div>
  663. </div> -->
  664. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2"
  665. style="margin-top: 20px;">
  666. <editor-bar class="addEditor" style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  667. itemTaskIndex
  668. ].taskDetail
  669. " @change="change"></editor-bar>
  670. <!-- <textarea
  671. rows="6"
  672. class="binfo_input"
  673. placeholder="请输入任务描述"
  674. cols
  675. style="width: 70.5% !important; height: 120px"
  676. v-model="
  677. unitJson[unitIndex].chapterInfo[0].taskJson[
  678. itemTaskIndex
  679. ].taskDetail
  680. "
  681. ></textarea>-->
  682. </div>
  683. </div>
  684. </div>
  685. <div style="position:relative" v-if="!unitJson[unitIndex].easy ||
  686. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  687. ">
  688. <div style="
  689. display: flex;
  690. flex-direction: row;
  691. justify-content: space-between;
  692. align-items: center;
  693. " :style="{ margin: !itemTask.isFoldchapter ? '20px 0 10px' : '20px 0 0' }">
  694. <div style="margin-bottom:10px" class="lineTitle">学习内容</div>
  695. <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  696. @click="foldC(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  697. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  698. src="../../assets/icon/new/icon-slide.png" />展开学习内容</div>
  699. <!-- <div class="line"></div> -->
  700. </div>
  701. <div v-if="!itemTask.isFoldchapter">
  702. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  703. itemTask.chapterData.length == 0
  704. "><img src="../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  705. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  706. <div @dragstart="dragStart(item1, index1, itemTaskIndex)" @dragover.prevent="dragOver(index1, itemTaskIndex)"
  707. @dragend="dragEnd()" draggable class="chapter_upload"
  708. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  709. getChapterData(
  710. $event,
  711. unitIndex,
  712. index,
  713. index1,
  714. item1.type
  715. )
  716. " :class="{
  717. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex > index1,
  718. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex < index1,
  719. }">
  720. <div class="chapter_upload_drag"></div>
  721. <div class="chapter_upload_o" style="
  722. position: relative;
  723. display: flex;
  724. align-items: center;
  725. ">
  726. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  727. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  728. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  729. </div>
  730. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  731. </div>
  732. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  733. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  734. </div>
  735. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  736. </div>
  737. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  738. </div>
  739. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  740. </div>
  741. </div>
  742. <div class="chapter_upload_n">
  743. <input readonly="true" v-if="item1.type == 2 ||
  744. item1.type == 3 ||
  745. item1.type == 12 ||
  746. item1.type == 13 ||
  747. item1.type == 7
  748. " :placeholder="item1.name" @click="
  749. updataVideoT(
  750. $event,
  751. unitIndex,
  752. itemTaskIndex,
  753. index1
  754. )
  755. " style="
  756. border: none;
  757. outline: none;
  758. width: 80%;
  759. minwidth: 215px;
  760. z-index: 99;
  761. font-size: 14px;
  762. white-space: nowrap;
  763. overflow: hidden;
  764. text-overflow: ellipsis;
  765. " />
  766. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  767. border: none;
  768. outline: none;
  769. width: 80%;
  770. white-space: nowrap;
  771. overflow: hidden;
  772. text-overflow: ellipsis;
  773. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  774. <input :placeholder="item1.title ? item1.title : '链接'
  775. " v-if="item1.type == 8" style="
  776. border: none;
  777. outline: none;
  778. width: 80%;
  779. white-space: nowrap;
  780. overflow: hidden;
  781. text-overflow: ellipsis;
  782. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  783. <input :placeholder="item1.title ? item1.title : '链接'
  784. " v-if="item1.type == 14" style="
  785. border: none;
  786. outline: none;
  787. width: 80%;
  788. white-space: nowrap;
  789. overflow: hidden;
  790. text-overflow: ellipsis;
  791. " readonly="true" @click="openUpdateSource(itemTaskIndex, index1)" />
  792. </div>
  793. <div class="chapter_upload_ic">
  794. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  795. </div>
  796. <div class="chapter_upload_ud" style="z-index: 99">
  797. <div class="chapter_upload_up" @click="
  798. upCd(
  799. $event,
  800. unitIndex,
  801. index,
  802. itemTaskIndex,
  803. index1
  804. )
  805. "></div>
  806. <div class="chapter_upload_down" @click="
  807. downCd(
  808. $event,
  809. unitIndex,
  810. index,
  811. itemTaskIndex,
  812. index1
  813. )
  814. "></div>
  815. </div>
  816. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  817. item1.type == 3 ||
  818. item1.type == 12 ||
  819. item1.type == 13 ||
  820. item1.type == 7
  821. " @click.stop="
  822. updataVideoT(
  823. $event,
  824. unitIndex,
  825. itemTaskIndex,
  826. index1
  827. )
  828. ">
  829. <div></div>
  830. </div>
  831. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  832. @click="selectAttText(itemTaskIndex, index1)">
  833. <div></div>
  834. </div>
  835. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  836. @click="selectLine(itemTaskIndex, index1)">
  837. <div></div>
  838. </div>
  839. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  840. @click="openUpdateSource(itemTaskIndex, index1)">
  841. <div></div>
  842. </div>
  843. <div class="chapter_upload_ic_r" @click.stop="
  844. deleteChapterData(
  845. $event,
  846. unitIndex,
  847. index,
  848. index1,
  849. itemTaskIndex
  850. )
  851. ">
  852. <div></div>
  853. </div>
  854. </div>
  855. </div>
  856. </div>
  857. </div>
  858. </div>
  859. <div class="add_info_box" style="margin: 10px 0 0" v-if="!itemTask.isFoldchapter">
  860. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  861. 文件
  862. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  863. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  864. " />
  865. </button>
  866. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(itemTaskIndex)">
  867. 图文
  868. </button>
  869. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(itemTaskIndex)">
  870. 链接
  871. </button>
  872. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(itemTaskIndex)">
  873. 代码
  874. </button>
  875. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(itemTaskIndex)">
  876. 资源
  877. </button>
  878. </div>
  879. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  880. itemTaskIndex
  881. ].proVisible
  882. " class="mask">
  883. <div class="progressBox">
  884. <!-- <div id="closePro" class="closeCss">
  885. <img src="../../../assets/icon/close.png" alt />
  886. </div> -->
  887. <div class="lbox">
  888. <img src="../../assets/loading.gif" />上传中,请稍后
  889. </div>
  890. <div style="margin-bottom: 10px">
  891. <span>{{
  892. unitJson[unitIndex].chapterInfo[0].taskJson[
  893. itemTaskIndex
  894. ].isFinishSize
  895. }}M</span>
  896. /
  897. <span>{{
  898. unitJson[unitIndex].chapterInfo[0].taskJson[
  899. itemTaskIndex
  900. ].isAllSize
  901. }}M</span>
  902. </div>
  903. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  904. itemTaskIndex
  905. ].progress
  906. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  907. itemTaskIndex
  908. ].progress
  909. : 0
  910. " style="width: 80%"></el-progress>
  911. </div>
  912. </div>
  913. </div>
  914. <div v-if="unitJson[unitIndex].easy == 1 ||
  915. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  916. ">
  917. <div>
  918. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  919. itemTask.chapterData.length == 0
  920. "><img src="../../assets/icon/new/c_none.png" alt /></div>
  921. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  922. <div @dragstart="dragStart(item1, index1, index)" @dragover.prevent="dragOver(index1, itemTaskIndex)"
  923. @dragend="dragEnd()" draggable class="chapter_upload"
  924. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  925. getChapterData(
  926. $event,
  927. unitIndex,
  928. index,
  929. index1,
  930. item1.type
  931. )
  932. " :class="{
  933. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex > index1,
  934. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex < index1,
  935. }">
  936. <div class="chapter_upload_drag"></div>
  937. <div class="chapter_upload_t" style="width: 100%"></div>
  938. <div class="chapter_upload_o" style="
  939. position: relative;
  940. display: flex;
  941. align-items: center;
  942. ">
  943. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  944. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  945. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  946. </div>
  947. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  948. </div>
  949. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  950. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  951. </div>
  952. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  953. </div>
  954. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  955. </div>
  956. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  957. </div>
  958. </div>
  959. <div class="chapter_upload_n">
  960. <span style="
  961. font-size: 14px;
  962. color: rgb(109, 109, 109);
  963. height: 14px;
  964. line-height: 14px;
  965. " v-if="item1.type == 2 ||
  966. item1.type == 3 ||
  967. item1.type == 7
  968. ">{{ item1.text }}-</span>
  969. <input readonly="true" v-if="item1.type == 2 ||
  970. item1.type == 3 ||
  971. item1.type == 7
  972. " :placeholder="item1.name" @click="
  973. updataVideoT(
  974. $event,
  975. unitIndex,
  976. itemTaskIndex,
  977. index1
  978. )
  979. " style="
  980. border: none;
  981. outline: none;
  982. width: 80%;
  983. minwidth: 215px;
  984. z-index: 99;
  985. font-size: 14px;
  986. white-space: nowrap;
  987. overflow: hidden;
  988. text-overflow: ellipsis;
  989. " />
  990. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  991. border: none;
  992. outline: none;
  993. width: 80%;
  994. white-space: nowrap;
  995. overflow: hidden;
  996. text-overflow: ellipsis;
  997. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  998. <input :placeholder="item1.title ? item1.title : '链接'
  999. " v-if="item1.type == 8 || item1.type == 14" style="
  1000. border: none;
  1001. outline: none;
  1002. width: 80%;
  1003. white-space: nowrap;
  1004. overflow: hidden;
  1005. text-overflow: ellipsis;
  1006. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  1007. </div>
  1008. <div class="chapter_upload_ic">
  1009. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  1010. </div>
  1011. <div class="chapter_upload_ud" style="z-index: 99">
  1012. <div class="chapter_upload_up" @click="
  1013. upCd(
  1014. $event,
  1015. unitIndex,
  1016. index,
  1017. itemTaskIndex,
  1018. index1
  1019. )
  1020. "></div>
  1021. <div class="chapter_upload_down" @click="
  1022. downCd(
  1023. $event,
  1024. unitIndex,
  1025. index,
  1026. itemTaskIndex,
  1027. index1
  1028. )
  1029. "></div>
  1030. </div>
  1031. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  1032. item1.type == 3 ||
  1033. item1.type == 12 ||
  1034. item1.type == 13 ||
  1035. item1.type == 7
  1036. " @click.stop="
  1037. updataVideoT(
  1038. $event,
  1039. unitIndex,
  1040. itemTaskIndex,
  1041. index1
  1042. )
  1043. ">
  1044. <div></div>
  1045. </div>
  1046. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  1047. @click="selectAttText(itemTaskIndex, index1)">
  1048. <div></div>
  1049. </div>
  1050. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1051. @click="selectLine(itemTaskIndex, index1)">
  1052. <div></div>
  1053. </div>
  1054. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  1055. @click="openUpdateSource(itemTaskIndex, index1)">
  1056. <div></div>
  1057. </div>
  1058. <div class="chapter_upload_ic_r" @click.stop="
  1059. deleteChapterData(
  1060. $event,
  1061. unitIndex,
  1062. index,
  1063. index1,
  1064. itemTaskIndex
  1065. )
  1066. ">
  1067. <div></div>
  1068. </div>
  1069. </div>
  1070. </div>
  1071. </div>
  1072. </div>
  1073. </div>
  1074. <div class="add_info_box" style="margin: 10px 0 0">
  1075. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1076. <span style="color: red">*</span>
  1077. 教学设计
  1078. <input type="file"
  1079. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1080. style="display: none" v-if="inputShow" @change="
  1081. beforeUpload3(
  1082. $event,
  1083. unitIndex,
  1084. 3,
  1085. itemTaskIndex,
  1086. '教学设计'
  1087. )
  1088. " />
  1089. </button>
  1090. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1091. <span style="color: red">*</span>
  1092. 教学课件
  1093. <input type="file"
  1094. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1095. style="display: none" v-if="inputShow" @change="
  1096. beforeUpload3(
  1097. $event,
  1098. unitIndex,
  1099. 3,
  1100. itemTaskIndex,
  1101. '教学课件'
  1102. )
  1103. " />
  1104. </button>
  1105. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1106. 教学视频
  1107. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo"
  1108. style="display: none" v-if="inputShow" @change="
  1109. beforeUpload3(
  1110. $event,
  1111. unitIndex,
  1112. 2,
  1113. itemTaskIndex,
  1114. '教学视频'
  1115. )
  1116. " />
  1117. </button>
  1118. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1119. 教学音频
  1120. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  1121. beforeUpload3(
  1122. $event,
  1123. unitIndex,
  1124. 2,
  1125. itemTaskIndex,
  1126. '教学音频'
  1127. )
  1128. " />
  1129. </button>
  1130. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1131. 学习单
  1132. <input type="file"
  1133. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1134. style="display: none" v-if="inputShow" @change="
  1135. beforeUpload3(
  1136. $event,
  1137. unitIndex,
  1138. 3,
  1139. itemTaskIndex,
  1140. '学习单'
  1141. )
  1142. " />
  1143. </button>
  1144. </div>
  1145. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1146. itemTaskIndex
  1147. ].proVisible
  1148. " class="mask">
  1149. <div class="progressBox">
  1150. <!-- <div id="closePro" class="closeCss">
  1151. <img src="../../../assets/icon/close.png" alt />
  1152. </div> -->
  1153. <div class="lbox">
  1154. <img src="../../assets/loading.gif" />上传中,请稍后
  1155. </div>
  1156. <div style="margin-bottom: 10px">
  1157. <span>{{
  1158. unitJson[unitIndex].chapterInfo[0].taskJson[
  1159. itemTaskIndex
  1160. ].isFinishSize
  1161. }}M</span>
  1162. /
  1163. <span>{{
  1164. unitJson[unitIndex].chapterInfo[0].taskJson[
  1165. itemTaskIndex
  1166. ].isAllSize
  1167. }}M</span>
  1168. </div>
  1169. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1170. itemTaskIndex
  1171. ].progress
  1172. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1173. itemTaskIndex
  1174. ].progress
  1175. : 0
  1176. " style="width: 80%"></el-progress>
  1177. </div>
  1178. </div>
  1179. </div>
  1180. </div>
  1181. <!-- padding: 20px; -->
  1182. <div style="background: #fff;border-radius: 5px;margin-top: 15px;">
  1183. <div v-if="unitJson[unitIndex].easy != 3 &&
  1184. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  1185. " style="
  1186. flex-direction: row;
  1187. justify-content: flex-start;
  1188. align-items: center;
  1189. ">
  1190. <div style="
  1191. display: flex;
  1192. flex-direction: row;
  1193. align-items: center;
  1194. margin: 5px 0 20px;
  1195. ">
  1196. <div class="lineTitle">
  1197. {{
  1198. !unitJson[unitIndex].easy ||
  1199. unitJson[unitIndex].easy == 6 ||
  1200. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1201. ? "练习内容"
  1202. : "评价内容"
  1203. }}
  1204. </div>
  1205. <!-- <div class="line" style="width: 90%"></div> -->
  1206. </div>
  1207. </div>
  1208. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1209. " class="toolChoose">
  1210. <div class="tools">
  1211. <div class="leftTools" style="
  1212. width: 100%;
  1213. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1214. <div style="
  1215. display: flex;
  1216. flex-direction: row;
  1217. align-items: baseline;
  1218. flex-wrap: nowrap;
  1219. justify-content: flex-start;
  1220. position: relative;
  1221. ">
  1222. <div style="margin-right: 20px; font-weight: bold"
  1223. :id="'gj' + itemTaskIndex + '' + toolIndex">
  1224. 步骤 {{ toolIndex + 1 }} :
  1225. </div>
  1226. <div class="chooseWho">
  1227. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1228. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = false), $forceUpdate()">
  1229. 互动类
  1230. </div>
  1231. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1232. " @click="(itemTool.toolType = 1), (itemTool.isFold3 = false), $forceUpdate()">
  1233. 思维类
  1234. </div>
  1235. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  1236. " @click="(itemTool.toolType = 6), (itemTool.isFold3 = false), $forceUpdate()">
  1237. 协作类
  1238. </div>
  1239. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1240. " @click="(itemTool.toolType = 2), (itemTool.isFold3 = false), $forceUpdate()">
  1241. 测评类
  1242. </div>
  1243. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  1244. " @click="(itemTool.toolType = 7), (itemTool.isFold3 = false), $forceUpdate()">
  1245. 评价类
  1246. </div>
  1247. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1248. " @click="(itemTool.toolType = 3), (itemTool.isFold3 = false), $forceUpdate()">
  1249. 编程类
  1250. </div>
  1251. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1252. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = false), $forceUpdate()">
  1253. 学科类
  1254. </div>
  1255. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1256. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1257. 其他
  1258. </div> -->
  1259. </div>
  1260. <div class="chapter_upload_ud2" style="z-index: 9;margin:0 0 0 auto" v-if="itemTask.toolChoose.length > 1">
  1261. <div class="chapter_upload_up2" @click.stop="
  1262. upTool(
  1263. $event,
  1264. unitIndex,
  1265. itemTaskIndex,
  1266. toolIndex
  1267. )
  1268. ">上移</div>
  1269. <div class="chapter_upload_down2" @click.stop="
  1270. downTool(
  1271. $event,
  1272. unitIndex,
  1273. itemTaskIndex,
  1274. toolIndex
  1275. )
  1276. ">下移</div>
  1277. </div>
  1278. <div v-if="!itemTool.isFold3" class="show_toolD show"
  1279. @click="fold3(itemTaskIndex, toolIndex)"
  1280. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1281. src="../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  1282. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  1283. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1284. src="../../assets/icon/new/icon-slide.png" />展开工具栏</div>
  1285. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1286. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0;top:-5px;"></div>
  1287. </div>
  1288. <div style="min-height: 163px" v-show="!itemTool.isFold3">
  1289. <div class="toolSort" v-if="itemTool.toolType == 0">
  1290. <!-- <div class="tool">
  1291. <div
  1292. class="whiteBIcon"
  1293. @click="addTools(8, itemTaskIndex, toolIndex)"
  1294. >
  1295. <img src="../../assets/icon/secondToolList/library.png" alt />
  1296. <div style="margin: 5px 0">素材库</div>
  1297. </div>
  1298. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1299. <img
  1300. src="../../assets/icon/checkNo.png"
  1301. alt
  1302. v-if="itemTool.tool.indexOf(8) == -1"
  1303. />
  1304. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1305. alt /><span>已选择</span></div>
  1306. </div>
  1307. </div>-->
  1308. <!-- <div class="tool">
  1309. <div
  1310. class="whiteBIcon"
  1311. @click="addTools(17, itemTaskIndex, toolIndex)"
  1312. >
  1313. <img
  1314. src="../../assets/icon/secondToolList/library.png"
  1315. alt
  1316. />
  1317. <div style="margin: 5px 0">学习资料</div>
  1318. </div>
  1319. <div
  1320. class="check"
  1321. @click="addTools(17, itemTaskIndex, toolIndex)"
  1322. >
  1323. <img
  1324. src="../../assets/icon/checkNo.png"
  1325. alt
  1326. v-if="itemTool.tool.indexOf(17) == -1"
  1327. />
  1328. <img
  1329. src="../../assets/icon/checkedIs.png"
  1330. alt
  1331. v-else
  1332. />
  1333. </div>10
  1334. </div> -->
  1335. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(10) != -1 }"
  1336. @click="addTools(10, itemTaskIndex, toolIndex)">
  1337. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 10, toolIndex)">
  1338. <img src="../../assets/icon/thirdToolList/time.png" alt />
  1339. <div style="margin: 5px 0">倒计时</div>
  1340. </div>
  1341. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1342. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1"><img
  1343. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1344. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1345. <img src="../../assets/icon/checkNo.png" alt
  1346. v-if="itemTool.tool.indexOf(10) == -1" />
  1347. <div class="checkDiv" v-else>
  1348. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1349. </div>
  1350. </div> -->
  1351. </div>
  1352. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(65) != -1 }"
  1353. @click="addTools(65, itemTaskIndex, toolIndex)">
  1354. <div class="whiteBIcon" @click.stop="addTools(65, itemTaskIndex, toolIndex)">
  1355. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  1356. <div style="margin: 5px 0">挑人</div>
  1357. </div>
  1358. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1359. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1"><img
  1360. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1361. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  1362. <img src="../../assets/icon/checkNo.png" alt
  1363. v-if="itemTool.tool.indexOf(65) == -1" />
  1364. <div class="checkDiv" v-else>
  1365. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1366. </div>
  1367. </div> -->
  1368. </div>
  1369. <!-- <div class="tool">
  1370. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1371. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1372. <div style="margin: 5px 0">学生分组</div>
  1373. </div>
  1374. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1375. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1376. <div class="checkDiv" v-else>
  1377. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1378. </div>
  1379. </div>
  1380. </div> -->
  1381. <!-- <div class="tool">
  1382. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1383. <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
  1384. <div style="margin: 5px 0">交互视频</div>
  1385. </div>
  1386. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1387. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  1388. <div class="checkDiv" v-else>
  1389. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1390. </div>
  1391. </div>
  1392. </div> -->
  1393. </div>
  1394. <div class="toolSort" v-if="itemTool.toolType == 1">
  1395. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(7) != -1 }"
  1396. @click="addTools(7, itemTaskIndex, toolIndex)">
  1397. <div class="whiteBIcon" @click.stop="addTools(7, itemTaskIndex, toolIndex)">
  1398. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  1399. <div style="margin: 5px 0">思维网格</div>
  1400. </div>
  1401. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1402. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1"><img
  1403. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1404. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1405. <img src="../../assets/icon/checkNo.png" alt
  1406. v-if="itemTool.tool.indexOf(7) == -1" />
  1407. <div class="checkDiv" v-else>
  1408. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1409. </div>
  1410. </div> -->
  1411. </div>
  1412. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(1) != -1 }"
  1413. @click="addTools(1, itemTaskIndex, toolIndex)">
  1414. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 1, toolIndex)">
  1415. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  1416. <div style="margin: 5px 0">电子白板</div>
  1417. </div>
  1418. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1419. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1"><img
  1420. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1421. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1422. <img src="../../assets/icon/checkNo.png" alt
  1423. v-if="itemTool.tool.indexOf(1) == -1" />
  1424. <div class="checkDiv" v-else>
  1425. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1426. </div>
  1427. </div> -->
  1428. </div>
  1429. <!-- <div class="tool">
  1430. <div
  1431. class="whiteBIcon"
  1432. @click="addTools(2, itemTaskIndex, toolIndex)"
  1433. >
  1434. <img
  1435. src="../../assets/icon/secondToolList/note.png"
  1436. alt
  1437. />
  1438. <div style="margin: 5px 0">便签</div>
  1439. </div>
  1440. <div
  1441. class="check"
  1442. @click="addTools(2, itemTaskIndex, toolIndex)"
  1443. >
  1444. <img
  1445. src="../../assets/icon/checkNo.png"
  1446. alt
  1447. v-if="itemTool.tool.indexOf(2) == -1"
  1448. />
  1449. <div class="checkDiv" v-else>
  1450. <img
  1451. src="../../assets/icon/checkedIs.png"
  1452. alt
  1453. /><span>已选择</span>
  1454. </div>
  1455. </div>
  1456. </div> -->
  1457. <!-- <div class="tool">
  1458. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1459. <img src="../../assets/icon/secondToolList/doc.png" alt />
  1460. <div style="margin: 5px 0">协同文档</div>
  1461. </div>
  1462. <div
  1463. class="check"
  1464. @click="addTools(6, itemTaskIndex, toolIndex)"
  1465. >
  1466. <img
  1467. src="../../assets/icon/checkNo.png"
  1468. alt
  1469. v-if="itemTool.tool.indexOf(6) == -1"
  1470. />
  1471. <div class="checkDiv" v-else>
  1472. <img
  1473. src="../../assets/icon/checkedIs.png"
  1474. alt
  1475. /><span>已选择</span>
  1476. </div>
  1477. </div>
  1478. </div> -->
  1479. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(52) != -1 }"
  1480. @click="addTools(52, itemTaskIndex, toolIndex)">
  1481. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 52, toolIndex)">
  1482. <img src="../../assets/icon/fourthToolList/text.png" alt />
  1483. <div style="margin: 5px 0">文档</div>
  1484. </div>
  1485. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1486. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1"><img
  1487. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1488. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1489. <img src="../../assets/icon/checkNo.png" alt
  1490. v-if="itemTool.tool.indexOf(52) == -1" />
  1491. <div class="checkDiv" v-else>
  1492. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1493. </div>
  1494. </div> -->
  1495. </div>
  1496. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(3) != -1 }"
  1497. @click="addTools(3, itemTaskIndex, toolIndex)">
  1498. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 3, toolIndex)">
  1499. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  1500. <div style="margin: 5px 0">思维导图</div>
  1501. </div>
  1502. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1503. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1"><img
  1504. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1505. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1506. <img src="../../assets/icon/checkNo.png" alt
  1507. v-if="itemTool.tool.indexOf(3) == -1" />
  1508. <div class="checkDiv" v-else>
  1509. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1510. </div>
  1511. </div> -->
  1512. </div>
  1513. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(48) != -1 }"
  1514. @click="addTools(48, itemTaskIndex, toolIndex)">
  1515. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 48, toolIndex)">
  1516. <img src="../../assets/icon/fourthToolList/table.png" alt />
  1517. <div style="margin: 5px 0">表格</div>
  1518. </div>
  1519. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1520. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1"><img
  1521. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1522. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1523. <img src="../../assets/icon/checkNo.png" alt
  1524. v-if="itemTool.tool.indexOf(48) == -1" />
  1525. <div class="checkDiv" v-else>
  1526. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1527. </div>
  1528. </div> -->
  1529. </div>
  1530. </div>
  1531. <div class="toolSort" v-if="itemTool.toolType == 6">
  1532. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(49) != -1 }"
  1533. @click="addTools(49, itemTaskIndex, toolIndex)">
  1534. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 49, toolIndex)">
  1535. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1536. <div style="margin: 5px 0">学生分组</div>
  1537. </div>
  1538. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1539. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1"><img
  1540. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1541. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1542. <img src="../../assets/icon/checkNo.png" alt
  1543. v-if="itemTool.tool.indexOf(49) == -1" />
  1544. <div class="checkDiv" v-else>
  1545. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1546. </div>
  1547. </div> -->
  1548. </div>
  1549. </div>
  1550. <div class="toolSort" v-if="itemTool.toolType == 2">
  1551. <!-- <div class="tool">
  1552. <div
  1553. class="whiteBIcon"
  1554. @click="addTools(5, itemTaskIndex, toolIndex)"
  1555. >
  1556. <img
  1557. src="../../assets/icon/thirdToolList/score.png"
  1558. alt
  1559. />
  1560. <div style="margin: 5px 0">量规评分</div>
  1561. </div>
  1562. <div
  1563. class="check"
  1564. @click="addTools(5, itemTaskIndex, toolIndex)"
  1565. >
  1566. <img
  1567. src="../../assets/icon/checkNo.png"
  1568. alt
  1569. v-if="itemTool.tool.indexOf(5) == -1"
  1570. />
  1571. <img
  1572. src="../../assets/icon/checkedIs.png"
  1573. alt
  1574. v-else
  1575. />
  1576. </div>
  1577. </div>-->
  1578. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(4) != -1 }"
  1579. @click="addTools(4, itemTaskIndex, toolIndex)">
  1580. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 4, toolIndex)">
  1581. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  1582. <div style="margin: 5px 0">问卷调查</div>
  1583. </div>
  1584. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1585. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1"><img
  1586. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1587. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1588. <img src="../../assets/icon/checkNo.png" alt
  1589. v-if="itemTool.tool.indexOf(4) == -1" />
  1590. <div class="checkDiv" v-else>
  1591. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1592. </div>
  1593. </div> -->
  1594. </div>
  1595. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(45) != -1 }"
  1596. @click="addTools(45, itemTaskIndex, toolIndex)">
  1597. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1598. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  1599. <div style="margin: 5px 0">选择题</div>
  1600. </div>
  1601. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1602. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1"><img
  1603. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1604. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1605. <img src="../../assets/icon/checkNo.png" alt
  1606. v-if="itemTool.tool.indexOf(45) == -1" />
  1607. <div class="checkDiv" v-else>
  1608. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1609. </div>
  1610. </div> -->
  1611. </div>
  1612. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(15) != -1 }"
  1613. @click="addTools(15, itemTaskIndex, toolIndex)">
  1614. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 15, toolIndex)">
  1615. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  1616. <div style="margin: 5px 0">问答</div>
  1617. </div>
  1618. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1619. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1"><img
  1620. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1621. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1622. <img src="../../assets/icon/checkNo.png" alt
  1623. v-if="itemTool.tool.indexOf(15) == -1" />
  1624. <div class="checkDiv" v-else>
  1625. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1626. </div>
  1627. </div> -->
  1628. </div>
  1629. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(16) != -1 }"
  1630. @click="addTools(16, itemTaskIndex, toolIndex)">
  1631. <div class="whiteBIcon" @click.stop="addTools(16, itemTaskIndex, toolIndex)">
  1632. <img src="../../assets/icon/thirdToolList/work.png" alt />
  1633. <div style="margin: 5px 0">作业提交</div>
  1634. </div>
  1635. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1636. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1"><img
  1637. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1638. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1639. <img src="../../assets/icon/checkNo.png" alt
  1640. v-if="itemTool.tool.indexOf(16) == -1" />
  1641. <div class="checkDiv" v-else>
  1642. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1643. </div>
  1644. </div> -->
  1645. </div>
  1646. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(50) != -1 }"
  1647. @click="addTools(50, itemTaskIndex, toolIndex)">
  1648. <div class="whiteBIcon" @click.stop="addTools(50, itemTaskIndex, toolIndex)">
  1649. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1650. <div style="margin: 5px 0">批量上传</div>
  1651. </div>
  1652. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1653. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1"><img
  1654. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1655. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1656. <img src="../../assets/icon/checkNo.png" alt
  1657. v-if="itemTool.tool.indexOf(50) == -1" />
  1658. <div class="checkDiv" v-else>
  1659. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1660. </div>
  1661. </div> -->
  1662. </div>
  1663. <!-- <div class="tool">
  1664. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1665. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1666. <div style="margin: 5px 0">个人评价</div>
  1667. </div>
  1668. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1669. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1670. <div class="checkDiv" v-else>
  1671. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1672. </div>
  1673. </div>
  1674. </div> -->
  1675. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(41) != -1 }"
  1676. @click="addTools(41, itemTaskIndex, toolIndex)">
  1677. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 41, toolIndex)">
  1678. <img src="../../assets/icon/thirdToolList/select.png" alt />
  1679. <div style="margin: 5px 0">选择匹配</div>
  1680. </div>
  1681. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1682. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1"><img
  1683. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1684. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1685. <img src="../../assets/icon/checkNo.png" alt
  1686. v-if="itemTool.tool.indexOf(41) == -1" />
  1687. <div class="checkDiv" v-else>
  1688. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1689. </div>
  1690. </div> -->
  1691. </div>
  1692. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(47) != -1 }"
  1693. @click="addTools(47, itemTaskIndex, toolIndex)">
  1694. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 47, toolIndex)">
  1695. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  1696. <div style="margin: 5px 0">排序</div>
  1697. </div>
  1698. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1699. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1"><img
  1700. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1701. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1702. <img src="../../assets/icon/checkNo.png" alt
  1703. v-if="itemTool.tool.indexOf(47) == -1" />
  1704. <div class="checkDiv" v-else>
  1705. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1706. </div>
  1707. </div> -->
  1708. </div>
  1709. <!-- <div class="tool">
  1710. <div
  1711. class="whiteBIcon"
  1712. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1713. >
  1714. <img
  1715. src="../../assets/icon/thirdToolList/mp3.png"
  1716. alt
  1717. />
  1718. <div style="margin: 5px 0">上传音频</div>
  1719. </div>
  1720. <div
  1721. class="check"
  1722. @click="addTools(42, itemTaskIndex, toolIndex)"
  1723. >
  1724. <img
  1725. src="../../assets/icon/checkNo.png"
  1726. alt
  1727. v-if="itemTool.tool.indexOf(42) == -1"
  1728. />
  1729. <img
  1730. src="../../assets/icon/checkedIs.png"
  1731. alt
  1732. v-else
  1733. />
  1734. </div>
  1735. </div> -->
  1736. </div>
  1737. <div class="toolSort" v-if="itemTool.toolType == 3">
  1738. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(18) != -1 }"
  1739. @click="addTools(18, itemTaskIndex, toolIndex)">
  1740. <div class="whiteBIcon" @click.stop="addTools(18, itemTaskIndex, toolIndex)">
  1741. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1742. <div style="margin: 5px 0">训练平台</div>
  1743. </div>
  1744. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1745. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1"><img
  1746. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1747. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1748. <img src="../../assets/icon/checkNo.png" alt
  1749. v-if="itemTool.tool.indexOf(18) == -1" />
  1750. <div class="checkDiv" v-else>
  1751. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1752. </div>
  1753. </div> -->
  1754. </div>
  1755. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(21) != -1 }"
  1756. @click="addTools(21, itemTaskIndex, toolIndex)">
  1757. <div class="whiteBIcon" @click.stop="addTools(21, itemTaskIndex, toolIndex)">
  1758. <img src="../../assets/icon/fourthToolList/program.png" alt />
  1759. <div style="margin: 5px 0">AIoT Blockly</div>
  1760. </div>
  1761. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1762. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1"><img
  1763. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1764. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1765. <img src="../../assets/icon/checkNo.png" alt
  1766. v-if="itemTool.tool.indexOf(21) == -1" />
  1767. <div class="checkDiv" v-else>
  1768. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1769. </div>
  1770. </div> -->
  1771. </div>
  1772. <!-- <div class="tool">
  1773. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1774. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1775. <div style="margin: 5px 0">AI体验</div>
  1776. </div>
  1777. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1778. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1779. <div class="checkDiv" v-else>
  1780. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1781. </div>
  1782. </div>
  1783. </div> -->
  1784. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(23) != -1 }"
  1785. @click="addTools(23, itemTaskIndex, toolIndex)">
  1786. <div class="whiteBIcon" @click.stop="addTools(23, itemTaskIndex, toolIndex)">
  1787. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1788. <div style="margin: 5px 0">AI Python</div>
  1789. </div>
  1790. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1791. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1"><img
  1792. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1793. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1794. <img src="../../assets/icon/checkNo.png" alt
  1795. v-if="itemTool.tool.indexOf(23) == -1" />
  1796. <div class="checkDiv" v-else>
  1797. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1798. </div>
  1799. </div> -->
  1800. </div>
  1801. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(24) != -1 }"
  1802. @click="addTools(24, itemTaskIndex, toolIndex)">
  1803. <div class="whiteBIcon" @click.stop="addTools(24, itemTaskIndex, toolIndex)">
  1804. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  1805. <div style="margin: 5px 0">AI Blockly</div>
  1806. </div>
  1807. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1808. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1"><img
  1809. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1810. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1811. <img src="../../assets/icon/checkNo.png" alt
  1812. v-if="itemTool.tool.indexOf(24) == -1" />
  1813. <div class="checkDiv" v-else>
  1814. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1815. </div>
  1816. </div> -->
  1817. </div>
  1818. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(32) != -1 }"
  1819. @click="addTools(32, itemTaskIndex, toolIndex)">
  1820. <div class="whiteBIcon" @click.stop="addTools(32, itemTaskIndex, toolIndex)">
  1821. <img src="../../assets/icon/thirdToolList/code.png" alt />
  1822. <div style="margin: 5px 0">源码编辑</div>
  1823. </div>
  1824. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1825. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1"><img
  1826. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1827. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1828. <img src="../../assets/icon/checkNo.png" alt
  1829. v-if="itemTool.tool.indexOf(32) == -1" />
  1830. <div class="checkDiv" v-else>
  1831. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1832. </div>
  1833. </div> -->
  1834. </div>
  1835. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(57) != -1 }"
  1836. @click="addTools(57, itemTaskIndex, toolIndex)">
  1837. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 57, toolIndex)">
  1838. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  1839. <div style="margin: 5px 0">CocoPi</div>
  1840. </div>
  1841. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1842. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1"><img
  1843. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1844. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1845. <img src="../../assets/icon/checkNo.png" alt
  1846. v-if="itemTool.tool.indexOf(57) == -1" />
  1847. <div class="checkDiv" v-else>
  1848. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1849. </div>
  1850. </div> -->
  1851. </div>
  1852. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(63) != -1 }"
  1853. @click="addTools(63, itemTaskIndex, toolIndex)">
  1854. <div class="whiteBIcon" @click.stop="addTools(63, itemTaskIndex, toolIndex)">
  1855. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  1856. <div style="margin: 5px 0">海龟编程</div>
  1857. </div>
  1858. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1859. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1"><img
  1860. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1861. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1862. <img src="../../assets/icon/checkNo.png" alt
  1863. v-if="itemTool.tool.indexOf(63) == -1" />
  1864. <div class="checkDiv" v-else>
  1865. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1866. </div>
  1867. </div> -->
  1868. </div>
  1869. </div>
  1870. <div class="toolSort" v-if="itemTool.toolType == 7">
  1871. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(40) != -1 }"
  1872. @click.stop="addTools(40, itemTaskIndex, toolIndex)">
  1873. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 40, toolIndex)">
  1874. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1875. <div style="margin: 5px 0">个人评价</div>
  1876. </div>
  1877. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1878. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1"><img
  1879. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1880. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1881. <img src="../../assets/icon/checkNo.png" alt
  1882. v-if="itemTool.tool.indexOf(40) == -1" />
  1883. <div class="checkDiv" v-else>
  1884. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1885. </div>
  1886. </div> -->
  1887. </div>
  1888. </div>
  1889. <div class="toolSort" v-if="itemTool.toolType == 5">
  1890. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(28) != -1 }"
  1891. @click="addTools(28, itemTaskIndex, toolIndex)">
  1892. <div class="whiteBIcon" @click.stop="addTools(28, itemTaskIndex, toolIndex)">
  1893. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1894. <div style="margin: 5px 0">翻译</div>
  1895. </div>
  1896. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1897. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1"><img
  1898. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1899. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1900. <img src="../../assets/icon/checkNo.png" alt
  1901. v-if="itemTool.tool.indexOf(28) == -1" />
  1902. <div class="checkDiv" v-else>
  1903. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1904. </div>
  1905. </div> -->
  1906. </div>
  1907. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(31) != -1 }"
  1908. @click="addTools(31, itemTaskIndex, toolIndex)">
  1909. <div class="whiteBIcon" @click.stop="addTools(31, itemTaskIndex, toolIndex)">
  1910. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1911. <div style="margin: 5px 0">数字画板</div>
  1912. </div>
  1913. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1914. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1"><img
  1915. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1916. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1917. <img src="../../assets/icon/checkNo.png" alt
  1918. v-if="itemTool.tool.indexOf(31) == -1" />
  1919. <div class="checkDiv" v-else>
  1920. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1921. </div>
  1922. </div> -->
  1923. </div>
  1924. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(39) != -1 }"
  1925. @click="addTools(39, itemTaskIndex, toolIndex)">
  1926. <div class="whiteBIcon" @click.stop="addTools(39, itemTaskIndex, toolIndex)">
  1927. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  1928. <div style="margin: 5px 0">GeoGebra</div>
  1929. </div>
  1930. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1931. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1"><img
  1932. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1933. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1934. <img src="../../assets/icon/checkNo.png" alt
  1935. v-if="itemTool.tool.indexOf(39) == -1" />
  1936. <div class="checkDiv" v-else>
  1937. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1938. </div>
  1939. </div> -->
  1940. </div>
  1941. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(66) != -1 }"
  1942. @click="addTools(66, itemTaskIndex, toolIndex)">
  1943. <div class="whiteBIcon" @click.stop="addTools(66, itemTaskIndex, toolIndex)">
  1944. <img src="../../assets/icon/secondToolList/formulaEdi.png" alt />
  1945. <div style="margin: 5px 0">公式编辑</div>
  1946. </div>
  1947. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1948. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1"><img
  1949. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1950. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  1951. <img src="../../assets/icon/checkNo.png" alt
  1952. v-if="itemTool.tool.indexOf(66) == -1" />
  1953. <div class="checkDiv" v-else>
  1954. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1955. </div>
  1956. </div> -->
  1957. </div>
  1958. <!-- <div class="tool">
  1959. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  1960. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  1961. <div style="margin: 5px 0">分子结构</div>
  1962. </div>
  1963. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  1964. <img src="../../assets/icon/checkNo.png" alt
  1965. v-if="itemTool.tool.indexOf(67) == -1" />
  1966. <div class="checkDiv" v-else>
  1967. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1968. </div>
  1969. </div>
  1970. </div> -->
  1971. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(68) != -1 }"
  1972. @click="addTools(68, itemTaskIndex, toolIndex)">
  1973. <div class="whiteBIcon" @click.stop="addTools(68, itemTaskIndex, toolIndex)">
  1974. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  1975. <div style="margin: 5px 0">时间轴</div>
  1976. </div>
  1977. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1978. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1"><img
  1979. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1980. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  1981. <img src="../../assets/icon/checkNo.png" alt
  1982. v-if="itemTool.tool.indexOf(68) == -1" />
  1983. <div class="checkDiv" v-else>
  1984. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1985. </div>
  1986. </div> -->
  1987. </div>
  1988. <!-- <div class="tool">
  1989. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  1990. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1991. <div style="margin: 5px 0">翻译</div>
  1992. </div>
  1993. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1994. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  1995. <div class="checkDiv" v-else>
  1996. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1997. </div>
  1998. </div>
  1999. </div>
  2000. <div class="tool">
  2001. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  2002. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  2003. <div style="margin: 5px 0">魔盒识字</div>
  2004. </div>
  2005. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  2006. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  2007. <div class="checkDiv" v-else>
  2008. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2009. </div>
  2010. </div>
  2011. </div>
  2012. <div class="tool">
  2013. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  2014. <img src="../../assets/icon/secondToolList/24game.png" alt />
  2015. <div style="margin: 5px 0">24点</div>
  2016. </div>
  2017. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  2018. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  2019. <div class="checkDiv" v-else>
  2020. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2021. </div>
  2022. </div>
  2023. </div>
  2024. <div class="tool">
  2025. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  2026. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  2027. <div style="margin: 5px 0">数学画板</div>
  2028. </div>
  2029. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  2030. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  2031. <div class="checkDiv" v-else>
  2032. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2033. </div>
  2034. </div>
  2035. </div>
  2036. <div class="tool">
  2037. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  2038. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  2039. <div style="margin: 5px 0">GeoGebra</div>
  2040. </div>
  2041. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2042. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  2043. <div class="checkDiv" v-else>
  2044. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2045. </div>
  2046. </div>
  2047. </div>
  2048. <div class="tool">
  2049. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  2050. <img src="../../assets/icon/fourthToolList/car.png" alt />
  2051. <div style="margin: 5px 0">模拟驾驶</div>
  2052. </div>
  2053. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  2054. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  2055. <div class="checkDiv" v-else>
  2056. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2057. </div>
  2058. </div>
  2059. </div>
  2060. <div class="tool">
  2061. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  2062. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  2063. <div style="margin: 5px 0">路径搜索</div>
  2064. </div>
  2065. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  2066. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  2067. <div class="checkDiv" v-else>
  2068. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2069. </div>
  2070. </div>
  2071. </div>
  2072. <div class="tool">
  2073. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  2074. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  2075. <div style="margin: 5px 0">深度学习</div>
  2076. </div>
  2077. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  2078. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  2079. <div class="checkDiv" v-else>
  2080. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2081. </div>
  2082. </div>
  2083. </div>
  2084. <div class="tool">
  2085. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  2086. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  2087. <div style="margin: 5px 0">全历史</div>
  2088. </div>
  2089. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  2090. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  2091. <div class="checkDiv" v-else>
  2092. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2093. </div>
  2094. </div>
  2095. </div>
  2096. </div>
  2097. <div class="toolSort" v-if="itemTool.toolType == 4">
  2098. <div class="tool">
  2099. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  2100. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  2101. <div style="margin: 5px 0">课程设计</div>
  2102. </div>
  2103. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  2104. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  2105. <div class="checkDiv" v-else>
  2106. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2107. </div>
  2108. </div>
  2109. </div>
  2110. <div class="tool">
  2111. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  2112. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  2113. <div style="margin: 5px 0">目标管理</div>
  2114. </div>
  2115. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  2116. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  2117. <div class="checkDiv" v-else>
  2118. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2119. </div>
  2120. </div>
  2121. </div> -->
  2122. <!-- <div class="tool">
  2123. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2124. <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
  2125. <div style="margin: 5px 0">汉字宫</div>
  2126. </div>
  2127. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2128. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2129. <div class="checkDiv" v-else>
  2130. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2131. </div>
  2132. </div>
  2133. </div> -->
  2134. </div>
  2135. </div>
  2136. <div v-show="!itemTool.isFold3">
  2137. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述" class="binfo_input"
  2138. style="margin: 0 0 20px 0; width: 100% !important"
  2139. v-model="itemTool.toolDetail"></textarea>
  2140. </div>
  2141. </div>
  2142. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  2143. <div class="addToolImg">
  2144. <img src="../../assets/icon/add.png" alt />
  2145. </div>
  2146. <div>添加工具</div>
  2147. </div> -->
  2148. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 0 auto;padding: 0 30px;height: 45px;">
  2149. 添加工具
  2150. </button>
  2151. </div>
  2152. </div>
  2153. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  2154. unitJson[unitIndex].easy == 4
  2155. " class="toolChoose" style="padding: 0 0 40px;">
  2156. <div class="tools">
  2157. <div class="leftTools" style="width: 100%"
  2158. v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2159. <div>
  2160. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2161. style="margin: 0 0 20px 0; width: 100% !important"
  2162. v-model="itemTool.toolDetail"></textarea>
  2163. </div>
  2164. <div style="
  2165. display: flex;
  2166. flex-direction: row;
  2167. align-items: baseline;
  2168. flex-wrap: nowrap;
  2169. justify-content: flex-start;
  2170. position: relative;
  2171. ">
  2172. <div style="margin-right: 20px; font-weight: bold"
  2173. :id="'gj' + itemTaskIndex + '' + toolIndex">
  2174. 步骤 {{ toolIndex + 1 }} :
  2175. </div>
  2176. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2177. v-if="itemTask.toolChoose.length > 1" style="right: 0"></div>
  2178. </div>
  2179. <div style="min-height: 163px">
  2180. <div class="toolSort">
  2181. <div class="tool">
  2182. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2183. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2184. <div style="margin: 5px 0">电子白板</div>
  2185. </div>
  2186. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2187. <img src="../../assets/icon/checkNo.png" alt
  2188. v-if="itemTool.tool.indexOf(1) == -1" />
  2189. <div class="checkDiv" v-else>
  2190. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2191. </div>
  2192. </div>
  2193. </div>
  2194. <div class="tool">
  2195. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2196. <img src="../../assets/icon/fourthToolList/text.png" alt />
  2197. <div style="margin: 5px 0">文档</div>
  2198. </div>
  2199. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2200. <img src="../../assets/icon/checkNo.png" alt
  2201. v-if="itemTool.tool.indexOf(52) == -1" />
  2202. <div class="checkDiv" v-else>
  2203. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2204. </div>
  2205. </div>
  2206. </div>
  2207. <div class="tool">
  2208. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2209. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2210. <div style="margin: 5px 0">思维导图</div>
  2211. </div>
  2212. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2213. <img src="../../assets/icon/checkNo.png" alt
  2214. v-if="itemTool.tool.indexOf(3) == -1" />
  2215. <div class="checkDiv" v-else>
  2216. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2217. </div>
  2218. </div>
  2219. </div>
  2220. <div class="tool">
  2221. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2222. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  2223. <div style="margin: 5px 0">问卷调查</div>
  2224. </div>
  2225. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2226. <img src="../../assets/icon/checkNo.png" alt
  2227. v-if="itemTool.tool.indexOf(4) == -1" />
  2228. <div class="checkDiv" v-else>
  2229. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2230. </div>
  2231. </div>
  2232. </div>
  2233. <div class="tool">
  2234. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2235. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  2236. <div style="margin: 5px 0">选择题</div>
  2237. </div>
  2238. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2239. <img src="../../assets/icon/checkNo.png" alt
  2240. v-if="itemTool.tool.indexOf(45) == -1" />
  2241. <div class="checkDiv" v-else>
  2242. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2243. </div>
  2244. </div>
  2245. </div>
  2246. <div class="tool">
  2247. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2248. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  2249. <div style="margin: 5px 0">问答</div>
  2250. </div>
  2251. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2252. <img src="../../assets/icon/checkNo.png" alt
  2253. v-if="itemTool.tool.indexOf(15) == -1" />
  2254. <div class="checkDiv" v-else>
  2255. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2256. </div>
  2257. </div>
  2258. </div>
  2259. <div class="tool">
  2260. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2261. <img src="../../assets/icon/thirdToolList/work.png" alt />
  2262. <div style="margin: 5px 0">作业提交</div>
  2263. </div>
  2264. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2265. <img src="../../assets/icon/checkNo.png" alt
  2266. v-if="itemTool.tool.indexOf(16) == -1" />
  2267. <div class="checkDiv" v-else>
  2268. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2269. </div>
  2270. </div>
  2271. </div>
  2272. <div class="tool">
  2273. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2274. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2275. <div style="margin: 5px 0">批量上传</div>
  2276. </div>
  2277. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2278. <img src="../../assets/icon/checkNo.png" alt
  2279. v-if="itemTool.tool.indexOf(50) == -1" />
  2280. <div class="checkDiv" v-else>
  2281. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2282. </div>
  2283. </div>
  2284. </div>
  2285. <div class="tool">
  2286. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2287. <img src="../../assets/icon/thirdToolList/select.png" alt />
  2288. <div style="margin: 5px 0">选择匹配</div>
  2289. </div>
  2290. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2291. <img src="../../assets/icon/checkNo.png" alt
  2292. v-if="itemTool.tool.indexOf(41) == -1" />
  2293. <div class="checkDiv" v-else>
  2294. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2295. </div>
  2296. </div>
  2297. </div>
  2298. <div class="tool">
  2299. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2300. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  2301. <div style="margin: 5px 0">排序</div>
  2302. </div>
  2303. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2304. <img src="../../assets/icon/checkNo.png" alt
  2305. v-if="itemTool.tool.indexOf(47) == -1" />
  2306. <div class="checkDiv" v-else>
  2307. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2308. </div>
  2309. </div>
  2310. </div>
  2311. <div class="tool">
  2312. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2313. <img src="../../assets/icon/fourthToolList/table.png" alt />
  2314. <div style="margin: 5px 0">表格</div>
  2315. </div>
  2316. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2317. <img src="../../assets/icon/checkNo.png" alt
  2318. v-if="itemTool.tool.indexOf(48) == -1" />
  2319. <div class="checkDiv" v-else>
  2320. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2321. </div>
  2322. </div>
  2323. </div>
  2324. </div>
  2325. </div>
  2326. </div>
  2327. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  2328. <div class="addToolImg">
  2329. <img src="../../assets/icon/add.png" alt />
  2330. </div>
  2331. <div>添加工具</div>
  2332. </div> -->
  2333. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 35px auto 20px">
  2334. 添加工具
  2335. </button>
  2336. </div>
  2337. </div>
  2338. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  2339. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2340. " class="toolChoose" style="padding: 0 0 40px;">
  2341. <div class="tools">
  2342. <div class="leftTools" style="
  2343. width: 100%;
  2344. padding: 0 0 15px 0;
  2345. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2346. <div style="min-height: 163px">
  2347. <div class="toolSort">
  2348. <div class="tool">
  2349. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2350. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2351. <div style="margin: 5px 0">批量上传</div>
  2352. </div>
  2353. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2354. <img src="../../assets/icon/checkNo.png" alt
  2355. v-if="itemTool.tool.indexOf(50) == -1" />
  2356. <div class="checkDiv" v-else>
  2357. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2358. </div>
  2359. </div>
  2360. </div>
  2361. </div>
  2362. </div>
  2363. </div>
  2364. </div>
  2365. </div>
  2366. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  2367. <div class="elist_title">
  2368. <div style="
  2369. display: flex;
  2370. flex-direction: row;
  2371. align-items: center;
  2372. margin: 20px 0;
  2373. ">
  2374. <div class="lineTitle">评价设置</div>
  2375. <!-- <div class="line" style="width: 90%"></div> -->
  2376. </div>
  2377. </div>
  2378. <div class="mbCss">
  2379. <div class="pjCss" :style="{width:itemTask.isEvaFold?'calc(100% - 55%)':'calc(100% - 120px)'}">
  2380. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2381. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2382. <span>评价名称:</span>
  2383. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  2384. <span>评星等级:</span>
  2385. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  2386. disabled></el-rate>
  2387. <div class="remove" @click="
  2388. deletEList(unitIndex, itemTaskIndex, eIndex)
  2389. "></div>
  2390. <div class="elist_inptu_text">
  2391. <span>评价描述:</span>
  2392. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  2393. </div>
  2394. <div class="elist_inptu_text" v-if="evalua">
  2395. <span>目标:</span>
  2396. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  2397. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2398. @change="forceUpdate()">
  2399. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2400. :value="e.name">
  2401. </el-option>
  2402. </el-select> -->
  2403. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2404. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2405. </div>
  2406. </div>
  2407. </div>
  2408. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  2409. style="margin: 35px 35px 0 0">
  2410. <div class="addToolImg">
  2411. <img src="../../assets/icon/add.png" alt />
  2412. </div>
  2413. <div>添加</div>
  2414. </div> -->
  2415. <button class="c_pub_button_add pub_btn_eval_img" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 20px 35px 0 0">
  2416. 添加
  2417. </button>
  2418. </div>
  2419. <div v-if="evalua" style="
  2420. border: 1px solid #e5e5e5;
  2421. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2422. " :style="{width:itemTask.isEvaFold?'55%':'116px'}" class="evaCss">
  2423. <!-- <div class="e_add_top">
  2424. <div class="e_add_title">
  2425. <span>当前使用目标管理</span>
  2426. <span>{{ eTitle }}</span>
  2427. <img src="../../assets/line.png" class="cru_line" style="
  2428. width: 125px;
  2429. height: 20px;
  2430. bottom: -10px;
  2431. left: 155px;
  2432. " />
  2433. </div>
  2434. </div> -->
  2435. <div class="e_add_content" style="width: 100%">
  2436. <div class="e_add_list_pbox" style="width: 100%">
  2437. <div class="e_add_list_pbox_title">
  2438. <span class="type_title" v-if="itemTask.isEvaFold">切换模式</span>
  2439. <div class="type_content" v-if="itemTask.isEvaFold">
  2440. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1, itemTaskIndex)">目标树</span>
  2441. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2, itemTaskIndex)">目标罗盘</span>
  2442. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  2443. </div>
  2444. <div v-if="itemTask.isEvaFold"
  2445. class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva(itemTaskIndex)"><img
  2446. src="../../assets/icon/new/icon-slide.png" />收起目标</div>
  2447. <div v-else style="margin:0 0 0 auto" class="show_taskD"
  2448. @click="foldEva(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开目标
  2449. </div>
  2450. </div>
  2451. <div class="e_add_list_pbox_content" v-if="itemTask.isEvaFold" style="min-height: 200px;">
  2452. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  2453. " v-if="typeMode == 1"></Mind>
  2454. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  2455. </Sunburst>
  2456. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2457. v-if="typeMode == 3"></SeeBoard>
  2458. </div>
  2459. </div>
  2460. </div>
  2461. </div>
  2462. </div>
  2463. </div>
  2464. <div class="funBlock" style="padding: 0">
  2465. <div class="fold" @click="fold(itemTaskIndex, $event)">
  2466. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }">
  2467. </div>
  2468. <div>{{ itemTask.isFold === 1 ? '展开任务' : '收起任务' }}</div>
  2469. </div>
  2470. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2471. <div>展开</div>
  2472. <div class="arrow">
  2473. <img src="../../assets/icon/expand.png" alt />
  2474. </div>
  2475. </div> -->
  2476. </div>
  2477. </div>
  2478. </div>
  2479. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2480. <!-- <div>
  2481. <img src="../../../assets/icon/new/addStage.png" alt />
  2482. <span>添加任务</span>
  2483. </div> -->
  2484. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  2485. 添加任务
  2486. </button>
  2487. </div>
  2488. </div>
  2489. <div class="info_btnBox3">
  2490. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  2491. goTo(
  2492. '/course?userid=' +
  2493. userid +
  2494. '&oid=' +
  2495. oid +
  2496. '&org=' +
  2497. org +
  2498. '&role=' +
  2499. role
  2500. )
  2501. ">
  2502. 返回课程
  2503. </button>
  2504. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps"
  2505. style="background:#dbdbdb">
  2506. {{ steps == 4 ? "返回课程" : "上一步" }}
  2507. </button>
  2508. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  2509. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2510. {{ steps == 3 ? "确认上传" : "下一步" }}
  2511. </button>
  2512. </div>
  2513. </div>
  2514. </div>
  2515. </div>
  2516. </div>
  2517. <div style="
  2518. width: calc(100% - 20px);
  2519. background: rgb(255, 255, 255);
  2520. border-radius: 10px;
  2521. " v-if="this.steps == 4">
  2522. <div class="basic_box_success">
  2523. <div class="right_img">
  2524. <img src="../../assets/icon/right.png" alt />
  2525. </div>
  2526. <div style="font-weight: bold">成功</div>
  2527. <!-- <div>您的课程编号</div>
  2528. <div class="number">{{ number }}</div>-->
  2529. <!-- <div class="success_button">
  2530. <div class="look_course" @click="isNoFinsh">
  2531. 邀请老师协同编辑
  2532. </div>
  2533. <div class="attend_others" @click="goCourse">预览课程</div>
  2534. </div> -->
  2535. </div>
  2536. </div>
  2537. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  2538. @mouseleave="btnDisplay(false)" v-if="false">
  2539. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1 && isBtnDisplay" @click="
  2540. goTo(
  2541. '/course?userid=' +
  2542. userid +
  2543. '&oid=' +
  2544. oid +
  2545. '&org=' +
  2546. org +
  2547. '&role=' +
  2548. role
  2549. )
  2550. ">
  2551. 返回课程
  2552. </button>
  2553. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5 && isBtnDisplay"
  2554. @click="lastSteps">
  2555. {{ steps == 4 ? "返回课程" : "上一步" }}
  2556. </button>
  2557. <button class="c_pub_button_confirm" v-if="steps < 4 && isBtnDisplay" @click="nextSteps"
  2558. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2559. {{ steps == 3 ? "确认上传" : "下一步" }}
  2560. </button>
  2561. </div>
  2562. </div>
  2563. </div>
  2564. </div>
  2565. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2566. class="dialog_diy2 customWidth">
  2567. <div>请复制该链接邀请协同编辑</div>
  2568. <div>http://www.boomyon.com/index-zhang.com</div>
  2569. <span slot="footer" class="dialog-footer">
  2570. <el-button type="primary">复制链接分享</el-button>
  2571. <el-button @click="dialogVisible = false">取消</el-button>
  2572. </span>
  2573. </el-dialog>
  2574. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2575. :before-close="handleClose" class="dialog_diy2 customWidth">
  2576. <el-form>
  2577. <el-form-item label="文档标题">
  2578. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2579. </el-form-item>
  2580. <div>文档简介</div>
  2581. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2582. </el-form>
  2583. <span slot="footer" class="dialog-footer">
  2584. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2585. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2586. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2587. </span>
  2588. </el-dialog>
  2589. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2590. :before-close="handleClose" class="dialog_diy">
  2591. <el-form>
  2592. <el-form-item label="文档标题">
  2593. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2594. </el-form-item>
  2595. <div>文档内容</div>
  2596. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2597. </el-form>
  2598. <span slot="footer" class="dialog-footer">
  2599. <el-button @click="clearChoose">取 消</el-button>
  2600. <el-button type="primary" @click="wordNext()">确定</el-button>
  2601. </span>
  2602. </el-dialog>
  2603. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2604. :before-close="handleClose" class="dialog_diy">
  2605. <el-form>
  2606. <el-form-item label="文本标题">
  2607. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  2608. placeholder="请输入文本标题..."></el-input>
  2609. </el-form-item>
  2610. <!-- <div>富文本内容</div> -->
  2611. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2612. </el-form>
  2613. <span slot="footer" class="dialog-footer">
  2614. <el-button @click="clearAttText">取 消</el-button>
  2615. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2616. </span>
  2617. </el-dialog>
  2618. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2619. :before-close="handleClose" class="dialog_diy lineCss">
  2620. <el-form>
  2621. <el-form-item label="标题" :label-width="formLabelWidth">
  2622. <span>
  2623. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2624. </span>
  2625. </el-form-item>
  2626. <el-form-item label="链接" :label-width="formLabelWidth">
  2627. <span>
  2628. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2629. </span>
  2630. </el-form-item>
  2631. </el-form>
  2632. <span slot="footer" class="dialog-footer">
  2633. <el-button @click="clearLine">取 消</el-button>
  2634. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2635. </span>
  2636. </el-dialog>
  2637. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  2638. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  2639. <div>
  2640. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  2641. </div>
  2642. <span slot="footer" class="dialog-footer">
  2643. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2644. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  2645. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  2646. </span>
  2647. </el-dialog>
  2648. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2649. :before-close="handleClose" class="addNewPP customWidth">
  2650. <div class="people">
  2651. <div class="people_top">
  2652. <div class="people_nav">选择成员</div>
  2653. <div class="people_top_right">
  2654. <div class="people_search">
  2655. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2656. <div class="search_img" @click="searchStudent">
  2657. <img src="../../assets/icon/search.png" alt />
  2658. </div>
  2659. </div>
  2660. </div>
  2661. </div>
  2662. <el-checkbox-group v-model="checkboxList" class="people_name">
  2663. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2664. "暂无学生可选" }}</el-checkbox>
  2665. </el-checkbox-group>
  2666. </div>
  2667. <span slot="footer" class="dialog-footer">
  2668. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2669. <el-button type="primary" @click="isAddPP">确定</el-button>
  2670. </span>
  2671. </el-dialog>
  2672. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  2673. :before-close="handleClose" class="addNewPP2">
  2674. <div class="check_classBox">
  2675. <div class="check_class_right">
  2676. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  2677. 全部
  2678. </div>
  2679. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  2680. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  2681. {{ item.name }}
  2682. </div>
  2683. </el-tooltip>
  2684. </div>
  2685. <div class="check_class_left">
  2686. <div class="check_class_all_box">
  2687. <div class="check_class_left_title">选择班级</div>
  2688. <div style="display:flex;align-items:center;margin-left:auto;"><el-checkbox v-model="checkAll"
  2689. @change="handleCheckAllChange" class="all_check">全选</el-checkbox></div>
  2690. </div>
  2691. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  2692. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  2693. </div> -->
  2694. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  2695. <div v-for="item in grade2" :key="item.id" class="class_item">
  2696. <el-checkbox :label="item.id">
  2697. {{ item.name }}
  2698. </el-checkbox>
  2699. </div>
  2700. </el-checkbox-group>
  2701. <div v-if="!grade2.length">暂无数据</div>
  2702. </div>
  2703. </div>
  2704. <span slot="footer" class="dialog-footer">
  2705. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2706. <el-button type="primary" @click="isAddClass">确定</el-button>
  2707. </span>
  2708. </el-dialog>
  2709. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2710. :before-close="handleClose" class="addNewPP customWidth">
  2711. <div class="people">
  2712. <div class="people_top">
  2713. <div class="people_top_right">
  2714. <div class="people_search">
  2715. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2716. <div class="search_img" @click="getTeacher">
  2717. <img src="../../assets/icon/search.png" alt />
  2718. </div>
  2719. </div>
  2720. </div>
  2721. <div class="people_nav">选择成员</div>
  2722. </div>
  2723. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  2724. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2725. <div class="t_j_box">
  2726. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2727. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2728. </el-tooltip>
  2729. <el-tooltip placement="top" :content="item.username">
  2730. <span>{{ item.username }}</span>
  2731. </el-tooltip>
  2732. <el-tooltip placement="top" :content="item.school">
  2733. <span>{{ item.school }}</span>
  2734. </el-tooltip>
  2735. </div>
  2736. </el-checkbox>
  2737. </el-checkbox-group>
  2738. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2739. </div>
  2740. <span slot="footer" class="dialog-footer">
  2741. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2742. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2743. </span>
  2744. </el-dialog>
  2745. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2746. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  2747. <div style="height:100%">
  2748. <div class="a_add_title" style="
  2749. display: flex;
  2750. flex-direction: row;
  2751. align-items: center;
  2752. justify-content: center;
  2753. ">
  2754. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  2755. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2756. </div>
  2757. <div class="a_addBox" style="height:calc(100% - 50px)">
  2758. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  2759. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2760. <div class="a_add_checkType">
  2761. <span :class="{
  2762. active:
  2763. askJson.askJson[index1].type == '1' ||
  2764. !askJson.askJson[index1].type,
  2765. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2766. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2767. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2768. </div>
  2769. <div class="a_add_head">
  2770. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  2771. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2772. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  2773. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  2774. </div>
  2775. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  2776. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  2777. </div>
  2778. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  2779. </div>
  2780. <div class="a_add_head_div">
  2781. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2782. </el-button>
  2783. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  2784. </div>
  2785. </div>
  2786. <div class="a_add_body">
  2787. <div class="a_add_input" style="flex-direction: column;">
  2788. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2789. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  2790. <div style="margin-right: 10px">
  2791. 选项{{ checkIndex + 1 }}
  2792. </div>
  2793. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  2794. " placeholder="请输入选项" style="width: 300px;" @change="() => { $forceUpdate() }"></textarea>
  2795. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  2796. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  2797. </div>
  2798. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  2799. </div>
  2800. <div class="a_add_body_div">
  2801. <el-button type="primary" size="small"
  2802. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  2803. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  2804. v-if="askJson.askJson[index1].askItem != 1">删除
  2805. </el-button>
  2806. </div>
  2807. </div>
  2808. </div>
  2809. <!-- <div class="a_add_body_div">
  2810. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2811. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2812. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2813. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2814. </el-button>
  2815. </div> -->
  2816. </div>
  2817. </div>
  2818. </div>
  2819. </div>
  2820. <span slot="footer" class="dialog-footer">
  2821. <el-button @click="closePan(4)">取 消</el-button>
  2822. <el-button type="primary" @click="addAsk">确 定</el-button>
  2823. </span>
  2824. </el-dialog>
  2825. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2826. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  2827. <div style="height:100%">
  2828. <!-- <div class="a_add_title" style="
  2829. display: flex;
  2830. flex-direction: row;
  2831. align-items: center;
  2832. justify-content: center;
  2833. ">
  2834. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2835. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2836. </div> -->
  2837. <div class="a_addBox" style="height:100%">
  2838. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  2839. <!-- 请输入题目内容 -->
  2840. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  2841. v-if="isPasteChoice">智能粘贴</button>
  2842. </div>
  2843. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2844. <div class="a_add_checkType">
  2845. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2846. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2847. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2848. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2849. </div>
  2850. <div class="a_add_head">
  2851. <div class="timuUpImg">
  2852. <div style="display: flex;align-items: center;">
  2853. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2854. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  2855. placeholder="请输入题目">
  2856. </el-input> -->
  2857. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  2858. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  2859. @change="() => { $forceUpdate() }"></textarea>
  2860. </div>
  2861. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  2862. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  2863. </div>
  2864. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  2865. </div>
  2866. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  2867. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2868. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2869. </div>
  2870. </div>
  2871. <div class="a_add_head_div">
  2872. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2873. </el-button>
  2874. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  2875. </div>
  2876. </div>
  2877. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  2878. testJson.testJson[index1].timuList.length
  2879. ">
  2880. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2881. @click.stop="previewImg(timg.src)">
  2882. <img :src="timg.src" alt="" />
  2883. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  2884. <img src="../../assets/icon/delete.png" alt="" />
  2885. </div>
  2886. </div>
  2887. </div>
  2888. <div class="a_add_body">
  2889. <div class="a_add_input a_add_input_choice">
  2890. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  2891. @change="() => { $forceUpdate() }">
  2892. <div class="radioBox">
  2893. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2894. .testItem" :key="checkIndex" :label="checkIndex">
  2895. <div style="margin-right: 10px">
  2896. 选项{{ checkIndex + 1 }}
  2897. </div>
  2898. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  2899. testJson.testJson[index1].checkList[checkIndex]
  2900. .imgType &&
  2901. testJson.testJson[index1].checkList[checkIndex]
  2902. .imgType == 1
  2903. ">
  2904. <div class="inImg" @click.stop="
  2905. previewImg(
  2906. testJson.testJson[index1].checkList[checkIndex]
  2907. .src
  2908. )
  2909. ">
  2910. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  2911. .src
  2912. " lazy />
  2913. <!-- <img :src="
  2914. testJson.testJson[index1].checkList[checkIndex]
  2915. .src
  2916. " alt="" /> -->
  2917. </div>
  2918. </div>
  2919. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  2920. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  2921. @change="() => { $forceUpdate() }"></textarea>
  2922. <div class="xzUpImg" @click.stop="addImg($event)">
  2923. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2924. <input type="file" accept="image/*" style="display: none"
  2925. @change="beforeUploadTi($event, index1, checkIndex)" />
  2926. </div>
  2927. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  2928. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  2929. </div>
  2930. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  2931. </div>
  2932. <div class="a_add_body_div">
  2933. <el-button type="primary" size="small"
  2934. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  2935. <el-button type="primary" size="small"
  2936. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  2937. v-if="testJson.testJson[index1].testItem != 1">删除
  2938. </el-button>
  2939. </div>
  2940. </el-radio>
  2941. </div>
  2942. </el-radio-group>
  2943. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  2944. @change="() => { $forceUpdate() }">
  2945. <div class="radioBox">
  2946. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2947. .testItem" :key="checkIndex1" :label="checkIndex1">
  2948. <div style="margin-right: 10px">
  2949. 选项{{ checkIndex1 + 1 }}
  2950. </div>
  2951. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  2952. testJson.testJson[index1].checkList[checkIndex1]
  2953. .imgType &&
  2954. testJson.testJson[index1].checkList[checkIndex1]
  2955. .imgType == 1
  2956. ">
  2957. <div class="inImg" @click.stop="
  2958. previewImg(
  2959. testJson.testJson[index1].checkList[checkIndex1]
  2960. .src
  2961. )
  2962. ">
  2963. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  2964. .src
  2965. " lazy />
  2966. <!-- <img :src="
  2967. testJson.testJson[index1].checkList[checkIndex1]
  2968. .src
  2969. " alt="" /> -->
  2970. </div>
  2971. </div>
  2972. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  2973. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  2974. @change="() => { $forceUpdate() }"></textarea>
  2975. <div class="xzUpImg" @click.stop="addImg($event)">
  2976. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2977. <input type="file" accept="image/*" style="display: none"
  2978. @change="beforeUploadTi($event, index1, checkIndex1)" />
  2979. </div>
  2980. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  2981. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  2982. </div>
  2983. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  2984. </div>
  2985. <div class="a_add_body_div">
  2986. <el-button type="primary" size="small"
  2987. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  2988. <el-button type="primary" size="small"
  2989. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  2990. v-if="testJson.testJson[index1].testItem != 1">删除
  2991. </el-button>
  2992. </div>
  2993. </el-checkbox>
  2994. </div>
  2995. </el-checkbox-group>
  2996. </div>
  2997. <!-- <div class="a_add_body_div">
  2998. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  2999. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  3000. v-if="testJson.testJson[index1].testItem != 1">删除
  3001. </el-button>
  3002. </div> -->
  3003. </div>
  3004. </div>
  3005. </div>
  3006. </div>
  3007. <span slot="footer" class="dialog-footer">
  3008. <el-button @click="closePan(45)">取 消</el-button>
  3009. <el-button type="primary" @click="addTest">确 定</el-button>
  3010. </span>
  3011. </el-dialog>
  3012. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  3013. :before-close="handleClose" class="dialog_diy addToolsDia">
  3014. <div class="toolChoose">
  3015. <div class="tools">
  3016. <div class="leftTools" style="
  3017. width: 100%;
  3018. padding: 0 0 15px 0;
  3019. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  3020. <div style="
  3021. display: flex;
  3022. flex-direction: row;
  3023. align-items: baseline;
  3024. flex-wrap: nowrap;
  3025. justify-content: flex-start;
  3026. position: relative;
  3027. ">
  3028. <div class="chooseWho">
  3029. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  3030. 互动类
  3031. </div>
  3032. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  3033. 思维类
  3034. </div>
  3035. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3036. 评价类
  3037. </div>
  3038. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3039. 其他
  3040. </div>
  3041. </div>
  3042. </div>
  3043. <div style="min-height: 163px">
  3044. <div class="toolSort" v-if="chapToolsType == 0">
  3045. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }" @click="chapAddTools(8)">
  3046. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  3047. <img src="../../assets/icon/secondToolList/library.png" alt />
  3048. <div style="margin: 5px 0">素材库</div>
  3049. </div>
  3050. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3051. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1"><img
  3052. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3053. <!-- <div class="check" @click="chapAddTools(8)">
  3054. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  3055. <div class="checkDiv" v-else>
  3056. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3057. </div>
  3058. </div> -->
  3059. </div>
  3060. </div>
  3061. <div class="toolSort" v-if="chapToolsType == 1">
  3062. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }" @click="chapAddTools(7)">
  3063. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  3064. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  3065. <div style="margin: 5px 0">思维网格</div>
  3066. </div>
  3067. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3068. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1"><img
  3069. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3070. <!-- <div class="check" @click="chapAddTools(7)">
  3071. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  3072. <div class="checkDiv" v-else>
  3073. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3074. </div>
  3075. </div> -->
  3076. </div>
  3077. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }" @click="chapAddTools(1)">
  3078. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  3079. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  3080. <div style="margin: 5px 0">电子白板</div>
  3081. </div>
  3082. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3083. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1"><img
  3084. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3085. <!-- <div class="check" @click="chapAddTools(1)">
  3086. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  3087. <div class="checkDiv" v-else>
  3088. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3089. </div>
  3090. </div> -->
  3091. </div>
  3092. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }" @click="chapAddTools(2)">
  3093. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  3094. <img src="../../assets/icon/secondToolList/note.png" alt />
  3095. <div style="margin: 5px 0">便签</div>
  3096. </div>
  3097. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3098. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1"><img
  3099. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3100. <!-- <div class="check" @click="chapAddTools(2)">
  3101. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  3102. <div class="checkDiv" v-else>
  3103. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3104. </div>
  3105. </div> -->
  3106. </div>
  3107. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }" @click="chapAddTools(6)">
  3108. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  3109. <img src="../../assets/icon/secondToolList/doc.png" alt />
  3110. <div style="margin: 5px 0">协同文档</div>
  3111. </div>
  3112. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3113. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1"><img
  3114. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3115. <!-- <div class="check" @click="chapAddTools(6)">
  3116. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  3117. <div class="checkDiv" v-else>
  3118. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3119. </div>
  3120. </div> -->
  3121. </div>
  3122. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }" @click="chapAddTools(3)">
  3123. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  3124. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  3125. <div style="margin: 5px 0">思维导图</div>
  3126. </div>
  3127. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3128. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1"><img
  3129. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3130. <!-- <div class="check" @click="chapAddTools(3)">
  3131. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  3132. <div class="checkDiv" v-else>
  3133. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3134. </div>
  3135. </div> -->
  3136. </div>
  3137. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }" @click="chapAddTools(31)">
  3138. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  3139. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  3140. <div style="margin: 5px 0">数学画板</div>
  3141. </div>
  3142. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3143. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1"><img
  3144. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3145. <!-- <div class="check" @click="chapAddTools(31)">
  3146. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  3147. <div class="checkDiv" v-else>
  3148. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3149. </div>
  3150. </div> -->
  3151. </div>
  3152. </div>
  3153. <div class="toolSort" v-if="chapToolsType == 2">
  3154. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }" @click="chapAddTools(5)">
  3155. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  3156. <img src="../../assets/icon/thirdToolList/score.png" alt />
  3157. <div style="margin: 5px 0">量规评分</div>
  3158. </div>
  3159. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3160. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1"><img
  3161. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3162. <!-- <div class="check" @click="chapAddTools(5)">
  3163. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  3164. <div class="checkDiv" v-else>
  3165. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3166. </div>
  3167. </div> -->
  3168. </div>
  3169. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }" @click="chapAddTools(4)">
  3170. <div class="whiteBIcon" @click.stop="openTools(chapCount, 4, null)">
  3171. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  3172. <div style="margin: 5px 0">问卷调查</div>
  3173. </div>
  3174. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3175. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1"><img
  3176. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3177. <!-- <div class="check" @click="chapAddTools(4)">
  3178. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  3179. <div class="checkDiv" v-else>
  3180. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3181. </div>
  3182. </div> -->
  3183. </div>
  3184. </div>
  3185. </div>
  3186. <div>
  3187. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  3188. v-model="itemTools.toolDetail" />
  3189. </div>
  3190. </div>
  3191. </div>
  3192. </div>
  3193. <span slot="footer" class="dialog-footer">
  3194. <el-button @click="dialogVisible4 = false">取 消</el-button>
  3195. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  3196. </span>
  3197. </el-dialog>
  3198. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  3199. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  3200. <div>
  3201. <div class="a_add_title" style="
  3202. display: flex;
  3203. flex-direction: column;
  3204. align-items: flex-start;
  3205. justify-content: center;
  3206. ">
  3207. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3208. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  3209. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  3210. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  3211. </div>
  3212. </div>
  3213. <span slot="footer" class="dialog-footer">
  3214. <el-button @click="closePan(15)">取 消</el-button>
  3215. <el-button type="primary" @click="addAnswer">确 定</el-button>
  3216. </span>
  3217. </el-dialog>
  3218. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  3219. :before-close="handleClose" class="dialog_diy">
  3220. <div>
  3221. <div class="a_add_title" style="
  3222. display: flex;
  3223. flex-direction: column;
  3224. align-items: flex-start;
  3225. justify-content: center;
  3226. ">
  3227. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3228. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  3229. </div>
  3230. </div>
  3231. <span slot="footer" class="dialog-footer">
  3232. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  3233. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  3234. </span>
  3235. </el-dialog>
  3236. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  3237. :before-close="handleClose" class="dialog_diy">
  3238. <div>
  3239. <div class="fileCss" style="padding-top: 20px">
  3240. <div>
  3241. <button class="info_btn" @click="addImg($event)">
  3242. 选择本地文件
  3243. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  3244. </button>
  3245. <div class="spanName">选择本地文件</div>
  3246. </div>
  3247. <div>
  3248. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  3249. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  3250. <img :src="cover[0].url" alt="" />
  3251. <div class="deletePic" @click="deleteSysPic">
  3252. <img src="../../assets/icon/delete.png" alt="" />
  3253. </div>
  3254. </div>
  3255. <div class="spanName">选择系统文件</div>
  3256. </div>
  3257. <div>
  3258. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  3259. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  3260. <img :src="cover[0].url" alt="" />
  3261. <div class="deletePic" @click="deleteSysPic">
  3262. <img src="../../assets/icon/delete.png" alt="" />
  3263. </div>
  3264. </div>
  3265. <div class="spanName">选择网络文件</div>
  3266. </div>
  3267. </div>
  3268. <!-- <div class="fileCss">
  3269. </div> -->
  3270. </div>
  3271. <span slot="footer" class="dialog-footer">
  3272. <el-button @click="choosePicVisible = false">取 消</el-button>
  3273. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  3274. </span>
  3275. </el-dialog>
  3276. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  3277. :before-close="handleClose" class="dialog_diy">
  3278. <div class="cru_selectBox" style="margin: 0">
  3279. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  3280. 绘画
  3281. </div>
  3282. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  3283. 科技
  3284. </div>
  3285. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  3286. 人文
  3287. </div>
  3288. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  3289. 艺术
  3290. </div>
  3291. </div>
  3292. <div class="sysPicBox">
  3293. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  3294. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  3295. </div>
  3296. </div>
  3297. </el-dialog>
  3298. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  3299. :before-close="handleClose" class="dialog_diy">
  3300. <div>
  3301. <div class="people_top_right" style="display: flex;align-items: center;">
  3302. <div style="position: relative; width: 100%;">
  3303. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  3304. @keyup.enter.native="resetImage()"></el-input>
  3305. <div class="search_img" @click="resetImage" style="right: 10px;">
  3306. <img src="../../assets/icon/search.png" alt />
  3307. </div>
  3308. </div>
  3309. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  3310. </div>
  3311. <div class="sysPicBox" v-loading="imageloading">
  3312. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  3313. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  3314. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  3315. </div>
  3316. </div>
  3317. </div>
  3318. </el-dialog>
  3319. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  3320. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  3321. <div v-if="selectJson" style="height:100%">
  3322. <div class="select_box1" v-if="selectSteps == 1">
  3323. <div class="select_box1_img">
  3324. <div class="select_box1_title">
  3325. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  3326. </div>
  3327. <div class="select_box1_add_img">
  3328. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  3329. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  3330. <img src="../../assets/icon/addPoster.png" alt="" />
  3331. </div>
  3332. <div class="isSysPic" v-else>
  3333. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3334. <div class="deletePic" @click="deleteSelectPic">
  3335. <img src="../../assets/icon/delete.png" alt="" />
  3336. </div>
  3337. </div>
  3338. </div>
  3339. </div>
  3340. <div class="select_box1_select">
  3341. <div class="select_box1_title">
  3342. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  3343. </div>
  3344. <div class="select_box1_select_box">
  3345. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  3346. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  3347. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  3348. <div class="select_box1_select_box_add">
  3349. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  3350. 添加</el-button>
  3351. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  3352. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  3353. </div>
  3354. </div>
  3355. </div>
  3356. </div>
  3357. <div v-if="selectSteps == 2" style="height:100%">
  3358. <div class="select_box2">
  3359. <div class="select_box2_title">设置每道题目的正确选项</div>
  3360. <div class="select_box2_box">
  3361. <div class="select_box2_img">
  3362. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3363. </div>
  3364. <div class="select_box2_answer">
  3365. <div class="select_answer_title">根据题目选择对应答案</div>
  3366. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  3367. <span>{{ checkIndex + 1 }}、</span>
  3368. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  3369. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  3370. </el-option>
  3371. </el-select>
  3372. </div>
  3373. </div>
  3374. </div>
  3375. </div>
  3376. </div>
  3377. </div>
  3378. <span slot="footer" class="dialog-footer">
  3379. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  3380. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  3381. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  3382. </span>
  3383. </el-dialog>
  3384. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  3385. :before-close="handleClose" class="dialog_diy">
  3386. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  3387. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  3388. <div class="pjCss" style="width: 100%">
  3389. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  3390. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  3391. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  3392. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  3393. <div class="remove" @click="deletRateList(eIndex)"></div>
  3394. <div style="width: 100%; display: flex">
  3395. <span style="min-width: 100px; text-align: right">评星等级:</span>
  3396. <el-rate v-model="eItem.score" disabled></el-rate>
  3397. </div>
  3398. <div class="elist_inptu_text" style="align-items: flex-start">
  3399. <span style="min-width: 100px; text-align: right">描述:</span>
  3400. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  3401. </div>
  3402. </div>
  3403. </div>
  3404. <div class="addToolFun" @click="addRateList()">
  3405. <div class="addToolImg">
  3406. <img src="../../assets/icon/add.png" alt />
  3407. </div>
  3408. <div>添加</div>
  3409. </div>
  3410. </div>
  3411. </div>
  3412. <span slot="footer" class="dialog-footer">
  3413. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  3414. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  3415. </span>
  3416. </el-dialog>
  3417. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  3418. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  3419. <div style="height: 100%;">
  3420. <div class="sentenBox" style="height: 100%;">
  3421. <div class="addSen" @click="addSt">添加题目</div>
  3422. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  3423. <div class="sentenTopBox">
  3424. <div class="sentenTop" :index="stIndex + 1">
  3425. <div>题目设置</div>
  3426. <div>
  3427. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  3428. </div>
  3429. <div @click="addSen(stIndex)">添加</div>
  3430. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  3431. </div>
  3432. </div>
  3433. <div class="cardList">
  3434. <div v-if="st.addSentence.length > 0" class="cardBox">
  3435. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  3436. @click="setRightAnswer(s, stIndex, sIndex)">
  3437. <el-tooltip class="item" effect="light" :content="s" placement="top">
  3438. <div>{{ s }}</div>
  3439. </el-tooltip>
  3440. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  3441. <img src="../../assets/icon/delete.png" alt="" />
  3442. </div>
  3443. </div>
  3444. </div>
  3445. <div class="card">
  3446. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  3447. </div>
  3448. </div>
  3449. <div class="rightCardBox">
  3450. <div>正确顺序</div>
  3451. <div class="rightCardList">
  3452. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  3453. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  3454. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  3455. <el-tooltip class="item" effect="light" :content="r" placement="top">
  3456. <div>{{ r }}</div>
  3457. </el-tooltip>
  3458. </div>
  3459. <div>{{ rIndex + 1 }}</div>
  3460. </div>
  3461. </div>
  3462. <div class="card" v-if="st.rightAnswer.length == 0">
  3463. <img src="../../assets/icon/conSentences/noAnswer.png" alt="" />
  3464. </div>
  3465. <div class="card" v-else>
  3466. <img src="../../assets/icon/conSentences/clickNo.png" alt="" />
  3467. </div>
  3468. </div>
  3469. </div>
  3470. </div>
  3471. </div>
  3472. </div>
  3473. <span slot="footer" class="dialog-footer">
  3474. <el-button @click="closePan(47)">取 消</el-button>
  3475. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  3476. </span>
  3477. </el-dialog>
  3478. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  3479. :before-close="handleClose" class="dialog_diy">
  3480. <el-form>
  3481. <!-- <el-form-item label="文本标题">
  3482. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3483. </el-form-item> -->
  3484. <div>表格内容</div>
  3485. <Table v-model="tableJson.text" @change="change"></Table>
  3486. </el-form>
  3487. <span slot="footer" class="dialog-footer">
  3488. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  3489. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  3490. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  3491. </span>
  3492. </el-dialog>
  3493. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  3494. :before-close="handleClose" class="dialog_diy">
  3495. <el-form>
  3496. <!-- <el-form-item label="文本标题">
  3497. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3498. </el-form-item> -->
  3499. <div>文档内容</div>
  3500. <editor-bar v-model="wordJson.text"></editor-bar>
  3501. </el-form>
  3502. <span slot="footer" class="dialog-footer">
  3503. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  3504. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  3505. </span>
  3506. </el-dialog>
  3507. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  3508. :before-close="handleClose" class="dialog_diy">
  3509. <div style="
  3510. width: 100%;
  3511. display: flex;
  3512. flex-direction: row;
  3513. flex-wrap: nowrap;
  3514. align-items: center;
  3515. justify-content: center;
  3516. ">
  3517. <div>班级:</div>
  3518. <el-select multiple v-model="uploadJson" placeholder="请选择">
  3519. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  3520. </el-option>
  3521. </el-select>
  3522. </div>
  3523. <span slot="footer" class="dialog-footer">
  3524. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  3525. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  3526. </span>
  3527. </el-dialog>
  3528. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  3529. :before-close="handleClose" class="dialog_diy">
  3530. <div style="
  3531. width: 100%;
  3532. display: flex;
  3533. flex-direction: row;
  3534. flex-wrap: nowrap;
  3535. align-items: center;
  3536. justify-content: center;
  3537. ">
  3538. <div>随机码:</div>
  3539. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  3540. </div>
  3541. <span slot="footer" class="dialog-footer">
  3542. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  3543. <el-button type="primary" @click="addInvite">确定</el-button>
  3544. </span>
  3545. </el-dialog>
  3546. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  3547. :before-close="handleClose" class="dialog_diy">
  3548. <div>
  3549. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  3550. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  3551. </div>
  3552. <span slot="footer" class="dialog-footer">
  3553. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  3554. <el-button type="primary" @click="addPreTime">确定</el-button>
  3555. </span>
  3556. </el-dialog>
  3557. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3558. class="dialog_diy">
  3559. <div>
  3560. <div style="
  3561. width: 100%;
  3562. display: flex;
  3563. flex-direction: row;
  3564. flex-wrap: nowrap;
  3565. align-content: center;
  3566. align-items: center;
  3567. justify-content: space-between;
  3568. ">
  3569. <div style="
  3570. display: flex;
  3571. flex-flow: row nowrap;
  3572. align-items: flex-start;
  3573. width: 100%;
  3574. flex-direction: column;
  3575. flex-wrap: nowrap;
  3576. position: relative;
  3577. ">
  3578. <div class="e_box">
  3579. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  3580. <div class="e_card_picture">
  3581. <img src="../../assets/e_picture.png" />
  3582. </div>
  3583. <div class="e_card_name">
  3584. <span>{{ item.title }}</span>
  3585. </div>
  3586. <div class="e_card_btn">
  3587. <span @click="checkEva(item.id, 2)">导入</span>
  3588. </div>
  3589. </div> -->
  3590. <!-- <div class="addEva" @click="openT">
  3591. <img src="../../assets/icon/addEva.png" alt="" />
  3592. </div> -->
  3593. <div style="display:flex;justify-content: flex-end;margin-bottom: 10px;"><el-button @click="openT" type="primary" size="small">添加目标</el-button></div>
  3594. <el-table
  3595. v-if="evaJuri.length"
  3596. ref="table"
  3597. :data="evaJuri"
  3598. border
  3599. :fit="true"
  3600. style="width: 100%"
  3601. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  3602. :row-class-name="tableRowClassName"
  3603. >
  3604. <el-table-column
  3605. label="目标名称"
  3606. min-width="15"
  3607. align="center"
  3608. prop="title"
  3609. >
  3610. </el-table-column>
  3611. <el-table-column
  3612. prop="username"
  3613. label="负责人"
  3614. min-width="15"
  3615. align="center"
  3616. >
  3617. </el-table-column>
  3618. <el-table-column label="操作" width="250px">
  3619. <template slot-scope="scope">
  3620. <div class="btnBox">
  3621. <el-button
  3622. type="primary"
  3623. size="small"
  3624. @click="checkEva(scope.row.id, 2)"
  3625. >导入</el-button
  3626. >
  3627. </div>
  3628. </template>
  3629. </el-table-column>
  3630. </el-table>
  3631. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  3632. 暂无数据
  3633. </div>
  3634. </div>
  3635. </div>
  3636. </div>
  3637. </div>
  3638. <span slot="footer" class="dialog-footer">
  3639. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  3640. </span>
  3641. </el-dialog>
  3642. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  3643. :before-close="handleClose" class="dialog_diy">
  3644. <div class="groupBox">
  3645. <div v-if="groupJson.group" class="groupContent">
  3646. <div class="groupTitle">请设置小组数量及名称</div>
  3647. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  3648. <span class="groupn">第{{ index + 1 }}组名称:</span>
  3649. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3650. <div class="groupBtn">
  3651. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  3652. 添加</el-button>
  3653. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3654. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  3655. </div>
  3656. </div>
  3657. </div>
  3658. <div class="groupContent">
  3659. <div class="groupTitle">请设置每组人数</div>
  3660. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3661. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3662. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  3663. @change="numberPan"></el-input>
  3664. </div>
  3665. </div>
  3666. <span slot="footer" class="dialog-footer">
  3667. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3668. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3669. </span>
  3670. </el-dialog>
  3671. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  3672. :before-close="handleClose" class="dialog_diy">
  3673. <div style="
  3674. width: 100%;
  3675. display: flex;
  3676. flex-direction: row;
  3677. flex-wrap: nowrap;
  3678. align-items: center;
  3679. justify-content: center;
  3680. ">
  3681. <div style="min-width: fit-content;">文件名称:</div>
  3682. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  3683. </div>
  3684. <span slot="footer" class="dialog-footer">
  3685. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  3686. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  3687. </span>
  3688. </el-dialog>
  3689. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  3690. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  3691. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  3692. <div class="change_stageBox">
  3693. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  3694. <div class="nt_taskBox">
  3695. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  3696. <div class="nt_taskName">
  3697. <el-tooltip effect="light" :content="t.dyName" placement="top">
  3698. <span>{{ t.dyName }}</span>
  3699. </el-tooltip>
  3700. </div>
  3701. </div>
  3702. <div class="moveBtn" v-if="unitJson3.length > 1">
  3703. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)">
  3704. </div>
  3705. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  3706. </div>
  3707. </div>
  3708. </div>
  3709. <span slot="footer" class="dialog-footer">
  3710. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  3711. <el-button type="primary" @click="updateChange">确定</el-button>
  3712. </span>
  3713. </el-dialog>
  3714. </div>
  3715. </template>
  3716. <script>
  3717. import "../../common/aws-sdk-2.235.1.min.js";
  3718. import { tools as toolsData } from "../../common/tools.js";
  3719. // import "../../common/aws-sdk-2.99.0.min.js";
  3720. import $ from "jquery";
  3721. import EditorBar from "../../components/tools/wangEnduit";
  3722. import Table from "../../components/tools/table";
  3723. import Mind from "../tools/jsmind2";
  3724. import Time from "../tools/time.vue";
  3725. import Sunburst from "../tools/sunburst";
  3726. import SeeBoard from "../tools/seeBoard";
  3727. import weilaiData from "./components/weilai.js";
  3728. import sourceDialog from "./teacherSource/dialog.vue";
  3729. import interVideo from "./interVideo/index.vue";
  3730. export default {
  3731. components: {
  3732. EditorBar,
  3733. Mind,
  3734. Time,
  3735. Sunburst,
  3736. SeeBoard,
  3737. Table,
  3738. sourceDialog,
  3739. interVideo,
  3740. },
  3741. data() {
  3742. return {
  3743. checkAll: false,
  3744. chooseType: 1,
  3745. checkedCities: [],
  3746. isIndeterminate: true,
  3747. isSysPic: false,
  3748. isSysPic2: false,
  3749. steps: 1,
  3750. nbOrder: 0,
  3751. courseId: "",
  3752. chapToolsType: 0,
  3753. chapTools: [
  3754. {
  3755. tools: [],
  3756. toolDetail: "",
  3757. },
  3758. ],
  3759. line: "",
  3760. lineTitle: "",
  3761. sysPic: [],
  3762. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3763. sentenceList2: [],
  3764. isPushTitleList: [],
  3765. lineCount: 0,
  3766. lineType: 0,
  3767. chapCount: 0,
  3768. courseName: "",
  3769. isTeacherSee: false,
  3770. courseText: "",
  3771. preTime: 0,
  3772. formLabelWidth: "100px",
  3773. choosePicVisible: false,
  3774. sysPicVisible: false,
  3775. sysPicVisible2: false,
  3776. uploadLoading1: false,
  3777. noneBtnImg: false,
  3778. updateBoolean2: false,
  3779. unitIndex: 0,
  3780. taskCount: 0,
  3781. dialogVisible: false,
  3782. dialogVisible1: false,
  3783. dialogVisible2: false,
  3784. dialogVisible3: false,
  3785. dialogVisible4: false,
  3786. dialogVisible5: false,
  3787. dialogVisible6: false,
  3788. dialogVisible7: false,
  3789. dialogVisible8: false,
  3790. dialogVisible9: false,
  3791. dialogVisibleClass: false,
  3792. dialogVisibleMember: false,
  3793. dialogVisibleMp3: false,
  3794. dialogVisibleSelect: false,
  3795. dialogVisibleSentence: false,
  3796. dialogVisibleRate: false,
  3797. dialogVisibleChoice: false,
  3798. dialogVisiblemb: false,
  3799. dialogVisibleInvite: false,
  3800. dialogVisibleSource: false,
  3801. dialogVisibleVideo: false,
  3802. dialogVisibleStageChange: false,
  3803. dialogVisibleupdataVideoT: false,
  3804. isClickColor: 1,
  3805. toolIndexType: "",
  3806. publicTool: 0,
  3807. searchPeople: "",
  3808. searchTN: "",
  3809. userid: this.$route.query.userid,
  3810. oid: this.$route.query.oid,
  3811. org: this.$route.query.org,
  3812. role: this.$route.query.role,
  3813. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  3814. dialogVisibleTable: false,
  3815. dialogVisibleWord: false,
  3816. tableJson: { text: "" },
  3817. wordJson: { text: "" },
  3818. dialogVisibleMoreUpload: false,
  3819. dialogVisiblePreTime: false,
  3820. uploadJson: [],
  3821. classJuri: [],
  3822. gradeList: [],
  3823. cover: [], //课程封面
  3824. myWord: [],
  3825. evaJuri: [],
  3826. evalua: "",
  3827. targetArray: [],
  3828. eTitle: "",
  3829. eJson: {},
  3830. fid: "", //一级
  3831. sid: "", //二级
  3832. tid: "", //二级
  3833. typeMode: 1,
  3834. eJSONNum: 0,
  3835. data: {
  3836. meta: {
  3837. name: "example",
  3838. author: "dd@163.com",
  3839. version: "0.2",
  3840. },
  3841. format: "node_array",
  3842. data: [{ id: "root", isroot: true, topic: "" }],
  3843. },
  3844. askJson: {
  3845. askCount: 1,
  3846. askTitle: "",
  3847. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3848. },
  3849. askJson2: {},
  3850. testJson: {},
  3851. testJson2: {},
  3852. selectJson: {},
  3853. selectJson2: {},
  3854. rateJson: [],
  3855. unitJson2: [],
  3856. unitJson3: [],
  3857. unitJson: [
  3858. {
  3859. dyName: "", //单元标题
  3860. chapterInfo: [
  3861. {
  3862. isread: false,
  3863. chapterid: this.guid(),
  3864. title: "",
  3865. courseName: "",
  3866. taskJson: [
  3867. {
  3868. task: "",
  3869. taskDetail: "",
  3870. chapterData: [],
  3871. toolText: "",
  3872. toolChoose: [
  3873. {
  3874. tool: [],
  3875. toolDetail: "",
  3876. toolType: 0,
  3877. askCount: 1,
  3878. askTitle: "",
  3879. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3880. },
  3881. ],
  3882. isShowTools: false,
  3883. askCount: 1,
  3884. isFold: 0,
  3885. askTitle: "",
  3886. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3887. checkJson: [{ checkCount: [], checkPerent: [] }],
  3888. homeworkList: [],
  3889. },
  3890. ],
  3891. itemCount: 1,
  3892. fileList1: [],
  3893. video: [],
  3894. testData: [],
  3895. pData: [],
  3896. templateArray: [],
  3897. },
  3898. ],
  3899. },
  3900. ],
  3901. studentJuri: [],
  3902. teacherJuri: [],
  3903. checkboxList: [],
  3904. checkboxList2: [],
  3905. checkboxList3: [],
  3906. classSearch: "",
  3907. gradeId: "",
  3908. number: "",
  3909. tTitle: "",
  3910. tdetail: "",
  3911. templateC: {},
  3912. AttText: {},
  3913. AttTextType: 0,
  3914. AttTextIndex: 0,
  3915. cTemplate: "",
  3916. CourseType: [],
  3917. CourseType2: [],
  3918. CourseTypeJson: {},
  3919. courseTypeId: [],
  3920. courseTypeSon: [],
  3921. clearArray: [],
  3922. pTypeCheck: [],
  3923. pTypeCheckName: [],
  3924. loading: false,
  3925. toolType: 0,
  3926. inputShow: true,
  3927. inputShow2: true,
  3928. toolIndex: 0,
  3929. cidType: 0,
  3930. answerQ: "",
  3931. answerQ2: "",
  3932. grade: [],
  3933. grade2: [],
  3934. courseUserid: "",
  3935. timer: null,
  3936. timer2: null,
  3937. pasteTimer: null,
  3938. checkId: "",
  3939. isDelete: 1,
  3940. addindex: 0,
  3941. selectSteps: 1,
  3942. groupJson: {},
  3943. dialogVisibleGroup: false,
  3944. rightBoxHeight: 0,
  3945. ManAarray: [],
  3946. checkBoolean: false,
  3947. inviteCode: [],
  3948. inviteId: "",
  3949. icode: "",
  3950. easyArray: [2, 4],
  3951. sourceData: {},
  3952. updateSourcePan: false,
  3953. videoJson: {},
  3954. isBtnDisplay: false,
  3955. isStepDisplay: false,
  3956. isPasteStage: false,
  3957. isPasteTask: false,
  3958. isPasteChoice: false,
  3959. imageList: [],
  3960. imageloading: false,
  3961. searchImageValue: "",
  3962. ppage: 1,
  3963. toolsData: toolsData,
  3964. oldIndex: 0,
  3965. oldData: null,
  3966. newIndex: "",
  3967. typeIndex: "",
  3968. };
  3969. },
  3970. directives: {
  3971. autoHeight: {
  3972. update(el, binding) {
  3973. const { value } = binding
  3974. if (value && typeof value === 'number') {
  3975. el.style.height = `${value}px`
  3976. } else {
  3977. el.style.height = 'auto'
  3978. }
  3979. },
  3980. componentUpdated(el) {
  3981. el.style.height = `${el.scrollHeight + 5}px`
  3982. },
  3983. },
  3984. },
  3985. computed: {
  3986. // rightBoxHeight: function () {
  3987. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  3988. // },
  3989. offsetLetfPx: function () {
  3990. //addnum可以直接在模板语法里面用,相当于data内的值
  3991. return (
  3992. $(".cru_select")[this.unitIndex] &&
  3993. $(".cru_select")[this.unitIndex].offsetLeft + 5
  3994. );
  3995. },
  3996. getMan2() {
  3997. return function (people) {
  3998. let _people = people;
  3999. let _people2 = "";
  4000. if (this.ManAarray.length) {
  4001. for (var i = 0; i < this.ManAarray.length; i++) {
  4002. if (this.ManAarray[i].userid == people) {
  4003. _people2 = this.ManAarray[i].name;
  4004. break;
  4005. }
  4006. }
  4007. }
  4008. if (people == this.courseUserid) {
  4009. return "";
  4010. }
  4011. return this.ManAarray.length ? _people2 : "";
  4012. };
  4013. },
  4014. getListMan2() {
  4015. return function (list) {
  4016. let _people2 = [];
  4017. if (this.ManAarray.length) {
  4018. for (var j = 0; j < list.length; j++) {
  4019. let people = list[j];
  4020. for (var i = 0; i < this.ManAarray.length; i++) {
  4021. if (this.ManAarray[i].userid == people && people != this.courseUserid) {
  4022. _people2.push(this.ManAarray[i].name);
  4023. break;
  4024. }
  4025. }
  4026. }
  4027. }
  4028. return this.ManAarray.length ? _people2.join("、") : "";
  4029. };
  4030. },
  4031. isInvite() {
  4032. return function (cid) {
  4033. let array = [];
  4034. for (var i = 0; i < this.inviteCode.length; i++) {
  4035. array.push(this.inviteCode[i].cid);
  4036. }
  4037. return array.indexOf(cid) != -1;
  4038. };
  4039. },
  4040. getInviteCodeC() {
  4041. return function (cid) {
  4042. let array = [];
  4043. for (var i = 0; i < this.inviteCode.length; i++) {
  4044. array.push(this.inviteCode[i].cid);
  4045. }
  4046. return this.inviteCode[array.indexOf(cid)].ic;
  4047. };
  4048. },
  4049. getClassC() {
  4050. return function (c) {
  4051. let _c2 = "";
  4052. if (this.grade.length) {
  4053. for (var i = 0; i < this.grade.length; i++) {
  4054. if (this.grade[i].id == c) {
  4055. _c2 = this.grade[i].name;
  4056. break;
  4057. }
  4058. }
  4059. }
  4060. return this.grade.length ? _c2 : "";
  4061. };
  4062. },
  4063. getListClassC() {
  4064. return function (list) {
  4065. let _c2 = [];
  4066. if (this.grade.length) {
  4067. for (var j = 0; j < list.length; j++) {
  4068. let c = list[j]
  4069. for (var i = 0; i < this.grade.length; i++) {
  4070. if (this.grade[i].id == c) {
  4071. _c2.push(this.grade[i].name);
  4072. break;
  4073. }
  4074. }
  4075. }
  4076. }
  4077. return this.grade.length ? _c2.join('、') : "";
  4078. };
  4079. },
  4080. },
  4081. watch: {
  4082. unitIndex(newValue, oldValue) {
  4083. if (this.isDelete == 2) {
  4084. this.isDelete = 1;
  4085. return;
  4086. }
  4087. if (this.cid != "") {
  4088. let _unitIndex = oldValue;
  4089. if (
  4090. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4091. JSON.stringify(this.unitJson[_unitIndex])
  4092. ) {
  4093. this.$refs.rightboxR.scrollTop = 0;
  4094. return;
  4095. }
  4096. let cPan = 1;
  4097. for (
  4098. var j = 0;
  4099. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4100. j++
  4101. ) {
  4102. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4103. j
  4104. ].proVisible = false;
  4105. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4106. j
  4107. ].proVisible2 = false;
  4108. if (
  4109. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4110. .length > 1
  4111. ) {
  4112. for (
  4113. var z = 0;
  4114. z <
  4115. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4116. .length;
  4117. z++
  4118. ) {
  4119. if (
  4120. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4121. .toolChoose[z].tool.length
  4122. ) {
  4123. this.$message.error("请把工具添加完整");
  4124. cPan = 2;
  4125. break;
  4126. }
  4127. }
  4128. }
  4129. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4130. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4131. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4132. (ele) => {
  4133. return ele.value != "";
  4134. }
  4135. );
  4136. }
  4137. }
  4138. if (cPan == 2) {
  4139. this.unitIndex = oldValue;
  4140. return;
  4141. }
  4142. for (var i = 0; i < this.unitJson.length; i++) {
  4143. if (this.addindex != i) {
  4144. delete this.unitJson[i].isUpdate;
  4145. }
  4146. }
  4147. this.$refs.rightboxR.scrollTop = 0;
  4148. this.addindex = -1;
  4149. let params = [
  4150. {
  4151. cid: this.cid,
  4152. chapters: JSON.stringify(this.unitJson),
  4153. uid: this.userid,
  4154. unitIndex: _unitIndex,
  4155. },
  4156. ];
  4157. this.ajax
  4158. .post(this.$store.state.api + "updateWorkNew4", params)
  4159. .then((res) => {
  4160. // this.$message({
  4161. // message: "修改成功",
  4162. // type: "success",
  4163. // });
  4164. // this.courseId = this.cid;
  4165. })
  4166. .catch((err) => {
  4167. this.$message.error("网络不佳");
  4168. console.error(err);
  4169. });
  4170. }
  4171. },
  4172. steps(newValue, old) {
  4173. if (newValue == 4) {
  4174. let cPan = 1;
  4175. for (var i = 0; i < this.unitJson.length; i++) {
  4176. for (
  4177. var j = 0;
  4178. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4179. j++
  4180. ) {
  4181. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4182. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4183. if (
  4184. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4185. ) {
  4186. for (
  4187. var z = 0;
  4188. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4189. z++
  4190. ) {
  4191. if (
  4192. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4193. .length
  4194. ) {
  4195. this.$message.error("请把工具添加完整");
  4196. cPan = 2;
  4197. break;
  4198. }
  4199. }
  4200. }
  4201. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4202. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4203. i
  4204. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4205. return ele.value != "";
  4206. });
  4207. }
  4208. }
  4209. }
  4210. this.inputShow = true;
  4211. if (cPan == 2) {
  4212. this.steps = old;
  4213. return;
  4214. }
  4215. this.goTo(
  4216. "/course?userid=" +
  4217. this.userid +
  4218. "&oid=" +
  4219. this.oid +
  4220. "&org=" +
  4221. this.org +
  4222. "&role=" +
  4223. this.role
  4224. );
  4225. }
  4226. },
  4227. },
  4228. methods: {
  4229. tableRowClassName({ row, rowIndex }) {
  4230. if ((rowIndex + 1) % 2 === 0) {
  4231. return "even_row";
  4232. } else {
  4233. return "";
  4234. }
  4235. },
  4236. openAI() {
  4237. window.parent.postMessage({ tools: "64" }, "*");
  4238. },
  4239. setMan() {
  4240. // let teacherJuri = this.teacherJuri2;
  4241. this.ManAarray = [];
  4242. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  4243. if (_user.indexOf(this.userid) == -1) {
  4244. _user.push(this.userid);
  4245. }
  4246. if (_user.indexOf(this.courseUserid) == -1) {
  4247. _user.push(this.courseUserid);
  4248. }
  4249. let params = {
  4250. uid: _user.join(","),
  4251. };
  4252. this.ajax
  4253. .get(this.$store.state.api + "getAllUserById", params)
  4254. .then((res) => {
  4255. let teacherJuri = res.data[0];
  4256. this.ManAarray = teacherJuri;
  4257. })
  4258. .catch((err) => {
  4259. console.error(err);
  4260. });
  4261. },
  4262. previewImg(url) {
  4263. this.$hevueImgPreview(url);
  4264. },
  4265. btnDisplay(bool) {
  4266. this.isBtnDisplay = bool
  4267. },
  4268. stepDisplay(bool) {
  4269. this.isStepDisplay = bool
  4270. },
  4271. scrollChange() {
  4272. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  4273. },
  4274. addHw(e) {
  4275. var el = e.currentTarget;
  4276. el.getElementsByTagName("input")[0].click();
  4277. },
  4278. change(val) {
  4279. if (this.dialogVisible1) {
  4280. this.tdetail = val
  4281. } else if (this.dialogVisible6) {
  4282. this.AttText.text = val
  4283. } else if (this.dialogVisible2) {
  4284. this.cTemplate = val
  4285. } else if (this.dialogVisibleTable) {
  4286. this.tableJson.text = val
  4287. }
  4288. this.$forceUpdate();
  4289. console.log(val);
  4290. },
  4291. change2(val) {
  4292. console.log(val);
  4293. this.$forceUpdate();
  4294. },
  4295. handleClose(done) {
  4296. done();
  4297. },
  4298. closePan(tool) {
  4299. if (tool == 15) {
  4300. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  4301. this.dialogVisible8 = false
  4302. } else {
  4303. this.closeConfirm(tool);
  4304. }
  4305. } else if (tool == 4) {
  4306. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  4307. this.dialogVisible5 = false
  4308. } else {
  4309. this.closeConfirm(tool);
  4310. }
  4311. } else if (tool == 45) {
  4312. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  4313. this.dialogVisibleChoice = false
  4314. } else {
  4315. this.closeConfirm(tool);
  4316. }
  4317. } else if (tool == 41) {
  4318. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  4319. this.dialogVisibleSelect = false
  4320. } else {
  4321. this.closeConfirm(tool);
  4322. }
  4323. } else if (tool == 47) {
  4324. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  4325. this.dialogVisibleSentence = false
  4326. } else {
  4327. this.closeConfirm(tool);
  4328. }
  4329. }
  4330. },
  4331. closeConfirm(tool) {
  4332. this
  4333. .$confirm("是否保存已编辑内容?", "提示", {
  4334. confirmButtonText: "保存",
  4335. cancelButtonText: "不保存",
  4336. type: "warning",
  4337. })
  4338. .then(() => {
  4339. if (tool == 15) {
  4340. this.addAnswer();
  4341. } else if (tool == 4) {
  4342. this.addAsk();
  4343. } else if (tool == 45) {
  4344. this.addTest();
  4345. } else if (tool == 41) {
  4346. this.addSelectAnswer();
  4347. } else if (tool == 47) {
  4348. this.addSentenceTool();
  4349. }
  4350. })
  4351. .catch(() => {
  4352. if (tool == 15) {
  4353. this.dialogVisible8 = false;
  4354. } else if (tool == 4) {
  4355. this.dialogVisible5 = false;
  4356. } else if (tool == 45) {
  4357. this.dialogVisibleChoice = false;
  4358. } else if (tool == 41) {
  4359. this.dialogVisibleSelect = false;
  4360. } else if (tool == 47) {
  4361. this.dialogVisibleSentence = false;
  4362. }
  4363. });
  4364. },
  4365. imgChange2(i, j) {
  4366. var _tmp = this.testJson.testJson[i].checkList[j];
  4367. this.noneBtnImg = _tmp.length >= 1;
  4368. },
  4369. imgChange3(i) {
  4370. var _tmp = this.testJson.testJson[i];
  4371. this.noneBtnImg = _tmp.length >= 1;
  4372. },
  4373. imgChange1(file, fileList, type, itemTaskIndex) {
  4374. if (type == 1) {
  4375. var _tmp = this.cover;
  4376. } else if (
  4377. type == 2 ||
  4378. type == 3 ||
  4379. type == 6 ||
  4380. type == 7 ||
  4381. type == 8
  4382. ) {
  4383. var _tmp =
  4384. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4385. .chapterData;
  4386. } else if (type == 4) {
  4387. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  4388. } else {
  4389. var _tmp =
  4390. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4391. .homeworkList;
  4392. }
  4393. this.noneBtnImg = _tmp.length >= 1;
  4394. },
  4395. goTo(path) {
  4396. this.$router.push(path);
  4397. },
  4398. guid() {
  4399. var _num,
  4400. i,
  4401. _guid = "";
  4402. for (i = 0; i < 32; i++) {
  4403. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4404. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4405. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4406. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4407. _guid += "-";
  4408. }
  4409. }
  4410. return _guid;
  4411. },
  4412. retrunCourse() {
  4413. this
  4414. .$confirm("是否保存已编辑内容?", "提示", {
  4415. confirmButtonText: "保存",
  4416. cancelButtonText: "不保存",
  4417. distinguishCancelAndClose: true,
  4418. type: "warning",
  4419. })
  4420. .then(() => {
  4421. if (this.cid == "" || this.cid == undefined) {
  4422. if (this.courseName == "") {
  4423. this.$message.error("请补充填写课程名称");
  4424. return;
  4425. } else {
  4426. this.addWork();
  4427. }
  4428. this.steps = 4
  4429. } else {
  4430. if (this.courseName == "") {
  4431. this.$message.error("请补充填写课程名称");
  4432. return;
  4433. } else {
  4434. if (this.userid != this.courseUserid && this.role != "1") {
  4435. this.updateWork2();
  4436. } else {
  4437. this.updateWork();
  4438. }
  4439. this.steps = 4
  4440. }
  4441. }
  4442. })
  4443. .catch((v) => {
  4444. console.log(v)
  4445. if(v == "cancel"){
  4446. this.goTo(
  4447. "/course?userid=" +
  4448. this.userid +
  4449. "&oid=" +
  4450. this.oid +
  4451. "&org=" +
  4452. this.org +
  4453. "&role=" +
  4454. this.role
  4455. );
  4456. }
  4457. });
  4458. },
  4459. lastSteps() {
  4460. if (this.steps == 4) {
  4461. this.goTo(
  4462. "/course?userid=" +
  4463. this.userid +
  4464. "&oid=" +
  4465. this.oid +
  4466. "&org=" +
  4467. this.org +
  4468. "&role=" +
  4469. this.role
  4470. );
  4471. } else {
  4472. if (this.cidType == 0) {
  4473. this.steps--;
  4474. if (this.steps == 1) {
  4475. setTimeout(() => {
  4476. this.checkEva(this.checkId);
  4477. setTimeout(() => {
  4478. this.checkEva(this.checkId);
  4479. }, 100);
  4480. }, 100);
  4481. }
  4482. } else {
  4483. if (this.steps == 3) {
  4484. this.steps = 1;
  4485. setTimeout(() => {
  4486. this.checkEva(this.checkId);
  4487. setTimeout(() => {
  4488. this.checkEva(this.checkId);
  4489. }, 100);
  4490. }, 100);
  4491. }
  4492. }
  4493. }
  4494. },
  4495. navSteps(s) {
  4496. if (this.courseName == "") {
  4497. this.$message.error("请补充填写课程名称");
  4498. return;
  4499. }
  4500. if (this.cidType == 0) {
  4501. if (this.steps == 1) {
  4502. if (this.cid == "" || this.cid == undefined) {
  4503. this.addWork();
  4504. } else {
  4505. if (this.userid != this.courseUserid && this.role != "1") {
  4506. // this.updateWork2();
  4507. } else {
  4508. this.updateWork();
  4509. }
  4510. }
  4511. }
  4512. if (s == 1) {
  4513. this.steps = 1;
  4514. setTimeout(() => {
  4515. this.checkEva(this.checkId);
  4516. setTimeout(() => {
  4517. this.checkEva(this.checkId);
  4518. }, 100);
  4519. }, 100);
  4520. }
  4521. if (s == 2) {
  4522. this.steps = 2;
  4523. }
  4524. if (s == 3) {
  4525. this.cTemplate = this.templateC.content;
  4526. this.dialogVisible2 = false;
  4527. this.steps = 3;
  4528. this.isClickColor = 1
  4529. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4530. this.$forceUpdate();
  4531. setTimeout(() => {
  4532. this.checkEva(this.checkId);
  4533. setTimeout(() => {
  4534. this.checkEva(this.checkId);
  4535. }, 100);
  4536. }, 1000);
  4537. }
  4538. } else {
  4539. if (this.steps == 1) {
  4540. if (this.cid == "" || this.cid == undefined) {
  4541. this.addWork();
  4542. } else {
  4543. if (this.userid != this.courseUserid && this.role != "1") {
  4544. // this.updateWork2();
  4545. } else {
  4546. this.updateWork();
  4547. }
  4548. }
  4549. }
  4550. if (s == 1) {
  4551. this.steps = 1;
  4552. setTimeout(() => {
  4553. this.checkEva(this.checkId);
  4554. setTimeout(() => {
  4555. this.checkEva(this.checkId);
  4556. }, 100);
  4557. }, 100);
  4558. }
  4559. if (s == 3) {
  4560. this.cTemplate = this.templateC.content;
  4561. this.dialogVisible2 = false;
  4562. this.steps = 3;
  4563. this.isClickColor = 1
  4564. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4565. this.$forceUpdate();
  4566. setTimeout(() => {
  4567. this.checkEva(this.checkId);
  4568. setTimeout(() => {
  4569. this.checkEva(this.checkId);
  4570. }, 100);
  4571. }, 1000);
  4572. }
  4573. }
  4574. this.$refs.stepBox.scrollTop = 0;
  4575. },
  4576. nextSteps() {
  4577. if (this.cidType == 1) {
  4578. if (this.steps == 1) {
  4579. if (this.courseName != "") {
  4580. this.steps = 3;
  4581. this.isClickColor = 1
  4582. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4583. this.$forceUpdate();
  4584. setTimeout(() => {
  4585. this.checkEva(this.checkId);
  4586. setTimeout(() => {
  4587. this.checkEva(this.checkId);
  4588. }, 100);
  4589. }, 1000);
  4590. if (this.cid == "" || this.cid == undefined) {
  4591. this.addWork();
  4592. } else {
  4593. if (this.userid != this.courseUserid && this.role != "1") {
  4594. // this.updateWork2();
  4595. } else {
  4596. this.updateWork();
  4597. }
  4598. }
  4599. } else {
  4600. this.$message.error("请补充填写课程名称");
  4601. return;
  4602. }
  4603. } else if (this.steps == 3) {
  4604. if (this.cid == "" || this.cid == undefined) {
  4605. if (this.courseName == "") {
  4606. this.$message.error("请补充填写课程名称");
  4607. return;
  4608. } else {
  4609. this.addWork();
  4610. this.steps++;
  4611. }
  4612. } else {
  4613. if (this.courseName == "") {
  4614. this.$message.error("请补充填写课程名称");
  4615. return;
  4616. } else {
  4617. if (this.userid != this.courseUserid && this.role != "1") {
  4618. this.updateWork2();
  4619. } else {
  4620. this.updateWork();
  4621. }
  4622. this.steps++;
  4623. }
  4624. }
  4625. }
  4626. } else {
  4627. if (this.steps == 1) {
  4628. if (this.courseName != "") {
  4629. if (this.cid == "" || this.cid == undefined) {
  4630. this.addWork();
  4631. } else {
  4632. if (this.userid != this.courseUserid && this.role != "1") {
  4633. // this.updateWork2();
  4634. } else {
  4635. this.updateWork();
  4636. }
  4637. }
  4638. this.steps++;
  4639. } else {
  4640. this.$message.error("请补充填写课程名称");
  4641. return;
  4642. }
  4643. } else if (this.steps == 2) {
  4644. if (this.templateC.id != "" || this.templateC.id != undefined) {
  4645. this.cTemplate = this.templateC.content;
  4646. }
  4647. this.dialogVisible2 = false;
  4648. this.steps++;
  4649. setTimeout(() => {
  4650. this.checkEva(this.checkId);
  4651. setTimeout(() => {
  4652. this.checkEva(this.checkId);
  4653. }, 100);
  4654. }, 1000);
  4655. } else if (this.steps == 3) {
  4656. if (this.cid == "" || this.cid == undefined) {
  4657. if (this.courseName == "") {
  4658. this.$message.error("请补充填写课程名称");
  4659. return;
  4660. } else {
  4661. this.addWork();
  4662. this.steps++;
  4663. }
  4664. } else {
  4665. if (this.courseName == "") {
  4666. this.$message.error("请补充填写课程名称");
  4667. return;
  4668. } else {
  4669. if (this.userid != this.courseUserid && this.role != "1") {
  4670. this.updateWork2();
  4671. } else {
  4672. this.updateWork();
  4673. }
  4674. this.steps++;
  4675. }
  4676. }
  4677. }
  4678. }
  4679. this.$refs.stepBox.scrollTop = 0;
  4680. },
  4681. unitSet(i) {
  4682. this.unitIndex = i;
  4683. this.isClickColor = 1
  4684. // this.$refs.rightboxR.scrollTop = 0;
  4685. this.$refs.unitBox.scrollTop = 0
  4686. },
  4687. time() {
  4688. if (!this.now) {
  4689. this.now = new Date().getTime();
  4690. return true;
  4691. } else {
  4692. let time = new Date().getTime();
  4693. if (time - this.now > 3000) {
  4694. this.now = time;
  4695. return true;
  4696. } else {
  4697. return false;
  4698. }
  4699. }
  4700. },
  4701. deleteUnit(i) {
  4702. var _this = this;
  4703. if (_this.time()) {
  4704. _this
  4705. .$confirm("确定删除此单元吗?", "提示", {
  4706. confirmButtonText: "确定",
  4707. cancelButtonText: "取消",
  4708. type: "warning",
  4709. })
  4710. .then(() => {
  4711. _this.isDelete = 2;
  4712. // _this.unitIndex = _this.unitIndex - 1;
  4713. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  4714. // _this.$message.success("删除成功");
  4715. })
  4716. .catch(() => {
  4717. return;
  4718. });
  4719. }
  4720. },
  4721. deleteWork(chapid) {
  4722. let params = [
  4723. {
  4724. cid: this.cid,
  4725. chapters: JSON.stringify(this.unitJson),
  4726. uid: this.userid,
  4727. chapid: chapid,
  4728. },
  4729. ];
  4730. this.ajax
  4731. .post(this.$store.state.api + "deleteWork", params)
  4732. .then((res) => {
  4733. this.$message({
  4734. message: "删除成功",
  4735. type: "success",
  4736. });
  4737. this.unitJson.splice(this.unitIndex, 1);
  4738. this.unitIndex = this.unitIndex - 1;
  4739. })
  4740. .catch((err) => {
  4741. this.$message.error("网络不佳");
  4742. console.error(err);
  4743. });
  4744. },
  4745. deleteTool(itemTaskIndex, i) {
  4746. var _this = this;
  4747. if (_this.time()) {
  4748. _this
  4749. .$confirm("确定删除此工具吗?", "提示", {
  4750. confirmButtonText: "确定",
  4751. cancelButtonText: "取消",
  4752. type: "warning",
  4753. })
  4754. .then(() => {
  4755. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4756. itemTaskIndex
  4757. ].toolChoose.splice(i, 1);
  4758. _this.$message.success("删除成功");
  4759. })
  4760. .catch(() => {
  4761. return;
  4762. });
  4763. }
  4764. },
  4765. deleteSentence(i) {
  4766. var _this = this;
  4767. _this
  4768. .$confirm("确定删除此题目吗?", "提示", {
  4769. confirmButtonText: "确定",
  4770. cancelButtonText: "取消",
  4771. type: "warning",
  4772. })
  4773. .then(() => {
  4774. _this.sentenceList.splice(i, 1);
  4775. _this.$message.success("删除成功");
  4776. })
  4777. .catch(() => {
  4778. return;
  4779. });
  4780. },
  4781. deleteS(s, i, j) {
  4782. this.sentenceList[i].addSentence.splice(j, 1);
  4783. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  4784. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  4785. this.sentenceList[i].rightAnswer.splice(a, 1);
  4786. }
  4787. },
  4788. openT() {
  4789. window.parent.postMessage({ tools: "25" }, "*");
  4790. },
  4791. deleteTask(i) {
  4792. var _this = this;
  4793. if (_this.time()) {
  4794. _this
  4795. .$confirm(
  4796. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  4797. 1 ==
  4798. i
  4799. ? "确定删除此任务吗?"
  4800. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  4801. "提示",
  4802. {
  4803. confirmButtonText: "确定",
  4804. cancelButtonText: "取消",
  4805. type: "warning",
  4806. }
  4807. )
  4808. .then(() => {
  4809. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  4810. i,
  4811. 1
  4812. );
  4813. _this.$message.success("删除成功");
  4814. })
  4815. .catch(() => {
  4816. return;
  4817. });
  4818. }
  4819. },
  4820. handlePictureCardPreview(file) {
  4821. this.dialogImageUrl = file.url;
  4822. },
  4823. clean(i, c) {
  4824. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  4825. },
  4826. handle_remove1(file, fileList, type) {
  4827. var _tmp = this.cover;
  4828. // for (var i = 0, len = _tmp.length; i < len; i++) {
  4829. // if (_tmp[i].uid == file.uid) {
  4830. // _tmp.splice(i, 1);
  4831. // break;
  4832. // }
  4833. // this.cover = _tmp;
  4834. // }
  4835. this.cover = [];
  4836. this.noneBtnImg = this.cover.length >= 1;
  4837. this.isSysPic = false;
  4838. this.isSysPic2 = false;
  4839. this.$forceUpdate();
  4840. },
  4841. addImg(e) {
  4842. var el = e.currentTarget;
  4843. el.getElementsByTagName("input")[0].click();
  4844. e.target.value = "";
  4845. },
  4846. addChaptersTools(i) {
  4847. this.chapTools = [
  4848. {
  4849. tools: [],
  4850. toolDetail: "",
  4851. },
  4852. ];
  4853. this.chapCount = i;
  4854. this.dialogVisible4 = true;
  4855. },
  4856. isNoFinsh() {
  4857. this.$message.warning("功能正在开发中");
  4858. },
  4859. addAttText(i) {
  4860. this.AttText = {
  4861. title: "",
  4862. text: "",
  4863. };
  4864. this.taskCount = i;
  4865. this.AttTextType = 0;
  4866. this.$forceUpdate();
  4867. this.dialogVisible6 = true;
  4868. setTimeout(() => {
  4869. this.$refs['fuInput'].focus();
  4870. }, 100);
  4871. },
  4872. openLine(i) {
  4873. this.line = "";
  4874. this.lineCount = i;
  4875. this.lineType = 0;
  4876. this.$forceUpdate();
  4877. this.dialogVisible7 = true;
  4878. },
  4879. pasteLine(i) {
  4880. navigator.clipboard
  4881. .readText()
  4882. .then((v) => {
  4883. console.log("获取剪贴板成功:", v);
  4884. const html = v;
  4885. const regex = /src="(.*?)"/g;
  4886. const match = regex.exec(html);
  4887. if (match && match[1]) {
  4888. console.log(match[1]);
  4889. this.$message.success("粘贴成功");
  4890. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4891. i
  4892. ].chapterData.push({
  4893. name: "链接",
  4894. title: "嵌入代码",
  4895. url: match[1],
  4896. type: 8,
  4897. });
  4898. } else {
  4899. // console.log("未找到包含 src 属性的 iframe");
  4900. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  4901. }
  4902. })
  4903. .catch((v) => {
  4904. console.log("获取剪贴板失败: ", v);
  4905. });
  4906. },
  4907. openSource(i) {
  4908. this.lineCount = i;
  4909. this.sourceData = {};
  4910. this.dialogVisibleSource = true;
  4911. this.updateSourcePan = false;
  4912. },
  4913. addSource() {
  4914. if (!Object.keys(this.sourceData).length) {
  4915. this.$message.error("请选择要上传的资源");
  4916. return;
  4917. }
  4918. let keys = Object.keys(this.sourceData);
  4919. for (var i = 0; i < keys.length; i++) {
  4920. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4921. this.lineCount
  4922. ].chapterData.push({
  4923. name: "链接",
  4924. title: this.sourceData[keys[i]].name,
  4925. url: this.sourceData[keys[i]].url,
  4926. type: 14,
  4927. id: keys[i]
  4928. });
  4929. }
  4930. this.$forceUpdate();
  4931. this.dialogVisibleSource = false;
  4932. },
  4933. updateSource() {
  4934. if (!Object.keys(this.sourceData).length) {
  4935. this.$message.error("请选择要上传的资源");
  4936. return;
  4937. }
  4938. let keys = Object.keys(this.sourceData);
  4939. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4940. this.taskCount
  4941. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  4942. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4943. this.taskCount
  4944. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  4945. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4946. this.taskCount
  4947. ].chapterData[this.lineCount].id = keys[0];
  4948. this.updateSourcePan = false;
  4949. this.$forceUpdate();
  4950. this.dialogVisibleSource = false;
  4951. },
  4952. deleteM(i, j) {
  4953. this.testJson.testJson[i].timuList.splice(j, 1);
  4954. },
  4955. beforeUploadTiMu(event, i) {
  4956. const loading = this.openLoading();
  4957. var file = event.target.files[0];
  4958. var credentials = {
  4959. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4960. secretAccessKey: "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",
  4961. }; //秘钥形式的登录上传
  4962. window.AWS.config.update(credentials);
  4963. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4964. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4965. var _this = this;
  4966. if (file) {
  4967. var params = {
  4968. Key:
  4969. file.name.split(".")[0] +
  4970. new Date().getTime() +
  4971. "." +
  4972. file.name.split(".")[file.name.split(".").length - 1],
  4973. ContentType: file.type,
  4974. Body: file,
  4975. "Access-Control-Allow-Credentials": "*",
  4976. ACL: "public-read",
  4977. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4978. var options = {
  4979. partSize: 2048 * 1024 * 1024,
  4980. queueSize: 2,
  4981. leavePartsOnError: true,
  4982. };
  4983. bucket
  4984. .upload(params, options)
  4985. .on("httpUploadProgress", function (evt) {
  4986. //这里可以写进度条
  4987. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4988. })
  4989. .send(function (err, data) {
  4990. loading.close();
  4991. if (err) {
  4992. _this.$message.error("上传失败");
  4993. } else {
  4994. if (_this.testJson.testJson[i].timuList) {
  4995. _this.testJson.testJson[i].timuList.push({
  4996. src: data.Location,
  4997. });
  4998. } else {
  4999. _this.testJson.testJson[i].timuList = [];
  5000. _this.testJson.testJson[i].timuList.push({
  5001. src: data.Location,
  5002. });
  5003. }
  5004. _this.imgChange3(i);
  5005. _this.$forceUpdate();
  5006. }
  5007. });
  5008. }
  5009. },
  5010. beforeUploadTi(event, i, j) {
  5011. const loading = this.openLoading();
  5012. var file = event.target.files[0];
  5013. var credentials = {
  5014. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5015. secretAccessKey: "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",
  5016. }; //秘钥形式的登录上传
  5017. window.AWS.config.update(credentials);
  5018. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5019. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5020. var _this = this;
  5021. if (file) {
  5022. var params = {
  5023. Key:
  5024. file.name.split(".")[0] +
  5025. new Date().getTime() +
  5026. "." +
  5027. file.name.split(".")[file.name.split(".").length - 1],
  5028. ContentType: file.type,
  5029. Body: file,
  5030. "Access-Control-Allow-Credentials": "*",
  5031. ACL: "public-read",
  5032. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5033. var options = {
  5034. partSize: 2048 * 1024 * 1024,
  5035. queueSize: 2,
  5036. leavePartsOnError: true,
  5037. };
  5038. bucket
  5039. .upload(params, options)
  5040. .on("httpUploadProgress", function (evt) {
  5041. //这里可以写进度条
  5042. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5043. })
  5044. .send(function (err, data) {
  5045. loading.close();
  5046. if (err) {
  5047. _this.$message.error("上传失败");
  5048. } else {
  5049. _this.testJson.testJson[i].checkList[j] = {};
  5050. _this.testJson.testJson[i].checkList[j].src = data.Location;
  5051. _this.testJson.testJson[i].checkList[j].imgType = 1;
  5052. _this.imgChange2(i, j);
  5053. _this.$forceUpdate();
  5054. }
  5055. });
  5056. }
  5057. },
  5058. beforeUpload1(event, type) {
  5059. // const loading = this.openLoading();
  5060. var file = event.target.files[0];
  5061. var credentials = {
  5062. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5063. secretAccessKey: "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",
  5064. }; //秘钥形式的登录上传
  5065. window.AWS.config.update(credentials);
  5066. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5067. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5068. var _this = this;
  5069. if (file) {
  5070. var params = {
  5071. Key:
  5072. file.name.split(".")[0] +
  5073. new Date().getTime() +
  5074. "." +
  5075. file.name.split(".")[file.name.split(".").length - 1],
  5076. ContentType: file.type,
  5077. Body: file,
  5078. "Access-Control-Allow-Credentials": "*",
  5079. ACL: "public-read",
  5080. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5081. var options = {
  5082. partSize: 2048 * 1024 * 1024,
  5083. queueSize: 2,
  5084. leavePartsOnError: true,
  5085. };
  5086. bucket
  5087. .upload(params, options)
  5088. .on("httpUploadProgress", function (evt) {
  5089. //这里可以写进度条
  5090. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5091. })
  5092. .send(function (err, data) {
  5093. // loading.close();
  5094. if (err) {
  5095. // var a = _this.$refs.upload1.uploadFiles;
  5096. // a.splice(a.length - 1, a.length);
  5097. _this.$message.error("上传失败");
  5098. } else {
  5099. _this.cover.push({
  5100. name: file.name,
  5101. url: data.Location,
  5102. uid: file.uid,
  5103. });
  5104. _this.imgChange1(null, null, 1, null);
  5105. _this.choosePicVisible = false;
  5106. console.log(data.Location);
  5107. }
  5108. });
  5109. }
  5110. },
  5111. beforeUploadSelect(event, type) {
  5112. // const loading = this.openLoading();
  5113. var file = event.target.files[0];
  5114. var credentials = {
  5115. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5116. secretAccessKey: "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",
  5117. }; //秘钥形式的登录上传
  5118. window.AWS.config.update(credentials);
  5119. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5120. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5121. var _this = this;
  5122. if (file) {
  5123. var params = {
  5124. Key:
  5125. file.name.split(".")[0] +
  5126. new Date().getTime() +
  5127. "." +
  5128. file.name.split(".")[file.name.split(".").length - 1],
  5129. ContentType: file.type,
  5130. Body: file,
  5131. "Access-Control-Allow-Credentials": "*",
  5132. ACL: "public-read",
  5133. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5134. var options = {
  5135. partSize: 2048 * 1024 * 1024,
  5136. queueSize: 2,
  5137. leavePartsOnError: true,
  5138. };
  5139. bucket
  5140. .upload(params, options)
  5141. .on("httpUploadProgress", function (evt) {
  5142. //这里可以写进度条
  5143. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5144. })
  5145. .send(function (err, data) {
  5146. // loading.close();
  5147. if (err) {
  5148. _this.$message.error("上传失败");
  5149. } else {
  5150. _this.selectJson.url = data.Location;
  5151. console.log(data.Location);
  5152. }
  5153. });
  5154. }
  5155. },
  5156. chooseSysPic(p) {
  5157. this.cover = []
  5158. setTimeout(() => {
  5159. this.cover[0] = {
  5160. name: "系统图片.png",
  5161. url: p,
  5162. };
  5163. this.imgChange1(null, null, 1, null);
  5164. this.$forceUpdate();
  5165. }, 0);
  5166. this.isSysPic = true;
  5167. this.isSysPic2 = false;
  5168. this.sysPicVisible = false;
  5169. this.$forceUpdate();
  5170. },
  5171. chooseSysPic2(p) {
  5172. this.cover = []
  5173. setTimeout(() => {
  5174. this.cover[0] = {
  5175. name: "网络图片.png",
  5176. url: p,
  5177. };
  5178. this.imgChange1(null, null, 1, null);
  5179. this.$forceUpdate();
  5180. }, 0);
  5181. this.isSysPic2 = true;
  5182. this.isSysPic = false;
  5183. this.sysPicVisible2 = false;
  5184. this.$forceUpdate();
  5185. },
  5186. beforeUpload(data) {
  5187. this.$refs.upload1.uploadFiles;
  5188. this.uploadLoading1 = true;
  5189. var file = data.file;
  5190. var credentials = {
  5191. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5192. secretAccessKey: "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",
  5193. }; //秘钥形式的登录上传
  5194. window.AWS.config.update(credentials);
  5195. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5196. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5197. var _this = this;
  5198. if (file) {
  5199. var params = {
  5200. Key:
  5201. file.name.split(".")[0] +
  5202. new Date().getTime() +
  5203. "." +
  5204. file.name.split(".")[file.name.split(".").length - 1],
  5205. ContentType: file.type,
  5206. Body: file,
  5207. "Access-Control-Allow-Credentials": "*",
  5208. ACL: "public-read",
  5209. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5210. var options = {
  5211. partSize: 2048 * 1024 * 1024,
  5212. queueSize: 2,
  5213. leavePartsOnError: true,
  5214. };
  5215. bucket
  5216. .upload(params, options)
  5217. .on("httpUploadProgress", function (evt) {
  5218. //这里可以写进度条
  5219. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5220. })
  5221. .send(function (err, data) {
  5222. _this.uploadLoading1 = false;
  5223. if (err) {
  5224. // var a = _this.$refs.upload1.uploadFiles;
  5225. // a.splice(a.length - 1, a.length);
  5226. _this.$message.error("上传失败");
  5227. } else {
  5228. //上传成功处理
  5229. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5230. name: file.name,
  5231. url: data.Location,
  5232. uid: file.uid,
  5233. });
  5234. _this.imgChange();
  5235. console.log(data.Location);
  5236. }
  5237. });
  5238. }
  5239. },
  5240. onExceed() {
  5241. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  5242. },
  5243. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5244. // const loading = this.openLoading();
  5245. var file = event.target.files[0];
  5246. var credentials = {
  5247. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5248. secretAccessKey: "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",
  5249. }; //秘钥形式的登录上传
  5250. window.AWS.config.update(credentials);
  5251. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5252. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5253. var _this = this;
  5254. if (type == 3) {
  5255. var b = [
  5256. "DOC",
  5257. "DOCX",
  5258. "DOCM",
  5259. "DOTM",
  5260. "DOTX",
  5261. "PPTX",
  5262. "PPSX",
  5263. "PPT",
  5264. "PPS",
  5265. "PPTM",
  5266. "POTM",
  5267. "PPAM",
  5268. "POTX",
  5269. "PPSM",
  5270. ];
  5271. if (
  5272. b.indexOf(
  5273. file.name
  5274. .split(".")
  5275. [file.name.split(".").length - 1].toLocaleUpperCase()
  5276. ) != -1
  5277. ) {
  5278. if (file.size / 1024 / 1024 > 80) {
  5279. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5280. this.inputShow = true;
  5281. // var a = _this.$refs.upload1.uploadFiles;
  5282. // a.splice(a.length - 1, a.length);
  5283. // loading.close();
  5284. return;
  5285. }
  5286. } else if (
  5287. file.name
  5288. .split(".")
  5289. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5290. ) {
  5291. if (file.size / 1024 / 1024 > 80) {
  5292. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5293. this.inputShow = true;
  5294. // var a = _this.$refs.upload1.uploadFiles;
  5295. // a.splice(a.length - 1, a.length);
  5296. // loading.close();
  5297. return;
  5298. }
  5299. }
  5300. }
  5301. this.inputShow = false;
  5302. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5303. itemTaskIndex
  5304. ].progress = 0;
  5305. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5306. itemTaskIndex
  5307. ].proVisible = true;
  5308. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5309. itemTaskIndex
  5310. ].isFinishSize = 0;
  5311. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5312. itemTaskIndex
  5313. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5314. _this.$forceUpdate();
  5315. if (file) {
  5316. var params = {
  5317. Key:
  5318. file.name.split(".")[0] +
  5319. new Date().getTime() +
  5320. "." +
  5321. file.name.split(".")[file.name.split(".").length - 1],
  5322. ContentType: file.type,
  5323. Body: file,
  5324. "Access-Control-Allow-Credentials": "*",
  5325. ACL: "public-read",
  5326. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5327. var options = {
  5328. partSize: 2048 * 1024 * 1024,
  5329. queueSize: 2,
  5330. leavePartsOnError: true,
  5331. };
  5332. bucket
  5333. .upload(params, options)
  5334. .on("httpUploadProgress", function (evt) {
  5335. //这里可以写进度条
  5336. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5337. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5338. itemTaskIndex
  5339. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5340. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5341. itemTaskIndex
  5342. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5343. _this.$forceUpdate();
  5344. })
  5345. .send(function (err, data) {
  5346. // loading.close();
  5347. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5348. itemTaskIndex
  5349. ].progress = 100;
  5350. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5351. itemTaskIndex
  5352. ].isFinishSize =
  5353. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5354. itemTaskIndex
  5355. ].isAllSize;
  5356. _this.$forceUpdate();
  5357. setTimeout(() => {
  5358. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5359. itemTaskIndex
  5360. ].proVisible = false;
  5361. _this.$forceUpdate();
  5362. }, 1000);
  5363. _this.inputShow = true;
  5364. if (err) {
  5365. // var a = _this.$refs.upload1.uploadFiles;
  5366. // a.splice(a.length - 1, a.length);
  5367. _this.$message.error("上传失败");
  5368. } else {
  5369. if (type == 13) {
  5370. let _type = 2;
  5371. var imgA = [
  5372. "png",
  5373. "jpg",
  5374. "jpeg",
  5375. "bmp",
  5376. "gif",
  5377. "webp",
  5378. "psd",
  5379. "svg",
  5380. "tiff",
  5381. ];
  5382. var fileA = [
  5383. "PDF",
  5384. "DOC",
  5385. "DOCX",
  5386. "DOCM",
  5387. "DOTM",
  5388. "DOTX",
  5389. "PPTX",
  5390. "PPSX",
  5391. "PPT",
  5392. "PPS",
  5393. "PPTM",
  5394. "POTM",
  5395. "PPAM",
  5396. "POTX",
  5397. "PPSM",
  5398. "XLSX",
  5399. "XLS",
  5400. ];
  5401. var videoA = [
  5402. "AVI",
  5403. "NAVI",
  5404. "MPEG",
  5405. "ASF",
  5406. "MOV",
  5407. "WMV",
  5408. "3GP",
  5409. "RM",
  5410. "RMVB",
  5411. "FLV",
  5412. "F4V",
  5413. "H.264",
  5414. "H.265",
  5415. "REAL VIDEO",
  5416. "MKV",
  5417. "WebM",
  5418. "HDDVD",
  5419. "MP4",
  5420. "MPG",
  5421. "M4V",
  5422. "MGV",
  5423. "OGV",
  5424. "QTM",
  5425. "STR",
  5426. "AMC",
  5427. "DVX",
  5428. "EVO",
  5429. "DAT",
  5430. "OGG",
  5431. "OGM",
  5432. ];
  5433. if (
  5434. fileA.indexOf(
  5435. data.Location.split(".")[
  5436. data.Location.split(".").length - 1
  5437. ].toLocaleUpperCase()
  5438. ) != -1
  5439. ) {
  5440. _type = 3;
  5441. } else if (
  5442. videoA.indexOf(
  5443. data.Location.split(".")[
  5444. data.Location.split(".").length - 1
  5445. ].toLocaleUpperCase()
  5446. ) != -1
  5447. ) {
  5448. _type = 2;
  5449. } else if (
  5450. imgA.indexOf(
  5451. data.Location.split(".")[
  5452. data.Location.split(".").length - 1
  5453. ].toLocaleLowerCase()
  5454. ) != -1
  5455. ) {
  5456. _type = 13;
  5457. } else {
  5458. _type = 12;
  5459. }
  5460. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5461. itemTaskIndex
  5462. ].chapterData.push({
  5463. name: file.name,
  5464. url: data.Location,
  5465. uid: file.uid,
  5466. type: _type,
  5467. });
  5468. _this.imgChange1(null, null, _type, itemTaskIndex);
  5469. } else if (type == 2 || type == 3 || type == 12) {
  5470. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5471. itemTaskIndex
  5472. ].chapterData.push({
  5473. name: file.name,
  5474. url: data.Location,
  5475. uid: file.uid,
  5476. type: type,
  5477. });
  5478. _this.imgChange1(null, null, type, itemTaskIndex);
  5479. } else if (type == 4) {
  5480. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5481. itemTaskIndex
  5482. ].fileList1.push({
  5483. name: file.name,
  5484. url: data.Location,
  5485. uid: file.uid,
  5486. });
  5487. _this.imgChange1(null, null, type, itemTaskIndex);
  5488. } else if (type == 5) {
  5489. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5490. itemTaskIndex
  5491. ].homeworkList.push({
  5492. name: file.name,
  5493. url: data.Location,
  5494. uid: file.uid,
  5495. });
  5496. _this.imgChange1(null, null, type, itemTaskIndex);
  5497. }
  5498. console.log(data.Location);
  5499. }
  5500. });
  5501. }
  5502. },
  5503. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  5504. // const loading = this.openLoading();
  5505. var file = event.target.files[0];
  5506. var credentials = {
  5507. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5508. secretAccessKey: "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",
  5509. }; //秘钥形式的登录上传
  5510. window.AWS.config.update(credentials);
  5511. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5512. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5513. var _this = this;
  5514. if (type == 3) {
  5515. var b = [
  5516. "DOC",
  5517. "DOCX",
  5518. "DOCM",
  5519. "DOTM",
  5520. "DOTX",
  5521. "PPTX",
  5522. "PPSX",
  5523. "PPT",
  5524. "PPS",
  5525. "PPTM",
  5526. "POTM",
  5527. "PPAM",
  5528. "POTX",
  5529. "PPSM",
  5530. ];
  5531. if (
  5532. b.indexOf(
  5533. file.name
  5534. .split(".")
  5535. [file.name.split(".").length - 1].toLocaleUpperCase()
  5536. ) != -1
  5537. ) {
  5538. if (file.size / 1024 / 1024 > 80) {
  5539. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5540. this.inputShow = true;
  5541. // var a = _this.$refs.upload1.uploadFiles;
  5542. // a.splice(a.length - 1, a.length);
  5543. // loading.close();
  5544. return;
  5545. }
  5546. } else if (
  5547. file.name
  5548. .split(".")
  5549. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5550. ) {
  5551. if (file.size / 1024 / 1024 > 80) {
  5552. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5553. this.inputShow = true;
  5554. // var a = _this.$refs.upload1.uploadFiles;
  5555. // a.splice(a.length - 1, a.length);
  5556. // loading.close();
  5557. return;
  5558. }
  5559. }
  5560. }
  5561. this.inputShow = false;
  5562. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5563. itemTaskIndex
  5564. ].progress = 0;
  5565. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5566. itemTaskIndex
  5567. ].proVisible = true;
  5568. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5569. itemTaskIndex
  5570. ].isFinishSize = 0;
  5571. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5572. itemTaskIndex
  5573. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5574. _this.$forceUpdate();
  5575. if (file) {
  5576. var params = {
  5577. Key:
  5578. file.name.split(".")[0] +
  5579. new Date().getTime() +
  5580. "." +
  5581. file.name.split(".")[file.name.split(".").length - 1],
  5582. ContentType: file.type,
  5583. Body: file,
  5584. "Access-Control-Allow-Credentials": "*",
  5585. ACL: "public-read",
  5586. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5587. var options = {
  5588. partSize: 2048 * 1024 * 1024,
  5589. queueSize: 2,
  5590. leavePartsOnError: true,
  5591. };
  5592. bucket
  5593. .upload(params, options)
  5594. .on("httpUploadProgress", function (evt) {
  5595. //这里可以写进度条
  5596. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5597. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5598. itemTaskIndex
  5599. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5600. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5601. itemTaskIndex
  5602. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5603. _this.$forceUpdate();
  5604. })
  5605. .send(function (err, data) {
  5606. // loading.close();
  5607. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5608. itemTaskIndex
  5609. ].progress = 100;
  5610. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5611. itemTaskIndex
  5612. ].isFinishSize =
  5613. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5614. itemTaskIndex
  5615. ].isAllSize;
  5616. _this.$forceUpdate();
  5617. setTimeout(() => {
  5618. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5619. itemTaskIndex
  5620. ].proVisible = false;
  5621. _this.$forceUpdate();
  5622. }, 1000);
  5623. _this.inputShow = true;
  5624. if (err) {
  5625. // var a = _this.$refs.upload1.uploadFiles;
  5626. // a.splice(a.length - 1, a.length);
  5627. _this.$message.error("上传失败");
  5628. } else {
  5629. if (type == 2 || type == 3) {
  5630. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5631. itemTaskIndex
  5632. ].chapterData.push({
  5633. name: file.name,
  5634. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5635. // itemTaskIndex
  5636. // ].chapterData.length+1),
  5637. url: data.Location,
  5638. uid: file.uid,
  5639. type: type,
  5640. text: string,
  5641. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5642. // itemTaskIndex
  5643. // ].chapterData.length + 1),
  5644. });
  5645. _this.imgChange1(null, null, type, itemTaskIndex);
  5646. } else if (type == 4) {
  5647. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5648. itemTaskIndex
  5649. ].fileList1.push({
  5650. name: file.name,
  5651. url: data.Location,
  5652. uid: file.uid,
  5653. });
  5654. _this.imgChange1(null, null, type, itemTaskIndex);
  5655. } else if (type == 5) {
  5656. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5657. itemTaskIndex
  5658. ].homeworkList.push({
  5659. name: file.name,
  5660. url: data.Location,
  5661. uid: file.uid,
  5662. });
  5663. _this.imgChange1(null, null, type, itemTaskIndex);
  5664. }
  5665. console.log(data.Location);
  5666. }
  5667. });
  5668. }
  5669. },
  5670. addunit() {
  5671. this.unitJson.push({
  5672. dyName: "", //单元标题
  5673. isUpdate: 1,
  5674. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  5675. chapterInfo: [
  5676. {
  5677. isread: false,
  5678. chapterid: this.guid(),
  5679. title: "",
  5680. courseName: "",
  5681. taskJson: [
  5682. {
  5683. task: "",
  5684. taskDetail: "",
  5685. chapterData: [],
  5686. toolText: "",
  5687. toolChoose: [
  5688. {
  5689. tool: [],
  5690. toolDetail: "",
  5691. toolType: 0,
  5692. askCount: 1,
  5693. askTitle: "",
  5694. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5695. },
  5696. ],
  5697. isShowTools: false,
  5698. askCount: 1,
  5699. isFold: 0,
  5700. askTitle: "",
  5701. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5702. checkJson: [{ checkCount: [], checkPerent: [] }],
  5703. homeworkList: [],
  5704. },
  5705. ],
  5706. itemCount: 1,
  5707. fileList1: [],
  5708. video: [],
  5709. testData: [],
  5710. pData: [],
  5711. templateArray: [],
  5712. },
  5713. ],
  5714. });
  5715. this.addindex = this.unitJson.length - 1;
  5716. setTimeout(() => {
  5717. this.unitIndex = this.unitJson.length - 1;
  5718. setTimeout(() => {
  5719. console.log(this.$refs.dyInput)
  5720. this.$refs.dyInput[0].focus()
  5721. }, 100);
  5722. this.unitSet(this.unitIndex);
  5723. }, 0);
  5724. },
  5725. addToolFun(itemTaskIndex) {
  5726. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5727. itemTaskIndex
  5728. ].toolChoose.push({
  5729. tool: [],
  5730. toolDetail: "",
  5731. toolType: 0,
  5732. askCount: 1,
  5733. askTitle: "",
  5734. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5735. });
  5736. },
  5737. addTaskBorder() {
  5738. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  5739. task: "",
  5740. taskDetail: "",
  5741. chapterData: [],
  5742. toolText: "",
  5743. toolChoose: [
  5744. {
  5745. tool: [],
  5746. toolDetail: "",
  5747. toolType: 0,
  5748. askCount: 1,
  5749. askTitle: "",
  5750. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5751. },
  5752. ],
  5753. isShowTools: false,
  5754. askCount: 1,
  5755. isFold: 0,
  5756. askTitle: "",
  5757. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5758. checkJson: [{ checkCount: [], checkPerent: [] }],
  5759. homeworkList: [],
  5760. });
  5761. setTimeout(() => {
  5762. this.checkEva(this.checkId);
  5763. setTimeout(() => {
  5764. this.checkEva(this.checkId);
  5765. }, 100);
  5766. }, 100);
  5767. },
  5768. add(e, i) {
  5769. var el = e.currentTarget;
  5770. el.getElementsByTagName("input")[0].click();
  5771. },
  5772. fold(i, e) {
  5773. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  5774. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  5775. } else {
  5776. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  5777. }
  5778. },
  5779. fold2(i) {
  5780. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  5781. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  5782. } else {
  5783. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  5784. }
  5785. this.$forceUpdate();
  5786. },
  5787. foldEva(i) {
  5788. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  5789. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold = false;
  5790. } else {
  5791. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold = true;
  5792. setTimeout(() => {
  5793. this.checkEva(this.checkId);
  5794. }, 0);
  5795. }
  5796. this.$forceUpdate();
  5797. },
  5798. foldC(i) {
  5799. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  5800. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  5801. } else {
  5802. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  5803. }
  5804. this.$forceUpdate();
  5805. },
  5806. fold3(i, ti) {
  5807. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  5808. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  5809. } else {
  5810. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  5811. }
  5812. this.$forceUpdate();
  5813. },
  5814. deleteHomeworkBox(unitIndex, index, i) {
  5815. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  5816. this.taskCount
  5817. ].homeworkList.splice(i, 1);
  5818. },
  5819. getStudent() {
  5820. let params = {
  5821. oid: this.oid,
  5822. cu: "",
  5823. cn: this.searchPeople,
  5824. };
  5825. this.ajax
  5826. .get(this.$store.state.api + "selectStudentAdd", params)
  5827. .then((res) => {
  5828. this.studentJuri = res.data[0];
  5829. })
  5830. .catch((err) => {
  5831. this.isLoading = false;
  5832. console.error(err);
  5833. });
  5834. },
  5835. getTeacher() {
  5836. let params = {
  5837. oid:
  5838. this.org && this.org != "undefined" && this.org != "null"
  5839. ? this.org
  5840. : this.oid,
  5841. cu: "",
  5842. cn: this.searchTN,
  5843. };
  5844. this.ajax
  5845. .get(
  5846. this.$store.state.api +
  5847. (this.org && this.org != "undefined" && this.org != "null"
  5848. ? "selectTeacherAddOrg"
  5849. : "selectTeacherAdd"),
  5850. params
  5851. )
  5852. .then((res) => {
  5853. let teacherJuri = res.data[0];
  5854. for (var i = 0; i < teacherJuri.length; i++) {
  5855. if (teacherJuri[i].userid == this.userid) {
  5856. teacherJuri.splice(i, 1);
  5857. break;
  5858. }
  5859. }
  5860. this.teacherJuri = teacherJuri;
  5861. })
  5862. .catch((err) => {
  5863. console.error(err);
  5864. });
  5865. },
  5866. searchStudent() {
  5867. this.getStudent();
  5868. },
  5869. selectGrage() {
  5870. let params = {
  5871. oid: this.oid,
  5872. };
  5873. this.ajax
  5874. .get(this.$store.state.api + "selectGrageBySchool", params)
  5875. .then((res) => {
  5876. this.gradeList = res.data[0];
  5877. })
  5878. .catch((err) => {
  5879. this.isLoading = false;
  5880. console.error(err);
  5881. });
  5882. },
  5883. //获取班级列表
  5884. getClass() {
  5885. let params = {
  5886. oid: this.oid,
  5887. gid: this.gradeId,
  5888. cn: this.classSearch,
  5889. };
  5890. this.ajax
  5891. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  5892. .then((res) => {
  5893. if (!this.grade.length) {
  5894. this.grade = res.data[0];
  5895. }
  5896. this.grade2 = res.data[0];
  5897. this.classJuri = res.data[0];
  5898. let _check = []
  5899. let _check2 = []
  5900. for (var i = 0; i < this.grade2.length; i++) {
  5901. var gid = this.grade2[i].id
  5902. _check.push(gid)
  5903. }
  5904. for (var i = 0; i < this.checkboxList2.length; i++) {
  5905. var _id = this.checkboxList2[i]
  5906. if (_check.indexOf(_id) !== -1) {
  5907. _check2.push(_id)
  5908. }
  5909. }
  5910. this.checkAll = _check2.length === _check.length;
  5911. })
  5912. .catch((err) => {
  5913. this.isLoading = false;
  5914. console.error(err);
  5915. });
  5916. },
  5917. CourseType2Change(val) {
  5918. this.pTypeCheck = [];
  5919. for (var i = 0; i < this.CourseType2.length; i++) {
  5920. let typeA = this.CourseType2[i];
  5921. if (val.indexOf(typeA.name) != -1) {
  5922. this.pTypeCheck.push(...typeA.id);
  5923. }
  5924. }
  5925. },
  5926. getChapterData(e, i, j, ic, type) {
  5927. e.stopPropagation();
  5928. this.updataC = true;
  5929. this.icc = ic;
  5930. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  5931. console.log("还不能下载图片喔");
  5932. }
  5933. },
  5934. deleteChapterData(e, i, j, ic, taskI) {
  5935. e.stopPropagation();
  5936. let _this = this;
  5937. _this
  5938. .$confirm("确定删除此项?", "提示", {
  5939. confirmButtonText: "确定",
  5940. cancelButtonText: "取消",
  5941. type: "warning",
  5942. })
  5943. .then(() => {
  5944. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  5945. })
  5946. .catch(() => {
  5947. return;
  5948. });
  5949. },
  5950. updataVideoT(e, i, j, ic) {
  5951. // e.stopPropagation();
  5952. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  5953. // ic
  5954. // ].name = JSON.parse(JSON.stringify(e.target.value));
  5955. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  5956. ic
  5957. ].name;
  5958. this.taskCount = j;
  5959. this.lineCount = ic;
  5960. this.dialogVisibleupdataVideoT = true;
  5961. this.$forceUpdate();
  5962. },
  5963. updataVideoC() {
  5964. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  5965. this.dialogVisibleupdataVideoT = false;
  5966. this.$forceUpdate();
  5967. },
  5968. upCd(e, i, j, taskCount, ic) {
  5969. e.stopPropagation();
  5970. if (ic == 0) {
  5971. return;
  5972. }
  5973. var a =
  5974. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  5975. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  5976. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  5977. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  5978. this.$forceUpdate();
  5979. },
  5980. downCd(e, i, j, taskCount, ic) {
  5981. e.stopPropagation();
  5982. if (
  5983. ic ==
  5984. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  5985. 1
  5986. ) {
  5987. return;
  5988. }
  5989. var a =
  5990. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  5991. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  5992. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  5993. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  5994. this.$forceUpdate();
  5995. },
  5996. upTool(e, i, j, tooli){
  5997. e.stopPropagation();
  5998. if (tooli == 0) {
  5999. return;
  6000. }
  6001. this.$confirm(
  6002. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6003. "提示",
  6004. {
  6005. confirmButtonText: "确定",
  6006. cancelButtonText: "取消",
  6007. type: "warning",
  6008. }
  6009. )
  6010. .then(() => {
  6011. var a =
  6012. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6013. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6014. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6015. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6016. this.$forceUpdate()
  6017. })
  6018. .catch(() => {
  6019. return;
  6020. });
  6021. },
  6022. downTool(e, i, j, tooli){
  6023. e.stopPropagation();
  6024. if ( tooli ==
  6025. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length -
  6026. 1) {
  6027. return;
  6028. }
  6029. this.$confirm(
  6030. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6031. "提示",
  6032. {
  6033. confirmButtonText: "确定",
  6034. cancelButtonText: "取消",
  6035. type: "warning",
  6036. }
  6037. )
  6038. .then(() => {
  6039. var a =
  6040. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6041. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6042. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6043. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6044. this.$forceUpdate()
  6045. })
  6046. .catch(() => {
  6047. return;
  6048. });
  6049. },
  6050. addWork() {
  6051. let cPan = 1;
  6052. for (var i = 0; i < this.unitJson.length; i++) {
  6053. for (
  6054. var j = 0;
  6055. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6056. j++
  6057. ) {
  6058. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6059. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6060. if (
  6061. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6062. ) {
  6063. for (
  6064. var z = 0;
  6065. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6066. z++
  6067. ) {
  6068. if (
  6069. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6070. .length
  6071. ) {
  6072. this.$message.error("请把工具添加完整");
  6073. cPan = 2;
  6074. break;
  6075. }
  6076. }
  6077. }
  6078. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6079. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6080. i
  6081. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6082. return ele.value != "";
  6083. });
  6084. }
  6085. }
  6086. }
  6087. this.inputShow = true;
  6088. if (cPan == 2) {
  6089. this.steps--;
  6090. return;
  6091. }
  6092. for (var i = 0; i < this.unitJson.length; i++) {
  6093. delete this.unitJson[i].isUpdate;
  6094. }
  6095. let params = [
  6096. {
  6097. uid: this.userid,
  6098. title: this.courseName.replace(/%/g, "%25"),
  6099. brief: this.courseText.replace(/%/g, "%25"),
  6100. cover:
  6101. this.cover.length > 0
  6102. ? JSON.stringify(this.cover)
  6103. : JSON.stringify([
  6104. {
  6105. name: "noBanner.jpg",
  6106. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6107. uid: 1656409780264,
  6108. status: "success",
  6109. },
  6110. ]),
  6111. evaId: this.evalua,
  6112. astudent:
  6113. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6114. see: this.isTeacherSee == true ? 1 : 0,
  6115. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6116. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  6117. courseType: JSON.stringify(this.courseTypeId),
  6118. ateacher:
  6119. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6120. inviteCode: JSON.stringify(this.inviteCode),
  6121. },
  6122. ];
  6123. this.ajax
  6124. .post(this.$store.state.api + "addWorkNew2", params)
  6125. .then((res) => {
  6126. console.log(this.steps);
  6127. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6128. this.$message({
  6129. message: "新增成功",
  6130. type: "success",
  6131. });
  6132. }
  6133. this.number = res.data.ordernumber;
  6134. this.courseId = res.data.courseId;
  6135. this.cid = res.data.courseId;
  6136. this.courseUserid = this.userid;
  6137. this.islogin = true;
  6138. })
  6139. .catch((err) => {
  6140. this.$message.error("网络不佳");
  6141. console.error(err);
  6142. });
  6143. },
  6144. goCourse() {
  6145. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  6146. },
  6147. updateWork2() {
  6148. let _unitIndex = this.unitIndex;
  6149. let cPan = 1;
  6150. for (
  6151. var j = 0;
  6152. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6153. j++
  6154. ) {
  6155. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6156. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6157. j
  6158. ].proVisible2 = false;
  6159. if (
  6160. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6161. .length > 1
  6162. ) {
  6163. for (
  6164. var z = 0;
  6165. z <
  6166. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6167. .length;
  6168. z++
  6169. ) {
  6170. if (
  6171. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6172. z
  6173. ].tool.length
  6174. ) {
  6175. this.$message.error("请把工具添加完整");
  6176. cPan = 2;
  6177. break;
  6178. }
  6179. }
  6180. }
  6181. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6182. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6183. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6184. (ele) => {
  6185. return ele.value != "";
  6186. }
  6187. );
  6188. }
  6189. }
  6190. this.inputShow = true;
  6191. if (cPan == 2) {
  6192. this.steps--;
  6193. return;
  6194. }
  6195. let params = [
  6196. {
  6197. cid: this.cid,
  6198. chapters: JSON.stringify(this.unitJson),
  6199. uid: this.userid,
  6200. unitIndex: _unitIndex,
  6201. },
  6202. ];
  6203. this.ajax
  6204. .post(this.$store.state.api + "updateWorkNew4", params)
  6205. .then((res) => {
  6206. this.$message({
  6207. message: "修改成功",
  6208. type: "success",
  6209. });
  6210. this.courseId = this.cid;
  6211. })
  6212. .catch((err) => {
  6213. this.$message.error("网络不佳");
  6214. console.error(err);
  6215. });
  6216. },
  6217. updateWork() {
  6218. let cPan = 1;
  6219. for (var i = 0; i < this.unitJson.length; i++) {
  6220. for (
  6221. var j = 0;
  6222. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6223. j++
  6224. ) {
  6225. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6226. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6227. if (
  6228. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6229. ) {
  6230. for (
  6231. var z = 0;
  6232. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6233. z++
  6234. ) {
  6235. if (
  6236. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6237. .length
  6238. ) {
  6239. this.$message.error("请把工具添加完整");
  6240. cPan = 2;
  6241. break;
  6242. }
  6243. }
  6244. }
  6245. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6246. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6247. i
  6248. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6249. return ele.value != "";
  6250. });
  6251. }
  6252. }
  6253. }
  6254. this.inputShow = true;
  6255. if (cPan == 2) {
  6256. this.steps--;
  6257. return;
  6258. }
  6259. for (var i = 0; i < this.unitJson.length; i++) {
  6260. delete this.unitJson[i].isUpdate;
  6261. }
  6262. let params = [
  6263. {
  6264. cid: this.cid,
  6265. title: this.courseName.replace(/%/g, "%25"),
  6266. brief: this.courseText.replace(/%/g, "%25"),
  6267. cover:
  6268. this.cover.length > 0
  6269. ? JSON.stringify(this.cover)
  6270. : JSON.stringify([
  6271. {
  6272. name: "noBanner.jpg",
  6273. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6274. uid: 1656409780264,
  6275. status: "success",
  6276. },
  6277. ]),
  6278. evaId: this.evalua,
  6279. astudent:
  6280. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6281. see: this.isTeacherSee == true ? 1 : 0,
  6282. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6283. template: this.myWord != "undefined" ? this.myWord : [],
  6284. uid: this.userid,
  6285. courseType: JSON.stringify(this.courseTypeId),
  6286. ateacher:
  6287. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6288. inviteCode: JSON.stringify(this.inviteCode),
  6289. },
  6290. ];
  6291. this.ajax
  6292. .post(this.$store.state.api + "updateWorkNew2", params)
  6293. .then((res) => {
  6294. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6295. if (this.cidType == 1) {
  6296. this.$message({
  6297. message: "修改成功",
  6298. type: "success",
  6299. });
  6300. } else {
  6301. this.$message({
  6302. message: "新增成功",
  6303. type: "success",
  6304. });
  6305. }
  6306. }
  6307. this.number = this.nbOrder;
  6308. this.courseId = this.cid;
  6309. })
  6310. .catch((err) => {
  6311. this.$message.error("网络不佳");
  6312. console.error(err);
  6313. });
  6314. },
  6315. guid() {
  6316. var _num,
  6317. i,
  6318. _guid = "";
  6319. for (i = 0; i < 32; i++) {
  6320. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6321. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6322. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6323. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6324. _guid += "-";
  6325. }
  6326. }
  6327. return _guid;
  6328. },
  6329. insertWord() {
  6330. this.dialogVisible1 = true;
  6331. this.updateBoolean2 = false;
  6332. this.tTitle = "";
  6333. this.tdetail = "";
  6334. },
  6335. addWord() {
  6336. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6337. name: this.tTitle,
  6338. content: this.tdetail,
  6339. uid: this.guid(),
  6340. });
  6341. this.dialogVisible1 = false;
  6342. },
  6343. upWord() { },
  6344. selectWord(uid, i, c) {
  6345. this.dialogVisible1 = true;
  6346. this.updateBoolean2 = true;
  6347. if (
  6348. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6349. ) {
  6350. this.tTitle =
  6351. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6352. this.tdetail =
  6353. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6354. }
  6355. },
  6356. isAddPP() {
  6357. if (this.checkboxList.length > 0) {
  6358. this.$message({
  6359. message: "添加成功",
  6360. type: "success",
  6361. });
  6362. this.dialogVisible3 = false;
  6363. } else {
  6364. this.$message({
  6365. message: "请添加课程成员",
  6366. type: "error",
  6367. });
  6368. }
  6369. },
  6370. isAddClass() {
  6371. this.dialogVisibleClass = false;
  6372. },
  6373. isAddPPTeacher() {
  6374. this.dialogVisibleMember = false;
  6375. this.setMan();
  6376. },
  6377. getTemplate() {
  6378. this.ajax
  6379. .get(this.$store.state.api + "getCourseTemplateT", "")
  6380. .then((res) => {
  6381. this.templateArray = res.data[0];
  6382. this.getTemplateOid();
  6383. this.$forceUpdate();
  6384. })
  6385. .catch((err) => { });
  6386. },
  6387. getTemplateOid() {
  6388. let params = {
  6389. oid: this.oid,
  6390. };
  6391. this.ajax
  6392. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6393. .then((res) => {
  6394. if (res.data[0].length) {
  6395. this.templateArray = [...res.data[0], ...this.templateArray];
  6396. }
  6397. this.getTemplateOrg();
  6398. this.$forceUpdate();
  6399. })
  6400. .catch((err) => { });
  6401. },
  6402. getTemplateOrg() {
  6403. let params = {
  6404. oid: this.org,
  6405. };
  6406. this.ajax
  6407. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6408. .then((res) => {
  6409. if (res.data[0].length) {
  6410. this.templateArray = [...res.data[0], ...this.templateArray];
  6411. }
  6412. this.$forceUpdate();
  6413. })
  6414. .catch((err) => { });
  6415. },
  6416. clearChoose() {
  6417. this.clearArray.splice(this.templateC.id, 1);
  6418. this.dialogVisible2 = false;
  6419. },
  6420. clearAttText() {
  6421. this.AttText = {
  6422. title: "",
  6423. text: "",
  6424. };
  6425. this.dialogVisible6 = false;
  6426. },
  6427. clearLine() {
  6428. this.line = "";
  6429. this.dialogVisible7 = false;
  6430. },
  6431. checkTemplate(res) {
  6432. let _this = this;
  6433. _this
  6434. .$confirm("确定选择此模板吗?修改课程时无法重置课程模板。", "提示", {
  6435. confirmButtonText: "确定",
  6436. cancelButtonText: "取消",
  6437. type: "warning",
  6438. })
  6439. .then(() => {
  6440. _this.unitJson = JSON.parse(res.chapters);
  6441. _this.steps++;
  6442. setTimeout(() => {
  6443. this.checkEva(this.checkId);
  6444. setTimeout(() => {
  6445. this.checkEva(this.checkId);
  6446. }, 100);
  6447. }, 1000);
  6448. })
  6449. .catch(() => {
  6450. return;
  6451. });
  6452. },
  6453. checkTemplate1(w) {
  6454. this.steps++;
  6455. },
  6456. checkTemplate2() {
  6457. let _this = this;
  6458. _this
  6459. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  6460. confirmButtonText: "确定",
  6461. cancelButtonText: "取消",
  6462. type: "warning",
  6463. })
  6464. .then(() => {
  6465. _this.unitIndex = 0;
  6466. _this.unitJson = [
  6467. {
  6468. dyName: "", //单元标题
  6469. chapterInfo: [
  6470. {
  6471. isread: false,
  6472. chapterid: this.guid(),
  6473. title: "",
  6474. courseName: "",
  6475. taskJson: [
  6476. {
  6477. task: "",
  6478. taskDetail: "",
  6479. chapterData: [],
  6480. toolText: "",
  6481. toolChoose: [
  6482. {
  6483. tool: [],
  6484. toolDetail: "",
  6485. toolType: 0,
  6486. askCount: 1,
  6487. askTitle: "",
  6488. askJson: [
  6489. { askstitle: "", askItem: 1, checkList: [] },
  6490. ],
  6491. },
  6492. ],
  6493. isShowTools: false,
  6494. askCount: 1,
  6495. isFold: 0,
  6496. askTitle: "",
  6497. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6498. checkJson: [{ checkCount: [], checkPerent: [] }],
  6499. homeworkList: [],
  6500. },
  6501. ],
  6502. itemCount: 1,
  6503. fileList1: [],
  6504. video: [],
  6505. testData: [],
  6506. pData: [],
  6507. templateArray: [],
  6508. },
  6509. ],
  6510. },
  6511. ];
  6512. this.steps++;
  6513. setTimeout(() => {
  6514. this.checkEva(this.checkId);
  6515. setTimeout(() => {
  6516. this.checkEva(this.checkId);
  6517. }, 100);
  6518. }, 1000);
  6519. this.updateWork();
  6520. })
  6521. .catch(() => {
  6522. return;
  6523. });
  6524. },
  6525. checkTemplate3() {
  6526. let _this = this;
  6527. _this
  6528. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  6529. confirmButtonText: "确定",
  6530. cancelButtonText: "取消",
  6531. type: "warning",
  6532. })
  6533. .then(() => {
  6534. _this.unitIndex = 0;
  6535. _this.unitJson = [
  6536. {
  6537. dyName: "", //单元标题
  6538. easy: 1,
  6539. chapterInfo: [
  6540. {
  6541. isread: false,
  6542. chapterid: this.guid(),
  6543. title: "",
  6544. courseName: "",
  6545. taskJson: [
  6546. {
  6547. task: "",
  6548. taskDetail: "",
  6549. chapterData: [],
  6550. toolText: "",
  6551. toolChoose: [
  6552. {
  6553. tool: [],
  6554. toolDetail: "",
  6555. toolType: 0,
  6556. askCount: 1,
  6557. askTitle: "",
  6558. askJson: [
  6559. { askstitle: "", askItem: 1, checkList: [] },
  6560. ],
  6561. },
  6562. ],
  6563. isShowTools: false,
  6564. askCount: 1,
  6565. isFold: 0,
  6566. askTitle: "",
  6567. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6568. checkJson: [{ checkCount: [], checkPerent: [] }],
  6569. homeworkList: [],
  6570. },
  6571. ],
  6572. itemCount: 1,
  6573. fileList1: [],
  6574. video: [],
  6575. testData: [],
  6576. pData: [],
  6577. templateArray: [],
  6578. },
  6579. ],
  6580. },
  6581. ];
  6582. this.steps++;
  6583. this.updateWork();
  6584. })
  6585. .catch(() => {
  6586. return;
  6587. });
  6588. },
  6589. checkTemplate4() {
  6590. let _this = this;
  6591. _this
  6592. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  6593. confirmButtonText: "确定",
  6594. cancelButtonText: "取消",
  6595. type: "warning",
  6596. })
  6597. .then(() => {
  6598. _this.unitIndex = 0;
  6599. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  6600. this.steps++;
  6601. this.updateWork();
  6602. })
  6603. .catch(() => {
  6604. return;
  6605. });
  6606. },
  6607. wordNext() {
  6608. this.dialogVisible2 = false;
  6609. },
  6610. isAddOrUpdateAttText() {
  6611. if (this.AttTextType == 0) {
  6612. this.addAttTextMessage();
  6613. } else {
  6614. this.updateAttText();
  6615. }
  6616. },
  6617. isAddOrUpdateLine() {
  6618. if (!this.lineTitle) {
  6619. this.$message.error("请填写链接标题");
  6620. return;
  6621. }
  6622. if (this.lineType == 0) {
  6623. this.addLine();
  6624. } else {
  6625. this.updateLine();
  6626. }
  6627. },
  6628. addAttTextMessage() {
  6629. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6630. this.taskCount
  6631. ].chapterData.push({
  6632. name: this.AttText.title,
  6633. url: this.AttText.text,
  6634. type: 6,
  6635. });
  6636. this.imgChange1(null, null, 6, this.taskCount);
  6637. this.dialogVisible6 = false;
  6638. },
  6639. selectAttText(itemTaskIndex, i) {
  6640. this.AttText.title =
  6641. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6642. itemTaskIndex
  6643. ].chapterData[i].name;
  6644. this.AttText.text =
  6645. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6646. itemTaskIndex
  6647. ].chapterData[i].url;
  6648. this.taskCount = itemTaskIndex;
  6649. this.AttTextIndex = i;
  6650. this.AttTextType = 1;
  6651. this.dialogVisible6 = true;
  6652. },
  6653. updateAttText() {
  6654. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6655. this.taskCount
  6656. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  6657. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6658. this.taskCount
  6659. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  6660. this.dialogVisible6 = false;
  6661. },
  6662. addLine() {
  6663. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6664. this.lineCount
  6665. ].chapterData.push({
  6666. name: "链接",
  6667. title: this.lineTitle,
  6668. url: this.line,
  6669. type: 8,
  6670. });
  6671. this.imgChange1(null, null, 8, this.lineCount);
  6672. this.dialogVisible7 = false;
  6673. },
  6674. selectLine(itemTaskIndex, i) {
  6675. this.line =
  6676. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6677. itemTaskIndex
  6678. ].chapterData[i].url;
  6679. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6680. itemTaskIndex
  6681. ].chapterData[i].title
  6682. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6683. .chapterData[i].title
  6684. : "";
  6685. this.taskCount = itemTaskIndex;
  6686. this.lineCount = i;
  6687. this.lineType = 1;
  6688. this.dialogVisible7 = true;
  6689. },
  6690. openUpdateSource(itemTaskIndex, i) {
  6691. this.sourceData = {}
  6692. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  6693. this.sourceData[source.id] = {}
  6694. this.sourceData[source.id].name = source.title
  6695. this.sourceData[source.id].url = source.url
  6696. this.dialogVisibleSource = true;
  6697. this.updateSourcePan = true;
  6698. this.taskCount = itemTaskIndex;
  6699. this.lineCount = i;
  6700. },
  6701. updateLine() {
  6702. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6703. this.taskCount
  6704. ].chapterData[this.lineCount].url = this.line;
  6705. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6706. this.taskCount
  6707. ].chapterData[this.lineCount].title = this.lineTitle;
  6708. this.dialogVisible7 = false;
  6709. },
  6710. addPP() {
  6711. this.dialogVisible3 = true;
  6712. },
  6713. goTo(path) {
  6714. this.$router.push(path);
  6715. },
  6716. openTools(itemTaskIndex, i, toolIndex) {
  6717. this.toolIndex = toolIndex;
  6718. this.taskCount = itemTaskIndex;
  6719. if (i == 4) {
  6720. if (toolIndex == null) {
  6721. var a =
  6722. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6723. .chapterData;
  6724. for (var i = 0; i < a.length; i++) {
  6725. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  6726. this.askJson =
  6727. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6728. itemTaskIndex
  6729. ].chapterData[i].askJson;
  6730. }
  6731. }
  6732. } else {
  6733. this.askJson = JSON.parse(
  6734. JSON.stringify(
  6735. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6736. itemTaskIndex
  6737. ].toolChoose[toolIndex]
  6738. )
  6739. );
  6740. }
  6741. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  6742. this.dialogVisible5 = true;
  6743. } else if (i == 45) {
  6744. if (
  6745. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6746. .toolChoose[toolIndex].testJson
  6747. ) {
  6748. this.testJson = JSON.parse(
  6749. JSON.stringify(
  6750. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6751. itemTaskIndex
  6752. ].toolChoose[toolIndex].testJson
  6753. )
  6754. );
  6755. } else {
  6756. var testJson = {
  6757. testCount: 1,
  6758. testTitle: "",
  6759. testJson: [
  6760. {
  6761. teststitle: "",
  6762. testItem: 1,
  6763. checkList: [],
  6764. timuList: [],
  6765. answer: [],
  6766. type: "1",
  6767. },
  6768. ],
  6769. };
  6770. this.testJson = testJson;
  6771. }
  6772. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  6773. this.dialogVisibleChoice = true;
  6774. } else if (i == 47) {
  6775. if (
  6776. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6777. .toolChoose[toolIndex].sentenceList
  6778. ) {
  6779. this.sentenceList = JSON.parse(
  6780. JSON.stringify(
  6781. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6782. itemTaskIndex
  6783. ].toolChoose[toolIndex].sentenceList
  6784. )
  6785. );
  6786. } else {
  6787. var sentenceList = [
  6788. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  6789. ];
  6790. this.sentenceList = sentenceList;
  6791. }
  6792. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  6793. this.dialogVisibleSentence = true;
  6794. } else if (i == 48) {
  6795. if (
  6796. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6797. .toolChoose[toolIndex].tableJson
  6798. ) {
  6799. this.tableJson = JSON.parse(
  6800. JSON.stringify(
  6801. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6802. itemTaskIndex
  6803. ].toolChoose[toolIndex].tableJson
  6804. )
  6805. );
  6806. } else {
  6807. var tableJson = { text: "" };
  6808. this.tableJson = tableJson;
  6809. }
  6810. this.dialogVisibleTable = true;
  6811. } else if (i == 52) {
  6812. if (
  6813. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6814. .toolChoose[toolIndex].wordJson
  6815. ) {
  6816. this.wordJson = JSON.parse(
  6817. JSON.stringify(
  6818. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6819. itemTaskIndex
  6820. ].toolChoose[toolIndex].wordJson
  6821. )
  6822. );
  6823. } else {
  6824. var wordJson = { text: "" };
  6825. this.wordJson = wordJson;
  6826. }
  6827. this.dialogVisibleWord = true;
  6828. // else if (i == 50) {
  6829. // if (
  6830. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6831. // .toolChoose[toolIndex].uploadJson
  6832. // ) {
  6833. // this.uploadJson = JSON.parse(
  6834. // JSON.stringify(
  6835. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6836. // itemTaskIndex
  6837. // ].toolChoose[toolIndex].uploadJson
  6838. // )
  6839. // );
  6840. // } else {
  6841. // var uploadJson = [];
  6842. // this.uploadJson = uploadJson;
  6843. // }
  6844. // this.dialogVisibleMoreUpload = true;
  6845. // }
  6846. } else if (i == 10) {
  6847. if (
  6848. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6849. .toolChoose[toolIndex].preTime
  6850. ) {
  6851. this.preTime = JSON.parse(
  6852. JSON.stringify(
  6853. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6854. itemTaskIndex
  6855. ].toolChoose[toolIndex].preTime
  6856. )
  6857. );
  6858. } else {
  6859. var preTime = 0;
  6860. this.preTime = preTime;
  6861. }
  6862. this.dialogVisiblePreTime = true;
  6863. } else if (i == 49) {
  6864. if (
  6865. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6866. .toolChoose[toolIndex].groupJson
  6867. ) {
  6868. this.groupJson = JSON.parse(
  6869. JSON.stringify(
  6870. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6871. itemTaskIndex
  6872. ].toolChoose[toolIndex].groupJson
  6873. )
  6874. );
  6875. } else {
  6876. var groupJson = {
  6877. group: [{ name: "第1组" }],
  6878. number: undefined,
  6879. islock: 1,
  6880. };
  6881. this.groupJson = groupJson;
  6882. }
  6883. this.dialogVisibleGroup = true;
  6884. } else if (i == 62) {
  6885. if (
  6886. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6887. .toolChoose[toolIndex].videoJson
  6888. ) {
  6889. this.videoJson = JSON.parse(
  6890. JSON.stringify(
  6891. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6892. itemTaskIndex
  6893. ].toolChoose[toolIndex].videoJson
  6894. )
  6895. );
  6896. } else {
  6897. var videoJson = {
  6898. video: "",
  6899. setting: [],
  6900. };
  6901. this.videoJson = videoJson;
  6902. }
  6903. this.dialogVisibleVideo = true;
  6904. } else if (i == 15) {
  6905. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6906. itemTaskIndex
  6907. ].toolChoose[toolIndex].answerQ
  6908. ? JSON.parse(
  6909. JSON.stringify(
  6910. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6911. itemTaskIndex
  6912. ].toolChoose[toolIndex].answerQ
  6913. )
  6914. )
  6915. : "";
  6916. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  6917. this.dialogVisible8 = true;
  6918. } else if (i == 40) {
  6919. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6920. itemTaskIndex
  6921. ].toolChoose[toolIndex].rateJson
  6922. ? JSON.parse(
  6923. JSON.stringify(
  6924. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6925. itemTaskIndex
  6926. ].toolChoose[toolIndex].rateJson
  6927. )
  6928. )
  6929. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  6930. this.selectSteps = 1;
  6931. this.dialogVisibleRate = true;
  6932. } else if (i == 42) {
  6933. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6934. itemTaskIndex
  6935. ].toolChoose[toolIndex].answerQ
  6936. ? JSON.parse(
  6937. JSON.stringify(
  6938. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6939. itemTaskIndex
  6940. ].toolChoose[toolIndex].answerQ
  6941. )
  6942. )
  6943. : "";
  6944. this.dialogVisibleMp3 = true;
  6945. } else if (i == 41) {
  6946. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6947. itemTaskIndex
  6948. ].toolChoose[toolIndex].selectJson
  6949. ? JSON.parse(
  6950. JSON.stringify(
  6951. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6952. itemTaskIndex
  6953. ].toolChoose[toolIndex].selectJson
  6954. )
  6955. )
  6956. : { url: "", select: [], answer: [] };
  6957. this.selectSteps = 1;
  6958. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  6959. this.dialogVisibleSelect = true;
  6960. } else if (i == 3) {
  6961. window.parent.postMessage(
  6962. {
  6963. tools: "3y",
  6964. cid: this.cid,
  6965. stage: this.unitIndex,
  6966. task: itemTaskIndex,
  6967. tool: toolIndex,
  6968. },
  6969. "*"
  6970. );
  6971. } else if (i == 1) {
  6972. window.parent.postMessage(
  6973. {
  6974. tools: "1y",
  6975. cid: this.cid,
  6976. stage: this.unitIndex,
  6977. task: itemTaskIndex,
  6978. tool: toolIndex,
  6979. },
  6980. "*"
  6981. );
  6982. } else if (i == 57) {
  6983. window.parent.postMessage(
  6984. {
  6985. tools: "57y",
  6986. cid: this.cid,
  6987. stage: this.unitIndex,
  6988. task: itemTaskIndex,
  6989. tool: toolIndex,
  6990. },
  6991. "*"
  6992. );
  6993. }
  6994. },
  6995. chapAddTools(i) {
  6996. if (this.chapTools[0].tools.length == 0) {
  6997. this.chapTools[0].tools.push(i);
  6998. } else {
  6999. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7000. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7001. } else {
  7002. this.chapTools[0].tools.push(i);
  7003. }
  7004. }
  7005. this.$forceUpdate();
  7006. },
  7007. addChaptersDataTools() {
  7008. if (this.chapTools[0].tools.indexOf(4) != -1) {
  7009. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7010. this.chapCount
  7011. ].chapterData.push({
  7012. name: this.chapTools[0].toolDetail,
  7013. url: this.chapTools[0].tools,
  7014. type: 7,
  7015. askJson: this.askJson,
  7016. });
  7017. } else {
  7018. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7019. this.chapCount
  7020. ].chapterData.push({
  7021. name: this.chapTools[0].toolDetail,
  7022. url: this.chapTools[0].tools,
  7023. type: 7,
  7024. });
  7025. }
  7026. this.imgChange1(null, null, 7, this.chapCount);
  7027. this.dialogVisible4 = false;
  7028. },
  7029. addTools(i, itemTaskIndex, toolIndex) {
  7030. // if (
  7031. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7032. // .toolChoose[toolIndex].tool.length == 0
  7033. // ) {
  7034. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7035. // itemTaskIndex
  7036. // ].toolChoose[toolIndex].tool.push(i);
  7037. // } else {
  7038. // if (
  7039. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7040. // itemTaskIndex
  7041. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7042. // ) {
  7043. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7044. // itemTaskIndex
  7045. // ].toolChoose[toolIndex].tool.splice(
  7046. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7047. // itemTaskIndex
  7048. // ].toolChoose[toolIndex].tool.indexOf(i),
  7049. // 1
  7050. // );
  7051. // } else {
  7052. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7053. // itemTaskIndex
  7054. // ].toolChoose[toolIndex].tool.push(i);
  7055. // }
  7056. // console.log(
  7057. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7058. // .toolChoose[toolIndex].tool
  7059. // );
  7060. // }
  7061. if (i == 4) {
  7062. if (
  7063. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7064. .toolChoose[toolIndex].askJson.askTitle == "" ||
  7065. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7066. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  7067. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7068. .toolChoose[toolIndex].askJson[0].checkList < 2
  7069. ) {
  7070. this.openTools(itemTaskIndex, 4, toolIndex);
  7071. // this.$message({
  7072. // message: "请填写完整问卷内容",
  7073. // type: "error",
  7074. // });
  7075. return;
  7076. }
  7077. }
  7078. if (i == 45) {
  7079. if (
  7080. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7081. .toolChoose[toolIndex].testJson ||
  7082. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7083. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  7084. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7085. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  7086. ) {
  7087. this.openTools(itemTaskIndex, 45, toolIndex);
  7088. // this.$message({
  7089. // message: "请填写完整问卷内容",
  7090. // type: "error",
  7091. // });
  7092. return;
  7093. }
  7094. }
  7095. if (i == 47) {
  7096. if (
  7097. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7098. .toolChoose[toolIndex].sentenceList ||
  7099. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7100. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  7101. ) {
  7102. this.openTools(itemTaskIndex, 47, toolIndex);
  7103. return;
  7104. }
  7105. }
  7106. // if (i == 48) {
  7107. // if (
  7108. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7109. // .toolChoose[toolIndex].tableJson
  7110. // ) {
  7111. // this.openTools(itemTaskIndex, 48, toolIndex);
  7112. // return;
  7113. // }
  7114. // }
  7115. // if (i == 50) {
  7116. // if (
  7117. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7118. // .toolChoose[toolIndex].uploadJson
  7119. // ) {
  7120. // this.openTools(itemTaskIndex, 50, toolIndex);
  7121. // return;
  7122. // }
  7123. // }
  7124. if (i == 49) {
  7125. if (
  7126. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7127. .toolChoose[toolIndex].groupJson
  7128. ) {
  7129. this.openTools(itemTaskIndex, 49, toolIndex);
  7130. return;
  7131. }
  7132. }
  7133. if (i == 62) {
  7134. if (
  7135. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7136. .toolChoose[toolIndex].videoJson
  7137. ) {
  7138. this.openTools(itemTaskIndex, 62, toolIndex);
  7139. return;
  7140. }
  7141. }
  7142. if (i == 15) {
  7143. if (
  7144. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7145. .toolChoose[toolIndex].answerQ ||
  7146. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7147. .toolChoose[toolIndex].answerQ == ""
  7148. ) {
  7149. this.openTools(itemTaskIndex, 15, toolIndex);
  7150. // this.$message({
  7151. // message: "请填写问答内容",
  7152. // type: "error",
  7153. // });
  7154. return;
  7155. }
  7156. }
  7157. if (i == 40) {
  7158. if (
  7159. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7160. .toolChoose[toolIndex].rateJson ||
  7161. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7162. .toolChoose[toolIndex].rateJson.length
  7163. ) {
  7164. this.openTools(itemTaskIndex, 40, toolIndex);
  7165. return;
  7166. }
  7167. }
  7168. if (i == 41) {
  7169. if (
  7170. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7171. .toolChoose[toolIndex].selectJson ||
  7172. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7173. .toolChoose[toolIndex].selectJson.url == "" ||
  7174. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7175. .toolChoose[toolIndex].selectJson.select.length ||
  7176. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7177. .toolChoose[toolIndex].selectJson.answer.length
  7178. ) {
  7179. this.openTools(itemTaskIndex, 41, toolIndex);
  7180. return;
  7181. }
  7182. }
  7183. if (i == 42) {
  7184. if (
  7185. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7186. .toolChoose[toolIndex].answerQ ||
  7187. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7188. .toolChoose[toolIndex].answerQ == ""
  7189. ) {
  7190. this.openTools(itemTaskIndex, 42, toolIndex);
  7191. return;
  7192. }
  7193. }
  7194. if (
  7195. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7196. .toolChoose[toolIndex].tool.length > 0
  7197. ) {
  7198. if (
  7199. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7200. itemTaskIndex
  7201. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7202. ) {
  7203. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7204. itemTaskIndex
  7205. ].toolChoose[toolIndex].tool.splice(
  7206. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7207. itemTaskIndex
  7208. ].toolChoose[toolIndex].tool.indexOf(i),
  7209. 1
  7210. );
  7211. } else {
  7212. // this.$message({
  7213. // message: "每个工具只能添加一个",
  7214. // type: "error",
  7215. // });
  7216. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7217. itemTaskIndex
  7218. ].toolChoose[toolIndex].tool = [];
  7219. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7220. itemTaskIndex
  7221. ].toolChoose[toolIndex].tool.push(i);
  7222. }
  7223. } else {
  7224. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7225. itemTaskIndex
  7226. ].toolChoose[toolIndex].tool.push(i);
  7227. }
  7228. this.$forceUpdate();
  7229. },
  7230. addAskList(index) {
  7231. this.askJson.askJson.splice(index + 1, 0, {
  7232. askstitle: "",
  7233. askItem: 1,
  7234. checkList: [],
  7235. })
  7236. this.askJson.askCount++;
  7237. },
  7238. addTestList(index) {
  7239. this.testJson.testJson.splice(index + 1, 0, {
  7240. teststitle: "",
  7241. testItem: 1,
  7242. checkList: [],
  7243. timuList: [],
  7244. answer: [],
  7245. type: "1",
  7246. })
  7247. this.testJson.testCount++;
  7248. },
  7249. deleteAskList(index) {
  7250. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  7251. this.askJson.askJson.splice(index, 1);
  7252. this.askJson.askCount--;
  7253. } else {
  7254. let _this = this;
  7255. _this
  7256. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7257. confirmButtonText: "确定",
  7258. cancelButtonText: "取消",
  7259. type: "warning",
  7260. })
  7261. .then(() => {
  7262. _this.askJson.askJson.splice(index, 1);
  7263. _this.askJson.askCount--;
  7264. })
  7265. .catch(() => {
  7266. return;
  7267. });
  7268. }
  7269. },
  7270. deleteTestList(index) {
  7271. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  7272. this.testJson.testJson.splice(index, 1);
  7273. this.testJson.testCount--;
  7274. } else {
  7275. let _this = this;
  7276. _this
  7277. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7278. confirmButtonText: "确定",
  7279. cancelButtonText: "取消",
  7280. type: "warning",
  7281. })
  7282. .then(() => {
  7283. _this.testJson.testJson.splice(index, 1);
  7284. _this.testJson.testCount--;
  7285. })
  7286. .catch(() => {
  7287. return;
  7288. });
  7289. }
  7290. },
  7291. askMove(type, index) {
  7292. if (type == 1) {
  7293. if (index > 0) {
  7294. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  7295. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7296. this.askJson.askJson[index - 1] = b;
  7297. this.askJson.askJson[index] = a;
  7298. }
  7299. } else {
  7300. if (
  7301. index < this.askJson.askJson.length - 1
  7302. ) {
  7303. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  7304. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7305. this.askJson.askJson[index + 1] = b;
  7306. this.askJson.askJson[index] = a;
  7307. }
  7308. }
  7309. this.$forceUpdate();
  7310. },
  7311. checkMove(type, index, checkIndex) {
  7312. if (type == 1) {
  7313. if (checkIndex > 0) {
  7314. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  7315. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7316. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  7317. this.askJson.askJson[index].checkList[checkIndex] = a;
  7318. }
  7319. } else {
  7320. if (
  7321. checkIndex < this.askJson.askJson[index].checkList.length - 1
  7322. ) {
  7323. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  7324. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7325. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  7326. this.askJson.askJson[index].checkList[checkIndex] = a;
  7327. }
  7328. }
  7329. this.$forceUpdate();
  7330. },
  7331. testMove(type, index) {
  7332. if (type == 1) {
  7333. if (index > 0) {
  7334. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  7335. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  7336. this.testJson.testJson[index - 1] = b;
  7337. this.testJson.testJson[index] = a;
  7338. }
  7339. } else {
  7340. if (
  7341. index < this.testJson.testJson.length - 1
  7342. ) {
  7343. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  7344. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  7345. this.testJson.testJson[index + 1] = b;
  7346. this.testJson.testJson[index] = a;
  7347. }
  7348. }
  7349. this.$forceUpdate();
  7350. },
  7351. tcheckMove(type, index, checkIndex) {
  7352. if (type == 1) {
  7353. if (checkIndex > 0) {
  7354. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  7355. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  7356. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  7357. this.testJson.testJson[index].checkList[checkIndex] = a;
  7358. }
  7359. } else {
  7360. if (
  7361. checkIndex < this.testJson.testJson[index].checkList.length - 1
  7362. ) {
  7363. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  7364. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  7365. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  7366. this.testJson.testJson[index].checkList[checkIndex] = a;
  7367. }
  7368. }
  7369. this.$forceUpdate();
  7370. },
  7371. addcheckList(json, index) {
  7372. // json.checkList.length++;
  7373. json.checkList.splice(index + 1, 0, '')
  7374. json.askItem++;
  7375. this.$forceUpdate();
  7376. },
  7377. deletecheckList(json, index) {
  7378. // json.checkList.length--;
  7379. json.checkList.splice(index, 1)
  7380. json.askItem--;
  7381. this.$forceUpdate();
  7382. },
  7383. addTcheckList(json, index) {
  7384. // json.checkList.length++;
  7385. json.checkList.splice(index + 1, 0, '')
  7386. json.testItem++;
  7387. this.$forceUpdate();
  7388. },
  7389. deleteTcheckList(json, index) {
  7390. // json.checkList.length--;
  7391. json.checkList.splice(index, 1)
  7392. json.testItem--;
  7393. this.$forceUpdate();
  7394. },
  7395. checkTestType(type, json) {
  7396. json.type = type;
  7397. setTimeout(() => {
  7398. json.answer = [];
  7399. }, 100)
  7400. },
  7401. checkAskType(type, json) {
  7402. json.type = type;
  7403. // json.checkList = [];
  7404. this.$forceUpdate();
  7405. },
  7406. addSelectList(json) {
  7407. json.select.push("");
  7408. json.answer.push("");
  7409. },
  7410. deleteSelectList(json) {
  7411. // json.select.length--;
  7412. // json.answer.length--;
  7413. json.select.splice(json.select.length - 1, 1);
  7414. json.answer.splice(json.answer.length - 1, 1);
  7415. },
  7416. addAsk() {
  7417. if (this.askJson.askTitle === "") {
  7418. this.$message.error("标题不能为空!");
  7419. return;
  7420. }
  7421. var aj = this.askJson.askJson;
  7422. var b = 1;
  7423. for (var i = 0; i < aj.length; i++) {
  7424. if (aj[i].askstitle === "") {
  7425. var a = 1;
  7426. for (let index = 0; index < aj[i].askItem; index++) {
  7427. const element = aj[i].checkList[index]
  7428. ? aj[i].checkList[index]
  7429. : "";
  7430. if (element != "") {
  7431. b++;
  7432. this.$message.error(`请将题目${i + 1}填写完整。`);
  7433. return;
  7434. } else {
  7435. a++;
  7436. }
  7437. }
  7438. if (b == 1) {
  7439. this.$message.error("至少填写一个问题");
  7440. return;
  7441. }
  7442. } else if (aj[i].askstitle != "") {
  7443. for (let index = 0; index < aj[i].askItem; index++) {
  7444. const element = aj[i].checkList[index]
  7445. ? aj[i].checkList[index]
  7446. : "";
  7447. var index = 0;
  7448. for (var z = 0; z < aj[i].checkList.length; z++) {
  7449. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7450. if (checkC != "") {
  7451. index++;
  7452. } else {
  7453. this.$message.error(`题目${i + 1}选项不能为空!`);
  7454. return;
  7455. }
  7456. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  7457. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  7458. if (checkC == checkC2) {
  7459. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7460. return;
  7461. }
  7462. }
  7463. }
  7464. b++;
  7465. if (index < 2) {
  7466. this.$message.error("每道题目至少需要设置2个选项。");
  7467. return;
  7468. }
  7469. }
  7470. }
  7471. }
  7472. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  7473. var elc = el.checkList.filter((element) => {
  7474. return element != "";
  7475. });
  7476. return el.askstitle != "" && elc.length != 0;
  7477. });
  7478. if (!this.dialogVisible4) {
  7479. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7480. this.taskCount
  7481. ].toolChoose[this.toolIndex] = this.askJson;
  7482. }
  7483. this.dialogVisible5 = false;
  7484. if (
  7485. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7486. .toolChoose[this.toolIndex].tool != 4
  7487. ) {
  7488. this.addTools(4, this.taskCount, this.toolIndex);
  7489. }
  7490. },
  7491. addTest() {
  7492. // if (this.testJson.testTitle === "") {
  7493. // this.$message.error("标题不能为空!");
  7494. // return;
  7495. // }
  7496. var aj = this.testJson.testJson;
  7497. var b = 1;
  7498. for (var i = 0; i < aj.length; i++) {
  7499. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  7500. var a = 1;
  7501. for (let index = 0; index < aj[i].testItem; index++) {
  7502. const element = aj[i].checkList[index]
  7503. ? aj[i].checkList[index]
  7504. : "";
  7505. if (element != "") {
  7506. b++;
  7507. this.$message.error(`请将题目${i + 1}填写完整。`);
  7508. return;
  7509. } else {
  7510. a++;
  7511. }
  7512. }
  7513. if (b == 1) {
  7514. this.$message.error("至少填写一个问题");
  7515. return;
  7516. }
  7517. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  7518. for (let index = 0; index < aj[i].testItem; index++) {
  7519. const element = aj[i].checkList[index]
  7520. ? aj[i].checkList[index]
  7521. : "";
  7522. var index = 0;
  7523. for (var z = 0; z < aj[i].checkList.length; z++) {
  7524. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7525. if (checkC != "") {
  7526. index++;
  7527. } else {
  7528. this.$message.error(`题目${i + 1}选项不能为空!`);
  7529. return;
  7530. }
  7531. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  7532. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  7533. if (checkC == checkC2) {
  7534. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7535. return;
  7536. }
  7537. }
  7538. }
  7539. b++;
  7540. if (index < 2) {
  7541. this.$message.error("每道题目至少需要设置2个选项。");
  7542. return;
  7543. }
  7544. if (
  7545. (aj[i].type == "2" && !aj[i].answer.length) ||
  7546. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  7547. ) {
  7548. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  7549. return;
  7550. }
  7551. }
  7552. }
  7553. }
  7554. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  7555. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  7556. var elc = el.checkList.filter((element) => {
  7557. return element != "";
  7558. });
  7559. return (
  7560. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  7561. );
  7562. });
  7563. isTestJson.testCount = isTestJson.testJson.length;
  7564. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7565. this.taskCount
  7566. ].toolChoose[this.toolIndex].testJson = isTestJson;
  7567. this.dialogVisibleChoice = false;
  7568. if (
  7569. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7570. .toolChoose[this.toolIndex].tool != 45
  7571. ) {
  7572. this.addTools(45, this.taskCount, this.toolIndex);
  7573. }
  7574. },
  7575. addVideoJson(videoJson) {
  7576. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7577. this.taskCount
  7578. ].toolChoose[this.toolIndex].videoJson = videoJson;
  7579. this.dialogVisibleVideo = false;
  7580. if (
  7581. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7582. .toolChoose[this.toolIndex].tool != 62
  7583. ) {
  7584. this.addTools(62, this.taskCount, this.toolIndex);
  7585. }
  7586. },
  7587. //自动获取剪贴板
  7588. pasteOption() {
  7589. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7590. if (!iframe) {
  7591. this.$message.error("请使用AI共创生成题目");
  7592. return;
  7593. }
  7594. let copyData = iframe.contentWindow.copyData;
  7595. if (!copyData || !copyData.selectData.length) {
  7596. this.$message.error("请使用AI共创生成题目");
  7597. return;
  7598. }
  7599. let selectData = copyData.selectData;
  7600. for (var i = 0; i < selectData.length; i++) {
  7601. let answer = 0;
  7602. switch (selectData[i].answer[0]) {
  7603. case "A":
  7604. answer = 0;
  7605. break;
  7606. case "B":
  7607. answer = 1;
  7608. break;
  7609. case "C":
  7610. answer = 2;
  7611. break;
  7612. case "D":
  7613. answer = 3;
  7614. break;
  7615. case "E":
  7616. answer = 4;
  7617. break;
  7618. default:
  7619. break;
  7620. }
  7621. this.testJson.testJson.push({
  7622. teststitle: selectData[i].subject,
  7623. testItem: selectData[i].options.length,
  7624. checkList: selectData[i].options,
  7625. timuList: [],
  7626. answer: answer,
  7627. type: "1",
  7628. });
  7629. this.testJson.testCount++;
  7630. }
  7631. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  7632. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  7633. var elc = el.checkList.filter((element) => {
  7634. return element != "";
  7635. });
  7636. return (
  7637. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  7638. );
  7639. });
  7640. isTestJson.testCount = isTestJson.testJson.length;
  7641. this.testJson = isTestJson;
  7642. this.$forceUpdate();
  7643. },
  7644. pasteTask() {
  7645. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7646. if (!iframe) {
  7647. this.$message.error("请使用AI共创生成");
  7648. return;
  7649. }
  7650. let copyData = iframe.contentWindow.copyData;
  7651. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  7652. this.$message.error("请使用AI共创生成");
  7653. return;
  7654. }
  7655. let stageTasksData = copyData.tasksData;
  7656. let taskA = [];
  7657. let tasks = stageTasksData;
  7658. for (var j = 0; j < tasks.length; j++) {
  7659. taskA.push({
  7660. task: tasks[j].taskName,
  7661. taskDetail: tasks[j].taskDecs,
  7662. chapterData: [],
  7663. toolText: "",
  7664. toolChoose: [
  7665. {
  7666. tool: [],
  7667. toolDetail: "",
  7668. toolType: 0,
  7669. askCount: 1,
  7670. askTitle: "",
  7671. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7672. },
  7673. ],
  7674. isShowTools: false,
  7675. askCount: 1,
  7676. isFold: 0,
  7677. askTitle: "",
  7678. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7679. checkJson: [{ checkCount: [], checkPerent: [] }],
  7680. homeworkList: [],
  7681. });
  7682. }
  7683. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  7684. this.$forceUpdate();
  7685. },
  7686. pasteStage() {
  7687. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7688. if (!iframe) {
  7689. this.$message.error("请使用AI共创生成");
  7690. return;
  7691. }
  7692. let copyData = iframe.contentWindow.copyData;
  7693. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  7694. this.$message.error("请使用AI共创生成");
  7695. return;
  7696. }
  7697. let stageData = copyData.stageData;
  7698. let stage = [];
  7699. for (var i = 0; i < stageData.length; i++) {
  7700. stage.push({
  7701. dyName: stageData[i], //单元标题
  7702. chapterInfo: [
  7703. {
  7704. isread: false,
  7705. chapterid: this.guid(),
  7706. title: "",
  7707. courseName: "",
  7708. taskJson: [
  7709. {
  7710. task: "",
  7711. taskDetail: "",
  7712. chapterData: [],
  7713. toolText: "",
  7714. toolChoose: [
  7715. {
  7716. tool: [],
  7717. toolDetail: "",
  7718. toolType: 0,
  7719. askCount: 1,
  7720. askTitle: "",
  7721. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7722. },
  7723. ],
  7724. isShowTools: false,
  7725. askCount: 1,
  7726. isFold: 0,
  7727. askTitle: "",
  7728. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7729. checkJson: [{ checkCount: [], checkPerent: [] }],
  7730. homeworkList: [],
  7731. },
  7732. ],
  7733. itemCount: 1,
  7734. fileList1: [],
  7735. video: [],
  7736. testData: [],
  7737. pData: [],
  7738. templateArray: [],
  7739. },
  7740. ],
  7741. });
  7742. }
  7743. let _this = this;
  7744. _this
  7745. .$confirm("确定选择智能粘贴模板吗?修改课程时无法重置课程模板。", "提示", {
  7746. confirmButtonText: "确定",
  7747. cancelButtonText: "取消",
  7748. type: "warning",
  7749. })
  7750. .then(() => {
  7751. _this.unitIndex = 0;
  7752. _this.unitJson = stage;
  7753. _this.steps++;
  7754. _this.updateWork();
  7755. })
  7756. .catch(() => {
  7757. return;
  7758. });
  7759. },
  7760. openStageBox() {
  7761. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson))
  7762. this.dialogVisibleStageChange = true;
  7763. },
  7764. updateChange() {
  7765. this.$confirm(
  7766. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  7767. "提示",
  7768. {
  7769. confirmButtonText: "确定",
  7770. cancelButtonText: "取消",
  7771. type: "warning",
  7772. }
  7773. )
  7774. .then(() => {
  7775. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3))
  7776. this.updateWork()
  7777. this.dialogVisibleStageChange = false;
  7778. })
  7779. .catch(() => {
  7780. return;
  7781. });
  7782. },
  7783. addAnswer() {
  7784. if (this.answerQ == "") {
  7785. this.$message.error("请输入您想要问的问题");
  7786. return;
  7787. }
  7788. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7789. this.taskCount
  7790. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7791. this.dialogVisible8 = false;
  7792. if (
  7793. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7794. .toolChoose[this.toolIndex].tool != 15
  7795. ) {
  7796. this.addTools(15, this.taskCount, this.toolIndex);
  7797. }
  7798. },
  7799. addMp3Answer() {
  7800. if (this.answerQ == "") {
  7801. this.$message.error("请输入您想要回答的问题");
  7802. return;
  7803. }
  7804. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7805. this.taskCount
  7806. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7807. this.dialogVisibleMp3 = false;
  7808. },
  7809. addRateAnswer() {
  7810. var a = 1;
  7811. for (var i = 0; i < this.rateJson.length; i++) {
  7812. if (this.rateJson[i].value == "") {
  7813. a = 2;
  7814. break;
  7815. }
  7816. }
  7817. if (a == 2) {
  7818. this.$message.error("请把评价信息填写完整");
  7819. return;
  7820. }
  7821. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7822. this.taskCount
  7823. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  7824. this.dialogVisibleRate = false;
  7825. if (
  7826. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7827. .toolChoose[this.toolIndex].tool != 40
  7828. ) {
  7829. this.addTools(40, this.taskCount, this.toolIndex);
  7830. }
  7831. },
  7832. addSelectAnswer() {
  7833. if (this.selectJson.url == "") {
  7834. this.$message.error("请上传题目");
  7835. return;
  7836. }
  7837. if (!this.selectJson.select.length) {
  7838. this.$message.error("请添加选项");
  7839. return;
  7840. }
  7841. if (!this.selectJson.answer.length) {
  7842. this.$message.error("请设置答案");
  7843. return;
  7844. }
  7845. var a = 1;
  7846. for (var i = 0; i < this.selectJson.answer.length; i++) {
  7847. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  7848. a = 2;
  7849. }
  7850. }
  7851. if (a == 2) {
  7852. this.$message.error("请设置答案");
  7853. return;
  7854. }
  7855. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7856. this.taskCount
  7857. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  7858. this.dialogVisibleSelect = false;
  7859. if (
  7860. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7861. .toolChoose[this.toolIndex].tool != 41
  7862. ) {
  7863. this.addTools(41, this.taskCount, this.toolIndex);
  7864. }
  7865. },
  7866. nextSelectSteps() {
  7867. if (this.selectJson.url == "") {
  7868. this.$message.error("请上传题目");
  7869. return;
  7870. }
  7871. if (!this.selectJson.select.length) {
  7872. this.$message.error("请添加选项");
  7873. return;
  7874. } else {
  7875. for (var z = 0; z < this.selectJson.select.length; z++) {
  7876. let checkC = this.selectJson.select[z];
  7877. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  7878. let checkC2 = this.selectJson.select[z2];
  7879. if (checkC == checkC2) {
  7880. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7881. return;
  7882. }
  7883. }
  7884. }
  7885. }
  7886. var a = 1;
  7887. for (var i = 0; i < this.selectJson.select.length; i++) {
  7888. if (!this.selectJson.select[i]) {
  7889. a = 2;
  7890. }
  7891. }
  7892. if (a == 2) {
  7893. this.$message.error("添加的选项不能为空");
  7894. return;
  7895. }
  7896. this.selectSteps++;
  7897. },
  7898. selectCourseDetail() {
  7899. if (this.cid == "" || this.cid == undefined) {
  7900. console.log("这是新增课程");
  7901. this.selectAllType();
  7902. } else {
  7903. this.cidType = 1;
  7904. let params = {
  7905. cid: this.cid,
  7906. };
  7907. this.ajax
  7908. .get(this.$store.state.api + "select_course_detail", params)
  7909. .then((res) => {
  7910. this.loading = true;
  7911. this.unitJson = JSON.parse(res.data[0][0].chapters);
  7912. for (var j = 0; j < this.unitJson.length; j++) {
  7913. for (
  7914. var k = 0;
  7915. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  7916. k++
  7917. ) {
  7918. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  7919. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  7920. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  7921. : [];
  7922. let _chapterData = [];
  7923. for (
  7924. var c = 0;
  7925. c <
  7926. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  7927. .length;
  7928. c++
  7929. ) {
  7930. if (
  7931. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  7932. ) {
  7933. _chapterData.push(
  7934. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  7935. );
  7936. }
  7937. }
  7938. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  7939. _chapterData;
  7940. }
  7941. }
  7942. this.$forceUpdate();
  7943. this.courseName = res.data[0][0].title;
  7944. this.courseText = res.data[0][0].brief;
  7945. this.evalua = res.data[0][0].evaId;
  7946. this.cover = JSON.parse(res.data[0][0].cover);
  7947. this.noneBtnImg = this.cover.length >= 1;
  7948. // this.checkboxList =
  7949. // res.data[0][0].course_student.length > 0
  7950. // ? JSON.parse(res.data[0][0].course_student)
  7951. // : [];
  7952. this.checkboxList2 = res.data[0][0].juri
  7953. ? res.data[0][0].juri.split(",")
  7954. : [];
  7955. this.inviteCode = [];
  7956. for (var i = 0; i < res.data[2].length; i++) {
  7957. this.inviteCode.push({
  7958. cid: res.data[2][i].classid,
  7959. ic: res.data[2][i].code,
  7960. });
  7961. }
  7962. this.checkboxList3 = res.data[0][0].course_teacher
  7963. ? res.data[0][0].course_teacher.split(",")
  7964. : [];
  7965. // this.isTeacherSee =
  7966. // res.data[0][0].is_teacher_look == 0 ? true : false;
  7967. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  7968. this.myWord = res.data[0][0].template;
  7969. this.templateC.id = "123";
  7970. this.courseUserid = res.data[0][0].userid;
  7971. // if(this.courseUserid == this.userid){
  7972. // this.InviteChange(this.checkboxList2)
  7973. // }
  7974. this.nbOrder = res.data[0][0].ordernumber;
  7975. this.courseTypeId = [];
  7976. for (var i = 0; i < res.data[1].length; i++) {
  7977. this.courseTypeId.push(res.data[1][i].typeid);
  7978. }
  7979. console.log(this.courseTypeId);
  7980. // if (this.timer) clearInterval(this.timer);
  7981. if (this.timer) clearTimeout(this.timer);
  7982. this.timer = null;
  7983. // this.timer = setInterval(() => {
  7984. this.seleteCourseUpdate();
  7985. this.setMan();
  7986. this.selectAllType();
  7987. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  7988. // }, 5000);
  7989. this.$forceUpdate();
  7990. setTimeout(() => {
  7991. this.checkEva(this.evalua);
  7992. setTimeout(() => {
  7993. this.checkEva(this.evalua);
  7994. }, 100);
  7995. }, 100);
  7996. })
  7997. .catch((err) => {
  7998. console.error(err);
  7999. });
  8000. }
  8001. },
  8002. seleteCourseUpdate() {
  8003. let params = {
  8004. cid: this.cid,
  8005. };
  8006. this.ajax
  8007. .get(this.$store.state.api + "select_course_detail", params)
  8008. .then((res) => {
  8009. // console.log(this.unitJson);
  8010. let unitJson = JSON.parse(res.data[0][0].chapters);
  8011. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  8012. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  8013. let _unitJson = [];
  8014. let _chapAarry = [];
  8015. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  8016. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  8017. let index = 1;
  8018. let chapindex;
  8019. if (_unitJson2.length > unitJson.length) {
  8020. for (let c = 0; c < _unitJson2.length; c++) {
  8021. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  8022. }
  8023. for (let j = 0; j < unitJson.length; j++) {
  8024. let count = 0;
  8025. for (let k = 0; k < _unitJson2.length; k++) {
  8026. if (
  8027. unitJson[j].chapterInfo[0].chapterid ==
  8028. _unitJson2[k].chapterInfo[0].chapterid
  8029. ) {
  8030. count++;
  8031. _chapAarry.splice(
  8032. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8033. 1
  8034. );
  8035. _unitJson.push(unitJson[j]);
  8036. break;
  8037. }
  8038. }
  8039. // if(count === 0){
  8040. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8041. // }
  8042. }
  8043. for (let k = 0; k < _unitJson2.length; k++) {
  8044. if (_unitJson2[k].isUpdate == 1) {
  8045. _chapAarry.splice(
  8046. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8047. 1
  8048. );
  8049. _unitJson.push(_unitJson2[k]);
  8050. }
  8051. }
  8052. console.log(_chapAarry);
  8053. for (let d = 0; d < _unitJson2.length; d++) {
  8054. if (
  8055. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  8056. ) {
  8057. if (_unitIndex == d) {
  8058. index = 2;
  8059. }
  8060. chapindex = d;
  8061. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8062. }
  8063. }
  8064. } else {
  8065. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  8066. }
  8067. for (let i = 0; i < unitJson.length; i++) {
  8068. if (
  8069. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  8070. _unitJson[i].chapterInfo[0].chapterid !=
  8071. unitJson[i].chapterInfo[0].chapterid
  8072. ) {
  8073. if (i == _unitJson.length - 1) {
  8074. // this.unitIndex++
  8075. _unitIndex2++;
  8076. }
  8077. _unitJson.splice(i, 0, unitJson[i]);
  8078. } else if (i > _unitJson.length - 1) {
  8079. _unitJson.push(unitJson[i]);
  8080. } else if (
  8081. _unitJson[i].chapterInfo[0].chapterid ==
  8082. unitJson[i].chapterInfo[0].chapterid
  8083. ) {
  8084. _unitJson[i] = unitJson[i];
  8085. }
  8086. // if (i == _unitIndex) {
  8087. // continue;
  8088. // } else
  8089. }
  8090. if (_chapAarry.length && index != 2) {
  8091. if (chapindex < _unitIndex) {
  8092. this.isDelete = 2;
  8093. // this.unitIndex--;
  8094. _unitIndex2--;
  8095. } else if (
  8096. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  8097. _unitJson[_unitIndex].chapterInfo[0].chapterid
  8098. ) {
  8099. this.isDelete = 2;
  8100. for (let n = 0; n < _unitJson.length; n++) {
  8101. if (
  8102. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  8103. _unitJson[n].chapterInfo[0].chapterid
  8104. ) {
  8105. // this.unitIndex = n;
  8106. _unitIndex2 = n;
  8107. _unitJson[n] = _unitJson2[_unitIndex];
  8108. break;
  8109. }
  8110. }
  8111. }
  8112. } else if (index != 2) {
  8113. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  8114. _unitJson2[_unitIndex];
  8115. for (
  8116. var ci = 0;
  8117. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  8118. ci++
  8119. ) {
  8120. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  8121. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  8122. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8123. .toolChoose
  8124. : [];
  8125. let _chapterData = [];
  8126. for (
  8127. var c = 0;
  8128. c <
  8129. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  8130. .length;
  8131. c++
  8132. ) {
  8133. if (
  8134. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8135. .chapterData[c]
  8136. ) {
  8137. _chapterData.push(
  8138. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8139. .chapterData[c]
  8140. );
  8141. }
  8142. }
  8143. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  8144. _chapterData;
  8145. }
  8146. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  8147. }
  8148. if (index == 1) {
  8149. this.unitJson = _unitJson;
  8150. this.$forceUpdate();
  8151. setTimeout(() => {
  8152. if (this.unitIndex != _unitIndex2) {
  8153. this.isDelete = 2;
  8154. this.unitIndex = _unitIndex2;
  8155. }
  8156. }, 0);
  8157. this.timer = setTimeout(() => {
  8158. this.seleteCourseUpdate();
  8159. }, 1000);
  8160. } else if (index == 2) {
  8161. let _this = this;
  8162. _this
  8163. .$confirm(
  8164. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  8165. "提示",
  8166. {
  8167. confirmButtonText: "需要",
  8168. cancelButtonText: "取消",
  8169. type: "warning",
  8170. }
  8171. )
  8172. .then(() => {
  8173. if (_this.time()) {
  8174. _this.restoreWork(
  8175. _chapAarry[0],
  8176. _unitJson,
  8177. chapindex,
  8178. _unitJson2,
  8179. _unitIndex2
  8180. );
  8181. }
  8182. })
  8183. .catch(() => {
  8184. _this.unitJson = _unitJson;
  8185. _this.$forceUpdate();
  8186. setTimeout(() => {
  8187. if (this.unitIndex != _unitIndex2) {
  8188. this.isDelete = 2;
  8189. this.unitIndex = _unitIndex2;
  8190. }
  8191. }, 0);
  8192. _this.timer = setTimeout(() => {
  8193. _this.seleteCourseUpdate();
  8194. }, 1000);
  8195. });
  8196. }
  8197. })
  8198. .catch((err) => {
  8199. console.error(err);
  8200. });
  8201. },
  8202. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  8203. let params = [
  8204. {
  8205. cid: this.cid,
  8206. chapters: JSON.stringify(this.unitJson),
  8207. uid: this.userid,
  8208. chapid: chapid,
  8209. },
  8210. ];
  8211. this.ajax
  8212. .post(this.$store.state.api + "restoreWork", params)
  8213. .then((res) => {
  8214. this.$message({
  8215. message: "恢复成功",
  8216. type: "success",
  8217. });
  8218. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  8219. this.unitJson = unitJson;
  8220. this.$forceUpdate();
  8221. setTimeout(() => {
  8222. if (this.unitIndex != unitIndex2) {
  8223. this.isDelete = 2;
  8224. this.unitIndex = unitIndex2;
  8225. }
  8226. }, 0);
  8227. this.timer = setTimeout(() => {
  8228. this.seleteCourseUpdate();
  8229. }, 1000);
  8230. })
  8231. .catch((err) => {
  8232. this.$message.error("网络不佳");
  8233. console.error(err);
  8234. });
  8235. },
  8236. getTypeName() {
  8237. console.log(this.courseTypeId);
  8238. this.$forceUpdate();
  8239. },
  8240. selectAllType() {
  8241. let params = {
  8242. org: this.org && this.org != "" ? this.org : "",
  8243. oid: this.oid && this.oid != "" ? this.oid : "",
  8244. };
  8245. this.ajax
  8246. .get(this.$store.state.api + "selectAllType", params)
  8247. .then((res) => {
  8248. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8249. res.data[0] = [...res.data[0], ...res.data[4]]
  8250. }
  8251. this.CourseType = res.data;
  8252. this.CourseType2 = [
  8253. { name: "智见课程", id: [] },
  8254. { name: "智行课程", id: [] },
  8255. { name: "智创课程", id: [] },
  8256. ];
  8257. for (var cti = 0; cti < res.data[0].length; cti++) {
  8258. if (
  8259. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  8260. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  8261. ) {
  8262. this.CourseType2[0].id.push(res.data[0][cti].id);
  8263. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  8264. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8265. this.CourseType2[1].id.push(res.data[0][cti].id);
  8266. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8267. this.CourseType2[2].id.push(res.data[0][cti].id);
  8268. }
  8269. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  8270. res.data[0][cti].name = "年级";
  8271. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8272. res.data[0][cti].name = "学科";
  8273. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8274. res.data[0][cti].name = "主题";
  8275. }
  8276. }
  8277. let _courseTypeId = [];
  8278. for (var i = 0; i < res.data[0].length; i++) {
  8279. if (!this.cid) {
  8280. this.courseTypeId[res.data[0][i].id] = [];
  8281. }
  8282. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  8283. // }
  8284. this.CourseTypeJson[res.data[0][i].id] = [];
  8285. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8286. if (res.data[0][i].name == "栏目") {
  8287. this.CourseType[0][i].name = "主题";
  8288. }
  8289. }
  8290. if (res.data[2].length == 0 && res.data[3].length == 0) {
  8291. for (var j = 0; j < res.data[1].length; j++) {
  8292. if (
  8293. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  8294. _courseTypeId.indexOf(res.data[1][j].id) == -1
  8295. ) {
  8296. _courseTypeId.push(res.data[1][j].id);
  8297. }
  8298. if (res.data[0][i].id == res.data[1][j].pid) {
  8299. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8300. }
  8301. }
  8302. } else {
  8303. if (res.data[2].length > 0) {
  8304. for (var j = 0; j < res.data[2].length; j++) {
  8305. if (
  8306. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  8307. _courseTypeId.indexOf(res.data[2][j].id) == -1
  8308. ) {
  8309. _courseTypeId.push(res.data[2][j].id);
  8310. }
  8311. if (res.data[0][i].id == res.data[2][j].pid) {
  8312. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  8313. }
  8314. }
  8315. }
  8316. if (res.data[3].length > 0) {
  8317. for (var j = 0; j < res.data[3].length; j++) {
  8318. if (
  8319. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  8320. _courseTypeId.indexOf(res.data[3][j].id) == -1
  8321. ) {
  8322. _courseTypeId.push(res.data[3][j].id);
  8323. }
  8324. if (res.data[0][i].id == res.data[3][j].pid) {
  8325. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  8326. }
  8327. }
  8328. }
  8329. }
  8330. }
  8331. this.courseTypeId = _courseTypeId;
  8332. })
  8333. .catch((err) => {
  8334. console.error(err);
  8335. });
  8336. },
  8337. selectType() {
  8338. this.ajax
  8339. .get(this.$store.state.api + "selectType")
  8340. .then((res) => {
  8341. this.CourseType = res.data;
  8342. for (var i = 0; i < res.data[0].length; i++) {
  8343. if (!this.cid) {
  8344. this.courseTypeId[res.data[0][i].id] = "";
  8345. }
  8346. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8347. if (res.data[0][i].name == "栏目") {
  8348. this.CourseType[0][i].name = "主题";
  8349. }
  8350. }
  8351. for (var j = 0; j < res.data[1].length; j++) {
  8352. if (res.data[0][i].id == res.data[1][j].pid) {
  8353. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8354. this.CourseTypeJson[res.data[0][i].id] = [];
  8355. }
  8356. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8357. }
  8358. }
  8359. }
  8360. this.selectTypeByOid();
  8361. this.selectTypeByOrg();
  8362. })
  8363. .catch((err) => {
  8364. console.error(err);
  8365. });
  8366. },
  8367. selectTypeByOid() {
  8368. let params = {
  8369. oid: this.oid,
  8370. };
  8371. this.ajax
  8372. .get(this.$store.state.api + "selectTypeByOid", params)
  8373. .then((res) => {
  8374. for (var i = 0; i < res.data[0].length; i++) {
  8375. for (var j = 0; j < res.data[1].length; j++) {
  8376. if (res.data[0][i].id == res.data[1][j].pid) {
  8377. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8378. this.CourseTypeJson[res.data[0][i].id] = [];
  8379. }
  8380. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8381. }
  8382. }
  8383. }
  8384. })
  8385. .catch((err) => {
  8386. console.error(err);
  8387. });
  8388. },
  8389. selectTypeByOrg() {
  8390. let params = {
  8391. oid: this.org,
  8392. };
  8393. this.ajax
  8394. .get(this.$store.state.api + "selectTypeByOrg", params)
  8395. .then((res) => {
  8396. for (var i = 0; i < res.data[0].length; i++) {
  8397. for (var j = 0; j < res.data[1].length; j++) {
  8398. if (res.data[0][i].id == res.data[1][j].pid) {
  8399. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8400. this.CourseTypeJson[res.data[0][i].id] = [];
  8401. }
  8402. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8403. }
  8404. }
  8405. }
  8406. this.$forceUpdate();
  8407. })
  8408. .catch((err) => {
  8409. console.error(err);
  8410. });
  8411. },
  8412. OtherMb(type, task) {
  8413. if(task === 0 || task){
  8414. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[task].isEvaFold = true;
  8415. }
  8416. this.typeMode = type;
  8417. setTimeout(() => {
  8418. this.checkEva(this.checkId);
  8419. setTimeout(() => {
  8420. this.checkEva(this.checkId);
  8421. }, 100);
  8422. }, 100);
  8423. },
  8424. openMember() {
  8425. this.searchTN = "";
  8426. this.getTeacher();
  8427. this.dialogVisibleMember = true;
  8428. },
  8429. checkEva(id, type) {
  8430. this.dialogVisiblemb = false;
  8431. this.selectEva();
  8432. if (this.evalua != id && type == 2) {
  8433. this.$message.success("导入成功");
  8434. setTimeout(() => {
  8435. this.checkEva(id)
  8436. }, 100);
  8437. }
  8438. this.evalua = id;
  8439. this.checkId = id;
  8440. if (this.evalua != "") {
  8441. for (var i = 0; i < this.evaJuri.length; i++) {
  8442. if (this.evalua == this.evaJuri[i].id) {
  8443. this.eTitle = this.evaJuri[i].title;
  8444. this.eJson = JSON.parse(this.evaJuri[i].content);
  8445. }
  8446. }
  8447. this.data.data = [];
  8448. this.$forceUpdate();
  8449. setTimeout(() => {
  8450. this.setMindData();
  8451. }, 1000);
  8452. }
  8453. },
  8454. deleteEva() {
  8455. let _this = this;
  8456. if (_this.evalua == "") {
  8457. this.$message.warning("内容已经清空了,请勿重复清空");
  8458. return;
  8459. }
  8460. _this
  8461. .$confirm("确定删除此目标吗?", "提示", {
  8462. confirmButtonText: "确定",
  8463. cancelButtonText: "取消",
  8464. type: "warning",
  8465. })
  8466. .then(() => {
  8467. _this.evalua = "";
  8468. _this.checkId = "";
  8469. _this.eTitle = "";
  8470. let _unitJson = _this.unitJson;
  8471. for (var i = 0; i < _unitJson.length; i++) {
  8472. let _task = _unitJson[i].chapterInfo[0].taskJson;
  8473. for (var j = 0; j < _task.length; j++) {
  8474. let _eList = _task[j].eList;
  8475. for (var k = 0; k < _eList.length; k++) {
  8476. delete _eList[k].target;
  8477. }
  8478. }
  8479. }
  8480. _this.$forceUpdate();
  8481. if (_this.cid) {
  8482. _this.updateWork();
  8483. }
  8484. })
  8485. .catch(() => {
  8486. return;
  8487. });
  8488. },
  8489. selectEva() {
  8490. let params = {
  8491. oid: this.oid,
  8492. };
  8493. this.ajax
  8494. .get(this.$store.state.api + "selectAllEvaluation", params)
  8495. .then((res) => {
  8496. this.evaJuri = res.data[0];
  8497. })
  8498. .catch((err) => {
  8499. console.error(err);
  8500. });
  8501. },
  8502. setMindData() {
  8503. let targetArray = [];
  8504. this.data.data = [];
  8505. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  8506. let _eJson = Object.keys(this.eJson);
  8507. let _e = this.eJson;
  8508. for (let i = 0; i < _eJson.length; i++) {
  8509. let element = _e[_eJson[i]];
  8510. this.data.data.push({
  8511. id: element.id,
  8512. parentid: "root",
  8513. topic: element.name,
  8514. });
  8515. // targetArray.push({
  8516. // id: element.id,
  8517. // parentid: "root",
  8518. // name: element.name,
  8519. // });
  8520. targetArray.push({
  8521. value: element.name,
  8522. label: element.name,
  8523. children: [],
  8524. });
  8525. let _eJsonc = Object.keys(element.child);
  8526. let _e2 = element.child;
  8527. for (let j = 0; j < _eJsonc.length; j++) {
  8528. let _ec = _e2[_eJsonc[j]];
  8529. this.data.data.push({
  8530. id: _ec.id,
  8531. parentid: element.id,
  8532. topic: _ec.name,
  8533. });
  8534. // targetArray.push({
  8535. // id: _ec.id,
  8536. // parentid: element.id,
  8537. // name: _ec.name,
  8538. // });
  8539. targetArray[i].children.push({
  8540. value: _ec.name,
  8541. label: _ec.name,
  8542. children: [],
  8543. });
  8544. let _eJsonz = Object.keys(_ec.child);
  8545. let _e3 = _ec.child;
  8546. for (let z = 0; z < _eJsonz.length; z++) {
  8547. let _ez = _e3[_eJsonz[z]];
  8548. this.data.data.push({
  8549. id: _ez.id,
  8550. parentid: _ec.id,
  8551. topic: _ez.name,
  8552. });
  8553. // targetArray.push({
  8554. // id: _ez.id,
  8555. // parentid: _ec.id,
  8556. // name: _ez.name,
  8557. // });
  8558. targetArray[i].children[j].children.push({
  8559. value: _ez.name,
  8560. label: _ez.name,
  8561. });
  8562. }
  8563. }
  8564. }
  8565. this.targetArray = targetArray;
  8566. this.$forceUpdate();
  8567. },
  8568. /*添加评价 */
  8569. addEList(index, tIndex) {
  8570. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  8571. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  8572. value: "",
  8573. detail: "",
  8574. score: 5,
  8575. })
  8576. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  8577. { value: "", detail: "", score: 5 },
  8578. ]);
  8579. this.$forceUpdate();
  8580. },
  8581. forceUpdate() {
  8582. this.$forceUpdate();
  8583. },
  8584. deletEList(index, tIndex, eIndex) {
  8585. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  8586. eIndex,
  8587. 1
  8588. );
  8589. this.$forceUpdate();
  8590. },
  8591. getChoosePic(t) {
  8592. this.chooseType = t;
  8593. this.getAllBanner();
  8594. },
  8595. getAllBanner() {
  8596. this.sysPicVisible = true;
  8597. let params = {
  8598. t: this.chooseType,
  8599. };
  8600. this.ajax
  8601. .get(this.$store.state.api + "selectAllBanner", params)
  8602. .then((res) => {
  8603. this.sysPic = res.data[0];
  8604. })
  8605. .catch((err) => {
  8606. console.error(err);
  8607. });
  8608. },
  8609. // getClass() {
  8610. // let params = {
  8611. // oid: this.oid,
  8612. // };
  8613. // this.ajax
  8614. // .get(this.$store.state.api + "selectClassBySchool", params)
  8615. // .then((res) => {
  8616. // this.classJuri = res.data[0];
  8617. // })
  8618. // .catch((err) => {
  8619. // console.error(err);
  8620. // });
  8621. // },
  8622. deleteSysPic() {
  8623. this.cover = [];
  8624. this.isSysPic = false;
  8625. this.isSysPic2 = false;
  8626. },
  8627. deleteSelectPic() {
  8628. this.selectJson.url = "";
  8629. },
  8630. setEListStar() {
  8631. this.$forceUpdate();
  8632. },
  8633. deletRateList(i) {
  8634. this.rateJson.splice(i, 1);
  8635. },
  8636. addRateList() {
  8637. this.rateJson.push({ detail: "", score: 5, value: "" });
  8638. },
  8639. addSt() {
  8640. this.sentenceList.push({
  8641. sentenceTitle: "",
  8642. addSentence: [],
  8643. rightAnswer: [],
  8644. });
  8645. },
  8646. addSen(i) {
  8647. if (!this.sentenceList[i].sentenceTitle) {
  8648. this.$message.error("请填写卡片内容!");
  8649. return;
  8650. }
  8651. if (this.sentenceList[i].sentenceTitle.length > 10) {
  8652. this.$message.error("卡片内容字数不能超过10位");
  8653. return;
  8654. }
  8655. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  8656. this.$message.error("不能添加重复的卡片内容!");
  8657. return;
  8658. }
  8659. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  8660. // this.isPushTitleList.push(this.sentenceTitle);
  8661. this.sentenceList[i].sentenceTitle = "";
  8662. },
  8663. setRightAnswer(s, i, j) {
  8664. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  8665. this.sentenceList[i].rightAnswer.push(s);
  8666. }
  8667. },
  8668. returnCard(r, i, j) {
  8669. this.sentenceList[i].rightAnswer.splice(j, 1);
  8670. },
  8671. addSentenceTool() {
  8672. for (var i = 0; i < this.sentenceList.length; i++) {
  8673. if (this.sentenceList[i].rightAnswer.length == 0) {
  8674. this.$message.error(`请将题目${i + 1}设置完整。`);
  8675. return;
  8676. }
  8677. if (
  8678. this.sentenceList[i].addSentence.length !=
  8679. this.sentenceList[i].rightAnswer.length
  8680. ) {
  8681. this.$message.error(`请将题目${i + 1}设置完整。`);
  8682. return;
  8683. }
  8684. }
  8685. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8686. this.taskCount
  8687. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  8688. this.sentenceList = [
  8689. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  8690. ];
  8691. this.dialogVisibleSentence = false;
  8692. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8693. // itemTaskIndex
  8694. // ].toolChoose[toolIndex].tool = [];
  8695. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8696. // itemTaskIndex
  8697. // ].toolChoose[toolIndex].tool.push(i);
  8698. if (
  8699. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8700. .toolChoose[this.toolIndex].tool != 47
  8701. ) {
  8702. this.addTools(47, this.taskCount, this.toolIndex);
  8703. }
  8704. },
  8705. addTableJson() {
  8706. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8707. // this.$message.error("请将信息填写完整!");
  8708. // return;
  8709. // }
  8710. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8711. this.taskCount
  8712. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  8713. // this.tableJson = [{ text: "" }];
  8714. // this.dialogVisibleTable = false;
  8715. this.$message.success("上传成功");
  8716. if (
  8717. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8718. .toolChoose[this.toolIndex].tool != 48
  8719. ) {
  8720. this.addTools(48, this.taskCount, this.toolIndex);
  8721. }
  8722. },
  8723. addWordJson() {
  8724. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8725. this.taskCount
  8726. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  8727. // this.wordJson = [{ text: "" }];
  8728. // this.dialogVisibleWord = false;
  8729. this.$message.success("上传成功");
  8730. if (
  8731. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8732. .toolChoose[this.toolIndex].tool != 52
  8733. ) {
  8734. this.addTools(52, this.taskCount, this.toolIndex);
  8735. }
  8736. },
  8737. addMoreUpload() {
  8738. if (this.uploadJson.length == 0) {
  8739. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8740. this.taskCount
  8741. ].toolChoose[this.toolIndex].uploadJson = [];
  8742. } else {
  8743. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8744. this.taskCount
  8745. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  8746. }
  8747. this.uploadJson = [];
  8748. this.dialogVisibleMoreUpload = false;
  8749. if (
  8750. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8751. .toolChoose[this.toolIndex].tool != 50
  8752. ) {
  8753. this.addTools(50, this.taskCount, this.toolIndex);
  8754. }
  8755. },
  8756. addPreTime() {
  8757. if (this.preTime == 0) {
  8758. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8759. this.taskCount
  8760. ].toolChoose[this.toolIndex].preTime = 0;
  8761. } else {
  8762. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8763. this.taskCount
  8764. ].toolChoose[this.toolIndex].preTime = this.preTime;
  8765. }
  8766. this.preTime = 0;
  8767. this.dialogVisiblePreTime = false;
  8768. if (
  8769. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8770. .toolChoose[this.toolIndex].tool != 10
  8771. ) {
  8772. this.addTools(10, this.taskCount, this.toolIndex);
  8773. }
  8774. },
  8775. goToTask(i) {
  8776. this.toolIndexType = ''
  8777. if (this.isClickColor == (i + 1)) {
  8778. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  8779. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  8780. } else {
  8781. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  8782. }
  8783. this.$forceUpdate();
  8784. return;
  8785. }
  8786. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  8787. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  8788. } else {
  8789. document.querySelectorAll(".basic_box")[0].scrollTop =
  8790. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  8791. this.isClickColor = i + 1;
  8792. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  8793. }
  8794. this.$forceUpdate();
  8795. },
  8796. taskMove(type, index) {
  8797. this.$confirm(
  8798. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  8799. "提示",
  8800. {
  8801. confirmButtonText: "确定",
  8802. cancelButtonText: "取消",
  8803. type: "warning",
  8804. }
  8805. )
  8806. .then(() => {
  8807. if (type == 1) {
  8808. if (index > 0) {
  8809. let a = JSON.parse(
  8810. JSON.stringify(
  8811. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8812. index - 1
  8813. ]
  8814. )
  8815. );
  8816. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  8817. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8818. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8819. }
  8820. } else {
  8821. if (
  8822. index <
  8823. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  8824. ) {
  8825. let a = JSON.parse(
  8826. JSON.stringify(
  8827. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8828. index + 1
  8829. ]
  8830. )
  8831. );
  8832. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  8833. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8834. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8835. }
  8836. }
  8837. this.$forceUpdate();
  8838. })
  8839. .catch(() => {
  8840. return;
  8841. });
  8842. },
  8843. stageMove(type, index) {
  8844. if (type == 1) {
  8845. if (index > 0) {
  8846. let a = JSON.parse(
  8847. JSON.stringify(
  8848. this.unitJson3[index - 1]
  8849. )
  8850. );
  8851. let acid = JSON.parse(JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid))
  8852. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  8853. this.unitJson3[index - 1] = this.unitJson3[index];
  8854. this.unitJson3[index] = a;
  8855. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  8856. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  8857. }
  8858. } else {
  8859. if (
  8860. index <
  8861. this.unitJson3.length - 1
  8862. ) {
  8863. let a = JSON.parse(
  8864. JSON.stringify(
  8865. this.unitJson3[
  8866. index + 1
  8867. ]
  8868. )
  8869. );
  8870. let acid = JSON.parse(JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid))
  8871. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  8872. this.unitJson3[index + 1] =
  8873. this.unitJson3[index];
  8874. this.unitJson3[index] = a;
  8875. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  8876. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  8877. }
  8878. }
  8879. this.$forceUpdate();
  8880. },
  8881. addGroup(i) {
  8882. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  8883. this.groupJson.group.push({
  8884. name: "第" + (this.groupJson.group.length + 1) + "组",
  8885. });
  8886. },
  8887. deleteGroup(i) {
  8888. this.groupJson.group.splice(i, 1);
  8889. },
  8890. numberPan() {
  8891. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  8892. this.$message.error('请输入2-10的数字')
  8893. this.groupJson.number = ''
  8894. }
  8895. },
  8896. addGroupJson() {
  8897. for (var i = 0; i < this.groupJson.group.length; i++) {
  8898. if (!this.groupJson.group[i].name) {
  8899. this.$message.error("请将信息填写完整!");
  8900. return;
  8901. }
  8902. }
  8903. if (!this.groupJson.number) {
  8904. this.$message.error("请将信息填写完整!");
  8905. return;
  8906. }
  8907. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8908. this.taskCount
  8909. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  8910. JSON.stringify(this.groupJson)
  8911. );
  8912. this.dialogVisibleGroup = false;
  8913. this.groupJson = {};
  8914. if (
  8915. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8916. .toolChoose[this.toolIndex].tool != 49
  8917. ) {
  8918. this.addTools(49, this.taskCount, this.toolIndex);
  8919. }
  8920. },
  8921. updateTime(preTime) {
  8922. this.preTime = preTime;
  8923. },
  8924. InviteChange(val) {
  8925. console.log(val);
  8926. let _check = []
  8927. let _check2 = []
  8928. for (var i = 0; i < this.grade2.length; i++) {
  8929. var gid = this.grade2[i].id
  8930. _check.push(gid)
  8931. }
  8932. for (var i = 0; i < this.checkboxList2.length; i++) {
  8933. var _id = this.checkboxList2[i]
  8934. if (_check.indexOf(_id) !== -1) {
  8935. _check2.push(_id)
  8936. }
  8937. }
  8938. this.checkAll = _check2.length === _check.length;
  8939. return;
  8940. let array = JSON.parse(JSON.stringify(val));
  8941. this.inviteCode = this.inviteCode.filter((el) => {
  8942. if (val.indexOf(el.cid) != -1) {
  8943. array.splice(array.indexOf(el.cid), 1);
  8944. return el;
  8945. }
  8946. });
  8947. for (var i = 0; i < array.length; i++) {
  8948. this.getInviteCode(array[i]);
  8949. }
  8950. },
  8951. handleCheckAllChange(val) {
  8952. if (val) {
  8953. for (var i = 0; i < this.grade2.length; i++) {
  8954. var gid = this.grade2[i].id
  8955. if (this.checkboxList2.indexOf(gid) === -1) {
  8956. this.checkboxList2.push(gid)
  8957. }
  8958. }
  8959. } else {
  8960. let _check = []
  8961. let _check2 = []
  8962. for (var i = 0; i < this.grade2.length; i++) {
  8963. var gid = this.grade2[i].id
  8964. _check.push(gid)
  8965. }
  8966. for (var i = 0; i < this.checkboxList2.length; i++) {
  8967. var _id = this.checkboxList2[i]
  8968. if (_check.indexOf(_id) === -1) {
  8969. _check2.push(_id)
  8970. }
  8971. }
  8972. this.checkboxList2 = _check2
  8973. }
  8974. this.isIndeterminate = false;
  8975. },
  8976. async getInviteCode(cid) {
  8977. let code = this.randomNumber();
  8978. let params = {
  8979. code: code,
  8980. oid: this.oid,
  8981. };
  8982. let type = 1;
  8983. for (var i = 0; i < this.inviteCode.length; i++) {
  8984. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  8985. type = 2;
  8986. }
  8987. }
  8988. if (type == 2) {
  8989. this.getInviteCode(cid);
  8990. return;
  8991. }
  8992. const res = await this.ajax.get(
  8993. this.$store.state.api + "selectInviteCode2",
  8994. params
  8995. );
  8996. if (
  8997. res.data.length &&
  8998. res.data[0].length &&
  8999. res.data[0][0].courseId != this.cid
  9000. ) {
  9001. this.getInviteCode(cid);
  9002. return;
  9003. }
  9004. let array = [];
  9005. for (var i = 0; i < this.inviteCode.length; i++) {
  9006. array.push(this.inviteCode[i].cid);
  9007. }
  9008. if (array.indexOf(cid) != -1) {
  9009. this.inviteCode[array.indexOf(cid)].ic = code;
  9010. } else {
  9011. this.inviteCode.push({ cid: cid, ic: code });
  9012. }
  9013. },
  9014. OpenInviteD(cid) {
  9015. let array = [];
  9016. this.icode = "";
  9017. for (var i = 0; i < this.inviteCode.length; i++) {
  9018. array.push(this.inviteCode[i].cid);
  9019. }
  9020. if (array.indexOf(cid) != -1) {
  9021. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  9022. }
  9023. this.inviteId = cid;
  9024. this.dialogVisibleInvite = true;
  9025. },
  9026. addInvite() {
  9027. let reg = /^[A-Za-z0-9]{4,}$/;
  9028. if (!reg.test(this.icode)) {
  9029. this.$message.error("请输入至少四位数字或英文组合的随机码");
  9030. return;
  9031. }
  9032. let type = 1;
  9033. for (var i = 0; i < this.inviteCode.length; i++) {
  9034. if (
  9035. this.inviteCode[i].cid != this.inviteId &&
  9036. this.icode == this.inviteCode[i].ic
  9037. ) {
  9038. type = 2;
  9039. }
  9040. }
  9041. if (type == 2) {
  9042. this.$message.error("已有此随机码,不能重复");
  9043. return;
  9044. }
  9045. let params = {
  9046. code: this.icode,
  9047. oid: this.oid,
  9048. };
  9049. this.ajax
  9050. .get(this.$store.state.api + "selectInviteCode", params)
  9051. .then((res) => {
  9052. if (
  9053. res.data.length &&
  9054. res.data[0].length &&
  9055. res.data[0][0].courseId != this.cid
  9056. ) {
  9057. this.$message.error("已有此随机码,不能重复");
  9058. return;
  9059. }
  9060. let array = [];
  9061. for (var i = 0; i < this.inviteCode.length; i++) {
  9062. array.push(this.inviteCode[i].cid);
  9063. }
  9064. if (array.indexOf(this.inviteId) != -1) {
  9065. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  9066. } else {
  9067. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  9068. }
  9069. this.icode = "";
  9070. this.dialogVisibleInvite = false;
  9071. })
  9072. .catch((err) => {
  9073. console.error(err);
  9074. });
  9075. },
  9076. randomNumber() {
  9077. // 随机生成两位数
  9078. // let num = Math.floor(Math.random() * 900) + 100;
  9079. // 生成 0 到 99 之间的随机整数
  9080. const randomNumber = Math.floor(Math.random() * 100);
  9081. // 如果随机数小于 10,补上前导零
  9082. const num =
  9083. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  9084. // 随机生成两个大写字母
  9085. let letters = "";
  9086. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  9087. for (let i = 0; i < 3; i++) {
  9088. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  9089. }
  9090. // 随机生成两位数字和字母的组合
  9091. let mix = "";
  9092. let chars =
  9093. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  9094. for (let i = 0; i < 3; i++) {
  9095. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  9096. mix += char;
  9097. }
  9098. // 随机选择一种类型
  9099. let type = Math.floor(Math.random() * 3);
  9100. return num;
  9101. // 根据类型输出结果
  9102. switch (type) {
  9103. case 0:
  9104. console.log(num); // 输出两位数
  9105. return num;
  9106. case 1:
  9107. console.log(letters); // 输出两个大写字母
  9108. return letters;
  9109. case 2:
  9110. console.log(mix); // 输出两位数字和字母的组合
  9111. return mix;
  9112. }
  9113. },
  9114. getPaste() {
  9115. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9116. if (!iframe) {
  9117. return;
  9118. }
  9119. let copyData = iframe.contentWindow.copyData;
  9120. if (copyData && copyData.stageData && copyData.stageData.length) {
  9121. this.isPasteStage = true
  9122. }
  9123. if (copyData && copyData.selectData.length) {
  9124. this.isPasteChoice = true
  9125. }
  9126. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  9127. this.isPasteTask = true
  9128. }
  9129. },
  9130. searchImage() {
  9131. var _this = this;
  9132. _this.imageList = []
  9133. if (!_this.searchImageValue) {
  9134. _this.sysPicVisible2 = true
  9135. return
  9136. }
  9137. _this.imageloading = true
  9138. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  9139. page: _this.ppage,
  9140. pagesize: 9,
  9141. query: _this.searchImageValue
  9142. }).then(function (response) {
  9143. // console.log(response.data.data);
  9144. var data = response.data.FunctionResponse.result;
  9145. for (var i = 0; i < data.length; i++) {
  9146. _this.imageList.push({ url: data[i].thumbnail })
  9147. }
  9148. _this.imageloading = false
  9149. }).catch(function (error) {
  9150. console.log(error);
  9151. });
  9152. _this.sysPicVisible2 = true
  9153. },
  9154. changePicture() {
  9155. this.ppage++
  9156. this.searchImage()
  9157. },
  9158. resetImage() {
  9159. this.ppage = 1
  9160. this.searchImage()
  9161. },
  9162. jumpGj(i, j) {
  9163. if ((i + 1) != this.isClickColor) {
  9164. this.isClickColor = (i + 1)
  9165. }
  9166. var a = document.scrollingElement;
  9167. this.toolIndexType = `gj${i}${j}`
  9168. let target = document.querySelector(`#gj${i}${j}`);
  9169. if (target) {
  9170. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  9171. setTimeout(() => {
  9172. target.scrollIntoView(true);
  9173. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = true
  9174. setTimeout(() => {
  9175. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  9176. }, 0);
  9177. }, 0);
  9178. }
  9179. },
  9180. dragStart(val, i, j) {
  9181. console.log(this.taskCount);
  9182. this.taskCount = j
  9183. this.oldIndex = i;
  9184. this.oldData = val;
  9185. },
  9186. dragOver(i, j) {
  9187. this.typeIndex = "chapter-" + j + '-' + i
  9188. this.newIndex = i;
  9189. },
  9190. dragEnd() {
  9191. console.log(this.taskCount);
  9192. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData];
  9193. // 删除老的节点
  9194. newItems.splice(this.oldIndex, 1);
  9195. // 在列表中目标位置增加新的节点
  9196. newItems.splice(this.newIndex, 0, this.oldData);
  9197. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData = [...newItems];
  9198. this.typeIndex = "";
  9199. this.newIndex = "";
  9200. this.$forceUpdate()
  9201. },
  9202. dragTaskStart(val, i) {
  9203. this.oldIndex = i;
  9204. this.oldData = val;
  9205. },
  9206. dragTaskOver(i) {
  9207. this.typeIndex = "task-" + i
  9208. this.newIndex = i;
  9209. },
  9210. dragTaskEnd() {
  9211. if(this.newIndex == this.oldIndex){
  9212. this.newIndex = "";
  9213. this.typeIndex = "";
  9214. return;
  9215. }
  9216. this.$confirm(
  9217. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  9218. "提示",
  9219. {
  9220. confirmButtonText: "确定",
  9221. cancelButtonText: "取消",
  9222. type: "warning",
  9223. }
  9224. )
  9225. .then(() => {
  9226. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson];
  9227. // 删除老的节点
  9228. newItems.splice(this.oldIndex, 1);
  9229. // 在列表中目标位置增加新的节点
  9230. newItems.splice(this.newIndex, 0, this.oldData);
  9231. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...newItems];
  9232. this.typeIndex = "";
  9233. this.newIndex = "";
  9234. this.$forceUpdate()
  9235. })
  9236. .catch(() => {
  9237. this.newIndex = "";
  9238. this.typeIndex = "";
  9239. return;
  9240. });
  9241. },
  9242. },
  9243. beforeDestroy() {
  9244. clearTimeout(this.timer);
  9245. this.timer = null;
  9246. clearInterval(this.timer2);
  9247. this.timer2 = null;
  9248. clearInterval(this.pasteTimer);
  9249. this.pasteTimer = null;
  9250. },
  9251. beforeRouteLeave(to, from, next) {
  9252. clearTimeout(this.timer);
  9253. this.timer = null;
  9254. clearInterval(this.timer2);
  9255. this.timer2 = null;
  9256. clearInterval(this.pasteTimer);
  9257. this.pasteTimer = null;
  9258. next();
  9259. },
  9260. created() {
  9261. this.getStudent();
  9262. this.getTeacher();
  9263. this.getClass();
  9264. this.selectGrage();
  9265. this.getTemplate();
  9266. // this.selectType();
  9267. this.selectEva();
  9268. this.loading = false;
  9269. this.timer2 = setInterval(() => {
  9270. this.selectEva();
  9271. }, 5000);
  9272. this.pasteTimer = setInterval(() => {
  9273. this.getPaste();
  9274. }, 1000);
  9275. setTimeout(() => {
  9276. this.selectCourseDetail();
  9277. }, 500);
  9278. },
  9279. };
  9280. </script>
  9281. <style scoped>
  9282. @media screen and (max-width: 1280px) {
  9283. .mbCss {
  9284. flex-direction: column !important;
  9285. }
  9286. .pjCss {
  9287. width: 100% !important;
  9288. }
  9289. .evaCss {
  9290. width: 100% !important;
  9291. margin-top: 10px;
  9292. }
  9293. }
  9294. .el-table >>> .even_row {
  9295. background-color: #f1f1f1 !important;
  9296. }
  9297. .dialog_diy>>>.el-dialog__header {
  9298. background: #3c3c3c !important;
  9299. padding: 15px 20px;
  9300. }
  9301. .dialog_diy>>>.el-dialog__title {
  9302. color: #fff;
  9303. }
  9304. .dialog_diy>>>.el-dialog__headerbtn {
  9305. top: 19px;
  9306. }
  9307. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  9308. color: #fff;
  9309. }
  9310. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  9311. color: #fff;
  9312. }
  9313. .dialog_diy>>>.el-dialog__body,
  9314. .dialog_diy>>>.el-dialog__footer {
  9315. background: #fafafa;
  9316. }
  9317. .dialog_diy3>>>.el-dialog__body,
  9318. .dialog_diy3>>>.el-dialog__footer {
  9319. background: #eee !important;
  9320. }
  9321. .dialog_diy3>>>.el-dialog__body {
  9322. padding: 20px 20px;
  9323. }
  9324. .dialog_diyStage>>>.el-dialog__body {
  9325. padding: 10px;
  9326. }
  9327. .source_diy>>>.el-dialog {
  9328. height: 100% !important;
  9329. margin: 0 auto !important;
  9330. }
  9331. .source_diy>>>.el-dialog__body {
  9332. height: calc(100% - 185px);
  9333. overflow: auto;
  9334. background: #e6eaf0;
  9335. }
  9336. .source_diy>>>.el-dialog__footer {
  9337. background: #e6eaf0 !important;
  9338. }
  9339. .left {
  9340. border-right: 1px solid rgb(60, 94, 143);
  9341. display: flex;
  9342. flex-direction: column;
  9343. align-items: center;
  9344. min-height: 600px;
  9345. width: 385px;
  9346. height: 80%;
  9347. }
  9348. .tips {
  9349. color: rgb(128, 128, 128);
  9350. font-size: 12px;
  9351. width: 270px;
  9352. margin: 40px;
  9353. }
  9354. .pb_content {
  9355. height: 100% !important;
  9356. /* margin: 0 20px 0 20px; */
  9357. }
  9358. .pb_content_body {
  9359. width: 100% !important;
  9360. height: 100%;
  9361. }
  9362. .info_solid {
  9363. width: 270px;
  9364. height: 30px;
  9365. border-left: 1px solid #bdbdbd;
  9366. margin: 10px 0px 10px 30px;
  9367. }
  9368. .info_steps {
  9369. width: 270px;
  9370. font-size: 0.875rem;
  9371. display: flex;
  9372. align-items: center;
  9373. }
  9374. .info_steps span:nth-child(1) {
  9375. width: 30px;
  9376. height: 30px;
  9377. background: rgba(0, 0, 0, 0.38);
  9378. display: block;
  9379. color: #fff;
  9380. border-radius: 40px;
  9381. text-align: center;
  9382. line-height: 30px;
  9383. }
  9384. .steps_active {
  9385. background: #3d67bc !important;
  9386. }
  9387. .info_steps span:nth-child(2) {
  9388. margin-left: 5px;
  9389. }
  9390. .right {
  9391. height: 100%;
  9392. width: 100%;
  9393. display: flex;
  9394. overflow: hidden;
  9395. flex-direction: column;
  9396. }
  9397. .basic_box {
  9398. margin: 0 auto;
  9399. position: relative;
  9400. padding: 0 20px 0 20px;
  9401. }
  9402. .basic_box_success {
  9403. width: 100%;
  9404. min-height: 455px;
  9405. padding: 50px 0;
  9406. position: relative;
  9407. text-align: center;
  9408. border-bottom: 1px solid #bfbfbf;
  9409. box-sizing: border-box;
  9410. display: flex;
  9411. align-items: center;
  9412. flex-direction: column;
  9413. justify-content: center;
  9414. }
  9415. .info_title {
  9416. font-size: 1.5em;
  9417. margin-right: 25px;
  9418. /* margin: 20px 30px 20px 30px; */
  9419. }
  9420. .bInfo_title {
  9421. text-align: left;
  9422. margin: 10px 0;
  9423. }
  9424. .small_title {
  9425. font-size: 14px;
  9426. line-height: 40px;
  9427. }
  9428. .chapter_beizhu {
  9429. font-size: 12px;
  9430. font-weight: bold;
  9431. float: right;
  9432. color: rgb(128, 128, 128);
  9433. margin-top: 5px;
  9434. }
  9435. .chapter_uploadBox1 {
  9436. text-align: left;
  9437. background-color: rgb(242, 242, 242);
  9438. width: 100%;
  9439. height: 67px;
  9440. padding: 0px 15px;
  9441. border-radius: 8px;
  9442. overflow: hidden;
  9443. font-size: 16px;
  9444. box-sizing: border-box;
  9445. position: relative;
  9446. }
  9447. .chapter_add {
  9448. width: 100%;
  9449. height: 32px;
  9450. margin-top: 15px;
  9451. cursor: pointer;
  9452. }
  9453. .chapter_add_l {
  9454. margin-left: 5px;
  9455. width: 30px;
  9456. height: 30px;
  9457. float: left;
  9458. border: 1px solid #aaa;
  9459. color: #aaa;
  9460. border-radius: 50%;
  9461. font-size: 25px;
  9462. text-align: center;
  9463. }
  9464. .chapter_add_r {
  9465. font-size: 18px;
  9466. height: 40px;
  9467. line-height: 30px;
  9468. text-indent: 10px;
  9469. color: #aaa;
  9470. }
  9471. .chapter_add_r span {
  9472. font-size: 12px;
  9473. color: rgb(204, 204, 204);
  9474. }
  9475. .chapter_add_input {
  9476. display: none;
  9477. }
  9478. .line {
  9479. width: 85%;
  9480. margin: 0 auto;
  9481. border-top: 1px solid #e5e5e5;
  9482. margin-top: 20px;
  9483. }
  9484. .info_btnBox {
  9485. width: calc(100%);
  9486. display: flex;
  9487. justify-content: center;
  9488. height: 80px;
  9489. align-items: center;
  9490. background: #fff;
  9491. margin: 0 auto;
  9492. border-top: 2px solid rgb(228, 232, 237);
  9493. box-sizing: border-box;
  9494. }
  9495. .info_btnBox2 {
  9496. width: calc(100%);
  9497. display: flex;
  9498. justify-content: center;
  9499. height: 20px;
  9500. align-items: center;
  9501. background: #fff;
  9502. margin: 0 auto;
  9503. border-top: 2px solid rgb(228, 232, 237);
  9504. box-sizing: border-box;
  9505. overflow: hidden;
  9506. cursor: pointer;
  9507. }
  9508. .info_btnBox3 {
  9509. width: calc(100%);
  9510. display: flex;
  9511. justify-content: flex-end;
  9512. padding: 0 20px;
  9513. height: 60px;
  9514. align-items: center;
  9515. background: unset;
  9516. margin: 0 auto;
  9517. /* border-top: 1px solid rgb(228, 232, 237); */
  9518. box-sizing: border-box;
  9519. overflow: hidden;
  9520. cursor: pointer;
  9521. background: #fff;
  9522. border-radius: 10px;
  9523. }
  9524. .info_btn+.info_btn {
  9525. margin-left: 15px;
  9526. }
  9527. .info_btn,
  9528. .teacherWord {
  9529. color: #fff;
  9530. background-color: #0f7eff;
  9531. padding: 8px 24px;
  9532. font-size: 0.9375rem;
  9533. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  9534. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  9535. min-width: 64px;
  9536. font-weight: 500;
  9537. border-radius: 4px;
  9538. box-sizing: border-box;
  9539. border: none;
  9540. cursor: pointer;
  9541. }
  9542. .teacherWord {
  9543. width: 105px !important;
  9544. text-align: center !important;
  9545. line-height: 36px !important;
  9546. padding: 0 !important;
  9547. font-size: 14px !important;
  9548. margin: 10px 0 !important;
  9549. }
  9550. .wordTeacher {
  9551. display: flex;
  9552. flex-direction: column;
  9553. width: 145px;
  9554. text-align: center;
  9555. font-size: 14px;
  9556. margin: 30px 0 0 10px;
  9557. background: #fff;
  9558. position: relative;
  9559. border-radius: 5px;
  9560. padding: 25px 0px;
  9561. }
  9562. .wordPic {
  9563. margin: 0 auto;
  9564. width: 60px;
  9565. height: 60px;
  9566. cursor: pointer;
  9567. }
  9568. .deleteWord {
  9569. width: 22px;
  9570. height: 22px;
  9571. position: absolute;
  9572. right: 5px;
  9573. top: -15px;
  9574. cursor: pointer;
  9575. display: none;
  9576. z-index: 999;
  9577. }
  9578. .wordPic>img,
  9579. .deleteWord>img,
  9580. .addToolImg>img {
  9581. width: 100%;
  9582. height: 100%;
  9583. }
  9584. .info_btn:hover {
  9585. background-color: #4f7cd5 !important;
  9586. }
  9587. .cru_selectBox {
  9588. display: flex;
  9589. margin: 24px 0 10px;
  9590. flex-wrap: nowrap;
  9591. white-space: nowrap;
  9592. overflow: auto;
  9593. position: relative;
  9594. height: 40px;
  9595. max-width: calc(100% - 175px);
  9596. }
  9597. .cru_selectBox::-webkit-scrollbar {
  9598. /*滚动条整体样式*/
  9599. width: 6px;
  9600. /*高宽分别对应横竖滚动条的尺寸*/
  9601. height: 6px;
  9602. }
  9603. /*定义滚动条轨道 内阴影+圆角*/
  9604. .cru_selectBox::-webkit-scrollbar-track {
  9605. border-radius: 10px;
  9606. background-color: #eee;
  9607. }
  9608. /*定义滑块 内阴影+圆角*/
  9609. .cru_selectBox::-webkit-scrollbar-thumb {
  9610. border-radius: 10px;
  9611. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  9612. background-color: rgba(0, 0, 0, 0.1);
  9613. }
  9614. .cru_line {
  9615. position: absolute;
  9616. bottom: 0px;
  9617. transition: all 0.5s;
  9618. left: 0px;
  9619. width: 50px;
  9620. height: 4px;
  9621. left: 10px;
  9622. border-radius: 2px;
  9623. background: #3681FC;
  9624. }
  9625. .cru_select {
  9626. font-size: 18px;
  9627. margin-right: 20px;
  9628. margin-left: 5px;
  9629. cursor: pointer;
  9630. color: #0E1E33;
  9631. }
  9632. .cru_select:hover {
  9633. color: #3681FC !important;
  9634. }
  9635. .cru_selected {
  9636. color: #3681FC !important;
  9637. font-weight: bold;
  9638. }
  9639. .chapter_box {
  9640. margin-top: 10px;
  9641. width: 100%;
  9642. padding: 10px 20px;
  9643. background: #fff;
  9644. border-radius: 8px;
  9645. box-sizing: border-box;
  9646. }
  9647. .chapter_contentbox {
  9648. display: flex;
  9649. align-items: center;
  9650. /* margin-top: 15px; */
  9651. }
  9652. .chapter_contentbox .cc_title {
  9653. margin: 0px;
  9654. color: black;
  9655. display: block;
  9656. white-space: nowrap;
  9657. overflow: hidden;
  9658. text-overflow: ellipsis;
  9659. margin-right: 20px;
  9660. font-size: 18px;
  9661. height: 20px;
  9662. line-height: 22px;
  9663. min-width: fit-content;
  9664. display: flex;
  9665. }
  9666. .chapter_contentbox .cc_title::before {
  9667. content: '';
  9668. height: 100%;
  9669. width: 3px;
  9670. background: #3681FC;
  9671. border-radius: 3px;
  9672. opacity: 1;
  9673. display: block;
  9674. margin-right: 10px;
  9675. }
  9676. .chapter_contentbox .cc_input {
  9677. width: 100%;
  9678. display: flex;
  9679. }
  9680. .show_taskD {
  9681. min-width: fit-content;
  9682. margin-left: 10px;
  9683. display: flex;
  9684. align-items: center;
  9685. font-size: 14px;
  9686. cursor: pointer;
  9687. color: #717C8D;
  9688. }
  9689. .show_taskD>img {
  9690. width: 15px;
  9691. margin-right: 5px;
  9692. transition: .2s all;
  9693. transform: rotate(-90deg);
  9694. }
  9695. .show_taskD.show>img {
  9696. transform: rotate(0deg);
  9697. }
  9698. .show_toolD {
  9699. min-width: fit-content;
  9700. margin-left: 10px;
  9701. display: flex;
  9702. align-items: center;
  9703. font-size: 14px;
  9704. cursor: pointer;
  9705. color: #717C8D;
  9706. /* position: absolute;
  9707. right: 45px;
  9708. top: 5px; */
  9709. }
  9710. .show_toolD>img {
  9711. width: 15px;
  9712. margin-right: 5px;
  9713. transition: .2s all;
  9714. transform: rotate(-90deg);
  9715. }
  9716. .show_toolD.show>img {
  9717. transform: rotate(0deg);
  9718. }
  9719. .remove {
  9720. background-image: url("../../assets/icon/new/delete_u.png");
  9721. cursor: pointer;
  9722. opacity: 0.5;
  9723. width: 30px;
  9724. min-width: 30px;
  9725. height: 30px;
  9726. background-size: 100% 100%;
  9727. background-repeat: no-repeat;
  9728. margin-left: 10px;
  9729. }
  9730. .remove1 {
  9731. background-image: url("../../assets/remove1.png");
  9732. background-repeat: no-repeat;
  9733. background-position: 5px 10px;
  9734. width: 40px;
  9735. height: 50px;
  9736. cursor: pointer;
  9737. margin-left: 10px;
  9738. }
  9739. .binfo_input {
  9740. width: 100%;
  9741. margin: 0;
  9742. padding: 12px 14px;
  9743. display: block;
  9744. min-width: 0;
  9745. outline: none;
  9746. box-sizing: border-box;
  9747. background: none;
  9748. border: none;
  9749. border-radius: 4px;
  9750. background: #fff;
  9751. font-size: 16px;
  9752. resize: none;
  9753. font-family: 'Microsoft YaHei';
  9754. min-height: 48px;
  9755. /* border: 1px solid #3682fc00; */
  9756. border: 1.5px solid #CAD1DC;
  9757. }
  9758. .binfo_textarea {
  9759. border: 1.5px solid #CAD1DC;
  9760. font-size: 16px;
  9761. resize: none;
  9762. /* background: #f6f6f6; */
  9763. font-family: 'Microsoft YaHei';
  9764. }
  9765. .binfo_input:focus-visible {
  9766. border: 1.5px solid #3681FC !important;
  9767. }
  9768. .time {
  9769. display: flex;
  9770. margin: 35px 0 80px 0;
  9771. }
  9772. .chapter_btnbox {
  9773. width: 160px;
  9774. border-radius: 5px;
  9775. border: 2px dashed gray;
  9776. display: flex;
  9777. padding: 8px 50px;
  9778. align-items: center;
  9779. justify-content: center;
  9780. margin: 30px auto 0;
  9781. cursor: pointer;
  9782. }
  9783. .icon_add {
  9784. position: relative;
  9785. width: 24px;
  9786. padding-top: 20px;
  9787. border-radius: 100%;
  9788. border-width: 2px;
  9789. border-style: solid;
  9790. border-color: gray;
  9791. }
  9792. .icon_add i:nth-child(1) {
  9793. position: absolute;
  9794. left: 50%;
  9795. top: 50%;
  9796. height: 60%;
  9797. transform: translate(-50%, -50%);
  9798. border-width: 1px;
  9799. border-style: solid;
  9800. border-color: inherit;
  9801. }
  9802. .icon_add i:nth-child(2) {
  9803. position: absolute;
  9804. top: 50%;
  9805. left: 50%;
  9806. width: 60%;
  9807. transform: translate(-50%, -50%);
  9808. border-width: 1px;
  9809. border-style: solid;
  9810. border-color: inherit;
  9811. }
  9812. .chapter_btn_w {
  9813. font-size: 0.9375rem;
  9814. font-weight: bold;
  9815. color: gray;
  9816. margin-left: 20px;
  9817. }
  9818. .disUoloadSty>>>.el-icon-plus {
  9819. display: none !important;
  9820. /* 上传按钮隐藏 */
  9821. }
  9822. .imgLeft {
  9823. margin: 15px 0;
  9824. }
  9825. .add_info_box {
  9826. margin: 0 0 0 auto;
  9827. display: flex;
  9828. flex-wrap: wrap;
  9829. }
  9830. .add_info_box button {
  9831. margin: 0 5px 10px 0;
  9832. }
  9833. .add_info_box2 {
  9834. display: flex;
  9835. align-items: center;
  9836. flex-wrap: wrap;
  9837. }
  9838. .add_info_box2::after {
  9839. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  9840. color: red;
  9841. font-size: 14px;
  9842. margin-bottom: 10px;
  9843. }
  9844. .add_chapters_box {
  9845. text-align: left;
  9846. background-color: #fff;
  9847. width: 100%;
  9848. border-radius: 4px;
  9849. font-size: 16px;
  9850. box-sizing: border-box;
  9851. position: relative;
  9852. padding: 0 15px;
  9853. height: auto;
  9854. overflow-y: auto;
  9855. overflow-x: hidden;
  9856. border: 1px solid #CAD1DC;
  9857. }
  9858. .add_chapters_box.add_c_none {
  9859. display: flex;
  9860. justify-content: center;
  9861. align-items: center;
  9862. padding: 15px;
  9863. }
  9864. .add_c_none>img {
  9865. width: 25px;
  9866. }
  9867. .add_chapters_box.add_c_none>span {
  9868. font-size: 14px;
  9869. font-weight: 400;
  9870. margin: 0 0 5px 5px;
  9871. }
  9872. .homework_box {
  9873. display: flex;
  9874. align-items: flex-start;
  9875. flex-wrap: wrap;
  9876. margin: 15px 0 0 0;
  9877. flex-direction: column;
  9878. align-content: flex-start;
  9879. }
  9880. .course_homework {
  9881. display: flex;
  9882. justify-content: center;
  9883. flex-direction: row;
  9884. align-items: center;
  9885. margin: 0 10px 0 0;
  9886. }
  9887. .course_homework>>>.el-input__inner {
  9888. width: 140px;
  9889. margin-left: 15px;
  9890. }
  9891. .chapter_upload_move {
  9892. position: relative;
  9893. background-color: #fff;
  9894. position: absolute;
  9895. width: 100%;
  9896. top: 0px;
  9897. left: 0px;
  9898. border: 1px solid #eee;
  9899. border-radius: 5px;
  9900. transition: width 2s;
  9901. -moz-transition: width 2s;
  9902. -webkit-transition: width 2s;
  9903. -o-transition: width 2s;
  9904. }
  9905. .chapter_upload_l_i {
  9906. background-image: url("../../assets/icon.png");
  9907. background-position: 3px -165px;
  9908. width: 30px;
  9909. height: 30px;
  9910. margin: 10px auto 0 auto;
  9911. }
  9912. .course_input_box {
  9913. display: flex;
  9914. margin-right: 20px;
  9915. width: 100%;
  9916. align-items: center;
  9917. position: relative;
  9918. }
  9919. .course_input_box>.binfo_input {
  9920. width: calc(100% - 0 - 200px - 20px);
  9921. margin: 0 10px;
  9922. }
  9923. .bb_courseIcon {
  9924. width: 57px;
  9925. height: 45px;
  9926. background: #F0F4FA;
  9927. border-radius: 5px 0px 0px 5px;
  9928. display: flex;
  9929. align-items: center;
  9930. justify-content: center;
  9931. border-right: 1.5px solid rgb(202, 209, 220);
  9932. box-sizing: border-box;
  9933. position: absolute;
  9934. left: 1.5px
  9935. }
  9936. .bb_courseIcon>img {
  9937. width: 25px;
  9938. height: auto
  9939. }
  9940. .big_box {
  9941. /* margin-top: 20px; */
  9942. display: flex;
  9943. justify-content: space-between;
  9944. /* border-bottom: 1px solid #E0E2ED; */
  9945. }
  9946. .left_first {
  9947. display: flex;
  9948. flex-direction: column;
  9949. flex-wrap: nowrap;
  9950. width: calc(100% - 310px);
  9951. padding: 20px;
  9952. box-sizing: border-box;
  9953. background: #fff;
  9954. border-radius: 5px;
  9955. }
  9956. .right_first {
  9957. width: 300px;
  9958. display: flex;
  9959. align-items: center;
  9960. justify-content: center;
  9961. /* border-left: 1px solid #E0E2ED; */
  9962. box-sizing: border-box;
  9963. padding: 20px;
  9964. flex-direction: column;
  9965. background: #fff;
  9966. border-radius: 5px;
  9967. }
  9968. .ai_box {
  9969. width: 204px;
  9970. display: flex;
  9971. justify-content: flex-end;
  9972. margin-bottom: 15px;
  9973. }
  9974. .ai_content {
  9975. display: flex;
  9976. align-items: center;
  9977. font-size: 14px;
  9978. padding: 7px 20px;
  9979. box-sizing: border-box;
  9980. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  9981. border-radius: 12px;
  9982. font-weight: 700;
  9983. cursor: pointer;
  9984. }
  9985. .ai_content>img {
  9986. width: 40px;
  9987. margin-right: 5px;
  9988. }
  9989. .c_info_title {
  9990. padding: 15px 0 15px 0;
  9991. font-size: 16px;
  9992. font-weight: bold;
  9993. margin: 0 0 0 20px;
  9994. box-sizing: border-box;
  9995. display: flex;
  9996. align-items: center;
  9997. line-height: 20px;
  9998. }
  9999. .c_info_title::before {
  10000. content: '';
  10001. display: block;
  10002. width: 3px;
  10003. height: 20px;
  10004. background: #0061FF;
  10005. border-radius: 3px;
  10006. margin: 0 5px 0 0;
  10007. }
  10008. .right_title {
  10009. height: 30px;
  10010. padding: 15px 0 15px 20px;
  10011. border-bottom: 1px solid #f2f2f2;
  10012. font-size: 1.5em;
  10013. font-weight: bold;
  10014. color: #0f7eff;
  10015. margin: 0 auto;
  10016. }
  10017. .people {
  10018. border: 1px solid rgb(229 229 229);
  10019. /* height: 495px; */
  10020. height: 350px;
  10021. border-radius: 5px;
  10022. width: 100%;
  10023. overflow: auto;
  10024. }
  10025. .people_top {
  10026. display: flex;
  10027. width: 100%;
  10028. /* justify-content: space-between; */
  10029. /* align-items: center; */
  10030. flex-direction: column;
  10031. padding: 10px 10px 0;
  10032. box-sizing: border-box;
  10033. }
  10034. .people_nav,
  10035. .people_top_right {
  10036. /* padding: 20px 0 0 20px; */
  10037. }
  10038. .people_top_right {
  10039. height: 40px;
  10040. margin-bottom: 10px;
  10041. }
  10042. .people_search {
  10043. display: flex;
  10044. position: relative;
  10045. }
  10046. .people_search>>>.el-input__inner {
  10047. /* height: 25px; */
  10048. width: 95%;
  10049. }
  10050. .search_img {
  10051. width: 20px;
  10052. height: 20px;
  10053. position: absolute;
  10054. right: 30px;
  10055. top: 50%;
  10056. transform: translateY(-50%);
  10057. }
  10058. .search_img>img {
  10059. width: 100%;
  10060. height: 100%;
  10061. }
  10062. .people_name {
  10063. display: flex;
  10064. justify-content: flex-start;
  10065. padding: 20px 10px;
  10066. flex-direction: column;
  10067. flex-wrap: wrap;
  10068. }
  10069. .p_box {
  10070. position: relative;
  10071. }
  10072. .people_name>>>.el-checkbox {
  10073. width: 100%;
  10074. display: flex;
  10075. align-items: center;
  10076. margin-bottom: 10px;
  10077. }
  10078. .people_name>>>.el-checkbox__label {
  10079. text-overflow: ellipsis;
  10080. overflow: hidden;
  10081. width: calc(100%);
  10082. }
  10083. .people_name2>>>.el-checkbox__label {
  10084. width: calc(100% - 130px);
  10085. }
  10086. .inviteCode {
  10087. position: absolute;
  10088. right: 30px;
  10089. color: #237ade;
  10090. top: 0;
  10091. cursor: pointer;
  10092. font-size: 13px;
  10093. }
  10094. .noneInvite {
  10095. color: #a8a8a8;
  10096. }
  10097. .inviteImg {
  10098. position: absolute;
  10099. right: 5px;
  10100. top: 0;
  10101. width: 20px;
  10102. }
  10103. .right_img {
  10104. width: 150px;
  10105. height: 150px;
  10106. margin: 0 auto;
  10107. }
  10108. .right_img>img {
  10109. width: 100%;
  10110. height: 100%;
  10111. }
  10112. .number {
  10113. margin-top: 20px;
  10114. color: #4aa6ff;
  10115. text-decoration: underline;
  10116. }
  10117. .success_button {
  10118. display: flex;
  10119. text-align: center;
  10120. margin: 5% 0 auto;
  10121. flex-direction: row;
  10122. justify-content: center;
  10123. }
  10124. .look_course {
  10125. margin-right: 40px;
  10126. background: #3d67bc;
  10127. width: 200px;
  10128. height: 35px;
  10129. line-height: 35px;
  10130. color: #fff;
  10131. text-align: center;
  10132. font-size: 14px;
  10133. border-radius: 5px;
  10134. cursor: pointer;
  10135. }
  10136. .attend_others {
  10137. width: 250px;
  10138. background: #4fb13c;
  10139. height: 35px;
  10140. line-height: 35px;
  10141. color: #fff;
  10142. text-align: center;
  10143. font-size: 14px;
  10144. border-radius: 5px;
  10145. cursor: pointer;
  10146. }
  10147. .dialog_diy2>>>.el-dialog__body {
  10148. text-align: center;
  10149. }
  10150. .write_togother {
  10151. position: absolute;
  10152. right: 45px;
  10153. display: flex;
  10154. top: 5%;
  10155. }
  10156. .write_people {
  10157. font-size: 14px;
  10158. line-height: 50px;
  10159. padding-right: 10px;
  10160. }
  10161. .end_write {
  10162. background: #3d67bc;
  10163. color: #fff;
  10164. width: 100px;
  10165. height: 35px;
  10166. line-height: 35px;
  10167. text-align: center;
  10168. font-size: 14px;
  10169. border-radius: 5px;
  10170. cursor: pointer;
  10171. }
  10172. .chapter_upload+.chapter_upload {
  10173. /* margin-top: 15px; */
  10174. border-top: 1px solid #E7EBF1;
  10175. }
  10176. .chapter_upload {
  10177. height: 45px;
  10178. position: relative;
  10179. display: flex;
  10180. align-items: center;
  10181. width: 100%;
  10182. min-height: 45px;
  10183. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  10184. /* border-radius: 4px; */
  10185. /* overflow: hidden; */
  10186. box-sizing: border-box;
  10187. }
  10188. .chapter_upload_drag {
  10189. position: absolute;
  10190. cursor: pointer;
  10191. width: 16px;
  10192. height: 16px;
  10193. left: -9px;
  10194. background-image: url("../../assets/icon/new/icon_course_drag.png");
  10195. background-size: 100% 100%;
  10196. z-index: 10;
  10197. }
  10198. .chapter_upload_t {
  10199. background-color: #fff;
  10200. position: absolute;
  10201. height: 100%;
  10202. top: 0px;
  10203. left: 0px;
  10204. box-sizing: border-box;
  10205. }
  10206. .chapter_upload_o {
  10207. width: 100%;
  10208. height: 100%;
  10209. position: relative;
  10210. z-index: 1;
  10211. }
  10212. .chapter_upload_ic {
  10213. margin: 0 15px 0px auto;
  10214. display: flex;
  10215. align-items: center;
  10216. }
  10217. .chapter_upload_ic_l {
  10218. width: 50px;
  10219. height: 50px;
  10220. float: left;
  10221. }
  10222. .chapter_upload_ic_l div {
  10223. width: 30px;
  10224. height: 35px;
  10225. background: url("../../assets/icon/icon.png");
  10226. }
  10227. .chapter_upload_ic_edit {
  10228. height: 100%;
  10229. display: flex;
  10230. align-items: center;
  10231. cursor: pointer;
  10232. margin: 0 10px 0 0;
  10233. }
  10234. .chapter_upload_ic_edit div {
  10235. width: 18px;
  10236. height: 18px;
  10237. background-image: url("../../assets/icon/new/edit_u.png");
  10238. background-size: 100% 100%;
  10239. }
  10240. .chapter_upload_ic_r {
  10241. height: 100%;
  10242. display: flex;
  10243. align-items: center;
  10244. cursor: pointer;
  10245. }
  10246. .chapter_upload_ic_r div {
  10247. width: 18px;
  10248. height: 18px;
  10249. background-image: url("../../assets/icon/new/delete_u.png");
  10250. background-size: 100% 100%;
  10251. }
  10252. .chapter_upload_n {
  10253. display: flex;
  10254. text-indent: 10px;
  10255. text-decoration: none;
  10256. text-overflow: ellipsis;
  10257. white-space: nowrap;
  10258. overflow: hidden;
  10259. width: 55%;
  10260. margin-left: 10px;
  10261. cursor: pointer;
  10262. margin-top: 2px;
  10263. align-items: center;
  10264. }
  10265. .chapter_upload_l_i2,
  10266. .chapter_upload_l_i3,
  10267. .chapter_upload_l_i8,
  10268. .chapter_upload_l_i6,
  10269. .chapter_upload_l_i12,
  10270. .chapter_upload_l_i14,
  10271. .chapter_upload_l_i13 {
  10272. width: 15px;
  10273. height: 15px;
  10274. background-size: 100% 100%;
  10275. }
  10276. .chapter_upload_l_i2 {
  10277. background-image: url("../../assets/icon/new/u_word.png");
  10278. }
  10279. .chapter_upload_l_i3 {
  10280. background-image: url("../../assets/icon/new/u_video.png");
  10281. }
  10282. .chapter_upload_l_i8 {
  10283. background-image: url("../../assets/icon/new/u_url.png");
  10284. }
  10285. .chapter_upload_l_i14 {
  10286. background-image: url("../../assets/icon/new/u_source.png");
  10287. }
  10288. .chapter_upload_l_i6 {
  10289. background-image: url("../../assets/icon/new/u_picture.png");
  10290. }
  10291. .chapter_upload_l_i12 {
  10292. background-image: url("../../assets/icon/new/u_word.png");
  10293. }
  10294. .chapter_upload_l_i13 {
  10295. background-image: url("../../assets/icon/new/u_img.png");
  10296. }
  10297. .chapter_upload_noSee {
  10298. background-image: url("../../assets/icon/new/u_noUpload.png");
  10299. width: 18px;
  10300. height: 18px;
  10301. background-size: 100% 100%;
  10302. display: block;
  10303. margin-right: 10px;
  10304. }
  10305. .chapter_upload_ud {
  10306. display: flex;
  10307. flex-direction: row;
  10308. justify-content: center;
  10309. margin: 0 10px 0 0;
  10310. }
  10311. .chapter_upload_ud>.chapter_upload_up {
  10312. margin-bottom: 0;
  10313. margin-right: 10px;
  10314. }
  10315. .chapter_upload_down,
  10316. .chapter_upload_up {
  10317. width: 20px;
  10318. height: 20px;
  10319. background: #e4eaf2;
  10320. cursor: pointer;
  10321. margin: 0 auto;
  10322. border-radius: 5px;
  10323. display: flex;
  10324. justify-content: center;
  10325. align-items: center;
  10326. }
  10327. .chapter_upload_up::after,
  10328. .chapter_upload_down::after {
  10329. content: '';
  10330. background-image: url('../../assets/icon/new/downBtn.png');
  10331. width: 13px;
  10332. height: 13px;
  10333. background-size: 100% 100%;
  10334. display: block;
  10335. }
  10336. .chapter_upload_up::after {
  10337. background-image: url('../../assets/icon/new/upBtn.png') !important;
  10338. }
  10339. .chapter_upload_up {
  10340. margin-bottom: 5px;
  10341. }
  10342. .chapter_upload_ud2 {
  10343. display: flex;
  10344. flex-direction: row;
  10345. justify-content: center;
  10346. margin: 0 10px 0 0;
  10347. }
  10348. .chapter_upload_ud2>.chapter_upload_up2 {
  10349. margin-bottom: 0;
  10350. margin-right: 10px;
  10351. }
  10352. .chapter_upload_down2,
  10353. .chapter_upload_up2 {
  10354. cursor: pointer;
  10355. margin: 0 auto;
  10356. border-radius: 5px;
  10357. display: flex;
  10358. justify-content: center;
  10359. align-items: center;
  10360. color: #717C8D;
  10361. font-size: 14px;
  10362. }
  10363. .chapter_upload_up2{
  10364. margin-right:10px;
  10365. }
  10366. .chapter_upload_up2::before,
  10367. .chapter_upload_down2::before {
  10368. content: '';
  10369. background-image: url('../../assets/icon/new/c_up.png');
  10370. width: 14px;
  10371. height: 14px;
  10372. background-size: 100% 100%;
  10373. display: block;
  10374. margin-right: 5px;
  10375. }
  10376. .chapter_upload_up2::before {
  10377. background-image: url('../../assets/icon/new/c_down.png') !important;
  10378. }
  10379. .addWordStyle {
  10380. display: flex;
  10381. flex-direction: row;
  10382. justify-content: flex-start;
  10383. overflow-x: auto;
  10384. white-space: nowrap;
  10385. flex-wrap: wrap;
  10386. }
  10387. /* table 样式 */
  10388. .cont>>>table {
  10389. border-top: 1px solid #ccc;
  10390. border-left: 1px solid #ccc;
  10391. }
  10392. .cont>>>table td,
  10393. .cont>>>table th {
  10394. border-bottom: 1px solid #ccc;
  10395. border-right: 1px solid #ccc;
  10396. /* padding: 20px 5px; */
  10397. padding: 5px 10px;
  10398. max-width: 0px;
  10399. height: 30px;
  10400. vertical-align: baseline;
  10401. }
  10402. .cont>>>table th {
  10403. border-bottom: 2px solid #ccc;
  10404. text-align: center;
  10405. }
  10406. /* blockquote 样式 */
  10407. .cont>>>blockquote {
  10408. display: block;
  10409. border-left: 8px solid #d0e5f2;
  10410. padding: 5px 10px;
  10411. margin: 10px 0;
  10412. line-height: 1.4;
  10413. font-size: 100%;
  10414. background-color: #f1f1f1;
  10415. }
  10416. /* code 样式 */
  10417. .cont>>>code {
  10418. display: inline-block;
  10419. /* *display: inline; */
  10420. zoom: 1;
  10421. background-color: #f1f1f1;
  10422. border-radius: 3px;
  10423. padding: 3px 5px;
  10424. margin: 0 3px;
  10425. }
  10426. .cont>>>pre code {
  10427. display: block;
  10428. }
  10429. /* ul ol 样式 */
  10430. .cont>>>ul,
  10431. ol {
  10432. margin: 10px 0 10px 20px;
  10433. }
  10434. .wordbox {
  10435. display: flex;
  10436. flex-wrap: wrap;
  10437. cursor: pointer;
  10438. width: 100%;
  10439. }
  10440. .checkword {
  10441. width: 22px;
  10442. height: 22px;
  10443. margin: 10px auto 0;
  10444. cursor: pointer;
  10445. }
  10446. .checkword img {
  10447. width: 100%;
  10448. }
  10449. .stepBg {
  10450. display: flex;
  10451. justify-content: space-between;
  10452. align-items: center;
  10453. background: #fff;
  10454. width: calc(100%);
  10455. margin: 0 auto;
  10456. }
  10457. .stepBorder {
  10458. height: 3px !important;
  10459. background: #CAD1DC;
  10460. width: 100px !important;
  10461. margin: 0 15px !important;
  10462. position: relative;
  10463. }
  10464. .border-active {
  10465. background: #3681FC !important
  10466. }
  10467. .border-active::before,
  10468. .border-active::after {
  10469. border-color: #3681FC !important
  10470. }
  10471. .stepBorder::before,
  10472. .stepBorder::after {
  10473. content: '';
  10474. width: 9px;
  10475. height: 9px;
  10476. background: #FFFFFF;
  10477. opacity: 1;
  10478. border: 2px solid #ACB4BF;
  10479. display: block;
  10480. box-sizing: border-box;
  10481. border-radius: 50%;
  10482. position: absolute;
  10483. top: 50%;
  10484. transform: translateY(-50%);
  10485. }
  10486. .stepBorder::after {
  10487. right: -9px;
  10488. }
  10489. .stepTop {
  10490. width: 100%;
  10491. /* border-radius: 10px; */
  10492. display: flex;
  10493. justify-content: center;
  10494. align-items: center;
  10495. flex-wrap: nowrap;
  10496. background: #fff;
  10497. /* top: 18%; */
  10498. height: 80px;
  10499. border-bottom: 2px solid rgb(228, 232, 237);
  10500. box-sizing: border-box;
  10501. }
  10502. .stepTop2 {
  10503. width: 100%;
  10504. /* border-radius: 10px; */
  10505. display: flex;
  10506. justify-content: center;
  10507. align-items: center;
  10508. flex-wrap: nowrap;
  10509. background: #fff;
  10510. /* top: 18%; */
  10511. height: 20px;
  10512. border-bottom: 2px solid rgb(228, 232, 237);
  10513. box-sizing: border-box;
  10514. overflow: hidden;
  10515. cursor: pointer;
  10516. }
  10517. .stepTop>div img {
  10518. width: 100%;
  10519. }
  10520. .stepTop>div {
  10521. height: 50px;
  10522. width: 180px;
  10523. cursor: pointer;
  10524. margin: 10px 0;
  10525. border-radius: 10px;
  10526. }
  10527. .first,
  10528. .second,
  10529. .third,
  10530. .four {
  10531. background: #3681FC;
  10532. height: 90px;
  10533. color: #fff;
  10534. display: flex;
  10535. flex-direction: row;
  10536. align-items: center;
  10537. justify-content: center;
  10538. }
  10539. .first>div:nth-child(1),
  10540. .second>div:nth-child(1),
  10541. .third>div:nth-child(1),
  10542. .four>div:nth-child(1) {
  10543. margin: 5px 10px 0 0;
  10544. width: 2rem;
  10545. }
  10546. .firstNo,
  10547. .secondNo,
  10548. .thirdNo,
  10549. .fourNo {
  10550. background: #e7e7e7;
  10551. color: #adadad;
  10552. display: flex;
  10553. flex-direction: row;
  10554. align-items: center;
  10555. justify-content: center;
  10556. }
  10557. .firstNo>div:nth-child(1),
  10558. .secondNo>div:nth-child(1),
  10559. .thirdNo>div:nth-child(1),
  10560. .fourNo>div:nth-child(1) {
  10561. margin: 5px 10px 0 0;
  10562. width: 2rem;
  10563. }
  10564. .uploadWidth>>>.el-upload {
  10565. width: 60px;
  10566. height: 60px;
  10567. position: relative;
  10568. }
  10569. .addPeople {
  10570. background: #fa6060;
  10571. width: 150px;
  10572. height: 40px;
  10573. color: #fff;
  10574. border-radius: 5px;
  10575. text-align: center;
  10576. line-height: 40px;
  10577. font-size: 14px;
  10578. cursor: pointer;
  10579. }
  10580. .kcImg {
  10581. width: 60px;
  10582. margin-left: 10px;
  10583. }
  10584. .zyImg {
  10585. width: 55px;
  10586. margin: 0 10px;
  10587. }
  10588. .deleteZy {
  10589. width: 20px;
  10590. position: absolute;
  10591. top: 5px;
  10592. right: 5px;
  10593. cursor: pointer;
  10594. }
  10595. .kcImg>img,
  10596. .zyImg>img,
  10597. .deleteZy>img {
  10598. width: 100%;
  10599. height: 100%;
  10600. }
  10601. .zyBox {
  10602. display: flex;
  10603. flex-direction: row;
  10604. align-items: center;
  10605. background: #67d37d;
  10606. color: #fff;
  10607. width: 210px;
  10608. margin: 20px 20px 0 0;
  10609. border-radius: 10px;
  10610. height: 70px;
  10611. position: relative;
  10612. }
  10613. .upCss {
  10614. display: flex;
  10615. flex-direction: row;
  10616. justify-content: flex-start;
  10617. }
  10618. .upCss>>>.el-icon-plus {
  10619. position: none !important;
  10620. width: 200px;
  10621. height: 100px;
  10622. display: flex;
  10623. flex-wrap: nowrap;
  10624. flex-direction: column;
  10625. align-items: center;
  10626. justify-content: center;
  10627. border: 1px dashed #ccc;
  10628. min-width: 78px;
  10629. min-height: 100px;
  10630. z-index: 999;
  10631. }
  10632. .upCss>>>.el-upload-list__item-name {
  10633. width: 100px;
  10634. white-space: nowrap;
  10635. overflow: hidden;
  10636. text-overflow: ellipsis;
  10637. }
  10638. .upCss>>>.el-upload-list__item .el-icon-close {
  10639. font-size: 20px;
  10640. z-index: 9999;
  10641. }
  10642. .addStageImg {
  10643. min-width: 20px;
  10644. min-height: 20px;
  10645. width: 20px;
  10646. height: 20px;
  10647. cursor: pointer;
  10648. }
  10649. .addHW {
  10650. width: 28px;
  10651. height: 28px;
  10652. cursor: pointer;
  10653. }
  10654. .addStageImg>img,
  10655. .addHW>img {
  10656. width: 100%;
  10657. height: 100%;
  10658. }
  10659. .addNewPP>>>.el-dialog__body {
  10660. padding: 5px 20px;
  10661. }
  10662. .addNewPP>>>.el-dialog {
  10663. margin-top: 5vh !important;
  10664. }
  10665. .addNewPP2>>>.el-dialog__body {
  10666. padding: 5px 0;
  10667. }
  10668. .addNewPP2>>>.el-dialog {
  10669. margin-top: 5vh !important;
  10670. }
  10671. .isHeight {
  10672. height: 680px;
  10673. }
  10674. .toolChoose {
  10675. display: flex;
  10676. /* width: 100%; */
  10677. flex-direction: row;
  10678. flex-wrap: wrap;
  10679. }
  10680. .tool,
  10681. .isToolChoose {
  10682. display: flex;
  10683. flex-direction: column;
  10684. flex-wrap: nowrap;
  10685. width: fit-content;
  10686. margin: 10px 0 10px 0;
  10687. align-items: center;
  10688. border: 2px solid #dbdbdb00;
  10689. padding: 10px 20px;
  10690. border-radius: 5px;
  10691. cursor: pointer;
  10692. /* box-shadow: 0 0 2px 0px #dedede; */
  10693. position: relative;
  10694. box-sizing: border-box;
  10695. }
  10696. .tool:hover {
  10697. border: 2px solid #a5c7ff;
  10698. }
  10699. .tool:hover>.noCTool {
  10700. display: block;
  10701. opacity: 0.5;
  10702. }
  10703. .isToolChoose {
  10704. border: 2px solid #438aff !important;
  10705. box-shadow: 0 0 2px 0px #438aff;
  10706. opacity: 1 !important;
  10707. }
  10708. .isCTool,
  10709. .noCTool {
  10710. width: 30px;
  10711. height: 30px;
  10712. position: absolute;
  10713. top: -4px;
  10714. right: -4px;
  10715. }
  10716. .noCTool {
  10717. display: none;
  10718. }
  10719. .isCTool>img,
  10720. .noCTool>img {
  10721. width: 100%;
  10722. height: 100%;
  10723. }
  10724. .tool+.tool {
  10725. margin-right: 10px;
  10726. }
  10727. .whiteBIcon {
  10728. width: 80px;
  10729. cursor: pointer;
  10730. display: flex;
  10731. flex-direction: column;
  10732. flex-wrap: nowrap;
  10733. align-items: center;
  10734. font-size: 14px;
  10735. }
  10736. .whiteBIcon>img,
  10737. .toolIcon>img,
  10738. .arrow>img {
  10739. width: 100%;
  10740. height: 100%;
  10741. }
  10742. .check img {
  10743. width: 20px;
  10744. height: 20px;
  10745. }
  10746. .whiteBIcon>img {
  10747. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  10748. border-radius: 15px;
  10749. }
  10750. .whiteBIcon>div:nth-child(2) {
  10751. height: 20px;
  10752. line-height: 20px;
  10753. }
  10754. .check {
  10755. /* width: 20px;
  10756. height: 20px; */
  10757. cursor: pointer;
  10758. margin: 10px 0 0;
  10759. }
  10760. .checkDiv {
  10761. display: flex;
  10762. align-items: center;
  10763. }
  10764. .checkDiv span {
  10765. margin-left: 5px;
  10766. color: #858585;
  10767. }
  10768. .customWidth>>>.el-dialog {
  10769. min-width: 500px !important;
  10770. }
  10771. .a_addBox {
  10772. margin: 10px 0;
  10773. background: #fff;
  10774. padding: 15px;
  10775. /* max-height: 600px; */
  10776. overflow: auto;
  10777. }
  10778. .a_add_box {
  10779. border-bottom: 2px solid #eee;
  10780. padding-bottom: 25px;
  10781. }
  10782. .a_add_head {
  10783. display: flex;
  10784. align-items: center;
  10785. justify-content: space-between;
  10786. margin: 10px 0 0 0;
  10787. font-size: 18px;
  10788. }
  10789. .a_add_checkType {
  10790. margin-top: 10px;
  10791. display: flex;
  10792. font-size: 14px;
  10793. align-items: center;
  10794. }
  10795. .a_add_checkType span {
  10796. box-sizing: border-box;
  10797. padding: 0 0 5px 0;
  10798. cursor: pointer;
  10799. }
  10800. .a_add_checkType span+span {
  10801. margin-left: 10px;
  10802. }
  10803. .a_add_checkType .active {
  10804. border-bottom: 2px solid #409eff;
  10805. color: #409eff;
  10806. }
  10807. .a_add_head .a_add_head_input {
  10808. /* width: 540px; */
  10809. width: 100%;
  10810. }
  10811. .a_add_head .a_add_head_div {
  10812. display: flex;
  10813. align-items: center;
  10814. justify-content: space-between;
  10815. }
  10816. .a_add_body {
  10817. display: flex;
  10818. /* align-items: center; */
  10819. align-items: flex-end;
  10820. }
  10821. .a_add_input {
  10822. display: flex;
  10823. align-items: center;
  10824. flex-wrap: wrap;
  10825. }
  10826. .a_add_input_choice {
  10827. flex-direction: column;
  10828. margin-right: 10px;
  10829. }
  10830. .a_add_input_choice>>>.el-radio {
  10831. display: flex;
  10832. align-items: center;
  10833. flex-direction: row-reverse;
  10834. margin: 30px 0 0 0;
  10835. position: relative;
  10836. }
  10837. .a_add_input_choice>>>.el-checkbox {
  10838. display: flex;
  10839. align-items: center;
  10840. flex-direction: row-reverse;
  10841. margin: 30px 0 0 0;
  10842. position: relative;
  10843. }
  10844. .width100 {
  10845. width: 100%;
  10846. }
  10847. .a_add_input .a_add_persent {
  10848. width: 100%;
  10849. }
  10850. .a_add_persent_div {
  10851. width: 100%;
  10852. display: flex;
  10853. align-items: center;
  10854. }
  10855. .a_add_persent_div span {
  10856. margin: 5px 0;
  10857. }
  10858. .a_add_persent_div span:nth-child(1) {
  10859. width: 30%;
  10860. }
  10861. .a_add_persent_div span:nth-child(2) {
  10862. width: 7%;
  10863. }
  10864. .a_add_persent_div span:nth-child(3) {
  10865. width: 40%;
  10866. }
  10867. .a_add_body_div {
  10868. display: flex;
  10869. align-items: center;
  10870. justify-content: center;
  10871. /* flex-direction: column; */
  10872. position: absolute;
  10873. right: -20px;
  10874. transform: translateX(100%);
  10875. }
  10876. .a_add_body_div>>>.el-button--primary {
  10877. background: #466b99;
  10878. border: none;
  10879. }
  10880. .all_choose {
  10881. display: flex;
  10882. flex-direction: row;
  10883. align-items: flex-start;
  10884. width: 100%;
  10885. }
  10886. .all_choose+.all_choose {
  10887. /* margin-top: 10px */
  10888. }
  10889. .all_choose>span {
  10890. min-width: fit-content;
  10891. display: block;
  10892. white-space: nowrap;
  10893. overflow: hidden;
  10894. text-overflow: ellipsis;
  10895. margin-right: 20px;
  10896. font-weight: bold;
  10897. font-size: 14px;
  10898. }
  10899. .all_choose>>>.el-checkbox-group {
  10900. display: flex;
  10901. flex-direction: row;
  10902. width: 100%;
  10903. flex-wrap: wrap;
  10904. align-content: center;
  10905. justify-content: flex-start;
  10906. align-items: center;
  10907. margin-top: 3px;
  10908. }
  10909. .all_choose>.el-checkbox-group>>>.el-checkbox {
  10910. margin-bottom: 10px;
  10911. display: flex;
  10912. flex-direction: row;
  10913. align-items: center;
  10914. margin-right: 10px;
  10915. }
  10916. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  10917. min-width: 80px;
  10918. overflow: hidden;
  10919. width: 80px;
  10920. text-overflow: ellipsis;
  10921. white-space: nowrap;
  10922. }
  10923. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  10924. width: auto;
  10925. }
  10926. .choose>div:nth-child(3)>span {
  10927. /* letter-spacing: 0 !important; */
  10928. }
  10929. .choose {
  10930. display: flex;
  10931. flex-direction: column;
  10932. flex-wrap: nowrap;
  10933. height: 100%;
  10934. justify-content: space-evenly;
  10935. align-items: flex-start;
  10936. }
  10937. .both {
  10938. display: flex;
  10939. flex-direction: row;
  10940. flex-wrap: wrap;
  10941. width: 100%;
  10942. align-items: center;
  10943. justify-content: flex-start;
  10944. margin: 15px 0;
  10945. }
  10946. .notice>>>.el-dialog {
  10947. width: 500px !important;
  10948. text-align: center;
  10949. }
  10950. .notice>>>.el-button {
  10951. margin-top: 20px;
  10952. }
  10953. .whiteBg {
  10954. /* background: #fff; */
  10955. border-radius: 10px;
  10956. }
  10957. .wb_j_box {
  10958. display: flex;
  10959. width: 100%;
  10960. padding: 0 20px 0;
  10961. box-sizing: border-box;
  10962. }
  10963. .wb_j_box_content {
  10964. width: calc(100% - 55% - 100px);
  10965. display: flex;
  10966. align-items: center;
  10967. }
  10968. .wb_j_box_p_box {
  10969. max-width: calc(100% - 200px);
  10970. word-break: break-all;
  10971. overflow: hidden;
  10972. margin: 0 0 0 10px;
  10973. font-size: 14px;
  10974. color: #6e6e6e;
  10975. z-index: 999;
  10976. }
  10977. .chooseWho {
  10978. display: flex;
  10979. width: 410px;
  10980. flex-direction: row;
  10981. flex-wrap: nowrap;
  10982. justify-content: space-between;
  10983. padding-bottom: 10px;
  10984. }
  10985. .chooseWho>div {
  10986. cursor: pointer;
  10987. padding-bottom: 10px;
  10988. font-weight: bold;
  10989. }
  10990. .isChooseActive {
  10991. color: #3e88f4;
  10992. border-bottom: 2px solid #2f80f3;
  10993. }
  10994. .toolSort {
  10995. display: flex;
  10996. flex-direction: row;
  10997. flex-wrap: wrap;
  10998. justify-content: flex-start;
  10999. align-items: flex-start;
  11000. }
  11001. .toolSort>div {
  11002. margin-right: 10px;
  11003. }
  11004. .tools {
  11005. width: 100%;
  11006. display: flex;
  11007. flex-direction: column;
  11008. flex-wrap: nowrap;
  11009. align-items: flex-start;
  11010. }
  11011. .leftTools,
  11012. .rightTools {
  11013. width: 50%;
  11014. }
  11015. .leftTools+.leftTools {
  11016. border-top: 1px solid #dbdbdb;
  11017. padding-top: 30px;
  11018. }
  11019. .rightTools {
  11020. display: flex;
  11021. flex-direction: row;
  11022. flex-wrap: nowrap;
  11023. justify-content: space-around;
  11024. }
  11025. .firstToolList {
  11026. display: flex;
  11027. flex-direction: column;
  11028. flex-wrap: nowrap;
  11029. align-items: center;
  11030. }
  11031. .iconList {
  11032. display: flex;
  11033. flex-direction: row;
  11034. flex-wrap: wrap;
  11035. justify-content: flex-start;
  11036. align-items: center;
  11037. margin: 20px 0 5px 0;
  11038. width: 240px;
  11039. min-width: 240px;
  11040. }
  11041. .iconTool {
  11042. display: flex;
  11043. flex-direction: column;
  11044. flex-wrap: nowrap;
  11045. align-items: center;
  11046. justify-content: flex-start;
  11047. margin: 15px 10px;
  11048. }
  11049. .toolIcon {
  11050. width: 50px;
  11051. }
  11052. .taskBorder {
  11053. /* border: 1px solid #CAD1DC; */
  11054. border-radius: 10px;
  11055. margin-top: 10px;
  11056. min-height: 670px;
  11057. position: relative;
  11058. background: #fff;
  11059. padding: 20px;
  11060. overflow: hidden;
  11061. box-sizing: border-box;
  11062. }
  11063. .smallTaskBorder {
  11064. height: 280px;
  11065. min-height: 280px !important;
  11066. overflow: hidden;
  11067. }
  11068. /* .taskBorder>div {
  11069. padding: 30px 30px 10px;
  11070. } */
  11071. .addTaskBorder {
  11072. /* border: 2px solid #5E9AFC; */
  11073. border-radius: 8px;
  11074. margin-top: 10px;
  11075. cursor: pointer;
  11076. /* height: 50px;
  11077. line-height: 50px; */
  11078. background: #fff;
  11079. padding: 15px 0;
  11080. display: flex;
  11081. align-items: center;
  11082. justify-content: center;
  11083. }
  11084. /* .addTaskBorder>div {
  11085. margin: 0 auto;
  11086. display: flex;
  11087. align-items: center;
  11088. justify-content: center;
  11089. }
  11090. .addTaskBorder>div>img {
  11091. width: 20px;
  11092. }
  11093. .addTaskBorder>div>span {
  11094. font-size: 16px;
  11095. margin-left: 10px;
  11096. color: #5E9AFC;
  11097. } */
  11098. .funBlock {
  11099. display: flex;
  11100. padding: 15px 0;
  11101. flex-direction: row;
  11102. justify-content: center;
  11103. align-items: center;
  11104. position: absolute;
  11105. right: 0;
  11106. bottom: 0;
  11107. background: #fff;
  11108. width: 100%;
  11109. height: 60px;
  11110. z-index: 999;
  11111. }
  11112. .fold {
  11113. display: flex;
  11114. margin: 0 20px;
  11115. flex-direction: row;
  11116. align-items: center;
  11117. cursor: pointer;
  11118. color: #2b7bff;
  11119. }
  11120. .arrow {
  11121. margin-right: 8px;
  11122. width: 16px;
  11123. height: 16px;
  11124. min-width: 16px;
  11125. min-height: 16px;
  11126. background-size: 100% 100%;
  11127. display: block;
  11128. background-image: url(../../assets/icon/new/u_up.png);
  11129. /* border-left: 7px solid transparent;
  11130. border-bottom: 7px solid #717C8D;
  11131. border-top: 0px solid transparent;
  11132. border-right: 7px solid transparent; */
  11133. /* box-sizing: border-box; */
  11134. transition: all .3s;
  11135. }
  11136. .arrowZ {
  11137. transform: rotate(180deg);
  11138. }
  11139. .addToolFun {
  11140. display: flex;
  11141. width: 150px;
  11142. flex-direction: row;
  11143. align-items: center;
  11144. justify-content: center;
  11145. border: 2px dashed #CAD1DC;
  11146. border-radius: 5px;
  11147. height: 50px;
  11148. margin: 35px auto 0;
  11149. cursor: pointer;
  11150. }
  11151. .addToolFun2 {
  11152. display: flex;
  11153. width: 150px;
  11154. border: 2px dashed #CAD1DC;
  11155. flex-direction: row;
  11156. align-items: center;
  11157. justify-content: center;
  11158. border-radius: 5px;
  11159. height: 50px;
  11160. margin: 0 auto 0;
  11161. cursor: pointer;
  11162. }
  11163. .addToolFun2>div,
  11164. .addToolFun>div {
  11165. display: flex;
  11166. line-height: 50px;
  11167. }
  11168. .addToolImg {
  11169. width: 20px;
  11170. height: 20px;
  11171. margin-right: 10px;
  11172. }
  11173. .addToolsDia>>>.el-dialog__body {
  11174. padding: 20px;
  11175. }
  11176. .addToolsDia>>>.el-dialog__body>.toolChoose {
  11177. padding: 0;
  11178. }
  11179. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  11180. padding: 0;
  11181. border-bottom: none;
  11182. margin-bottom: 0;
  11183. }
  11184. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  11185. width: 100%;
  11186. }
  11187. .lineCss>>>.el-form-item__label {
  11188. width: auto !important;
  11189. }
  11190. .lineCss>>>.el-form-item__content {
  11191. margin-left: 50px !important;
  11192. }
  11193. .newSteps {
  11194. display: flex;
  11195. width: 100% !important;
  11196. /* height: 80px; */
  11197. cursor: pointer;
  11198. margin: 10px 0;
  11199. border-radius: 10px;
  11200. flex-direction: row;
  11201. align-content: center;
  11202. justify-content: center;
  11203. align-items: center;
  11204. margin: 0 !important;
  11205. }
  11206. /* 评价样式 */
  11207. .elist_css {
  11208. padding-bottom: 75px !important;
  11209. }
  11210. .elist_title {
  11211. margin-bottom: 10px;
  11212. }
  11213. .elist_input {}
  11214. .elist_input_box {
  11215. display: flex;
  11216. align-items: center;
  11217. flex-wrap: wrap;
  11218. }
  11219. .elist_input_box+.elist_input_box {
  11220. margin-top: 30px;
  11221. }
  11222. .elist_input .elist_input_box input {
  11223. font: inherit;
  11224. color: currentColor;
  11225. width: 100%;
  11226. max-width: calc(100% - 385px);
  11227. padding: 8px 14px;
  11228. display: block;
  11229. min-width: 0;
  11230. outline: none;
  11231. border: 1px solid rgba(0, 0, 0, 0.23);
  11232. border-radius: 4px;
  11233. box-sizing: border-box;
  11234. background: #fff;
  11235. margin: 0 20px 0 0;
  11236. }
  11237. .elist_input .elist_input_box span {
  11238. height: 36px;
  11239. line-height: 36px;
  11240. color: rgb(82, 82, 82);
  11241. min-width: 80px;
  11242. }
  11243. .elist_input .elist_input_box .remove {
  11244. height: 20px;
  11245. width: 20px;
  11246. min-height: 20px;
  11247. min-width: 20px;
  11248. background-size: 100% 100%;
  11249. background-position: unset;
  11250. margin-left: 5px;
  11251. }
  11252. .elist_input_box>>>.el-rate {
  11253. display: flex;
  11254. height: 36px;
  11255. align-items: center;
  11256. }
  11257. .elist_input_box .elist_inptu_text {
  11258. width: 100%;
  11259. display: flex;
  11260. align-items: center;
  11261. margin-top: 10px;
  11262. }
  11263. .elist_input_box .elist_inptu_text input {
  11264. /* width: 500px; */
  11265. width: 100%;
  11266. max-width: unset;
  11267. }
  11268. .elist_input_box>>>.el-rate__icon {
  11269. font-size: 24px;
  11270. }
  11271. .elist_btn {
  11272. margin-top: 10px;
  11273. }
  11274. .lineTitle {
  11275. /* margin-top: 15px; */
  11276. width: 110px;
  11277. font-size: 16px;
  11278. display: flex;
  11279. align-items: center;
  11280. line-height: 20px;
  11281. }
  11282. .lineTitle::before {
  11283. content: '';
  11284. display: block;
  11285. width: 3px;
  11286. height: 20px;
  11287. background: #0061FF;
  11288. border-radius: 3px;
  11289. margin: 0 5px 0 0;
  11290. }
  11291. .courseTop {
  11292. display: flex;
  11293. flex-direction: row;
  11294. justify-content: space-between;
  11295. align-items: center;
  11296. width: calc(100% - 40px);
  11297. margin: 0 auto;
  11298. padding: 10px 0;
  11299. }
  11300. .stepsNav {
  11301. display: flex;
  11302. flex-direction: row;
  11303. justify-content: flex-start;
  11304. align-items: center;
  11305. }
  11306. .stepsWord {
  11307. font-size: 18px;
  11308. color: #fff;
  11309. font-weight: bold;
  11310. margin-left: auto;
  11311. background: rgb(15, 126, 255);
  11312. border-radius: 5px;
  11313. padding: 3px 25px;
  11314. box-sizing: border-box;
  11315. }
  11316. .stepBox {
  11317. width: calc(100% - 40px);
  11318. height: calc(100% - 50px);
  11319. overflow: hidden;
  11320. border-radius: 5px;
  11321. margin: 0 auto;
  11322. }
  11323. .rightBox {
  11324. width: calc(100%);
  11325. background: #F0F2F5;
  11326. /* border-radius: 10px; */
  11327. overflow: auto;
  11328. height: calc(100% - 150px);
  11329. margin: 0 auto;
  11330. position: relative;
  11331. box-sizing: border-box;
  11332. }
  11333. .e_add_top {
  11334. display: flex;
  11335. justify-content: space-between;
  11336. background: #fff;
  11337. position: absolute;
  11338. right: 20px;
  11339. height: 50px;
  11340. align-items: center;
  11341. }
  11342. .e_add_title2 {
  11343. display: flex;
  11344. align-items: center;
  11345. }
  11346. .e_add_title2 span {
  11347. width: 40px;
  11348. }
  11349. .e_add_title {
  11350. display: flex;
  11351. align-items: center;
  11352. color: #b8b8b8;
  11353. font-size: 18px;
  11354. position: relative;
  11355. height: 40px;
  11356. }
  11357. .e_add_title span {
  11358. margin-right: 10px;
  11359. }
  11360. .e_add_title .el_input {
  11361. width: 300px;
  11362. }
  11363. .e_add_title>>>.el-input__inner {
  11364. width: 400px;
  11365. }
  11366. .e_add_btn {}
  11367. .e_add_content {
  11368. display: flex;
  11369. width: 100%;
  11370. }
  11371. .e_add_list {
  11372. background: #fff;
  11373. height: 500px;
  11374. width: 210px;
  11375. position: relative;
  11376. margin: 15px 5px 0 0;
  11377. flex-shrink: 0;
  11378. display: flex;
  11379. flex-direction: column;
  11380. }
  11381. .e_add_list_title {
  11382. font-size: 20px;
  11383. width: 100%;
  11384. box-sizing: border-box;
  11385. padding: 15px 40px;
  11386. text-align: center;
  11387. border-bottom: 1px solid #eaeaea;
  11388. position: relative;
  11389. display: flex;
  11390. align-items: center;
  11391. justify-content: center;
  11392. height: 57px;
  11393. background: #f6f6f6;
  11394. }
  11395. .e_add_list_title span {
  11396. overflow: hidden;
  11397. white-space: nowrap;
  11398. text-overflow: ellipsis;
  11399. }
  11400. .e_add_list_title img {
  11401. position: absolute;
  11402. right: 15px;
  11403. width: 25px;
  11404. cursor: pointer;
  11405. top: 50%;
  11406. transform: translateY(-50%);
  11407. }
  11408. .e_add_list_body {
  11409. height: calc(100% - 187px);
  11410. overflow: auto;
  11411. }
  11412. .e_add_list_child {
  11413. width: 100%;
  11414. display: flex;
  11415. align-items: center;
  11416. justify-content: center;
  11417. position: relative;
  11418. box-sizing: border-box;
  11419. padding: 15px 40px;
  11420. text-align: center;
  11421. }
  11422. .e_add_list_child span {
  11423. overflow: hidden;
  11424. white-space: nowrap;
  11425. text-overflow: ellipsis;
  11426. cursor: pointer;
  11427. }
  11428. .e_add_list_child img {
  11429. position: absolute;
  11430. right: 10px;
  11431. width: 21px;
  11432. cursor: pointer;
  11433. top: 50%;
  11434. transform: translateY(-50%);
  11435. }
  11436. .e_add_list_child+.e_add_list_child {
  11437. border-top: 1px solid #eaeaea;
  11438. }
  11439. .e_add_list_child .active {
  11440. color: #409eff;
  11441. }
  11442. .e_add_list_btn {
  11443. position: absolute;
  11444. bottom: 0;
  11445. height: 50px;
  11446. background: rgb(120, 120, 254);
  11447. width: 100%;
  11448. color: #fff;
  11449. font-size: 16px;
  11450. text-align: center;
  11451. line-height: 50px;
  11452. cursor: pointer;
  11453. }
  11454. .e_add_list_detail {
  11455. position: absolute;
  11456. bottom: 0;
  11457. height: 130px;
  11458. background: rgb(120, 120, 254);
  11459. width: 100%;
  11460. color: #fff;
  11461. font-size: 16px;
  11462. display: flex;
  11463. align-items: center;
  11464. justify-content: center;
  11465. }
  11466. .e_add_list_detail textarea {
  11467. height: 90%;
  11468. width: 95%;
  11469. border: none;
  11470. resize: none;
  11471. outline: none;
  11472. padding: 5px;
  11473. box-sizing: border-box;
  11474. }
  11475. .e_add_list_pbox {
  11476. width: 100%;
  11477. }
  11478. .e_add_list_pbox_title {
  11479. height: 50px;
  11480. background: #fff;
  11481. display: flex;
  11482. align-items: center;
  11483. width: 100%;
  11484. box-sizing: border-box;
  11485. padding: 0 20px;
  11486. flex-direction: row;
  11487. flex-wrap: wrap;
  11488. }
  11489. .type_title {
  11490. font-size: 18px;
  11491. font-weight: 700;
  11492. }
  11493. .type_content {
  11494. font-size: 16px;
  11495. margin-left: 30px;
  11496. }
  11497. .type_content span+span {
  11498. margin-left: 20px;
  11499. }
  11500. .type_content span {
  11501. cursor: pointer;
  11502. padding-bottom: 5px;
  11503. box-sizing: border-box;
  11504. }
  11505. .type_content .active {
  11506. color: #409eff;
  11507. border-bottom: 2px solid #409eff;
  11508. }
  11509. .e_add_list_pbox_content {
  11510. height: calc(100% - 50px);
  11511. display: flex;
  11512. align-items: center;
  11513. width: 100%;
  11514. background: #fff;
  11515. }
  11516. .mbCss {
  11517. width: 100%;
  11518. display: flex;
  11519. flex-direction: row;
  11520. flex-wrap: nowrap;
  11521. align-content: center;
  11522. align-items: flex-start;
  11523. justify-content: flex-start;
  11524. }
  11525. .pjCss {
  11526. /* width: 42%; */
  11527. width: calc(100% - 55%);
  11528. display: flex;
  11529. flex-direction: column;
  11530. flex-wrap: nowrap;
  11531. align-items: flex-start;
  11532. }
  11533. .e_box {
  11534. /* display: flex; */
  11535. flex-wrap: wrap;
  11536. max-height: 500px;
  11537. align-items: flex-start;
  11538. overflow: auto;
  11539. width:100%;
  11540. }
  11541. .e_card {
  11542. border: 1px solid #ccc;
  11543. background: #fff;
  11544. margin-right: 20px;
  11545. width: 270px;
  11546. display: flex;
  11547. flex-direction: column;
  11548. align-items: center;
  11549. border-radius: 5px;
  11550. margin-top: 10px;
  11551. text-align: center;
  11552. }
  11553. .e_card_picture {
  11554. margin: 10px 0;
  11555. }
  11556. .e_card_picture>img {
  11557. width: 50px;
  11558. }
  11559. .e_card_name {
  11560. width: 100%;
  11561. padding: 0 10px;
  11562. box-sizing: border-box;
  11563. margin-bottom: 10px;
  11564. overflow: hidden;
  11565. text-overflow: ellipsis;
  11566. white-space: nowrap;
  11567. }
  11568. .e_card_time {
  11569. width: 100%;
  11570. padding: 0 10px;
  11571. box-sizing: border-box;
  11572. font-size: 15px;
  11573. color: #c3c3c3;
  11574. margin-bottom: 10px;
  11575. }
  11576. .e_card_btn {
  11577. height: 40px;
  11578. display: flex;
  11579. align-items: center;
  11580. width: 100%;
  11581. background: rgb(244, 244, 244);
  11582. }
  11583. .e_card_btn:hover {
  11584. background: rgb(221 221 221);
  11585. }
  11586. .e_card_btn span {
  11587. flex: 1 1 auto;
  11588. text-align: center;
  11589. cursor: pointer;
  11590. }
  11591. .addEva {
  11592. border: 1px solid #ccc;
  11593. background: #fff;
  11594. margin-right: 20px;
  11595. width: 270px;
  11596. height: 149px;
  11597. display: flex;
  11598. flex-direction: column;
  11599. align-items: center;
  11600. border-radius: 5px;
  11601. margin-top: 10px;
  11602. text-align: center;
  11603. cursor: pointer;
  11604. justify-content: center;
  11605. }
  11606. .addEva>img {
  11607. width: 50px;
  11608. object-fit: cover;
  11609. }
  11610. .uploadFm {
  11611. border: 1px dashed #ccc;
  11612. width: 100%;
  11613. height: 140px;
  11614. position: relative;
  11615. cursor: pointer;
  11616. display: flex;
  11617. flex-direction: column;
  11618. justify-content: center;
  11619. align-items: center;
  11620. font-size: 14px;
  11621. color: #6e6e6e;
  11622. position:relative;
  11623. }
  11624. .cover_p{
  11625. width: 100% !important;
  11626. height: 100%;
  11627. object-fit: cover;
  11628. }
  11629. .uploadFm2:hover .cover_mask{
  11630. display: flex !important;
  11631. }
  11632. .cover_mask{
  11633. display:none;
  11634. width:100%;
  11635. height:100%;
  11636. position:absolute;
  11637. background:#00000054;
  11638. align-items: center;
  11639. justify-content: center;
  11640. flex-direction: column;
  11641. }
  11642. .cover_mask > img{
  11643. width: 30px;
  11644. }
  11645. .cover_mask > span{
  11646. color: #fff;
  11647. font-size: 12px;
  11648. }
  11649. .uploadFm>img {
  11650. width: 50px;
  11651. }
  11652. .fileCss {
  11653. width: 100%;
  11654. display: flex;
  11655. flex-direction: row;
  11656. flex-wrap: nowrap;
  11657. justify-content: space-around;
  11658. align-items: center;
  11659. padding-top: 15px;
  11660. }
  11661. .fileCss>div {
  11662. display: flex;
  11663. flex-direction: column;
  11664. align-items: center;
  11665. }
  11666. .fileCss .spanName {
  11667. margin-top: 10px
  11668. }
  11669. .sysPicBox {
  11670. display: flex;
  11671. flex-direction: row;
  11672. flex-wrap: wrap;
  11673. align-content: flex-start;
  11674. height: 435px;
  11675. overflow: auto;
  11676. position: relative;
  11677. }
  11678. .picNone {
  11679. position: absolute;
  11680. left: 50%;
  11681. top: 45%;
  11682. transform: translate(-50%, -50%);
  11683. width: fit-content;
  11684. color: #9c9c9c;
  11685. }
  11686. .sysPic {
  11687. width: 200px;
  11688. height: 115px;
  11689. margin: 0 20px 20px 0;
  11690. cursor: pointer;
  11691. }
  11692. .sysPic>img,
  11693. .isSysPic>img,
  11694. .deletePic>img {
  11695. width: 100%;
  11696. height: 100%;
  11697. object-fit: cover;
  11698. }
  11699. .isSysPic {
  11700. width: 200px;
  11701. height: 115px;
  11702. position: relative;
  11703. }
  11704. .deletePic {
  11705. width: 20px;
  11706. height: 20px;
  11707. position: absolute;
  11708. top: 0;
  11709. right: 0;
  11710. cursor: pointer;
  11711. }
  11712. .select_box1 {
  11713. height: 100%;
  11714. }
  11715. .select_box1_img {
  11716. background: #fff;
  11717. border-radius: 5px;
  11718. padding: 15px;
  11719. box-sizing: border-box;
  11720. margin-bottom: 20px;
  11721. }
  11722. .select_box1_title {
  11723. padding: 0 0 15px 0;
  11724. border-bottom: 1px solid #eee;
  11725. margin-bottom: 15px;
  11726. }
  11727. .select_box1_title span:nth-child(1) {
  11728. font-size: 16px;
  11729. margin-right: 20px;
  11730. color: #000;
  11731. }
  11732. .select_box1_title span:nth-child(2) {
  11733. font-size: 14px;
  11734. color: rgb(112, 112, 112);
  11735. }
  11736. .select_box1_add_img {}
  11737. .select_box1_select {
  11738. background: #fff;
  11739. border-radius: 5px;
  11740. padding: 15px;
  11741. box-sizing: border-box;
  11742. height: calc(100% - 200px);
  11743. overflow: auto;
  11744. }
  11745. .select_box2 {
  11746. height: 100%;
  11747. }
  11748. .select_box2_title {
  11749. background: #fff;
  11750. border-radius: 5px;
  11751. padding: 5px 10px;
  11752. box-sizing: border-box;
  11753. margin-bottom: 10px;
  11754. }
  11755. .select_box2_box {
  11756. display: flex;
  11757. height: calc(100% - 30px);
  11758. }
  11759. .select_box2_img {
  11760. width: calc(100% - 310px);
  11761. height: 100%;
  11762. overflow: auto;
  11763. background: #fff;
  11764. border-radius: 5px;
  11765. }
  11766. .select_box2_img img {
  11767. width: 100%;
  11768. }
  11769. .select_box2_answer {
  11770. background: #fff;
  11771. margin-left: 10px;
  11772. border-radius: 5px;
  11773. width: 300px;
  11774. overflow: auto;
  11775. height: 100%;
  11776. display: flex;
  11777. flex-direction: column;
  11778. align-items: center;
  11779. padding-top: 10px;
  11780. box-sizing: border-box;
  11781. }
  11782. .select_box2_answer_box {
  11783. margin: 0 0 10px 0;
  11784. width: 85%;
  11785. }
  11786. .rate_textarea {
  11787. font: inherit;
  11788. color: currentColor;
  11789. width: 100%;
  11790. padding: 8px 14px;
  11791. display: block;
  11792. min-width: 0;
  11793. outline: none;
  11794. border: 1px solid rgba(0, 0, 0, 0.23);
  11795. border-radius: 4px;
  11796. box-sizing: border-box;
  11797. background: #fff;
  11798. margin: 0 20px 0 0;
  11799. resize: none;
  11800. }
  11801. .select_answer_title {
  11802. text-align: left;
  11803. width: 85%;
  11804. margin-bottom: 10px;
  11805. font-size: 18px;
  11806. color: #8e8e8e;
  11807. }
  11808. .mask {
  11809. background-color: rgb(0 0 0 / 30%);
  11810. /* position: fixed; */
  11811. position: absolute;
  11812. top: 0;
  11813. left: 0;
  11814. width: 100%;
  11815. height: 100%;
  11816. z-index: 90;
  11817. display: flex;
  11818. align-items: center;
  11819. justify-content: center;
  11820. }
  11821. .progressBox {
  11822. width: 300px;
  11823. height: 150px;
  11824. background: #fff;
  11825. border-radius: 10px;
  11826. box-shadow: 0 0 6px 1px #bfbfbf;
  11827. display: flex;
  11828. align-items: center;
  11829. justify-content: center;
  11830. flex-direction: column;
  11831. position: relative;
  11832. color: #6c6c6c;
  11833. }
  11834. .progressBox>>>.el-progress-bar__outer {
  11835. background-color: #d1dfff !important;
  11836. }
  11837. .progressBox .lbox {
  11838. height: 50px;
  11839. font-size: 19px;
  11840. display: flex;
  11841. align-items: center;
  11842. color: #747474;
  11843. }
  11844. .progressBox .lbox img {
  11845. width: 40px;
  11846. margin-right: 20px;
  11847. }
  11848. .closeCss {
  11849. position: absolute;
  11850. top: 8px;
  11851. right: 8px;
  11852. cursor: pointer;
  11853. width: 20px;
  11854. height: 20px;
  11855. }
  11856. .closeCss>img {
  11857. width: 100%;
  11858. height: 100%;
  11859. }
  11860. .updateTips::before {
  11861. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  11862. font-size: 14px;
  11863. margin-left: 20px;
  11864. font-weight: 400;
  11865. color: #ff3a3a;
  11866. margin-bottom: 10px;
  11867. display: block;
  11868. }
  11869. .updateMask {
  11870. width: 100%;
  11871. z-index: 3;
  11872. top: 0;
  11873. position: absolute;
  11874. /* background-color: rgba(0,0,0,.3); */
  11875. }
  11876. .t_j_box {
  11877. display: flex;
  11878. }
  11879. .t_j_box span:nth-child(1) {
  11880. width: 15%;
  11881. overflow: hidden;
  11882. margin-right: 10px;
  11883. text-overflow: ellipsis;
  11884. white-space: nowrap;
  11885. }
  11886. .t_j_box span:nth-child(2) {
  11887. width: 30%;
  11888. overflow: hidden;
  11889. text-overflow: ellipsis;
  11890. margin-right: 10px;
  11891. }
  11892. .t_j_box span:nth-child(3) {
  11893. max-width: calc(55% - 20px);
  11894. overflow: hidden;
  11895. text-overflow: ellipsis;
  11896. }
  11897. .sentenBox {
  11898. background: #fff;
  11899. height: 600px;
  11900. overflow: auto;
  11901. background-image: url("../../assets/icon/conSentences/csBg.png");
  11902. background-position: 102%;
  11903. background-repeat: no-repeat;
  11904. background-size: 60%;
  11905. }
  11906. .sentenBox>.sentenContent {
  11907. padding-bottom: 10px;
  11908. width: 97%;
  11909. margin: 0 auto;
  11910. }
  11911. .sentenBox>.sentenContent+.sentenContent {
  11912. border-top: 1px solid #cbcbcb;
  11913. }
  11914. .addSen {
  11915. background: #409efe;
  11916. width: 90px;
  11917. color: #fff;
  11918. height: 35px;
  11919. text-align: center;
  11920. line-height: 35px;
  11921. border-radius: 5px;
  11922. float: right;
  11923. margin: 10px 20px 0 0;
  11924. cursor: pointer;
  11925. }
  11926. .sentenTop {
  11927. display: flex;
  11928. flex-direction: row;
  11929. flex-wrap: nowrap;
  11930. align-items: center;
  11931. }
  11932. .sentenTop::before {
  11933. content: attr(index);
  11934. background: #3681fc;
  11935. border-radius: 50%;
  11936. color: #fff;
  11937. width: 25px;
  11938. height: 25px;
  11939. min-width: 25px;
  11940. min-height: 25px;
  11941. text-align: center;
  11942. line-height: 25px;
  11943. margin-right: 5px;
  11944. }
  11945. .sentenTop>div:nth-child(2) {
  11946. width: 300px;
  11947. margin: 0 15px;
  11948. }
  11949. .sentenTop>div:nth-child(3) {
  11950. background: #409efe;
  11951. color: #fff;
  11952. width: 65px;
  11953. height: 35px;
  11954. text-align: center;
  11955. line-height: 35px;
  11956. border-radius: 5px;
  11957. cursor: pointer;
  11958. }
  11959. .cardList {
  11960. padding: 30px 0 20px 0;
  11961. display: flex;
  11962. flex-direction: row;
  11963. flex-wrap: wrap;
  11964. align-items: center;
  11965. box-sizing: border-box;
  11966. border-bottom: 1px solid #f4f4f4;
  11967. width: 98%;
  11968. margin: 0 auto;
  11969. }
  11970. .rightCardList {
  11971. display: flex;
  11972. flex-wrap: wrap;
  11973. }
  11974. .cardBox {
  11975. display: flex;
  11976. flex-direction: row;
  11977. flex-wrap: wrap;
  11978. align-items: center;
  11979. align-content: center;
  11980. }
  11981. .isCard,
  11982. .isCard1 {
  11983. width: auto;
  11984. padding: 0 20px;
  11985. height: 65px;
  11986. text-align: center;
  11987. line-height: 65px;
  11988. font-size: 14px;
  11989. cursor: pointer;
  11990. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  11991. background-size: 100% 100%;
  11992. position: relative;
  11993. z-index: 99;
  11994. }
  11995. .isCard1 {
  11996. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  11997. }
  11998. .isCard:hover .deleteWord {
  11999. display: block;
  12000. }
  12001. .isCard>div:nth-child(1),
  12002. .isCard1>div:nth-child(1) {
  12003. white-space: nowrap;
  12004. overflow: hidden;
  12005. text-overflow: ellipsis;
  12006. width: 100%;
  12007. margin: 0 auto;
  12008. }
  12009. .card {
  12010. width: 140px;
  12011. height: 65px;
  12012. }
  12013. .card>img {
  12014. width: 100%;
  12015. height: 100%;
  12016. }
  12017. .rightCardBox {
  12018. width: 98%;
  12019. margin: 10px auto 0;
  12020. }
  12021. .rightCardBox>div:nth-child(1) {
  12022. margin-bottom: 10px;
  12023. }
  12024. .cardCss {
  12025. display: flex;
  12026. flex-direction: column;
  12027. flex-wrap: nowrap;
  12028. align-items: center;
  12029. border-bottom: 3px solid #b4c3d3;
  12030. padding: 0 0 5px 0;
  12031. /* margin-right: 10px; */
  12032. }
  12033. .cardCss>div:nth-child(2) {
  12034. background: #5b7b9d;
  12035. color: #fff;
  12036. width: 20px;
  12037. height: 20px;
  12038. border-radius: 50%;
  12039. text-align: center;
  12040. line-height: 20px;
  12041. }
  12042. .sentenTopBox {
  12043. display: flex;
  12044. flex-direction: row;
  12045. flex-wrap: nowrap;
  12046. align-items: center;
  12047. justify-content: space-between;
  12048. padding: 55px 0 0 20px;
  12049. box-sizing: border-box;
  12050. width: 85%;
  12051. }
  12052. .stepsBottom {
  12053. width: 100%;
  12054. box-shadow: 0 0 10px 10px #f7f7f7;
  12055. /* background: #f7f7f7; */
  12056. border-radius: 10px;
  12057. overflow: hidden;
  12058. height: 100%
  12059. }
  12060. .navTop {
  12061. background: #53749b;
  12062. color: #fff;
  12063. height: 40px;
  12064. line-height: 40px;
  12065. padding-left: 15px;
  12066. font-size: 18px;
  12067. }
  12068. .navBottom {
  12069. /* background: #6b91b7; */
  12070. height: 100%;
  12071. overflow: auto;
  12072. }
  12073. .navTask {
  12074. display: flex;
  12075. flex-direction: row;
  12076. flex-wrap: nowrap;
  12077. align-items: center;
  12078. padding: 10px 10px 10px 0;
  12079. cursor: pointer;
  12080. background: #ffffff;
  12081. width: 95%;
  12082. margin: 10px auto 0;
  12083. box-sizing: border-box;
  12084. border-radius: 5px;
  12085. flex-wrap: wrap;
  12086. position: relative;
  12087. }
  12088. .navTask::before {
  12089. content: '';
  12090. display: block;
  12091. width: 16px;
  12092. height: 16px;
  12093. background-image: url(../../assets/icon/new/icon_arrow.png);
  12094. background-size: 100%;
  12095. margin-left: 23px;
  12096. }
  12097. .noImage::before {
  12098. display: none;
  12099. background-image: unset !important;
  12100. }
  12101. .isNavOpen::before {
  12102. background-image: url(../../assets/icon/new/icon_arrow_a.png) !important;
  12103. }
  12104. .dragOverTop {
  12105. border-top: 2px solid #0061FF !important;
  12106. border-radius: 0 !important;
  12107. margin-top: 10px;
  12108. }
  12109. .dragOverBottom {
  12110. border-bottom: 2px solid #0061FF !important;
  12111. border-radius: 0 !important;
  12112. margin-top: 10px;
  12113. }
  12114. .dragOverTop2 {
  12115. border-top: 2px solid #0061FF !important;
  12116. border-radius: 0 !important;
  12117. }
  12118. .dragOverBottom2 {
  12119. border-bottom: 2px solid #0061FF !important;
  12120. border-radius: 0 !important;
  12121. }
  12122. .isNavTask {
  12123. /* background: #3681FC; */
  12124. background: #EEF3FB;
  12125. }
  12126. .isNavTask>.chapter_upload_drag {
  12127. background-image: url(../../assets/icon/new/icon_course_drag_active.png) !important;
  12128. }
  12129. .isNavTask .nt_taskName {
  12130. /* color: #fff !important; */
  12131. font-weight: bold !important;
  12132. color: #0061FF !important;
  12133. }
  12134. .isNavTask .nt_taskTitle {
  12135. /* color: #AECCFE !important; */
  12136. font-weight: bold !important;
  12137. color: #0061FF !important;
  12138. }
  12139. .navTask .nt_taskBox {
  12140. width: calc(100% - 40px);
  12141. padding: 0 0 0 5px;
  12142. box-sizing: border-box;
  12143. box-sizing: border-box;
  12144. display: flex;
  12145. flex-direction: row;
  12146. flex-wrap: nowrap;
  12147. align-items: baseline;
  12148. }
  12149. .navTask .nt_taskTitle {
  12150. /* color: #717C8D; */
  12151. color: #060E17;
  12152. line-height: 25px;
  12153. font-size: 16px;
  12154. /* min-width: 66px; */
  12155. }
  12156. .navTask .nt_taskName {
  12157. /* color: #fff; */
  12158. /* max-width: 130px; */
  12159. /* width: 100%; */
  12160. max-width: calc(100% - 66px);
  12161. white-space: nowrap;
  12162. overflow: hidden;
  12163. text-overflow: ellipsis;
  12164. font-size: 16px;
  12165. color: #060E17;
  12166. /* color: #0E1E33; */
  12167. }
  12168. .gjBox {
  12169. width: calc(100% - 25px);
  12170. padding: 0 0 0 0;
  12171. box-sizing: border-box;
  12172. border-left: 1px solid #CAD1DC;
  12173. margin-left: 25px;
  12174. }
  12175. .gjBox>div {
  12176. display: flex;
  12177. align-items: center;
  12178. }
  12179. .gjBox>div::before {
  12180. content: '';
  12181. height: 1px;
  12182. width: 10px;
  12183. background: #CAD1DC;
  12184. display: block;
  12185. margin-right: 5px;
  12186. }
  12187. .gjCss {
  12188. display: flex;
  12189. flex-direction: row;
  12190. flex-wrap: nowrap;
  12191. align-items: center;
  12192. padding: 15px 0;
  12193. box-sizing: border-box;
  12194. font-size: 14px;
  12195. cursor: pointer;
  12196. }
  12197. .isGjCss {
  12198. color: #0061ff;
  12199. }
  12200. .groupBox {}
  12201. .groupContent+.groupContent {
  12202. margin-top: 30px;
  12203. }
  12204. .groupTitle {
  12205. font-size: 24px;
  12206. color: rgb(80, 80, 80);
  12207. margin-bottom: 20px;
  12208. }
  12209. .groupName {
  12210. display: flex;
  12211. align-items: center;
  12212. }
  12213. .groupn {
  12214. font-size: 15px;
  12215. margin-right: 10px;
  12216. }
  12217. .groupName+.groupName {
  12218. margin-top: 15px;
  12219. }
  12220. .groupBtn {
  12221. margin-left: 10px;
  12222. }
  12223. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  12224. text-align: left;
  12225. }
  12226. .radioBox>div {
  12227. margin: 10px 0 0 10px;
  12228. }
  12229. .radioBox>>>.el-radio__input,
  12230. .radioBox>>>.el-checkbox__inner {
  12231. margin-left: 10px;
  12232. }
  12233. .radioBox>>>.el-radio__label,
  12234. .radioBox>>>.el-checkbox__label {
  12235. display: flex;
  12236. align-items: center;
  12237. }
  12238. .inImg {
  12239. width: 50px;
  12240. }
  12241. .inImg>img {
  12242. width: 100%;
  12243. height: 100%;
  12244. object-fit: cover;
  12245. }
  12246. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  12247. height: auto;
  12248. padding: 10px;
  12249. margin: 0;
  12250. }
  12251. .upCss>>>.el-upload-list {
  12252. width: 100%;
  12253. }
  12254. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  12255. width: 100%;
  12256. height: 120px;
  12257. object-fit: contain;
  12258. background: unset;
  12259. margin-left: 0;
  12260. }
  12261. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  12262. display: none;
  12263. }
  12264. .tcMember+.tcMember::before {
  12265. content: "、";
  12266. }
  12267. .xzUpImg {
  12268. width: 25px;
  12269. height: 25px;
  12270. min-width: 25px;
  12271. min-height: 25px;
  12272. cursor: pointer;
  12273. margin: 0 10px;
  12274. }
  12275. .xzUpImg>img {
  12276. width: 100%;
  12277. height: 100%;
  12278. }
  12279. .closeCss {
  12280. position: absolute;
  12281. top: 8px;
  12282. right: 8px;
  12283. cursor: pointer;
  12284. width: 20px;
  12285. height: 20px;
  12286. }
  12287. .closeCss>img {
  12288. width: 100%;
  12289. height: 100%;
  12290. }
  12291. .moveBtn {
  12292. display: flex;
  12293. flex-direction: row;
  12294. flex-wrap: nowrap;
  12295. align-items: center;
  12296. width: 55px;
  12297. }
  12298. .timuUpImg {
  12299. display: flex;
  12300. flex-direction: row;
  12301. align-items: center;
  12302. width: 100%;
  12303. margin-right: 10px;
  12304. }
  12305. .timuUpImg>div:nth-child(1) {
  12306. margin-right: 10px;
  12307. display: flex;
  12308. align-items: center;
  12309. width: 100%;
  12310. }
  12311. .timuImgBox {
  12312. margin: 10px 0;
  12313. display: flex;
  12314. flex-direction: column;
  12315. flex-wrap: wrap;
  12316. align-items: flex-start;
  12317. }
  12318. .timuImg {
  12319. width: 100px;
  12320. margin: 5px 0;
  12321. cursor: pointer;
  12322. position: relative;
  12323. }
  12324. .timuImg:hover .deleteWord {
  12325. display: block;
  12326. }
  12327. .deleteWord {
  12328. width: 25px;
  12329. height: 25px;
  12330. position: absolute;
  12331. right: -5px;
  12332. top: -5px;
  12333. cursor: pointer;
  12334. display: none;
  12335. }
  12336. .timuImg>img,
  12337. .deleteWord>img {
  12338. width: 100%;
  12339. height: 100%;
  12340. object-fit: cover;
  12341. }
  12342. .e_add_delete {
  12343. cursor: pointer;
  12344. margin-left: 10px;
  12345. }
  12346. .pType_box {
  12347. margin-top: 30px;
  12348. align-items: flex-end;
  12349. }
  12350. .noneBox {
  12351. height: 200px;
  12352. width: 100%;
  12353. display: flex;
  12354. align-items: center;
  12355. justify-content: center;
  12356. flex-direction: column;
  12357. /* margin-top: 150px; */
  12358. }
  12359. .noneBox>img {
  12360. width: 95px;
  12361. }
  12362. .noneBox>span {
  12363. margin-top: 10px;
  12364. color: #717C8D;
  12365. }
  12366. .rb_c_box {
  12367. width: 100%;
  12368. height: 100%;
  12369. display: flex;
  12370. /* padding: 20px; */
  12371. box-sizing: border-box;
  12372. justify-content: space-between;
  12373. }
  12374. .rb_c_box_left {
  12375. height: 100%;
  12376. background: #fff;
  12377. width: 270px;
  12378. min-width: 270px;
  12379. border-radius: 8px;
  12380. margin-right: 10px;
  12381. }
  12382. .rb_c_box_right {
  12383. height: 100%;
  12384. width: calc(100%);
  12385. overflow: hidden;
  12386. }
  12387. .rb_c_box_btn {
  12388. display: flex;
  12389. justify-content: flex-start;
  12390. height: 50px;
  12391. align-items: center;
  12392. }
  12393. .rb_c_box_right>.basic_box {
  12394. /* background: #fff; */
  12395. border-radius: 0;
  12396. height: calc(100% - 0px);
  12397. overflow: auto;
  12398. padding: 0;
  12399. }
  12400. .textarea_css {
  12401. display: block;
  12402. resize: none;
  12403. padding: 10px 15px;
  12404. line-height: 1.5;
  12405. box-sizing: border-box;
  12406. width: 100%;
  12407. font-size: 14px;
  12408. color: #606266;
  12409. background-color: #FFF;
  12410. background-image: none;
  12411. border: 1px solid #DCDFE6;
  12412. border-radius: 4px;
  12413. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  12414. outline: none;
  12415. overflow: hidden;
  12416. height: 46px;
  12417. font-family: 'Microsoft YaHei';
  12418. }
  12419. .textarea_css::-webkit-input-placeholder {
  12420. color: #C0C4CC
  12421. }
  12422. .textarea_css:focus {
  12423. border-color: #409EFF;
  12424. outline: 0;
  12425. }
  12426. .addEditor>>>.text {
  12427. height: auto;
  12428. min-height: 100px;
  12429. }
  12430. .addEditor>>>.w-e-text-container {
  12431. min-height: 100px;
  12432. }
  12433. .moveBtn2 {
  12434. flex-direction: column;
  12435. width: fit-content;
  12436. margin: 0 10px 0 10px;
  12437. }
  12438. .moveBtn2 .chapter_upload_down,
  12439. .moveBtn2 .chapter_upload_up {
  12440. width: 16px;
  12441. height: 16px;
  12442. }
  12443. .moveBtn2 .chapter_upload_up::after,
  12444. .moveBtn2 .chapter_upload_down::after {
  12445. width: 10px;
  12446. height: 10px;
  12447. }
  12448. .fullStyle>>>.el-dialog__body {
  12449. height: calc(100% - 125px) !important;
  12450. box-sizing: border-box;
  12451. }
  12452. .fullStyle>>>.el-dialog {
  12453. width: 100% !important;
  12454. max-width: 100% !important;
  12455. height: 100% !important;
  12456. margin: 0 !important;
  12457. }
  12458. .fullStyle {
  12459. width: 100% !important;
  12460. max-width: 100% !important;
  12461. height: 100% !important;
  12462. margin: 0 auto !important;
  12463. }
  12464. .wb_j_box_btn {
  12465. width: calc(100% - 30px);
  12466. display: flex;
  12467. height: 40px;
  12468. border: 1.5px solid #CAD1DC;
  12469. border-radius: 4px;
  12470. box-sizing: border-box;
  12471. align-items: center;
  12472. font-size: 14px;
  12473. cursor: pointer;
  12474. overflow: hidden;
  12475. }
  12476. .wb_j_box_btn:hover {
  12477. border: 1.5px solid #0061FF;
  12478. }
  12479. .wb_j_box_title {
  12480. background: #F0F4FA;
  12481. height: 100%;
  12482. line-height: 40px;
  12483. width: 90px;
  12484. text-align: center;
  12485. color: #060E17;
  12486. border-right: 1.5px solid #CAD1DC;
  12487. box-sizing: border-box;
  12488. }
  12489. .wb_j_box_btn_c {
  12490. width: calc(100% - 90px);
  12491. padding: 0 35px 0 10px;
  12492. box-sizing: border-box;
  12493. position: relative;
  12494. }
  12495. .wb_j_box_span {
  12496. width: 100%;
  12497. overflow: hidden;
  12498. white-space: nowrap;
  12499. text-overflow: ellipsis;
  12500. word-wrap: break-word;
  12501. color: #717C8D;
  12502. }
  12503. .wb_j_box_arrow {
  12504. content: '';
  12505. width: 14px;
  12506. height: 14px;
  12507. background: url(../../assets/icon/new/u_arrow.png);
  12508. background-size: 100% 100%;
  12509. position: absolute;
  12510. right: 12px;
  12511. top: 50%;
  12512. transform: translateY(-50%);
  12513. }
  12514. .check_classBox {
  12515. height: 400px;
  12516. display: flex;
  12517. border-top: 1.5px solid #E7EBF1;
  12518. border-bottom: 1.5px solid #E7EBF1;
  12519. }
  12520. .check_class_right {
  12521. width: 130px;
  12522. border-right: 1px solid #E7EBF1;
  12523. display: flex;
  12524. align-items: center;
  12525. flex-direction: column;
  12526. height: 100%;
  12527. overflow: auto;
  12528. padding: 15px 0;
  12529. box-sizing: border-box;
  12530. }
  12531. .check_class {
  12532. width: 85%;
  12533. border-radius: 5px;
  12534. height: 30px;
  12535. line-height: 30px;
  12536. text-align: center;
  12537. padding: 0 10px;
  12538. box-sizing: border-box;
  12539. cursor: pointer;
  12540. white-space: nowrap;
  12541. overflow: hidden;
  12542. text-overflow: ellipsis;
  12543. }
  12544. .check_class.activeX {
  12545. background: #E0EAFB;
  12546. color: #3681FC;
  12547. font-weight: 700;
  12548. }
  12549. .check_class+.check_class {
  12550. margin-top: 15px;
  12551. }
  12552. .check_class_left {
  12553. background: #FAFAFA;
  12554. width: calc(100% - 130px);
  12555. padding: 15px;
  12556. box-sizing: border-box;
  12557. }
  12558. .check_class_all_box {
  12559. display: flex;
  12560. margin-bottom: 10px;
  12561. }
  12562. .all_check {
  12563. display: flex;
  12564. align-items: center;
  12565. padding: 2px 0 0;
  12566. margin-left: 10px;
  12567. }
  12568. .all_check>>>.el-checkbox__label {
  12569. line-height: 18px;
  12570. }
  12571. .check_class_left_title {
  12572. font-size: 16px;
  12573. font-weight: 700;
  12574. }
  12575. .check_class_item {
  12576. display: flex;
  12577. flex-wrap: wrap;
  12578. height: calc(100% - 45px);
  12579. overflow: auto;
  12580. justify-content: flex-start;
  12581. align-items: flex-start;
  12582. align-content: flex-start;
  12583. }
  12584. .class_item:first-child {
  12585. /* margin: 0 15px 15px 67px; */
  12586. }
  12587. .class_item {
  12588. margin: 0 15px 15px 0;
  12589. }
  12590. .class_item:hover>>>.el-checkbox__label {
  12591. color: #409EFF;
  12592. }
  12593. .class_item>>>.el-checkbox__label {
  12594. color: #0E1E33;
  12595. }
  12596. .class_item:hover>>>.el-checkbox__inner {
  12597. border-color: #409EFF;
  12598. }
  12599. .class_item>>>.el-checkbox,
  12600. .class_item>>>.el-checkbox__input {
  12601. display: flex;
  12602. align-items: center;
  12603. }</style>