addCourse.vue 484 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  6. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  7. <div class="courseTop">
  8. <div class="stepsNav">
  9. <el-breadcrumb
  10. separator-class="el-icon-arrow-right"
  11. >
  12. <el-breadcrumb-item
  13. :to="{
  14. path:
  15. '/course?userid=' +
  16. userid +
  17. '&oid=' +
  18. oid +
  19. '&org=' +
  20. org +
  21. '&role=' +
  22. role,
  23. }"
  24. >课程管理</el-breadcrumb-item
  25. >
  26. <el-breadcrumb-item>
  27. <span style="color: rgb(15, 126, 255)">添加课程</span>
  28. </el-breadcrumb-item>
  29. </el-breadcrumb>
  30. </div>
  31. </div>
  32. <div
  33. class="rightBox"
  34. style="padding: 30px 10px;"
  35. v-if="this.steps == 1"
  36. @mousewheel="scrollChange"
  37. >
  38. <div
  39. class="updateMask"
  40. :style="{
  41. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  42. }"
  43. v-if="cid && userid != courseUserid && role != '1'"
  44. ></div>
  45. <div class="whiteBg">
  46. <div class="basic_box">
  47. <div class="course_input_box">
  48. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon.png" /></div>
  49. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  50. style="border: 1px solid #CAD1DC;background: #fcfcfc;" />
  51. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"></el-switch>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="whiteBg">
  56. <div class="basic_box">
  57. <div class="big_box">
  58. <div class="left_first">
  59. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  60. <span>类型</span>
  61. <!-- 学科+ 主题+ 未来+ -->
  62. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  63. style="display: flex; align-items: center">
  64. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  65. <el-radio :label="item.name">{{
  66. item.name
  67. }}</el-radio>
  68. </div>
  69. </el-radio-group>
  70. </div>
  71. <div class="both">
  72. <div class="choose">
  73. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  74. <span v-if="CourseTypeJson[item.id].length > 0 &&
  75. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  76. ? pTypeCheck.indexOf(item.id) != -1
  77. : true)
  78. ">{{ item.name }}:</span>
  79. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  80. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  81. ? pTypeCheck.indexOf(item.id) != -1
  82. : true)
  83. ">
  84. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  85. item1.name }}</el-checkbox>
  86. </el-checkbox-group>
  87. <!-- <div
  88. v-else
  89. style="font-size: 14px; margin-left: -8px"
  90. >
  91. 暂无
  92. </div> -->
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. <div class="right_first">
  98. <div class="ai_box">
  99. <div class="ai_content" @click="openAI"><img src="../../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  100. </div>
  101. <div>
  102. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  103. <img src="../../../assets/icon/addPoster.png" alt="" />
  104. <div>点击添加封面</div>
  105. </div>
  106. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  107. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  108. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  109. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  110. <i class="el-icon-plus"></i>
  111. </el-upload>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. <div class="whiteBg">
  118. <div class="wb_j_box">
  119. <div class="wb_j_box_content">
  120. <button class="c_pub_button_add pub_btn_add_img" @click="
  121. (dialogVisibleClass = true),
  122. (classSearch = ''),
  123. (gradeId = ''),
  124. getClass()
  125. ">添加班级</button>
  126. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  127. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  128. getClassC(tc) }}</span>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. <div
  134. class="whiteBg"
  135. style="border-radius: 0; margin-top: 15px"
  136. v-if="false"
  137. >
  138. <div class="right_title">课程简要描述</div>
  139. <div style="width: 95%; padding: 15px 0px 15px 20px">
  140. <div style="width: 55%">
  141. <textarea
  142. rows="8"
  143. class="binfo_input"
  144. cols
  145. v-model="courseText"
  146. ></textarea>
  147. </div>
  148. </div>
  149. </div>
  150. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  151. <div class="right_title">
  152. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon2.png" /></div>
  153. <span style="margin:0 10px">上传课程内容</span>
  154. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" style="margin-left: 145px">智能粘贴</button>
  155. </div>
  156. <div style="padding: 0 0 0 20px; display: flex">
  157. <div class="course_left">
  158. <div class="stepsBottom2">
  159. <!-- <div class="navTop">辅助导航</div> -->
  160. <div class="navBottom">
  161. <div
  162. class="navTask"
  163. :class="{
  164. isNavTask:
  165. isClickColor > 0 && isClickColor == tIndex + 1,
  166. }"
  167. v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  168. .taskJson"
  169. :key="tIndex"
  170. @click="goToTask(tIndex)"
  171. >
  172. <div class="nt_taskBox">
  173. <div class="nt_taskTitle">任务{{ tIndex + 1 }}</div>
  174. <div class="nt_taskName">
  175. <el-tooltip effect="light" :content="t.task" placement="top">
  176. <span>{{ t.task }}</span>
  177. </el-tooltip>
  178. </div>
  179. </div>
  180. <div
  181. class="moveBtn"
  182. v-if="
  183. unitJson[unitIndex].chapterInfo[0].taskJson.length >
  184. 1
  185. "
  186. >
  187. <div
  188. class="chapter_upload_up"
  189. @click.stop="taskMove(1, tIndex)"
  190. ></div>
  191. <div
  192. class="chapter_upload_down"
  193. @click.stop="taskMove(2, tIndex)"
  194. ></div>
  195. </div>
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. <div class="basic_box2">
  201. <div
  202. style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  203. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  204. :key="index"
  205. >
  206. <div
  207. class="taskBorder"
  208. :style="{
  209. minHeight: unitJson[unitIndex].easy && 'unset',
  210. }"
  211. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  212. :key="itemTaskIndex"
  213. >
  214. <div v-if="unitJson[unitIndex].easy != 1">
  215. <div
  216. :style="{
  217. marginBottom:
  218. unitJson[unitIndex].easy == 3 ||
  219. (unitJson[unitIndex].easy == 5 &&
  220. itemTask.taskType == 1)
  221. ? '75px'
  222. : '0',
  223. }"
  224. >
  225. <div
  226. class="chapter_contentbox"
  227. style="
  228. flex-direction: row;
  229. justify-content: flex-start;
  230. align-items: center;
  231. "
  232. >
  233. <div
  234. :id="'task' + itemTaskIndex"
  235. class="cc_title"
  236. >
  237. 任务{{ itemTaskIndex + 1 }}
  238. </div>
  239. <div class="cc_input">
  240. <input
  241. type="text"
  242. placeholder="输入任务名称"
  243. class="binfo_input"
  244. style="border-radius: 4px"
  245. v-model="
  246. unitJson[unitIndex].chapterInfo[0].taskJson[
  247. itemTaskIndex
  248. ].task
  249. "
  250. />
  251. <div v-if="!itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  252. <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div>
  253. </div>
  254. <div
  255. class="remove"
  256. v-if="item.taskJson.length > 1"
  257. @click="deleteTask(itemTaskIndex)"
  258. ></div>
  259. </div>
  260. </div>
  261. </div>
  262. <div style="margin: 25px 0" v-if="!itemTask.isFold2">
  263. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  264. itemTaskIndex
  265. ].taskDetail
  266. " @change="change"></editor-bar> -->
  267. <textarea
  268. rows="2"
  269. class="binfo_input"
  270. placeholder="请输入任务描述"
  271. cols
  272. v-model="
  273. unitJson[unitIndex].chapterInfo[0].taskJson[
  274. itemTaskIndex
  275. ].taskDetail
  276. "
  277. ></textarea>
  278. </div>
  279. <div
  280. class="basic_box"
  281. style="
  282. padding: 0 !important;
  283. "
  284. >
  285. <div
  286. style="
  287. display: flex;
  288. margin: 0 0 20px 0;
  289. flex-direction: row;
  290. justify-content: flex-start;
  291. align-items: center;
  292. "
  293. >
  294. <div class="lineTitle">学习内容</div>
  295. </div>
  296. <div>
  297. <div
  298. class="add_chapters_box add_c_none"
  299. v-if="
  300. itemTask.chapterData &&
  301. itemTask.chapterData.length == 0
  302. "
  303. ><img src="../../../assets/icon/new/c_none.png" alt /></div>
  304. <div
  305. v-else
  306. class="add_chapters_box"
  307. style="display: flex; flex-direction: column"
  308. >
  309. <div
  310. class="chapter_upload"
  311. v-for="(item1, index1) in itemTask.chapterData"
  312. :key="item1.id"
  313. @click="
  314. getChapterData(
  315. $event,
  316. unitIndex,
  317. index,
  318. index1,
  319. item1.type
  320. )
  321. "
  322. >
  323. <div
  324. class="chapter_upload_t"
  325. style="width: 100%"
  326. ></div>
  327. <div
  328. class="chapter_upload_o"
  329. style="
  330. position: relative;
  331. display: flex;
  332. align-items: center;
  333. "
  334. >
  335. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  336. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  337. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  338. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  339. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  340. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  341. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  342. </div>
  343. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  344. </div>
  345. </div>
  346. <div class="chapter_upload_n">
  347. <input v-if="item1.type == 2 ||
  348. item1.type == 3 ||
  349. item1.type == 12 ||
  350. item1.type == 13 ||
  351. item1.type == 7
  352. " v-model="item1.name" :placeholder="item1.name" @change="
  353. updataVideoT(
  354. $event,
  355. unitIndex,
  356. itemTaskIndex,
  357. index1
  358. )
  359. " style="
  360. border: none;
  361. outline: none;
  362. width: 80%;
  363. minwidth: 215px;
  364. z-index: 99;
  365. font-size: 14px;
  366. white-space: nowrap;
  367. overflow: hidden;
  368. text-overflow: ellipsis;
  369. " />
  370. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  371. border: none;
  372. outline: none;
  373. width: 80%;
  374. white-space: nowrap;
  375. overflow: hidden;
  376. text-overflow: ellipsis;
  377. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  378. <input :placeholder="item1.title ? item1.title : '链接'
  379. " v-if="item1.type == 8" style="
  380. border: none;
  381. outline: none;
  382. width: 80%;
  383. white-space: nowrap;
  384. overflow: hidden;
  385. text-overflow: ellipsis;
  386. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  387. </div>
  388. <div class="chapter_upload_ic">
  389. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  390. </div>
  391. <div class="chapter_upload_ud" style="z-index: 99">
  392. <div class="chapter_upload_up" @click="
  393. upCd(
  394. $event,
  395. unitIndex,
  396. index,
  397. itemTaskIndex,
  398. index1
  399. )
  400. "></div>
  401. <div class="chapter_upload_down" @click="
  402. downCd(
  403. $event,
  404. unitIndex,
  405. index,
  406. itemTaskIndex,
  407. index1
  408. )
  409. "></div>
  410. </div>
  411. <div class="chapter_upload_ic_r" @click.stop="
  412. deleteChapterData(
  413. $event,
  414. unitIndex,
  415. index,
  416. index1,
  417. itemTaskIndex
  418. )
  419. ">
  420. <div></div>
  421. </div>
  422. </div>
  423. </div>
  424. </div>
  425. </div>
  426. </div>
  427. <div class="add_info_box">
  428. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  429. 添加文件
  430. <input
  431. type="file"
  432. accept="*"
  433. style="display: none"
  434. v-if="inputShow"
  435. @change="
  436. beforeUpload2(
  437. $event,
  438. unitIndex,
  439. 13,
  440. itemTaskIndex
  441. )
  442. "
  443. />
  444. </button>
  445. <!-- <button class="info_btn" @click="addImg($event)">
  446. 添加视频
  447. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  448. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  449. " />
  450. </button>
  451. <button class="info_btn" @click="addImg($event)">
  452. 添加文档
  453. <input type="file"
  454. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  455. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  456. " />
  457. </button> -->
  458. <button
  459. class="c_pub_button_add pub_btn_add_img"
  460. @click="addAttText(itemTaskIndex)"
  461. >
  462. 添加图文
  463. </button>
  464. <button
  465. class="c_pub_button_add pub_btn_add_img"
  466. @click="openLine(itemTaskIndex)"
  467. >
  468. 添加链接
  469. </button>
  470. <button
  471. class="c_pub_button_add pub_btn_add_img"
  472. @click="pasteLine(itemTaskIndex)"
  473. >
  474. 嵌入代码
  475. </button>
  476. <!-- <button
  477. class="c_pub_button_add pub_btn_add_img"
  478. @click="openSource(itemTaskIndex)"
  479. >
  480. 添加资源
  481. </button> -->
  482. <!-- <button class="info_btn" @click="addImg($event)">
  483. 其他附件
  484. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  485. " />
  486. </button> -->
  487. </div>
  488. <div
  489. v-if="
  490. unitJson[unitIndex].chapterInfo[0].taskJson[
  491. itemTaskIndex
  492. ].proVisible
  493. "
  494. class="mask"
  495. >
  496. <div class="progressBox">
  497. <!-- <div id="closePro" class="closeCss">
  498. <img src="../../../../assets/icon/close.png" alt />
  499. </div> -->
  500. <div class="lbox">
  501. <img
  502. src="../../../assets/loading.gif"
  503. />上传中,请稍后
  504. </div>
  505. <div style="margin-bottom: 10px">
  506. <span
  507. >{{
  508. unitJson[unitIndex].chapterInfo[0].taskJson[
  509. itemTaskIndex
  510. ].isFinishSize
  511. }}M</span
  512. >
  513. /
  514. <span
  515. >{{
  516. unitJson[unitIndex].chapterInfo[0].taskJson[
  517. itemTaskIndex
  518. ].isAllSize
  519. }}M</span
  520. >
  521. </div>
  522. <el-progress
  523. :text-inside="true"
  524. :stroke-width="20"
  525. :percentage="
  526. unitJson[unitIndex].chapterInfo[0].taskJson[
  527. itemTaskIndex
  528. ].progress
  529. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  530. itemTaskIndex
  531. ].progress
  532. : 0
  533. "
  534. style="width: 80%"
  535. ></el-progress>
  536. </div>
  537. </div>
  538. </div>
  539. <div class="toolChoose" style="margin: 20px 0">
  540. <div class="tools">
  541. <div
  542. class="leftTools"
  543. style="
  544. width: 100%;
  545. "
  546. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  547. :key="toolIndex"
  548. >
  549. <div>
  550. <textarea
  551. rows="3"
  552. type="text"
  553. placeholder="添加工具描述"
  554. class="binfo_input"
  555. style="
  556. margin: 0 0 20px 0;
  557. "
  558. v-model="itemTool.toolDetail"
  559. ></textarea>
  560. </div>
  561. <div
  562. style="
  563. display: flex;
  564. flex-direction: row;
  565. align-items: baseline;
  566. flex-wrap: nowrap;
  567. justify-content: flex-start;
  568. position: relative;
  569. "
  570. >
  571. <div
  572. style="margin-right: 20px; font-weight: bold"
  573. >
  574. 步骤 {{ toolIndex + 1 }} :
  575. </div>
  576. <div class="chooseWho">
  577. <!-- <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  578. " @click="(itemTool.toolType = 0), $forceUpdate()">
  579. 互动类
  580. </div> -->
  581. <div
  582. :class="
  583. itemTool.toolType == 1
  584. ? 'isChooseActive'
  585. : ''
  586. "
  587. @click="
  588. (itemTool.toolType = 1), $forceUpdate()
  589. "
  590. >
  591. 思维类
  592. </div>
  593. <div
  594. :class="
  595. itemTool.toolType == 6
  596. ? 'isChooseActive'
  597. : ''
  598. "
  599. @click="
  600. (itemTool.toolType = 6), $forceUpdate()
  601. "
  602. >
  603. 协作类
  604. </div>
  605. <div
  606. :class="
  607. itemTool.toolType == 2
  608. ? 'isChooseActive'
  609. : ''
  610. "
  611. @click="
  612. (itemTool.toolType = 2), $forceUpdate()
  613. "
  614. >
  615. 测评类
  616. </div>
  617. <div
  618. :class="
  619. itemTool.toolType == 7
  620. ? 'isChooseActive'
  621. : ''
  622. "
  623. @click="
  624. (itemTool.toolType = 7), $forceUpdate()
  625. "
  626. >
  627. 评价类
  628. </div>
  629. <div
  630. :class="
  631. itemTool.toolType == 3
  632. ? 'isChooseActive'
  633. : ''
  634. "
  635. @click="
  636. (itemTool.toolType = 3), $forceUpdate()
  637. "
  638. >
  639. 学科类
  640. </div>
  641. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  642. " @click="(itemTool.toolType = 5), $forceUpdate()">
  643. 学科类
  644. </div>
  645. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  646. " @click="(itemTool.toolType = 4), $forceUpdate()">
  647. 其他
  648. </div> -->
  649. </div>
  650. <div
  651. class="remove"
  652. @click="deleteTool(itemTaskIndex, toolIndex)"
  653. v-if="itemTask.toolChoose.length > 1"
  654. style="position: absolute; right: 0"
  655. ></div>
  656. </div>
  657. <div style="min-height: 163px">
  658. <div
  659. class="toolSort"
  660. v-if="itemTool.toolType == 0"
  661. >
  662. <!-- <div class="tool">
  663. <div
  664. class="whiteBIcon"
  665. @click="addTools(8, itemTaskIndex, toolIndex)"
  666. >
  667. <img src="../../../assets/icon/secondToolList/library.png" alt />
  668. <div style="margin: 5px 0">素材库</div>
  669. </div>
  670. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  671. <img
  672. src="../../../assets/icon/checkNo.png"
  673. alt
  674. v-if="itemTool.tool.indexOf(8) == -1"
  675. />
  676. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  677. alt /><span>已选择</span></div>
  678. </div>
  679. </div>-->
  680. <!-- <div class="tool">
  681. <div
  682. class="whiteBIcon"
  683. @click="addTools(17, itemTaskIndex, toolIndex)"
  684. >
  685. <img
  686. src="../../../assets/icon/secondToolList/library.png"
  687. alt
  688. />
  689. <div style="margin: 5px 0">学习资料</div>
  690. </div>
  691. <div
  692. class="check"
  693. @click="addTools(17, itemTaskIndex, toolIndex)"
  694. >
  695. <img
  696. src="../../../assets/icon/checkNo.png"
  697. alt
  698. v-if="itemTool.tool.indexOf(17) == -1"
  699. />
  700. <img
  701. src="../../../assets/icon/checkedIs.png"
  702. alt
  703. v-else
  704. />
  705. </div>10
  706. </div> -->
  707. <div class="tool">
  708. <div
  709. class="whiteBIcon"
  710. @click="
  711. openTools(itemTaskIndex, 10, toolIndex)
  712. "
  713. >
  714. <img
  715. src="../../../assets/icon/thirdToolList/time.png"
  716. alt
  717. />
  718. <div style="margin: 5px 0">倒计时</div>
  719. </div>
  720. <div
  721. class="check"
  722. @click="
  723. addTools(10, itemTaskIndex, toolIndex)
  724. "
  725. >
  726. <img
  727. src="../../../assets/icon/checkNo.png"
  728. alt
  729. v-if="itemTool.tool.indexOf(10) == -1"
  730. />
  731. <div class="checkDiv" v-else>
  732. <img
  733. src="../../../assets/icon/checkedIs.png"
  734. alt
  735. /><span>已选择</span>
  736. </div>
  737. </div>
  738. </div>
  739. <!-- <div class="tool">
  740. <div
  741. class="whiteBIcon"
  742. @click="
  743. openTools(itemTaskIndex, 49, toolIndex)
  744. "
  745. >
  746. <img
  747. src="../../../assets/icon/fourthToolList/group.png"
  748. alt
  749. />
  750. <div style="margin: 5px 0">学生分组</div>
  751. </div>
  752. <div
  753. class="check"
  754. @click="
  755. addTools(49, itemTaskIndex, toolIndex)
  756. "
  757. >
  758. <img
  759. src="../../../assets/icon/checkNo.png"
  760. alt
  761. v-if="itemTool.tool.indexOf(49) == -1"
  762. />
  763. <div class="checkDiv" v-else>
  764. <img
  765. src="../../../assets/icon/checkedIs.png"
  766. alt
  767. /><span>已选择</span>
  768. </div>
  769. </div>
  770. </div> -->
  771. <div class="tool">
  772. <div
  773. class="whiteBIcon"
  774. @click="
  775. openTools(itemTaskIndex, 62, toolIndex)
  776. "
  777. >
  778. <img
  779. src="../../../assets/icon/fourthToolList/interVideo.png"
  780. alt
  781. />
  782. <div style="margin: 5px 0">交互视频</div>
  783. </div>
  784. <div
  785. class="check"
  786. @click="
  787. addTools(62, itemTaskIndex, toolIndex)
  788. "
  789. >
  790. <img
  791. src="../../../assets/icon/checkNo.png"
  792. alt
  793. v-if="itemTool.tool.indexOf(62) == -1"
  794. />
  795. <div class="checkDiv" v-else>
  796. <img
  797. src="../../../assets/icon/checkedIs.png"
  798. alt
  799. /><span>已选择</span>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. <div
  805. class="toolSort"
  806. v-if="itemTool.toolType == 1"
  807. >
  808. <div class="tool">
  809. <div
  810. class="whiteBIcon"
  811. @click="
  812. addTools(7, itemTaskIndex, toolIndex)
  813. "
  814. >
  815. <img
  816. src="../../../assets/icon/secondToolList/mindNetwork.png"
  817. alt
  818. />
  819. <div style="margin: 5px 0">思维网格</div>
  820. </div>
  821. <div
  822. class="check"
  823. @click="
  824. addTools(7, itemTaskIndex, toolIndex)
  825. "
  826. >
  827. <img
  828. src="../../../assets/icon/checkNo.png"
  829. alt
  830. v-if="itemTool.tool.indexOf(7) == -1"
  831. />
  832. <div class="checkDiv" v-else>
  833. <img
  834. src="../../../assets/icon/checkedIs.png"
  835. alt
  836. /><span>已选择</span>
  837. </div>
  838. </div>
  839. </div>
  840. <div class="tool">
  841. <div
  842. class="whiteBIcon"
  843. @click="
  844. openTools(itemTaskIndex, 1, toolIndex)
  845. "
  846. >
  847. <img
  848. src="../../../assets/icon/secondToolList/whiteBoard.png"
  849. alt
  850. />
  851. <div style="margin: 5px 0">电子白板</div>
  852. </div>
  853. <div
  854. class="check"
  855. @click="
  856. addTools(1, itemTaskIndex, toolIndex)
  857. "
  858. >
  859. <img
  860. src="../../../assets/icon/checkNo.png"
  861. alt
  862. v-if="itemTool.tool.indexOf(1) == -1"
  863. />
  864. <div class="checkDiv" v-else>
  865. <img
  866. src="../../../assets/icon/checkedIs.png"
  867. alt
  868. /><span>已选择</span>
  869. </div>
  870. </div>
  871. </div>
  872. <!-- <div class="tool">
  873. <div
  874. class="whiteBIcon"
  875. @click="addTools(2, itemTaskIndex, toolIndex)"
  876. >
  877. <img
  878. src="../../../assets/icon/secondToolList/note.png"
  879. alt
  880. />
  881. <div style="margin: 5px 0">便签</div>
  882. </div>
  883. <div
  884. class="check"
  885. @click="addTools(2, itemTaskIndex, toolIndex)"
  886. >
  887. <img
  888. src="../../../assets/icon/checkNo.png"
  889. alt
  890. v-if="itemTool.tool.indexOf(2) == -1"
  891. />
  892. <div class="checkDiv" v-else>
  893. <img
  894. src="../../../assets/icon/checkedIs.png"
  895. alt
  896. /><span>已选择</span>
  897. </div>
  898. </div>
  899. </div> -->
  900. <!-- <div class="tool">
  901. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  902. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  903. <div style="margin: 5px 0">协同文档</div>
  904. </div>
  905. <div
  906. class="check"
  907. @click="addTools(6, itemTaskIndex, toolIndex)"
  908. >
  909. <img
  910. src="../../../assets/icon/checkNo.png"
  911. alt
  912. v-if="itemTool.tool.indexOf(6) == -1"
  913. />
  914. <div class="checkDiv" v-else>
  915. <img
  916. src="../../../assets/icon/checkedIs.png"
  917. alt
  918. /><span>已选择</span>
  919. </div>
  920. </div>
  921. </div> -->
  922. <div class="tool">
  923. <div
  924. class="whiteBIcon"
  925. @click="
  926. openTools(itemTaskIndex, 52, toolIndex)
  927. "
  928. >
  929. <img
  930. src="../../../assets/icon/fourthToolList/text.png"
  931. alt
  932. />
  933. <div style="margin: 5px 0">文档</div>
  934. </div>
  935. <div
  936. class="check"
  937. @click="
  938. addTools(52, itemTaskIndex, toolIndex)
  939. "
  940. >
  941. <img
  942. src="../../../assets/icon/checkNo.png"
  943. alt
  944. v-if="itemTool.tool.indexOf(52) == -1"
  945. />
  946. <div class="checkDiv" v-else>
  947. <img
  948. src="../../../assets/icon/checkedIs.png"
  949. alt
  950. /><span>已选择</span>
  951. </div>
  952. </div>
  953. </div>
  954. <div class="tool">
  955. <div
  956. class="whiteBIcon"
  957. @click="
  958. openTools(itemTaskIndex, 3, toolIndex)
  959. "
  960. >
  961. <img
  962. src="../../../assets/icon/secondToolList/mindMapping.png"
  963. alt
  964. />
  965. <div style="margin: 5px 0">思维导图</div>
  966. </div>
  967. <div
  968. class="check"
  969. @click="
  970. addTools(3, itemTaskIndex, toolIndex)
  971. "
  972. >
  973. <img
  974. src="../../../assets/icon/checkNo.png"
  975. alt
  976. v-if="itemTool.tool.indexOf(3) == -1"
  977. />
  978. <div class="checkDiv" v-else>
  979. <img
  980. src="../../../assets/icon/checkedIs.png"
  981. alt
  982. /><span>已选择</span>
  983. </div>
  984. </div>
  985. </div>
  986. <div class="tool">
  987. <div
  988. class="whiteBIcon"
  989. @click="
  990. openTools(itemTaskIndex, 48, toolIndex)
  991. "
  992. >
  993. <img
  994. src="../../../assets/icon/fourthToolList/table.png"
  995. alt
  996. />
  997. <div style="margin: 5px 0">表格</div>
  998. </div>
  999. <div
  1000. class="check"
  1001. @click="
  1002. addTools(48, itemTaskIndex, toolIndex)
  1003. "
  1004. >
  1005. <img
  1006. src="../../../assets/icon/checkNo.png"
  1007. alt
  1008. v-if="itemTool.tool.indexOf(48) == -1"
  1009. />
  1010. <div class="checkDiv" v-else>
  1011. <img
  1012. src="../../../assets/icon/checkedIs.png"
  1013. alt
  1014. /><span>已选择</span>
  1015. </div>
  1016. </div>
  1017. </div>
  1018. </div>
  1019. <div
  1020. class="toolSort"
  1021. v-if="itemTool.toolType == 6"
  1022. >
  1023. <div class="tool">
  1024. <div
  1025. class="whiteBIcon"
  1026. @click="
  1027. openTools(itemTaskIndex, 49, toolIndex)
  1028. "
  1029. >
  1030. <img
  1031. src="../../../assets/icon/fourthToolList/group.png"
  1032. alt
  1033. />
  1034. <div style="margin: 5px 0">学生分组</div>
  1035. </div>
  1036. <div
  1037. class="check"
  1038. @click="
  1039. addTools(49, itemTaskIndex, toolIndex)
  1040. "
  1041. >
  1042. <img
  1043. src="../../../assets/icon/checkNo.png"
  1044. alt
  1045. v-if="itemTool.tool.indexOf(49) == -1"
  1046. />
  1047. <div class="checkDiv" v-else>
  1048. <img
  1049. src="../../../assets/icon/checkedIs.png"
  1050. alt
  1051. /><span>已选择</span>
  1052. </div>
  1053. </div>
  1054. </div>
  1055. </div>
  1056. <div
  1057. class="toolSort"
  1058. v-if="itemTool.toolType == 2"
  1059. >
  1060. <!-- <div class="tool">
  1061. <div
  1062. class="whiteBIcon"
  1063. @click="addTools(5, itemTaskIndex, toolIndex)"
  1064. >
  1065. <img
  1066. src="../../../assets/icon/thirdToolList/score.png"
  1067. alt
  1068. />
  1069. <div style="margin: 5px 0">量规评分</div>
  1070. </div>
  1071. <div
  1072. class="check"
  1073. @click="addTools(5, itemTaskIndex, toolIndex)"
  1074. >
  1075. <img
  1076. src="../../../assets/icon/checkNo.png"
  1077. alt
  1078. v-if="itemTool.tool.indexOf(5) == -1"
  1079. />
  1080. <img
  1081. src="../../../assets/icon/checkedIs.png"
  1082. alt
  1083. v-else
  1084. />
  1085. </div>
  1086. </div>-->
  1087. <div class="tool">
  1088. <div
  1089. class="whiteBIcon"
  1090. @click="
  1091. openTools(itemTaskIndex, 4, toolIndex)
  1092. "
  1093. >
  1094. <img
  1095. src="../../../assets/icon/thirdToolList/ask.png"
  1096. alt
  1097. />
  1098. <div style="margin: 5px 0">问卷调查</div>
  1099. </div>
  1100. <div
  1101. class="check"
  1102. @click="
  1103. addTools(4, itemTaskIndex, toolIndex)
  1104. "
  1105. >
  1106. <img
  1107. src="../../../assets/icon/checkNo.png"
  1108. alt
  1109. v-if="itemTool.tool.indexOf(4) == -1"
  1110. />
  1111. <div class="checkDiv" v-else>
  1112. <img
  1113. src="../../../assets/icon/checkedIs.png"
  1114. alt
  1115. /><span>已选择</span>
  1116. </div>
  1117. </div>
  1118. </div>
  1119. <div class="tool">
  1120. <div
  1121. class="whiteBIcon"
  1122. @click="
  1123. openTools(itemTaskIndex, 45, toolIndex)
  1124. "
  1125. >
  1126. <img
  1127. src="../../../assets/icon/thirdToolList/choose.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">选择题</div>
  1131. </div>
  1132. <div
  1133. class="check"
  1134. @click="
  1135. addTools(45, itemTaskIndex, toolIndex)
  1136. "
  1137. >
  1138. <img
  1139. src="../../../assets/icon/checkNo.png"
  1140. alt
  1141. v-if="itemTool.tool.indexOf(45) == -1"
  1142. />
  1143. <div class="checkDiv" v-else>
  1144. <img
  1145. src="../../../assets/icon/checkedIs.png"
  1146. alt
  1147. /><span>已选择</span>
  1148. </div>
  1149. </div>
  1150. </div>
  1151. <div class="tool">
  1152. <div
  1153. class="whiteBIcon"
  1154. @click="
  1155. openTools(itemTaskIndex, 15, toolIndex)
  1156. "
  1157. >
  1158. <img
  1159. src="../../../assets/icon/thirdToolList/answer.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">问答工具</div>
  1163. </div>
  1164. <div
  1165. class="check"
  1166. @click="
  1167. addTools(15, itemTaskIndex, toolIndex)
  1168. "
  1169. >
  1170. <img
  1171. src="../../../assets/icon/checkNo.png"
  1172. alt
  1173. v-if="itemTool.tool.indexOf(15) == -1"
  1174. />
  1175. <div class="checkDiv" v-else>
  1176. <img
  1177. src="../../../assets/icon/checkedIs.png"
  1178. alt
  1179. /><span>已选择</span>
  1180. </div>
  1181. </div>
  1182. </div>
  1183. <div class="tool">
  1184. <div
  1185. class="whiteBIcon"
  1186. @click="
  1187. addTools(16, itemTaskIndex, toolIndex)
  1188. "
  1189. >
  1190. <img
  1191. src="../../../assets/icon/thirdToolList/work.png"
  1192. alt
  1193. />
  1194. <div style="margin: 5px 0">作业提交</div>
  1195. </div>
  1196. <div
  1197. class="check"
  1198. @click="
  1199. addTools(16, itemTaskIndex, toolIndex)
  1200. "
  1201. >
  1202. <img
  1203. src="../../../assets/icon/checkNo.png"
  1204. alt
  1205. v-if="itemTool.tool.indexOf(16) == -1"
  1206. />
  1207. <div class="checkDiv" v-else>
  1208. <img
  1209. src="../../../assets/icon/checkedIs.png"
  1210. alt
  1211. /><span>已选择</span>
  1212. </div>
  1213. </div>
  1214. </div>
  1215. <div class="tool">
  1216. <div
  1217. class="whiteBIcon"
  1218. @click="
  1219. addTools(50, itemTaskIndex, toolIndex)
  1220. "
  1221. >
  1222. <img
  1223. src="../../../assets/icon/thirdToolList/plwork.png"
  1224. alt
  1225. />
  1226. <div style="margin: 5px 0">批量上传</div>
  1227. </div>
  1228. <div
  1229. class="check"
  1230. @click="
  1231. addTools(50, itemTaskIndex, toolIndex)
  1232. "
  1233. >
  1234. <img
  1235. src="../../../assets/icon/checkNo.png"
  1236. alt
  1237. v-if="itemTool.tool.indexOf(50) == -1"
  1238. />
  1239. <div class="checkDiv" v-else>
  1240. <img
  1241. src="../../../assets/icon/checkedIs.png"
  1242. alt
  1243. /><span>已选择</span>
  1244. </div>
  1245. </div>
  1246. </div>
  1247. <!-- <div class="tool">
  1248. <div
  1249. class="whiteBIcon"
  1250. @click="
  1251. openTools(itemTaskIndex, 40, toolIndex)
  1252. "
  1253. >
  1254. <img
  1255. src="../../../assets/icon/thirdToolList/eval.png"
  1256. alt
  1257. />
  1258. <div style="margin: 5px 0">个人评价</div>
  1259. </div>
  1260. <div
  1261. class="check"
  1262. @click="
  1263. addTools(40, itemTaskIndex, toolIndex)
  1264. "
  1265. >
  1266. <img
  1267. src="../../../assets/icon/checkNo.png"
  1268. alt
  1269. v-if="itemTool.tool.indexOf(40) == -1"
  1270. />
  1271. <div class="checkDiv" v-else>
  1272. <img
  1273. src="../../../assets/icon/checkedIs.png"
  1274. alt
  1275. /><span>已选择</span>
  1276. </div>
  1277. </div>
  1278. </div> -->
  1279. <div class="tool">
  1280. <div
  1281. class="whiteBIcon"
  1282. @click="
  1283. openTools(itemTaskIndex, 41, toolIndex)
  1284. "
  1285. >
  1286. <img
  1287. src="../../../assets/icon/thirdToolList/select.png"
  1288. alt
  1289. />
  1290. <div style="margin: 5px 0">选择填空</div>
  1291. </div>
  1292. <div
  1293. class="check"
  1294. @click="
  1295. addTools(41, itemTaskIndex, toolIndex)
  1296. "
  1297. >
  1298. <img
  1299. src="../../../assets/icon/checkNo.png"
  1300. alt
  1301. v-if="itemTool.tool.indexOf(41) == -1"
  1302. />
  1303. <div class="checkDiv" v-else>
  1304. <img
  1305. src="../../../assets/icon/checkedIs.png"
  1306. alt
  1307. /><span>已选择</span>
  1308. </div>
  1309. </div>
  1310. </div>
  1311. <div class="tool">
  1312. <div
  1313. class="whiteBIcon"
  1314. @click="
  1315. openTools(itemTaskIndex, 47, toolIndex)
  1316. "
  1317. >
  1318. <img
  1319. src="../../../assets/icon/fourthToolList/conSentences.png"
  1320. alt
  1321. />
  1322. <div style="margin: 5px 0">连词成句</div>
  1323. </div>
  1324. <div
  1325. class="check"
  1326. @click="
  1327. addTools(47, itemTaskIndex, toolIndex)
  1328. "
  1329. >
  1330. <img
  1331. src="../../../assets/icon/checkNo.png"
  1332. alt
  1333. v-if="itemTool.tool.indexOf(47) == -1"
  1334. />
  1335. <div class="checkDiv" v-else>
  1336. <img
  1337. src="../../../assets/icon/checkedIs.png"
  1338. alt
  1339. /><span>已选择</span>
  1340. </div>
  1341. </div>
  1342. </div>
  1343. <!-- <div class="tool">
  1344. <div
  1345. class="whiteBIcon"
  1346. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1347. >
  1348. <img
  1349. src="../../../assets/icon/thirdToolList/mp3.png"
  1350. alt
  1351. />
  1352. <div style="margin: 5px 0">上传音频</div>
  1353. </div>
  1354. <div
  1355. class="check"
  1356. @click="addTools(42, itemTaskIndex, toolIndex)"
  1357. >
  1358. <img
  1359. src="../../../assets/icon/checkNo.png"
  1360. alt
  1361. v-if="itemTool.tool.indexOf(42) == -1"
  1362. />
  1363. <img
  1364. src="../../../assets/icon/checkedIs.png"
  1365. alt
  1366. v-else
  1367. />
  1368. </div>
  1369. </div> -->
  1370. </div>
  1371. <div
  1372. class="toolSort"
  1373. v-if="itemTool.toolType == 3"
  1374. >
  1375. <div class="tool">
  1376. <div
  1377. class="whiteBIcon"
  1378. @click="
  1379. addTools(18, itemTaskIndex, toolIndex)
  1380. "
  1381. >
  1382. <img
  1383. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  1384. alt
  1385. />
  1386. <div style="margin: 5px 0">训练平台</div>
  1387. </div>
  1388. <div
  1389. class="check"
  1390. @click="
  1391. addTools(18, itemTaskIndex, toolIndex)
  1392. "
  1393. >
  1394. <img
  1395. src="../../../assets/icon/checkNo.png"
  1396. alt
  1397. v-if="itemTool.tool.indexOf(18) == -1"
  1398. />
  1399. <div class="checkDiv" v-else>
  1400. <img
  1401. src="../../../assets/icon/checkedIs.png"
  1402. alt
  1403. /><span>已选择</span>
  1404. </div>
  1405. </div>
  1406. </div>
  1407. <div class="tool">
  1408. <div
  1409. class="whiteBIcon"
  1410. @click="
  1411. addTools(21, itemTaskIndex, toolIndex)
  1412. "
  1413. >
  1414. <img
  1415. src="../../../assets/icon/fourthToolList/program.png"
  1416. alt
  1417. />
  1418. <div style="margin: 5px 0">编程平台</div>
  1419. </div>
  1420. <div
  1421. class="check"
  1422. @click="
  1423. addTools(21, itemTaskIndex, toolIndex)
  1424. "
  1425. >
  1426. <img
  1427. src="../../../assets/icon/checkNo.png"
  1428. alt
  1429. v-if="itemTool.tool.indexOf(21) == -1"
  1430. />
  1431. <div class="checkDiv" v-else>
  1432. <img
  1433. src="../../../assets/icon/checkedIs.png"
  1434. alt
  1435. /><span>已选择</span>
  1436. </div>
  1437. </div>
  1438. </div>
  1439. <div class="tool">
  1440. <div
  1441. class="whiteBIcon"
  1442. @click="
  1443. addTools(22, itemTaskIndex, toolIndex)
  1444. "
  1445. >
  1446. <img
  1447. src="../../../assets/icon/fourthToolList/AIprogram2.png"
  1448. alt
  1449. />
  1450. <div style="margin: 5px 0">AI体验</div>
  1451. </div>
  1452. <div
  1453. class="check"
  1454. @click="
  1455. addTools(22, itemTaskIndex, toolIndex)
  1456. "
  1457. >
  1458. <img
  1459. src="../../../assets/icon/checkNo.png"
  1460. alt
  1461. v-if="itemTool.tool.indexOf(22) == -1"
  1462. />
  1463. <div class="checkDiv" v-else>
  1464. <img
  1465. src="../../../assets/icon/checkedIs.png"
  1466. alt
  1467. /><span>已选择</span>
  1468. </div>
  1469. </div>
  1470. </div>
  1471. <div class="tool">
  1472. <div
  1473. class="whiteBIcon"
  1474. @click="
  1475. addTools(23, itemTaskIndex, toolIndex)
  1476. "
  1477. >
  1478. <img
  1479. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  1480. alt
  1481. />
  1482. <div style="margin: 5px 0">Python</div>
  1483. </div>
  1484. <div
  1485. class="check"
  1486. @click="
  1487. addTools(23, itemTaskIndex, toolIndex)
  1488. "
  1489. >
  1490. <img
  1491. src="../../../assets/icon/checkNo.png"
  1492. alt
  1493. v-if="itemTool.tool.indexOf(23) == -1"
  1494. />
  1495. <div class="checkDiv" v-else>
  1496. <img
  1497. src="../../../assets/icon/checkedIs.png"
  1498. alt
  1499. /><span>已选择</span>
  1500. </div>
  1501. </div>
  1502. </div>
  1503. <div class="tool">
  1504. <div
  1505. class="whiteBIcon"
  1506. @click="
  1507. addTools(24, itemTaskIndex, toolIndex)
  1508. "
  1509. >
  1510. <img
  1511. src="../../../assets/icon/fourthToolList/AIprogram.png"
  1512. alt
  1513. />
  1514. <div style="margin: 5px 0">AI平台</div>
  1515. </div>
  1516. <div
  1517. class="check"
  1518. @click="
  1519. addTools(24, itemTaskIndex, toolIndex)
  1520. "
  1521. >
  1522. <img
  1523. src="../../../assets/icon/checkNo.png"
  1524. alt
  1525. v-if="itemTool.tool.indexOf(24) == -1"
  1526. />
  1527. <div class="checkDiv" v-else>
  1528. <img
  1529. src="../../../assets/icon/checkedIs.png"
  1530. alt
  1531. /><span>已选择</span>
  1532. </div>
  1533. </div>
  1534. </div>
  1535. <!-- <div class="tool">
  1536. <div
  1537. class="whiteBIcon"
  1538. @click="
  1539. addTools(32, itemTaskIndex, toolIndex)
  1540. "
  1541. >
  1542. <img
  1543. src="../../../assets/icon/thirdToolList/code.png"
  1544. alt
  1545. />
  1546. <div style="margin: 5px 0">源码编辑</div>
  1547. </div>
  1548. <div
  1549. class="check"
  1550. @click="
  1551. addTools(32, itemTaskIndex, toolIndex)
  1552. "
  1553. >
  1554. <img
  1555. src="../../../assets/icon/checkNo.png"
  1556. alt
  1557. v-if="itemTool.tool.indexOf(32) == -1"
  1558. />
  1559. <div class="checkDiv" v-else>
  1560. <img
  1561. src="../../../assets/icon/checkedIs.png"
  1562. alt
  1563. /><span>已选择</span>
  1564. </div>
  1565. </div>
  1566. </div> -->
  1567. <div class="tool">
  1568. <div
  1569. class="whiteBIcon"
  1570. @click="openTools(itemTaskIndex, 57, toolIndex)"
  1571. >
  1572. <img
  1573. src="../../../assets/icon/fourthToolList/cocopi.png"
  1574. alt
  1575. />
  1576. <div style="margin: 5px 0">CocoPi</div>
  1577. </div>
  1578. <div
  1579. class="check"
  1580. @click="
  1581. addTools(57, itemTaskIndex, toolIndex)
  1582. "
  1583. >
  1584. <img
  1585. src="../../../assets/icon/checkNo.png"
  1586. alt
  1587. v-if="itemTool.tool.indexOf(57) == -1"
  1588. />
  1589. <div class="checkDiv" v-else>
  1590. <img
  1591. src="../../../assets/icon/checkedIs.png"
  1592. alt
  1593. /><span>已选择</span>
  1594. </div>
  1595. </div>
  1596. </div>
  1597. <div class="tool">
  1598. <div
  1599. class="whiteBIcon"
  1600. @click="
  1601. addTools(63, itemTaskIndex, toolIndex)
  1602. "
  1603. >
  1604. <img
  1605. src="../../../assets/icon/fourthToolList/Wood.png"
  1606. alt
  1607. />
  1608. <div style="margin: 5px 0">海龟编程</div>
  1609. </div>
  1610. <div
  1611. class="check"
  1612. @click="
  1613. addTools(63, itemTaskIndex, toolIndex)
  1614. "
  1615. >
  1616. <img
  1617. src="../../../assets/icon/checkNo.png"
  1618. alt
  1619. v-if="itemTool.tool.indexOf(63) == -1"
  1620. />
  1621. <div class="checkDiv" v-else>
  1622. <img
  1623. src="../../../assets/icon/checkedIs.png"
  1624. alt
  1625. /><span>已选择</span>
  1626. </div>
  1627. </div>
  1628. </div>
  1629. </div>
  1630. <div
  1631. class="toolSort"
  1632. v-if="itemTool.toolType == 5"
  1633. >
  1634. <div class="tool">
  1635. <div
  1636. class="whiteBIcon"
  1637. @click="
  1638. addTools(28, itemTaskIndex, toolIndex)
  1639. "
  1640. >
  1641. <img
  1642. src="../../../assets/icon/secondToolList/translation.png"
  1643. alt
  1644. />
  1645. <div style="margin: 5px 0">翻译</div>
  1646. </div>
  1647. <div
  1648. class="check"
  1649. @click="
  1650. addTools(28, itemTaskIndex, toolIndex)
  1651. "
  1652. >
  1653. <img
  1654. src="../../../assets/icon/checkNo.png"
  1655. alt
  1656. v-if="itemTool.tool.indexOf(28) == -1"
  1657. />
  1658. <div class="checkDiv" v-else>
  1659. <img
  1660. src="../../../assets/icon/checkedIs.png"
  1661. alt
  1662. /><span>已选择</span>
  1663. </div>
  1664. </div>
  1665. </div>
  1666. <div class="tool">
  1667. <div
  1668. class="whiteBIcon"
  1669. @click="
  1670. addTools(37, itemTaskIndex, toolIndex)
  1671. "
  1672. >
  1673. <img
  1674. src="../../../assets/icon/secondToolList/mohe.png"
  1675. alt
  1676. />
  1677. <div style="margin: 5px 0">魔盒识字</div>
  1678. </div>
  1679. <div
  1680. class="check"
  1681. @click="
  1682. addTools(37, itemTaskIndex, toolIndex)
  1683. "
  1684. >
  1685. <img
  1686. src="../../../assets/icon/checkNo.png"
  1687. alt
  1688. v-if="itemTool.tool.indexOf(37) == -1"
  1689. />
  1690. <div class="checkDiv" v-else>
  1691. <img
  1692. src="../../../assets/icon/checkedIs.png"
  1693. alt
  1694. /><span>已选择</span>
  1695. </div>
  1696. </div>
  1697. </div>
  1698. <div class="tool">
  1699. <div
  1700. class="whiteBIcon"
  1701. @click="
  1702. addTools(38, itemTaskIndex, toolIndex)
  1703. "
  1704. >
  1705. <img
  1706. src="../../../assets/icon/secondToolList/24game.png"
  1707. alt
  1708. />
  1709. <div style="margin: 5px 0">24点</div>
  1710. </div>
  1711. <div
  1712. class="check"
  1713. @click="
  1714. addTools(38, itemTaskIndex, toolIndex)
  1715. "
  1716. >
  1717. <img
  1718. src="../../../assets/icon/checkNo.png"
  1719. alt
  1720. v-if="itemTool.tool.indexOf(38) == -1"
  1721. />
  1722. <div class="checkDiv" v-else>
  1723. <img
  1724. src="../../../assets/icon/checkedIs.png"
  1725. alt
  1726. /><span>已选择</span>
  1727. </div>
  1728. </div>
  1729. </div>
  1730. <div class="tool">
  1731. <div
  1732. class="whiteBIcon"
  1733. @click="
  1734. addTools(31, itemTaskIndex, toolIndex)
  1735. "
  1736. >
  1737. <img
  1738. src="../../../assets/icon/secondToolList/networkPanel.png"
  1739. alt
  1740. />
  1741. <div style="margin: 5px 0">数学画板</div>
  1742. </div>
  1743. <div
  1744. class="check"
  1745. @click="
  1746. addTools(31, itemTaskIndex, toolIndex)
  1747. "
  1748. >
  1749. <img
  1750. src="../../../assets/icon/checkNo.png"
  1751. alt
  1752. v-if="itemTool.tool.indexOf(31) == -1"
  1753. />
  1754. <div class="checkDiv" v-else>
  1755. <img
  1756. src="../../../assets/icon/checkedIs.png"
  1757. alt
  1758. /><span>已选择</span>
  1759. </div>
  1760. </div>
  1761. </div>
  1762. <div class="tool">
  1763. <div
  1764. class="whiteBIcon"
  1765. @click="
  1766. addTools(39, itemTaskIndex, toolIndex)
  1767. "
  1768. >
  1769. <img
  1770. src="../../../assets/icon/secondToolList/GeoGebra.png"
  1771. alt
  1772. />
  1773. <div style="margin: 5px 0">GeoGebra</div>
  1774. </div>
  1775. <div
  1776. class="check"
  1777. @click="
  1778. addTools(39, itemTaskIndex, toolIndex)
  1779. "
  1780. >
  1781. <img
  1782. src="../../../assets/icon/checkNo.png"
  1783. alt
  1784. v-if="itemTool.tool.indexOf(39) == -1"
  1785. />
  1786. <div class="checkDiv" v-else>
  1787. <img
  1788. src="../../../assets/icon/checkedIs.png"
  1789. alt
  1790. /><span>已选择</span>
  1791. </div>
  1792. </div>
  1793. </div>
  1794. <div class="tool">
  1795. <div
  1796. class="whiteBIcon"
  1797. @click="
  1798. addTools(58, itemTaskIndex, toolIndex)
  1799. "
  1800. >
  1801. <img
  1802. src="../../../assets/icon/fourthToolList/car.png"
  1803. alt
  1804. />
  1805. <div style="margin: 5px 0">模拟驾驶</div>
  1806. </div>
  1807. <div
  1808. class="check"
  1809. @click="
  1810. addTools(58, itemTaskIndex, toolIndex)
  1811. "
  1812. >
  1813. <img
  1814. src="../../../assets/icon/checkNo.png"
  1815. alt
  1816. v-if="itemTool.tool.indexOf(58) == -1"
  1817. />
  1818. <div class="checkDiv" v-else>
  1819. <img
  1820. src="../../../assets/icon/checkedIs.png"
  1821. alt
  1822. /><span>已选择</span>
  1823. </div>
  1824. </div>
  1825. </div>
  1826. <div class="tool">
  1827. <div
  1828. class="whiteBIcon"
  1829. @click="
  1830. addTools(59, itemTaskIndex, toolIndex)
  1831. "
  1832. >
  1833. <img
  1834. src="../../../assets/icon/fourthToolList/lineSearch.png"
  1835. alt
  1836. />
  1837. <div style="margin: 5px 0">路径搜索</div>
  1838. </div>
  1839. <div
  1840. class="check"
  1841. @click="
  1842. addTools(59, itemTaskIndex, toolIndex)
  1843. "
  1844. >
  1845. <img
  1846. src="../../../assets/icon/checkNo.png"
  1847. alt
  1848. v-if="itemTool.tool.indexOf(59) == -1"
  1849. />
  1850. <div class="checkDiv" v-else>
  1851. <img
  1852. src="../../../assets/icon/checkedIs.png"
  1853. alt
  1854. /><span>已选择</span>
  1855. </div>
  1856. </div>
  1857. </div>
  1858. <div class="tool">
  1859. <div
  1860. class="whiteBIcon"
  1861. @click="
  1862. addTools(60, itemTaskIndex, toolIndex)
  1863. "
  1864. >
  1865. <img
  1866. src="../../../assets/icon/fourthToolList/deepLearning.png"
  1867. alt
  1868. />
  1869. <div style="margin: 5px 0">深度学习</div>
  1870. </div>
  1871. <div
  1872. class="check"
  1873. @click="
  1874. addTools(60, itemTaskIndex, toolIndex)
  1875. "
  1876. >
  1877. <img
  1878. src="../../../assets/icon/checkNo.png"
  1879. alt
  1880. v-if="itemTool.tool.indexOf(60) == -1"
  1881. />
  1882. <div class="checkDiv" v-else>
  1883. <img
  1884. src="../../../assets/icon/checkedIs.png"
  1885. alt
  1886. /><span>已选择</span>
  1887. </div>
  1888. </div>
  1889. </div>
  1890. <div class="tool">
  1891. <div
  1892. class="whiteBIcon"
  1893. @click="
  1894. addTools(61, itemTaskIndex, toolIndex)
  1895. "
  1896. >
  1897. <img
  1898. src="../../../assets/icon/fourthToolList/allHistory.png"
  1899. alt
  1900. />
  1901. <div style="margin: 5px 0">全历史</div>
  1902. </div>
  1903. <div
  1904. class="check"
  1905. @click="
  1906. addTools(61, itemTaskIndex, toolIndex)
  1907. "
  1908. >
  1909. <img
  1910. src="../../../assets/icon/checkNo.png"
  1911. alt
  1912. v-if="itemTool.tool.indexOf(61) == -1"
  1913. />
  1914. <div class="checkDiv" v-else>
  1915. <img
  1916. src="../../../assets/icon/checkedIs.png"
  1917. alt
  1918. /><span>已选择</span>
  1919. </div>
  1920. </div>
  1921. </div>
  1922. </div>
  1923. <div
  1924. class="toolSort"
  1925. v-if="itemTool.toolType == 7"
  1926. >
  1927. <div class="tool">
  1928. <div
  1929. class="whiteBIcon"
  1930. @click="
  1931. openTools(itemTaskIndex, 40, toolIndex)
  1932. "
  1933. >
  1934. <img
  1935. src="../../../assets/icon/thirdToolList/eval.png"
  1936. alt
  1937. />
  1938. <div style="margin: 5px 0">个人评价</div>
  1939. </div>
  1940. <div
  1941. class="check"
  1942. @click="
  1943. addTools(40, itemTaskIndex, toolIndex)
  1944. "
  1945. >
  1946. <img
  1947. src="../../../assets/icon/checkNo.png"
  1948. alt
  1949. v-if="itemTool.tool.indexOf(40) == -1"
  1950. />
  1951. <div class="checkDiv" v-else>
  1952. <img
  1953. src="../../../assets/icon/checkedIs.png"
  1954. alt
  1955. /><span>已选择</span>
  1956. </div>
  1957. </div>
  1958. </div>
  1959. </div>
  1960. <div
  1961. class="toolSort"
  1962. v-if="itemTool.toolType == 4"
  1963. >
  1964. <div class="tool">
  1965. <div
  1966. class="whiteBIcon"
  1967. @click="
  1968. addTools(26, itemTaskIndex, toolIndex)
  1969. "
  1970. >
  1971. <img
  1972. src="../../../assets/icon/thirdToolList/courseDesign.png"
  1973. alt
  1974. />
  1975. <div style="margin: 5px 0">课程设计</div>
  1976. </div>
  1977. <div
  1978. class="check"
  1979. @click="
  1980. addTools(26, itemTaskIndex, toolIndex)
  1981. "
  1982. >
  1983. <img
  1984. src="../../../assets/icon/checkNo.png"
  1985. alt
  1986. v-if="itemTool.tool.indexOf(26) == -1"
  1987. />
  1988. <div class="checkDiv" v-else>
  1989. <img
  1990. src="../../../assets/icon/checkedIs.png"
  1991. alt
  1992. /><span>已选择</span>
  1993. </div>
  1994. </div>
  1995. </div>
  1996. <div class="tool">
  1997. <div
  1998. class="whiteBIcon"
  1999. @click="
  2000. addTools(25, itemTaskIndex, toolIndex)
  2001. "
  2002. >
  2003. <img
  2004. src="../../../assets/icon/thirdToolList/evalua.png"
  2005. alt
  2006. />
  2007. <div style="margin: 5px 0">目标管理</div>
  2008. </div>
  2009. <div
  2010. class="check"
  2011. @click="
  2012. addTools(25, itemTaskIndex, toolIndex)
  2013. "
  2014. >
  2015. <img
  2016. src="../../../assets/icon/checkNo.png"
  2017. alt
  2018. v-if="itemTool.tool.indexOf(25) == -1"
  2019. />
  2020. <div class="checkDiv" v-else>
  2021. <img
  2022. src="../../../assets/icon/checkedIs.png"
  2023. alt
  2024. /><span>已选择</span>
  2025. </div>
  2026. </div>
  2027. </div>
  2028. <!-- <div class="tool">
  2029. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2030. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  2031. <div style="margin: 5px 0">汉字宫</div>
  2032. </div>
  2033. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2034. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2035. <div class="checkDiv" v-else>
  2036. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2037. </div>
  2038. </div>
  2039. </div> -->
  2040. </div>
  2041. </div>
  2042. </div>
  2043. <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  2044. <div class="addToolImg">
  2045. <img src="../../../assets/icon/add.png" alt />
  2046. </div>
  2047. <div>添加工具</div>
  2048. </div>
  2049. </div>
  2050. </div>
  2051. </div>
  2052. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2053. <div>
  2054. <img src="../../../assets/icon/new/addStage.png" alt />
  2055. <span>添加任务</span>
  2056. </div>
  2057. </div>
  2058. </div>
  2059. </div>
  2060. </div>
  2061. </div>
  2062. </div>
  2063. <div class="rightBox" v-if="this.steps == 2">
  2064. <div
  2065. class="basic_box"
  2066. style="padding: 20px 30px 0px !important; box-sizing: border-box"
  2067. >
  2068. <div
  2069. class="right_title"
  2070. style="border: none; margin: 0; padding: 0"
  2071. >
  2072. 请选择合适的课程模板
  2073. </div>
  2074. <div class="wordbox">
  2075. <div
  2076. class="wordTeacher"
  2077. v-for="(aa, indexF) in templateArray"
  2078. :key="indexF"
  2079. @click="checkTemplate(aa)"
  2080. >
  2081. <div class="wordPic">
  2082. <img src="../../../assets/icon/wordMub.png" alt />
  2083. </div>
  2084. <div
  2085. style="
  2086. margin-top: 10px;
  2087. line-height: 19px;
  2088. overflow: hidden;
  2089. text-overflow: ellipsis;
  2090. white-space: nowrap;
  2091. padding: 0 20px;
  2092. "
  2093. >
  2094. {{ aa.title }}
  2095. </div>
  2096. </div>
  2097. <div class="wordTeacher" @click="checkTemplate2()">
  2098. <div class="wordPic">
  2099. <img src="../../../assets/icon/wordMub.png" alt />
  2100. </div>
  2101. <div
  2102. style="
  2103. margin-top: 10px;
  2104. line-height: 19px;
  2105. overflow: hidden;
  2106. text-overflow: ellipsis;
  2107. white-space: nowrap;
  2108. padding: 0 20px;
  2109. "
  2110. >
  2111. 任务模式
  2112. </div>
  2113. </div>
  2114. <div class="wordTeacher" @click="checkTemplate3()">
  2115. <div class="wordPic">
  2116. <img src="../../../assets/icon/wordMub.png" alt />
  2117. </div>
  2118. <div
  2119. style="
  2120. margin-top: 10px;
  2121. line-height: 19px;
  2122. overflow: hidden;
  2123. text-overflow: ellipsis;
  2124. white-space: nowrap;
  2125. padding: 0 20px;
  2126. "
  2127. >
  2128. 简易模式
  2129. </div>
  2130. </div>
  2131. <div class="wordTeacher" @click="pasteStage()">
  2132. <div class="wordPic">
  2133. <img src="../../../assets/icon/wordMub.png" alt />
  2134. </div>
  2135. <div
  2136. style="
  2137. margin-top: 10px;
  2138. line-height: 19px;
  2139. overflow: hidden;
  2140. text-overflow: ellipsis;
  2141. white-space: nowrap;
  2142. padding: 0 20px;
  2143. "
  2144. >
  2145. 智能粘贴模式
  2146. </div>
  2147. </div>
  2148. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  2149. <div class="wordPic">
  2150. <img src="../../../assets/icon/wordMub.png" alt />
  2151. </div>
  2152. <div style="
  2153. margin-top: 10px;
  2154. line-height: 19px;
  2155. overflow: hidden;
  2156. text-overflow: ellipsis;
  2157. white-space: nowrap;
  2158. padding: 0 20px;
  2159. ">
  2160. 未来小学课程设计
  2161. </div>
  2162. </div> -->
  2163. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  2164. <div class="wordPic">
  2165. <img src="../../../assets/icon/wordMub.png" alt />
  2166. </div>
  2167. <div style="
  2168. margin-top: 10px;
  2169. line-height: 19px;
  2170. overflow: hidden;
  2171. text-overflow: ellipsis;
  2172. white-space: nowrap;
  2173. padding: 0 20px;
  2174. ">
  2175. 我的课程
  2176. </div>
  2177. </div> -->
  2178. </div>
  2179. </div>
  2180. </div>
  2181. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  2182. <div class="basic_box">
  2183. <div
  2184. style="
  2185. display: flex;
  2186. flex-direction: row;
  2187. align-items: center;
  2188. position: sticky;
  2189. top: 0;
  2190. background: #fff;
  2191. z-index: 99;
  2192. width: 100%;
  2193. padding: 0 20px 0 20px;
  2194. box-sizing: border-box;
  2195. "
  2196. >
  2197. <div class="cru_selectBox">
  2198. <div
  2199. v-for="(item, index) in unitJson"
  2200. :key="index"
  2201. class="cru_select"
  2202. :class="unitIndex == index ? 'cru_selected' : ''"
  2203. @click="unitSet(index)"
  2204. >
  2205. <!-- item.dyName ? item.dyName : -->
  2206. {{ "第" + (index + 1) + "阶段" }}
  2207. </div>
  2208. <img
  2209. src="../../../assets/line.png"
  2210. class="cru_line"
  2211. :style="{
  2212. left: offsetLetfPx + 'px',
  2213. }"
  2214. />
  2215. </div>
  2216. <div
  2217. class="addStageImg"
  2218. @click="addunit()"
  2219. v-if="
  2220. !(unitJson[unitJson.length - 1].easy == 4) &&
  2221. !(unitJson[unitJson.length - 1].easy == 6)
  2222. "
  2223. >
  2224. <img src="../../../assets/icon/add.png" alt />
  2225. </div>
  2226. </div>
  2227. <div
  2228. style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  2229. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  2230. :key="index"
  2231. >
  2232. <div>
  2233. <div class="chapter_contentbox">
  2234. <div>第{{ unitIndex + 1 }}阶段</div>
  2235. <div>
  2236. <input
  2237. type="text"
  2238. placeholder="阶段标题"
  2239. class="binfo_input"
  2240. v-model="unitJson[unitIndex].dyName"
  2241. />
  2242. </div>
  2243. <div
  2244. v-if="
  2245. unitJson.length > 1 &&
  2246. !(unitJson[unitJson.length - 1].easy == 4) &&
  2247. !(unitJson[unitJson.length - 1].easy == 6)
  2248. "
  2249. @click="deleteUnit(unitIndex)"
  2250. ></div>
  2251. </div>
  2252. </div>
  2253. <div
  2254. v-if="!unitJson[unitIndex].easy"
  2255. style="
  2256. margin: 50px 0px 10px;
  2257. font-size: 1.5em;
  2258. font-weight: 700;
  2259. color: #0f7eff;
  2260. "
  2261. >
  2262. 添加任务
  2263. </div>
  2264. <div
  2265. class="taskBorder"
  2266. :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  2267. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  2268. :key="itemTaskIndex"
  2269. >
  2270. <div v-if="unitJson[unitIndex].easy != 1">
  2271. <div
  2272. :style="{
  2273. marginBottom:
  2274. unitJson[unitIndex].easy == 3 ||
  2275. (unitJson[unitIndex].easy == 5 &&
  2276. itemTask.taskType == 1)
  2277. ? '75px'
  2278. : '0',
  2279. }"
  2280. >
  2281. <div
  2282. style="font-size: 22px; color: #8e8e8e"
  2283. :id="'task' + itemTaskIndex"
  2284. >
  2285. 任务{{ itemTaskIndex + 1 }}
  2286. </div>
  2287. <div
  2288. class="chapter_contentbox"
  2289. style="
  2290. flex-direction: row;
  2291. justify-content: flex-start;
  2292. align-items: center;
  2293. "
  2294. >
  2295. <div
  2296. style="
  2297. border-left: 6px solid #5699e8;
  2298. height: 20px;
  2299. padding-left: 10px;
  2300. line-height: 22px;
  2301. "
  2302. >
  2303. 任务名称
  2304. </div>
  2305. <div>
  2306. <input
  2307. type="text"
  2308. placeholder="输入任务名称"
  2309. class="binfo_input"
  2310. style="border-radius: 4px"
  2311. v-model="
  2312. unitJson[unitIndex].chapterInfo[0].taskJson[
  2313. itemTaskIndex
  2314. ].task
  2315. "
  2316. />
  2317. </div>
  2318. <div
  2319. class="remove"
  2320. v-if="
  2321. item.taskJson.length > 1 &&
  2322. (!unitJson[unitIndex].easy ||
  2323. unitJson[unitIndex].easy == 6)
  2324. "
  2325. @click="deleteTask(itemTaskIndex)"
  2326. style="position: absolute; right: 55px"
  2327. ></div>
  2328. </div>
  2329. <div
  2330. v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1"
  2331. style="
  2332. display: flex;
  2333. margin: 0 0 20px 0;
  2334. flex-direction: row;
  2335. justify-content: flex-start;
  2336. align-items: center;
  2337. width: 70.5% !important;
  2338. padding-top: 30px;
  2339. "
  2340. >
  2341. <div class="lineTitle">任务描述</div>
  2342. </div>
  2343. <div
  2344. v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1"
  2345. >
  2346. <editor-bar
  2347. style="width: 90% !important; margin: 0"
  2348. placeholder="请输入任务描述"
  2349. v-model="
  2350. unitJson[unitIndex].chapterInfo[0].taskJson[
  2351. itemTaskIndex
  2352. ].taskDetail
  2353. "
  2354. @change="change"
  2355. ></editor-bar>
  2356. <!-- <textarea
  2357. rows="6"
  2358. class="binfo_input"
  2359. placeholder="请输入任务描述"
  2360. cols
  2361. style="width: 70.5% !important; height: 120px"
  2362. v-model="
  2363. unitJson[unitIndex].chapterInfo[0].taskJson[
  2364. itemTaskIndex
  2365. ].taskDetail
  2366. "
  2367. ></textarea>-->
  2368. </div>
  2369. </div>
  2370. </div>
  2371. <div
  2372. v-if="
  2373. !unitJson[unitIndex].easy ||
  2374. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2375. "
  2376. class="basic_box"
  2377. style="
  2378. margin: 0;
  2379. min-height: 0;
  2380. width: 90% !important;
  2381. padding-top: 10px !important;
  2382. "
  2383. >
  2384. <div
  2385. style="
  2386. display: flex;
  2387. margin: 0 0 20px 0;
  2388. flex-direction: row;
  2389. justify-content: flex-start;
  2390. align-items: center;
  2391. "
  2392. >
  2393. <div class="lineTitle">学习内容</div>
  2394. </div>
  2395. <div>
  2396. <div
  2397. class="add_chapters_box"
  2398. v-if="
  2399. itemTask.chapterData &&
  2400. itemTask.chapterData.length == 0
  2401. "
  2402. style="height: 185px"
  2403. ></div>
  2404. <div
  2405. v-else
  2406. class="add_chapters_box"
  2407. style="display: flex; flex-direction: column"
  2408. >
  2409. <div
  2410. class="chapter_upload"
  2411. v-for="(item1, index1) in itemTask.chapterData"
  2412. :key="item1.id"
  2413. @click="
  2414. getChapterData(
  2415. $event,
  2416. unitIndex,
  2417. index,
  2418. index1,
  2419. item1.type
  2420. )
  2421. "
  2422. >
  2423. <div
  2424. class="chapter_upload_t"
  2425. style="width: 100%"
  2426. ></div>
  2427. <div
  2428. class="chapter_upload_o"
  2429. style="
  2430. position: relative;
  2431. display: flex;
  2432. align-items: center;
  2433. "
  2434. >
  2435. <div
  2436. class="chapter_upload_l"
  2437. style="padding: 1px 0 0 10px"
  2438. >
  2439. <div
  2440. v-if="item1.type == 2"
  2441. class="chapter_upload_l_i1"
  2442. ></div>
  2443. <div
  2444. v-if="
  2445. item1.type == 3 ||
  2446. item1.type == 12 ||
  2447. item1.type == 13 ||
  2448. item1.type == 6 ||
  2449. item1.type == 7
  2450. "
  2451. class="chapter_upload_l_i5"
  2452. style="margin-left: 1px"
  2453. ></div>
  2454. <div
  2455. v-if="item1.type == 8"
  2456. class="chapter_upload_l_i8"
  2457. style="margin-left: 1px"
  2458. ></div>
  2459. </div>
  2460. <div
  2461. class="chapter_upload_ic"
  2462. style="
  2463. cursor: pointer;
  2464. position: absolute;
  2465. width: 45px;
  2466. right: 0;
  2467. top: 0;
  2468. "
  2469. >
  2470. <div class="chapter_upload_ic_l"></div>
  2471. <div
  2472. class="chapter_upload_ic_r"
  2473. style="position: absolute"
  2474. @click.stop="
  2475. deleteChapterData(
  2476. $event,
  2477. unitIndex,
  2478. index,
  2479. index1,
  2480. itemTaskIndex
  2481. )
  2482. "
  2483. >
  2484. <div></div>
  2485. </div>
  2486. </div>
  2487. <div class="chapter_upload_n">
  2488. <input
  2489. v-if="
  2490. item1.type == 2 ||
  2491. item1.type == 3 ||
  2492. item1.type == 12 ||
  2493. item1.type == 13 ||
  2494. item1.type == 7
  2495. "
  2496. :placeholder="item1.name"
  2497. @change="
  2498. updataVideoT(
  2499. $event,
  2500. unitIndex,
  2501. chapterIndex,
  2502. index1
  2503. )
  2504. "
  2505. style="
  2506. border: none;
  2507. outline: none;
  2508. width: 80%;
  2509. minwidth: 215px;
  2510. z-index: 99;
  2511. font-size: 14px;
  2512. white-space: nowrap;
  2513. overflow: hidden;
  2514. text-overflow: ellipsis;
  2515. "
  2516. />
  2517. <input
  2518. :placeholder="item1.name"
  2519. v-if="item1.type == 6"
  2520. style="
  2521. border: none;
  2522. outline: none;
  2523. width: 80%;
  2524. white-space: nowrap;
  2525. overflow: hidden;
  2526. text-overflow: ellipsis;
  2527. "
  2528. readonly="true"
  2529. @click="selectAttText(itemTaskIndex, index1)"
  2530. />
  2531. <input
  2532. :placeholder="
  2533. item1.title ? item1.title : '链接'
  2534. "
  2535. v-if="item1.type == 8"
  2536. style="
  2537. border: none;
  2538. outline: none;
  2539. width: 80%;
  2540. white-space: nowrap;
  2541. overflow: hidden;
  2542. text-overflow: ellipsis;
  2543. "
  2544. readonly="true"
  2545. @click="selectLine(itemTaskIndex, index1)"
  2546. />
  2547. <div
  2548. class="chapter_upload_ud"
  2549. style="z-index: 99"
  2550. >
  2551. <div
  2552. class="chapter_upload_up"
  2553. @click="
  2554. upCd(
  2555. $event,
  2556. unitIndex,
  2557. index,
  2558. itemTaskIndex,
  2559. index1
  2560. )
  2561. "
  2562. ></div>
  2563. <div
  2564. class="chapter_upload_down"
  2565. @click="
  2566. downCd(
  2567. $event,
  2568. unitIndex,
  2569. index,
  2570. itemTaskIndex,
  2571. index1
  2572. )
  2573. "
  2574. ></div>
  2575. </div>
  2576. </div>
  2577. </div>
  2578. </div>
  2579. </div>
  2580. </div>
  2581. <div class="add_info_box">
  2582. <button class="info_btn" @click="addImg($event)">
  2583. 添加文件
  2584. <input
  2585. type="file"
  2586. accept="*"
  2587. style="display: none"
  2588. v-if="inputShow"
  2589. @change="
  2590. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  2591. "
  2592. />
  2593. </button>
  2594. <!-- <button class="info_btn" @click="addImg($event)">
  2595. 添加视频
  2596. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2597. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  2598. " />
  2599. </button>
  2600. <button class="info_btn" @click="addImg($event)">
  2601. 添加文档
  2602. <input type="file"
  2603. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2604. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  2605. " />
  2606. </button> -->
  2607. <button
  2608. class="info_btn"
  2609. @click="addAttText(itemTaskIndex)"
  2610. >
  2611. 添加图文
  2612. </button>
  2613. <button class="info_btn" @click="openLine(itemTaskIndex)">
  2614. 添加链接
  2615. </button>
  2616. <button
  2617. class="info_btn"
  2618. @click="pasteLine(itemTaskIndex)"
  2619. >
  2620. 嵌入代码
  2621. </button>
  2622. <button
  2623. class="info_btn"
  2624. @click="openSource(itemTaskIndex)"
  2625. >
  2626. 添加资源
  2627. </button>
  2628. <!-- <button class="info_btn" @click="addImg($event)">
  2629. 其他附件
  2630. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  2631. " />
  2632. </button> -->
  2633. </div>
  2634. <div
  2635. v-if="
  2636. unitJson[unitIndex].chapterInfo[0].taskJson[
  2637. itemTaskIndex
  2638. ].proVisible
  2639. "
  2640. class="mask"
  2641. >
  2642. <div class="progressBox">
  2643. <!-- <div id="closePro" class="closeCss">
  2644. <img src="../../../../assets/icon/close.png" alt />
  2645. </div> -->
  2646. <div class="lbox">
  2647. <img
  2648. src="../../../assets/loading.gif"
  2649. />上传中,请稍后
  2650. </div>
  2651. <div style="margin-bottom: 10px">
  2652. <span
  2653. >{{
  2654. unitJson[unitIndex].chapterInfo[0].taskJson[
  2655. itemTaskIndex
  2656. ].isFinishSize
  2657. }}M</span
  2658. >
  2659. /
  2660. <span
  2661. >{{
  2662. unitJson[unitIndex].chapterInfo[0].taskJson[
  2663. itemTaskIndex
  2664. ].isAllSize
  2665. }}M</span
  2666. >
  2667. </div>
  2668. <el-progress
  2669. :text-inside="true"
  2670. :stroke-width="20"
  2671. :percentage="
  2672. unitJson[unitIndex].chapterInfo[0].taskJson[
  2673. itemTaskIndex
  2674. ].progress
  2675. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2676. itemTaskIndex
  2677. ].progress
  2678. : 0
  2679. "
  2680. style="width: 80%"
  2681. ></el-progress>
  2682. </div>
  2683. </div>
  2684. </div>
  2685. <div
  2686. v-if="
  2687. unitJson[unitIndex].easy == 1 ||
  2688. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2689. "
  2690. class="basic_box"
  2691. style="
  2692. margin: 0 auto;
  2693. min-height: 0;
  2694. width: 95% !important;
  2695. padding: 20px 10px 10px;
  2696. "
  2697. >
  2698. <div>
  2699. <div
  2700. class="add_chapters_box"
  2701. v-if="
  2702. itemTask.chapterData &&
  2703. itemTask.chapterData.length == 0
  2704. "
  2705. style="height: 185px"
  2706. ></div>
  2707. <div
  2708. v-else
  2709. class="add_chapters_box"
  2710. style="display: flex; flex-direction: column"
  2711. >
  2712. <div
  2713. v-for="(item1, index1) in itemTask.chapterData"
  2714. :key="item1.id"
  2715. >
  2716. <div
  2717. class="chapter_upload"
  2718. @click="
  2719. getChapterData(
  2720. $event,
  2721. unitIndex,
  2722. index,
  2723. index1,
  2724. item1.type
  2725. )
  2726. "
  2727. >
  2728. <div
  2729. class="chapter_upload_t"
  2730. style="width: 100%"
  2731. ></div>
  2732. <div
  2733. class="chapter_upload_o"
  2734. style="
  2735. position: relative;
  2736. display: flex;
  2737. align-items: center;
  2738. "
  2739. >
  2740. <div
  2741. class="chapter_upload_l"
  2742. style="padding: 1px 0 0 10px"
  2743. >
  2744. <div
  2745. v-if="item1.type == 2"
  2746. class="chapter_upload_l_i1"
  2747. ></div>
  2748. <div
  2749. v-if="
  2750. item1.type == 3 ||
  2751. item1.type == 6 ||
  2752. item1.type == 7
  2753. "
  2754. class="chapter_upload_l_i5"
  2755. style="margin-left: 1px"
  2756. ></div>
  2757. <div
  2758. v-if="item1.type == 8"
  2759. class="chapter_upload_l_i8"
  2760. style="margin-left: 1px"
  2761. ></div>
  2762. </div>
  2763. <div
  2764. class="chapter_upload_ic"
  2765. style="
  2766. cursor: pointer;
  2767. position: absolute;
  2768. width: 45px;
  2769. right: 0;
  2770. top: 0;
  2771. "
  2772. >
  2773. <div class="chapter_upload_ic_l"></div>
  2774. <div
  2775. class="chapter_upload_ic_r"
  2776. style="position: absolute"
  2777. @click.stop="
  2778. deleteChapterData(
  2779. $event,
  2780. unitIndex,
  2781. index,
  2782. index1,
  2783. itemTaskIndex
  2784. )
  2785. "
  2786. >
  2787. <div></div>
  2788. </div>
  2789. </div>
  2790. <div class="chapter_upload_n">
  2791. <span
  2792. style="
  2793. font-size: 14px;
  2794. color: rgb(109, 109, 109);
  2795. height: 14px;
  2796. line-height: 12px;
  2797. "
  2798. v-if="
  2799. item1.type == 2 ||
  2800. item1.type == 3 ||
  2801. item1.type == 7
  2802. "
  2803. >{{ item1.text }}-</span
  2804. >
  2805. <input
  2806. v-if="
  2807. item1.type == 2 ||
  2808. item1.type == 3 ||
  2809. item1.type == 7
  2810. "
  2811. :placeholder="item1.name"
  2812. @change="
  2813. updataVideoT(
  2814. $event,
  2815. unitIndex,
  2816. chapterIndex,
  2817. index1
  2818. )
  2819. "
  2820. style="
  2821. border: none;
  2822. outline: none;
  2823. width: 80%;
  2824. minwidth: 215px;
  2825. z-index: 99;
  2826. font-size: 14px;
  2827. white-space: nowrap;
  2828. overflow: hidden;
  2829. text-overflow: ellipsis;
  2830. "
  2831. />
  2832. <input
  2833. :placeholder="item1.name"
  2834. v-if="item1.type == 6"
  2835. style="
  2836. border: none;
  2837. outline: none;
  2838. width: 80%;
  2839. white-space: nowrap;
  2840. overflow: hidden;
  2841. text-overflow: ellipsis;
  2842. "
  2843. readonly="true"
  2844. @click="selectAttText(itemTaskIndex, index1)"
  2845. />
  2846. <input
  2847. :placeholder="
  2848. item1.title ? item1.title : '链接'
  2849. "
  2850. v-if="item1.type == 8"
  2851. style="
  2852. border: none;
  2853. outline: none;
  2854. width: 80%;
  2855. white-space: nowrap;
  2856. overflow: hidden;
  2857. text-overflow: ellipsis;
  2858. "
  2859. readonly="true"
  2860. @click="selectLine(itemTaskIndex, index1)"
  2861. />
  2862. <div
  2863. class="chapter_upload_ud"
  2864. style="z-index: 99"
  2865. >
  2866. <div
  2867. class="chapter_upload_up"
  2868. @click="
  2869. upCd(
  2870. $event,
  2871. unitIndex,
  2872. index,
  2873. itemTaskIndex,
  2874. index1
  2875. )
  2876. "
  2877. ></div>
  2878. <div
  2879. class="chapter_upload_down"
  2880. @click="
  2881. downCd(
  2882. $event,
  2883. unitIndex,
  2884. index,
  2885. itemTaskIndex,
  2886. index1
  2887. )
  2888. "
  2889. ></div>
  2890. </div>
  2891. </div>
  2892. </div>
  2893. </div>
  2894. </div>
  2895. </div>
  2896. </div>
  2897. <div class="add_info_box" style="margin: 10px 0 0">
  2898. <button class="info_btn" @click="addImg($event)">
  2899. <span style="color: red">*</span>
  2900. 教学设计
  2901. <input
  2902. type="file"
  2903. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2904. style="display: none"
  2905. v-if="inputShow"
  2906. @change="
  2907. beforeUpload3(
  2908. $event,
  2909. unitIndex,
  2910. 3,
  2911. itemTaskIndex,
  2912. '教学设计'
  2913. )
  2914. "
  2915. />
  2916. </button>
  2917. <button class="info_btn" @click="addImg($event)">
  2918. <span style="color: red">*</span>
  2919. 教学课件
  2920. <input
  2921. type="file"
  2922. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2923. style="display: none"
  2924. v-if="inputShow"
  2925. @change="
  2926. beforeUpload3(
  2927. $event,
  2928. unitIndex,
  2929. 3,
  2930. itemTaskIndex,
  2931. '教学课件'
  2932. )
  2933. "
  2934. />
  2935. </button>
  2936. <button class="info_btn" @click="addImg($event)">
  2937. 教学视频
  2938. <input
  2939. type="file"
  2940. accept="video/mp4, video/quicktime, video/x-msvideo"
  2941. style="display: none"
  2942. v-if="inputShow"
  2943. @change="
  2944. beforeUpload3(
  2945. $event,
  2946. unitIndex,
  2947. 2,
  2948. itemTaskIndex,
  2949. '教学视频'
  2950. )
  2951. "
  2952. />
  2953. </button>
  2954. <button class="info_btn" @click="addImg($event)">
  2955. 教学音频
  2956. <input
  2957. type="file"
  2958. accept="audio/*"
  2959. style="display: none"
  2960. v-if="inputShow"
  2961. @change="
  2962. beforeUpload3(
  2963. $event,
  2964. unitIndex,
  2965. 2,
  2966. itemTaskIndex,
  2967. '教学音频'
  2968. )
  2969. "
  2970. />
  2971. </button>
  2972. <button class="info_btn" @click="addImg($event)">
  2973. 学习单
  2974. <input
  2975. type="file"
  2976. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2977. style="display: none"
  2978. v-if="inputShow"
  2979. @change="
  2980. beforeUpload3(
  2981. $event,
  2982. unitIndex,
  2983. 3,
  2984. itemTaskIndex,
  2985. '学习单'
  2986. )
  2987. "
  2988. />
  2989. </button>
  2990. </div>
  2991. <div
  2992. v-if="
  2993. unitJson[unitIndex].chapterInfo[0].taskJson[
  2994. itemTaskIndex
  2995. ].proVisible
  2996. "
  2997. class="mask"
  2998. >
  2999. <div class="progressBox">
  3000. <!-- <div id="closePro" class="closeCss">
  3001. <img src="../../../../assets/icon/close.png" alt />
  3002. </div> -->
  3003. <div class="lbox">
  3004. <img
  3005. src="../../../assets/loading.gif"
  3006. />上传中,请稍后
  3007. </div>
  3008. <div style="margin-bottom: 10px">
  3009. <span
  3010. >{{
  3011. unitJson[unitIndex].chapterInfo[0].taskJson[
  3012. itemTaskIndex
  3013. ].isFinishSize
  3014. }}M</span
  3015. >
  3016. /
  3017. <span
  3018. >{{
  3019. unitJson[unitIndex].chapterInfo[0].taskJson[
  3020. itemTaskIndex
  3021. ].isAllSize
  3022. }}M</span
  3023. >
  3024. </div>
  3025. <el-progress
  3026. :text-inside="true"
  3027. :stroke-width="20"
  3028. :percentage="
  3029. unitJson[unitIndex].chapterInfo[0].taskJson[
  3030. itemTaskIndex
  3031. ].progress
  3032. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  3033. itemTaskIndex
  3034. ].progress
  3035. : 0
  3036. "
  3037. style="width: 80%"
  3038. ></el-progress>
  3039. </div>
  3040. </div>
  3041. </div>
  3042. <div
  3043. v-if="
  3044. unitJson[unitIndex].easy != 3 &&
  3045. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  3046. "
  3047. style="
  3048. flex-direction: row;
  3049. justify-content: flex-start;
  3050. align-items: center;
  3051. padding: 0 0 0 30px;
  3052. paddint-top: 10px !important;
  3053. "
  3054. >
  3055. <div
  3056. style="
  3057. display: flex;
  3058. flex-direction: row;
  3059. align-items: center;
  3060. margin-bottom: 20px;
  3061. "
  3062. >
  3063. <div class="lineTitle">
  3064. {{
  3065. !unitJson[unitIndex].easy ||
  3066. unitJson[unitIndex].easy == 6 ||
  3067. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  3068. ? "练习内容"
  3069. : "评价内容"
  3070. }}
  3071. </div>
  3072. </div>
  3073. </div>
  3074. <div
  3075. v-if="
  3076. unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  3077. "
  3078. class="toolChoose"
  3079. style="padding: 0 0 0 30px"
  3080. >
  3081. <div class="tools">
  3082. <div
  3083. class="leftTools"
  3084. style="
  3085. width: 95%;
  3086. padding: 0 0 15px 0;
  3087. margin: 15px 0;
  3088. "
  3089. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  3090. :key="toolIndex"
  3091. >
  3092. <div>
  3093. <textarea
  3094. rows="3"
  3095. type="text"
  3096. placeholder="添加工具描述"
  3097. class="binfo_input"
  3098. style="margin: 0 0 20px 0; width: 71.5% !important"
  3099. v-model="itemTool.toolDetail"
  3100. ></textarea>
  3101. </div>
  3102. <div
  3103. style="
  3104. display: flex;
  3105. flex-direction: row;
  3106. align-items: baseline;
  3107. flex-wrap: nowrap;
  3108. justify-content: flex-start;
  3109. position: relative;
  3110. "
  3111. >
  3112. <div style="margin-right: 20px; font-weight: bold">
  3113. 步骤 {{ toolIndex + 1 }} :
  3114. </div>
  3115. <div class="chooseWho">
  3116. <!-- <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  3117. " @click="(itemTool.toolType = 0), $forceUpdate()">
  3118. 互动类
  3119. </div> -->
  3120. <div
  3121. :class="
  3122. itemTool.toolType == 1 ? 'isChooseActive' : ''
  3123. "
  3124. @click="(itemTool.toolType = 1), $forceUpdate()"
  3125. >
  3126. 思维类
  3127. </div>
  3128. <div
  3129. :class="
  3130. itemTool.toolType == 6 ? 'isChooseActive' : ''
  3131. "
  3132. @click="(itemTool.toolType = 6), $forceUpdate()"
  3133. >
  3134. 协作类
  3135. </div>
  3136. <div
  3137. :class="
  3138. itemTool.toolType == 2 ? 'isChooseActive' : ''
  3139. "
  3140. @click="(itemTool.toolType = 2), $forceUpdate()"
  3141. >
  3142. 测评类
  3143. </div>
  3144. <div
  3145. :class="
  3146. itemTool.toolType == 7 ? 'isChooseActive' : ''
  3147. "
  3148. @click="(itemTool.toolType = 7), $forceUpdate()"
  3149. >
  3150. 评价类
  3151. </div>
  3152. <div
  3153. :class="
  3154. itemTool.toolType == 3 ? 'isChooseActive' : ''
  3155. "
  3156. @click="(itemTool.toolType = 3), $forceUpdate()"
  3157. >
  3158. 学科类
  3159. </div>
  3160. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  3161. " @click="(itemTool.toolType = 5), $forceUpdate()">
  3162. 学科类
  3163. </div>
  3164. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  3165. " @click="(itemTool.toolType = 4), $forceUpdate()">
  3166. 其他
  3167. </div> -->
  3168. </div>
  3169. <div
  3170. class="remove"
  3171. @click="deleteTool(itemTaskIndex, toolIndex)"
  3172. v-if="itemTask.toolChoose.length > 1"
  3173. style="position: absolute; right: 55px"
  3174. ></div>
  3175. </div>
  3176. <div style="min-height: 163px">
  3177. <div class="toolSort" v-if="itemTool.toolType == 0">
  3178. <!-- <div class="tool">
  3179. <div
  3180. class="whiteBIcon"
  3181. @click="addTools(8, itemTaskIndex, toolIndex)"
  3182. >
  3183. <img src="../../../assets/icon/secondToolList/library.png" alt />
  3184. <div style="margin: 5px 0">素材库</div>
  3185. </div>
  3186. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  3187. <img
  3188. src="../../../assets/icon/checkNo.png"
  3189. alt
  3190. v-if="itemTool.tool.indexOf(8) == -1"
  3191. />
  3192. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  3193. alt /><span>已选择</span></div>
  3194. </div>
  3195. </div>-->
  3196. <!-- <div class="tool">
  3197. <div
  3198. class="whiteBIcon"
  3199. @click="addTools(17, itemTaskIndex, toolIndex)"
  3200. >
  3201. <img
  3202. src="../../../assets/icon/secondToolList/library.png"
  3203. alt
  3204. />
  3205. <div style="margin: 5px 0">学习资料</div>
  3206. </div>
  3207. <div
  3208. class="check"
  3209. @click="addTools(17, itemTaskIndex, toolIndex)"
  3210. >
  3211. <img
  3212. src="../../../assets/icon/checkNo.png"
  3213. alt
  3214. v-if="itemTool.tool.indexOf(17) == -1"
  3215. />
  3216. <img
  3217. src="../../../assets/icon/checkedIs.png"
  3218. alt
  3219. v-else
  3220. />
  3221. </div>10
  3222. </div> -->
  3223. <div class="tool">
  3224. <div
  3225. class="whiteBIcon"
  3226. @click="openTools(itemTaskIndex, 10, toolIndex)"
  3227. >
  3228. <img
  3229. src="../../../assets/icon/thirdToolList/time.png"
  3230. alt
  3231. />
  3232. <div style="margin: 5px 0">倒计时</div>
  3233. </div>
  3234. <div
  3235. class="check"
  3236. @click="addTools(10, itemTaskIndex, toolIndex)"
  3237. >
  3238. <img
  3239. src="../../../assets/icon/checkNo.png"
  3240. alt
  3241. v-if="itemTool.tool.indexOf(10) == -1"
  3242. />
  3243. <div class="checkDiv" v-else>
  3244. <img
  3245. src="../../../assets/icon/checkedIs.png"
  3246. alt
  3247. /><span>已选择</span>
  3248. </div>
  3249. </div>
  3250. </div>
  3251. <!-- <div class="tool">
  3252. <div
  3253. class="whiteBIcon"
  3254. @click="openTools(itemTaskIndex, 49, toolIndex)"
  3255. >
  3256. <img
  3257. src="../../../assets/icon/fourthToolList/group.png"
  3258. alt
  3259. />
  3260. <div style="margin: 5px 0">学生分组</div>
  3261. </div>
  3262. <div
  3263. class="check"
  3264. @click="addTools(49, itemTaskIndex, toolIndex)"
  3265. >
  3266. <img
  3267. src="../../../assets/icon/checkNo.png"
  3268. alt
  3269. v-if="itemTool.tool.indexOf(49) == -1"
  3270. />
  3271. <div class="checkDiv" v-else>
  3272. <img
  3273. src="../../../assets/icon/checkedIs.png"
  3274. alt
  3275. /><span>已选择</span>
  3276. </div>
  3277. </div>
  3278. </div> -->
  3279. <div class="tool">
  3280. <div
  3281. class="whiteBIcon"
  3282. @click="openTools(itemTaskIndex, 62, toolIndex)"
  3283. >
  3284. <img
  3285. src="../../../assets/icon/fourthToolList/interVideo.png"
  3286. alt
  3287. />
  3288. <div style="margin: 5px 0">交互视频</div>
  3289. </div>
  3290. <div
  3291. class="check"
  3292. @click="addTools(62, itemTaskIndex, toolIndex)"
  3293. >
  3294. <img
  3295. src="../../../assets/icon/checkNo.png"
  3296. alt
  3297. v-if="itemTool.tool.indexOf(62) == -1"
  3298. />
  3299. <div class="checkDiv" v-else>
  3300. <img
  3301. src="../../../assets/icon/checkedIs.png"
  3302. alt
  3303. /><span>已选择</span>
  3304. </div>
  3305. </div>
  3306. </div>
  3307. </div>
  3308. <div class="toolSort" v-if="itemTool.toolType == 1">
  3309. <div class="tool">
  3310. <div
  3311. class="whiteBIcon"
  3312. @click="addTools(7, itemTaskIndex, toolIndex)"
  3313. >
  3314. <img
  3315. src="../../../assets/icon/secondToolList/mindNetwork.png"
  3316. alt
  3317. />
  3318. <div style="margin: 5px 0">思维网格</div>
  3319. </div>
  3320. <div
  3321. class="check"
  3322. @click="addTools(7, itemTaskIndex, toolIndex)"
  3323. >
  3324. <img
  3325. src="../../../assets/icon/checkNo.png"
  3326. alt
  3327. v-if="itemTool.tool.indexOf(7) == -1"
  3328. />
  3329. <div class="checkDiv" v-else>
  3330. <img
  3331. src="../../../assets/icon/checkedIs.png"
  3332. alt
  3333. /><span>已选择</span>
  3334. </div>
  3335. </div>
  3336. </div>
  3337. <div class="tool">
  3338. <div
  3339. class="whiteBIcon"
  3340. @click="openTools(itemTaskIndex, 1, toolIndex)"
  3341. >
  3342. <img
  3343. src="../../../assets/icon/secondToolList/whiteBoard.png"
  3344. alt
  3345. />
  3346. <div style="margin: 5px 0">电子白板</div>
  3347. </div>
  3348. <div
  3349. class="check"
  3350. @click="addTools(1, itemTaskIndex, toolIndex)"
  3351. >
  3352. <img
  3353. src="../../../assets/icon/checkNo.png"
  3354. alt
  3355. v-if="itemTool.tool.indexOf(1) == -1"
  3356. />
  3357. <div class="checkDiv" v-else>
  3358. <img
  3359. src="../../../assets/icon/checkedIs.png"
  3360. alt
  3361. /><span>已选择</span>
  3362. </div>
  3363. </div>
  3364. </div>
  3365. <!-- <div class="tool">
  3366. <div
  3367. class="whiteBIcon"
  3368. @click="addTools(2, itemTaskIndex, toolIndex)"
  3369. >
  3370. <img
  3371. src="../../../assets/icon/secondToolList/note.png"
  3372. alt
  3373. />
  3374. <div style="margin: 5px 0">便签</div>
  3375. </div>
  3376. <div
  3377. class="check"
  3378. @click="addTools(2, itemTaskIndex, toolIndex)"
  3379. >
  3380. <img
  3381. src="../../../assets/icon/checkNo.png"
  3382. alt
  3383. v-if="itemTool.tool.indexOf(2) == -1"
  3384. />
  3385. <div class="checkDiv" v-else>
  3386. <img
  3387. src="../../../assets/icon/checkedIs.png"
  3388. alt
  3389. /><span>已选择</span>
  3390. </div>
  3391. </div>
  3392. </div> -->
  3393. <!-- <div class="tool">
  3394. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  3395. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  3396. <div style="margin: 5px 0">协同文档</div>
  3397. </div>
  3398. <div
  3399. class="check"
  3400. @click="addTools(6, itemTaskIndex, toolIndex)"
  3401. >
  3402. <img
  3403. src="../../../assets/icon/checkNo.png"
  3404. alt
  3405. v-if="itemTool.tool.indexOf(6) == -1"
  3406. />
  3407. <div class="checkDiv" v-else>
  3408. <img
  3409. src="../../../assets/icon/checkedIs.png"
  3410. alt
  3411. /><span>已选择</span>
  3412. </div>
  3413. </div>
  3414. </div> -->
  3415. <div class="tool">
  3416. <div
  3417. class="whiteBIcon"
  3418. @click="openTools(itemTaskIndex, 52, toolIndex)"
  3419. >
  3420. <img
  3421. src="../../../assets/icon/fourthToolList/text.png"
  3422. alt
  3423. />
  3424. <div style="margin: 5px 0">文档</div>
  3425. </div>
  3426. <div
  3427. class="check"
  3428. @click="addTools(52, itemTaskIndex, toolIndex)"
  3429. >
  3430. <img
  3431. src="../../../assets/icon/checkNo.png"
  3432. alt
  3433. v-if="itemTool.tool.indexOf(52) == -1"
  3434. />
  3435. <div class="checkDiv" v-else>
  3436. <img
  3437. src="../../../assets/icon/checkedIs.png"
  3438. alt
  3439. /><span>已选择</span>
  3440. </div>
  3441. </div>
  3442. </div>
  3443. <div class="tool">
  3444. <div
  3445. class="whiteBIcon"
  3446. @click="openTools(itemTaskIndex, 3, toolIndex)"
  3447. >
  3448. <img
  3449. src="../../../assets/icon/secondToolList/mindMapping.png"
  3450. alt
  3451. />
  3452. <div style="margin: 5px 0">思维导图</div>
  3453. </div>
  3454. <div
  3455. class="check"
  3456. @click="addTools(3, itemTaskIndex, toolIndex)"
  3457. >
  3458. <img
  3459. src="../../../assets/icon/checkNo.png"
  3460. alt
  3461. v-if="itemTool.tool.indexOf(3) == -1"
  3462. />
  3463. <div class="checkDiv" v-else>
  3464. <img
  3465. src="../../../assets/icon/checkedIs.png"
  3466. alt
  3467. /><span>已选择</span>
  3468. </div>
  3469. </div>
  3470. </div>
  3471. <div class="tool">
  3472. <div
  3473. class="whiteBIcon"
  3474. @click="openTools(itemTaskIndex, 48, toolIndex)"
  3475. >
  3476. <img
  3477. src="../../../assets/icon/fourthToolList/table.png"
  3478. alt
  3479. />
  3480. <div style="margin: 5px 0">表格</div>
  3481. </div>
  3482. <div
  3483. class="check"
  3484. @click="addTools(48, itemTaskIndex, toolIndex)"
  3485. >
  3486. <img
  3487. src="../../../assets/icon/checkNo.png"
  3488. alt
  3489. v-if="itemTool.tool.indexOf(48) == -1"
  3490. />
  3491. <div class="checkDiv" v-else>
  3492. <img
  3493. src="../../../assets/icon/checkedIs.png"
  3494. alt
  3495. /><span>已选择</span>
  3496. </div>
  3497. </div>
  3498. </div>
  3499. </div>
  3500. <div class="toolSort" v-if="itemTool.toolType == 6">
  3501. <div class="tool">
  3502. <div
  3503. class="whiteBIcon"
  3504. @click="openTools(itemTaskIndex, 49, toolIndex)"
  3505. >
  3506. <img
  3507. src="../../../assets/icon/fourthToolList/group.png"
  3508. alt
  3509. />
  3510. <div style="margin: 5px 0">学生分组</div>
  3511. </div>
  3512. <div
  3513. class="check"
  3514. @click="addTools(49, itemTaskIndex, toolIndex)"
  3515. >
  3516. <img
  3517. src="../../../assets/icon/checkNo.png"
  3518. alt
  3519. v-if="itemTool.tool.indexOf(49) == -1"
  3520. />
  3521. <div class="checkDiv" v-else>
  3522. <img
  3523. src="../../../assets/icon/checkedIs.png"
  3524. alt
  3525. /><span>已选择</span>
  3526. </div>
  3527. </div>
  3528. </div>
  3529. </div>
  3530. <div class="toolSort" v-if="itemTool.toolType == 2">
  3531. <!-- <div class="tool">
  3532. <div
  3533. class="whiteBIcon"
  3534. @click="addTools(5, itemTaskIndex, toolIndex)"
  3535. >
  3536. <img
  3537. src="../../../assets/icon/thirdToolList/score.png"
  3538. alt
  3539. />
  3540. <div style="margin: 5px 0">量规评分</div>
  3541. </div>
  3542. <div
  3543. class="check"
  3544. @click="addTools(5, itemTaskIndex, toolIndex)"
  3545. >
  3546. <img
  3547. src="../../../assets/icon/checkNo.png"
  3548. alt
  3549. v-if="itemTool.tool.indexOf(5) == -1"
  3550. />
  3551. <img
  3552. src="../../../assets/icon/checkedIs.png"
  3553. alt
  3554. v-else
  3555. />
  3556. </div>
  3557. </div>-->
  3558. <div class="tool">
  3559. <div
  3560. class="whiteBIcon"
  3561. @click="openTools(itemTaskIndex, 4, toolIndex)"
  3562. >
  3563. <img
  3564. src="../../../assets/icon/thirdToolList/ask.png"
  3565. alt
  3566. />
  3567. <div style="margin: 5px 0">问卷调查</div>
  3568. </div>
  3569. <div
  3570. class="check"
  3571. @click="addTools(4, itemTaskIndex, toolIndex)"
  3572. >
  3573. <img
  3574. src="../../../assets/icon/checkNo.png"
  3575. alt
  3576. v-if="itemTool.tool.indexOf(4) == -1"
  3577. />
  3578. <div class="checkDiv" v-else>
  3579. <img
  3580. src="../../../assets/icon/checkedIs.png"
  3581. alt
  3582. /><span>已选择</span>
  3583. </div>
  3584. </div>
  3585. </div>
  3586. <div class="tool">
  3587. <div
  3588. class="whiteBIcon"
  3589. @click="openTools(itemTaskIndex, 45, toolIndex)"
  3590. >
  3591. <img
  3592. src="../../../assets/icon/thirdToolList/choose.png"
  3593. alt
  3594. />
  3595. <div style="margin: 5px 0">选择题</div>
  3596. </div>
  3597. <div
  3598. class="check"
  3599. @click="addTools(45, itemTaskIndex, toolIndex)"
  3600. >
  3601. <img
  3602. src="../../../assets/icon/checkNo.png"
  3603. alt
  3604. v-if="itemTool.tool.indexOf(45) == -1"
  3605. />
  3606. <div class="checkDiv" v-else>
  3607. <img
  3608. src="../../../assets/icon/checkedIs.png"
  3609. alt
  3610. /><span>已选择</span>
  3611. </div>
  3612. </div>
  3613. </div>
  3614. <div class="tool">
  3615. <div
  3616. class="whiteBIcon"
  3617. @click="openTools(itemTaskIndex, 15, toolIndex)"
  3618. >
  3619. <img
  3620. src="../../../assets/icon/thirdToolList/answer.png"
  3621. alt
  3622. />
  3623. <div style="margin: 5px 0">问答工具</div>
  3624. </div>
  3625. <div
  3626. class="check"
  3627. @click="addTools(15, itemTaskIndex, toolIndex)"
  3628. >
  3629. <img
  3630. src="../../../assets/icon/checkNo.png"
  3631. alt
  3632. v-if="itemTool.tool.indexOf(15) == -1"
  3633. />
  3634. <div class="checkDiv" v-else>
  3635. <img
  3636. src="../../../assets/icon/checkedIs.png"
  3637. alt
  3638. /><span>已选择</span>
  3639. </div>
  3640. </div>
  3641. </div>
  3642. <div class="tool">
  3643. <div
  3644. class="whiteBIcon"
  3645. @click="addTools(16, itemTaskIndex, toolIndex)"
  3646. >
  3647. <img
  3648. src="../../../assets/icon/thirdToolList/work.png"
  3649. alt
  3650. />
  3651. <div style="margin: 5px 0">作业提交</div>
  3652. </div>
  3653. <div
  3654. class="check"
  3655. @click="addTools(16, itemTaskIndex, toolIndex)"
  3656. >
  3657. <img
  3658. src="../../../assets/icon/checkNo.png"
  3659. alt
  3660. v-if="itemTool.tool.indexOf(16) == -1"
  3661. />
  3662. <div class="checkDiv" v-else>
  3663. <img
  3664. src="../../../assets/icon/checkedIs.png"
  3665. alt
  3666. /><span>已选择</span>
  3667. </div>
  3668. </div>
  3669. </div>
  3670. <div class="tool">
  3671. <div
  3672. class="whiteBIcon"
  3673. @click="addTools(50, itemTaskIndex, toolIndex)"
  3674. >
  3675. <img
  3676. src="../../../assets/icon/thirdToolList/plwork.png"
  3677. alt
  3678. />
  3679. <div style="margin: 5px 0">批量上传</div>
  3680. </div>
  3681. <div
  3682. class="check"
  3683. @click="addTools(50, itemTaskIndex, toolIndex)"
  3684. >
  3685. <img
  3686. src="../../../assets/icon/checkNo.png"
  3687. alt
  3688. v-if="itemTool.tool.indexOf(50) == -1"
  3689. />
  3690. <div class="checkDiv" v-else>
  3691. <img
  3692. src="../../../assets/icon/checkedIs.png"
  3693. alt
  3694. /><span>已选择</span>
  3695. </div>
  3696. </div>
  3697. </div>
  3698. <!-- <div class="tool">
  3699. <div
  3700. class="whiteBIcon"
  3701. @click="openTools(itemTaskIndex, 40, toolIndex)"
  3702. >
  3703. <img
  3704. src="../../../assets/icon/thirdToolList/eval.png"
  3705. alt
  3706. />
  3707. <div style="margin: 5px 0">个人评价</div>
  3708. </div>
  3709. <div
  3710. class="check"
  3711. @click="addTools(40, itemTaskIndex, toolIndex)"
  3712. >
  3713. <img
  3714. src="../../../assets/icon/checkNo.png"
  3715. alt
  3716. v-if="itemTool.tool.indexOf(40) == -1"
  3717. />
  3718. <div class="checkDiv" v-else>
  3719. <img
  3720. src="../../../assets/icon/checkedIs.png"
  3721. alt
  3722. /><span>已选择</span>
  3723. </div>
  3724. </div>
  3725. </div> -->
  3726. <div class="tool">
  3727. <div
  3728. class="whiteBIcon"
  3729. @click="openTools(itemTaskIndex, 41, toolIndex)"
  3730. >
  3731. <img
  3732. src="../../../assets/icon/thirdToolList/select.png"
  3733. alt
  3734. />
  3735. <div style="margin: 5px 0">选择填空</div>
  3736. </div>
  3737. <div
  3738. class="check"
  3739. @click="addTools(41, itemTaskIndex, toolIndex)"
  3740. >
  3741. <img
  3742. src="../../../assets/icon/checkNo.png"
  3743. alt
  3744. v-if="itemTool.tool.indexOf(41) == -1"
  3745. />
  3746. <div class="checkDiv" v-else>
  3747. <img
  3748. src="../../../assets/icon/checkedIs.png"
  3749. alt
  3750. /><span>已选择</span>
  3751. </div>
  3752. </div>
  3753. </div>
  3754. <div class="tool">
  3755. <div
  3756. class="whiteBIcon"
  3757. @click="openTools(itemTaskIndex, 47, toolIndex)"
  3758. >
  3759. <img
  3760. src="../../../assets/icon/fourthToolList/conSentences.png"
  3761. alt
  3762. />
  3763. <div style="margin: 5px 0">连词成句</div>
  3764. </div>
  3765. <div
  3766. class="check"
  3767. @click="addTools(47, itemTaskIndex, toolIndex)"
  3768. >
  3769. <img
  3770. src="../../../assets/icon/checkNo.png"
  3771. alt
  3772. v-if="itemTool.tool.indexOf(47) == -1"
  3773. />
  3774. <div class="checkDiv" v-else>
  3775. <img
  3776. src="../../../assets/icon/checkedIs.png"
  3777. alt
  3778. /><span>已选择</span>
  3779. </div>
  3780. </div>
  3781. </div>
  3782. <!-- <div class="tool">
  3783. <div
  3784. class="whiteBIcon"
  3785. @click="openTools(itemTaskIndex, 42, toolIndex)"
  3786. >
  3787. <img
  3788. src="../../../assets/icon/thirdToolList/mp3.png"
  3789. alt
  3790. />
  3791. <div style="margin: 5px 0">上传音频</div>
  3792. </div>
  3793. <div
  3794. class="check"
  3795. @click="addTools(42, itemTaskIndex, toolIndex)"
  3796. >
  3797. <img
  3798. src="../../../assets/icon/checkNo.png"
  3799. alt
  3800. v-if="itemTool.tool.indexOf(42) == -1"
  3801. />
  3802. <img
  3803. src="../../../assets/icon/checkedIs.png"
  3804. alt
  3805. v-else
  3806. />
  3807. </div>
  3808. </div> -->
  3809. </div>
  3810. <div class="toolSort" v-if="itemTool.toolType == 3">
  3811. <div class="tool">
  3812. <div
  3813. class="whiteBIcon"
  3814. @click="addTools(18, itemTaskIndex, toolIndex)"
  3815. >
  3816. <img
  3817. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  3818. alt
  3819. />
  3820. <div style="margin: 5px 0">训练平台</div>
  3821. </div>
  3822. <div
  3823. class="check"
  3824. @click="addTools(18, itemTaskIndex, toolIndex)"
  3825. >
  3826. <img
  3827. src="../../../assets/icon/checkNo.png"
  3828. alt
  3829. v-if="itemTool.tool.indexOf(18) == -1"
  3830. />
  3831. <div class="checkDiv" v-else>
  3832. <img
  3833. src="../../../assets/icon/checkedIs.png"
  3834. alt
  3835. /><span>已选择</span>
  3836. </div>
  3837. </div>
  3838. </div>
  3839. <div class="tool">
  3840. <div
  3841. class="whiteBIcon"
  3842. @click="addTools(21, itemTaskIndex, toolIndex)"
  3843. >
  3844. <img
  3845. src="../../../assets/icon/fourthToolList/program.png"
  3846. alt
  3847. />
  3848. <div style="margin: 5px 0">编程平台</div>
  3849. </div>
  3850. <div
  3851. class="check"
  3852. @click="addTools(21, itemTaskIndex, toolIndex)"
  3853. >
  3854. <img
  3855. src="../../../assets/icon/checkNo.png"
  3856. alt
  3857. v-if="itemTool.tool.indexOf(21) == -1"
  3858. />
  3859. <div class="checkDiv" v-else>
  3860. <img
  3861. src="../../../assets/icon/checkedIs.png"
  3862. alt
  3863. /><span>已选择</span>
  3864. </div>
  3865. </div>
  3866. </div>
  3867. <div class="tool">
  3868. <div
  3869. class="whiteBIcon"
  3870. @click="addTools(22, itemTaskIndex, toolIndex)"
  3871. >
  3872. <img
  3873. src="../../../assets/icon/fourthToolList/AIprogram2.png"
  3874. alt
  3875. />
  3876. <div style="margin: 5px 0">AI体验</div>
  3877. </div>
  3878. <div
  3879. class="check"
  3880. @click="addTools(22, itemTaskIndex, toolIndex)"
  3881. >
  3882. <img
  3883. src="../../../assets/icon/checkNo.png"
  3884. alt
  3885. v-if="itemTool.tool.indexOf(22) == -1"
  3886. />
  3887. <div class="checkDiv" v-else>
  3888. <img
  3889. src="../../../assets/icon/checkedIs.png"
  3890. alt
  3891. /><span>已选择</span>
  3892. </div>
  3893. </div>
  3894. </div>
  3895. <div class="tool">
  3896. <div
  3897. class="whiteBIcon"
  3898. @click="addTools(23, itemTaskIndex, toolIndex)"
  3899. >
  3900. <img
  3901. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  3902. alt
  3903. />
  3904. <div style="margin: 5px 0">Python</div>
  3905. </div>
  3906. <div
  3907. class="check"
  3908. @click="addTools(23, itemTaskIndex, toolIndex)"
  3909. >
  3910. <img
  3911. src="../../../assets/icon/checkNo.png"
  3912. alt
  3913. v-if="itemTool.tool.indexOf(23) == -1"
  3914. />
  3915. <div class="checkDiv" v-else>
  3916. <img
  3917. src="../../../assets/icon/checkedIs.png"
  3918. alt
  3919. /><span>已选择</span>
  3920. </div>
  3921. </div>
  3922. </div>
  3923. <div class="tool">
  3924. <div
  3925. class="whiteBIcon"
  3926. @click="addTools(24, itemTaskIndex, toolIndex)"
  3927. >
  3928. <img
  3929. src="../../../assets/icon/fourthToolList/AIprogram.png"
  3930. alt
  3931. />
  3932. <div style="margin: 5px 0">AI平台</div>
  3933. </div>
  3934. <div
  3935. class="check"
  3936. @click="addTools(24, itemTaskIndex, toolIndex)"
  3937. >
  3938. <img
  3939. src="../../../assets/icon/checkNo.png"
  3940. alt
  3941. v-if="itemTool.tool.indexOf(24) == -1"
  3942. />
  3943. <div class="checkDiv" v-else>
  3944. <img
  3945. src="../../../assets/icon/checkedIs.png"
  3946. alt
  3947. /><span>已选择</span>
  3948. </div>
  3949. </div>
  3950. </div>
  3951. <!-- <div class="tool">
  3952. <div
  3953. class="whiteBIcon"
  3954. @click="addTools(32, itemTaskIndex, toolIndex)"
  3955. >
  3956. <img
  3957. src="../../../assets/icon/thirdToolList/code.png"
  3958. alt
  3959. />
  3960. <div style="margin: 5px 0">源码编辑</div>
  3961. </div>
  3962. <div
  3963. class="check"
  3964. @click="addTools(32, itemTaskIndex, toolIndex)"
  3965. >
  3966. <img
  3967. src="../../../assets/icon/checkNo.png"
  3968. alt
  3969. v-if="itemTool.tool.indexOf(32) == -1"
  3970. />
  3971. <div class="checkDiv" v-else>
  3972. <img
  3973. src="../../../assets/icon/checkedIs.png"
  3974. alt
  3975. /><span>已选择</span>
  3976. </div>
  3977. </div>
  3978. </div> -->
  3979. <div class="tool">
  3980. <div
  3981. class="whiteBIcon"
  3982. @click="openTools(itemTaskIndex, 57, toolIndex)"
  3983. >
  3984. <img
  3985. src="../../../assets/icon/fourthToolList/cocopi.png"
  3986. alt
  3987. />
  3988. <div style="margin: 5px 0">CocoPi</div>
  3989. </div>
  3990. <div
  3991. class="check"
  3992. @click="addTools(57, itemTaskIndex, toolIndex)"
  3993. >
  3994. <img
  3995. src="../../../assets/icon/checkNo.png"
  3996. alt
  3997. v-if="itemTool.tool.indexOf(57) == -1"
  3998. />
  3999. <div class="checkDiv" v-else>
  4000. <img
  4001. src="../../../assets/icon/checkedIs.png"
  4002. alt
  4003. /><span>已选择</span>
  4004. </div>
  4005. </div>
  4006. </div>
  4007. <div class="tool">
  4008. <div
  4009. class="whiteBIcon"
  4010. @click="addTools(63, itemTaskIndex, toolIndex)"
  4011. >
  4012. <img
  4013. src="../../../assets/icon/fourthToolList/Wood.png"
  4014. alt
  4015. />
  4016. <div style="margin: 5px 0">海龟编程</div>
  4017. </div>
  4018. <div
  4019. class="check"
  4020. @click="addTools(63, itemTaskIndex, toolIndex)"
  4021. >
  4022. <img
  4023. src="../../../assets/icon/checkNo.png"
  4024. alt
  4025. v-if="itemTool.tool.indexOf(63) == -1"
  4026. />
  4027. <div class="checkDiv" v-else>
  4028. <img
  4029. src="../../../assets/icon/checkedIs.png"
  4030. alt
  4031. /><span>已选择</span>
  4032. </div>
  4033. </div>
  4034. </div>
  4035. </div>
  4036. <div class="toolSort" v-if="itemTool.toolType == 7">
  4037. <div class="tool">
  4038. <div
  4039. class="whiteBIcon"
  4040. @click="openTools(itemTaskIndex, 40, toolIndex)"
  4041. >
  4042. <img
  4043. src="../../../assets/icon/thirdToolList/eval.png"
  4044. alt
  4045. />
  4046. <div style="margin: 5px 0">个人评价</div>
  4047. </div>
  4048. <div
  4049. class="check"
  4050. @click="addTools(40, itemTaskIndex, toolIndex)"
  4051. >
  4052. <img
  4053. src="../../../assets/icon/checkNo.png"
  4054. alt
  4055. v-if="itemTool.tool.indexOf(40) == -1"
  4056. />
  4057. <div class="checkDiv" v-else>
  4058. <img
  4059. src="../../../assets/icon/checkedIs.png"
  4060. alt
  4061. /><span>已选择</span>
  4062. </div>
  4063. </div>
  4064. </div>
  4065. </div>
  4066. <div class="toolSort" v-if="itemTool.toolType == 5">
  4067. <div class="tool">
  4068. <div
  4069. class="whiteBIcon"
  4070. @click="addTools(28, itemTaskIndex, toolIndex)"
  4071. >
  4072. <img
  4073. src="../../../assets/icon/secondToolList/translation.png"
  4074. alt
  4075. />
  4076. <div style="margin: 5px 0">翻译</div>
  4077. </div>
  4078. <div
  4079. class="check"
  4080. @click="addTools(28, itemTaskIndex, toolIndex)"
  4081. >
  4082. <img
  4083. src="../../../assets/icon/checkNo.png"
  4084. alt
  4085. v-if="itemTool.tool.indexOf(28) == -1"
  4086. />
  4087. <div class="checkDiv" v-else>
  4088. <img
  4089. src="../../../assets/icon/checkedIs.png"
  4090. alt
  4091. /><span>已选择</span>
  4092. </div>
  4093. </div>
  4094. </div>
  4095. <div class="tool">
  4096. <div
  4097. class="whiteBIcon"
  4098. @click="addTools(37, itemTaskIndex, toolIndex)"
  4099. >
  4100. <img
  4101. src="../../../assets/icon/secondToolList/mohe.png"
  4102. alt
  4103. />
  4104. <div style="margin: 5px 0">魔盒识字</div>
  4105. </div>
  4106. <div
  4107. class="check"
  4108. @click="addTools(37, itemTaskIndex, toolIndex)"
  4109. >
  4110. <img
  4111. src="../../../assets/icon/checkNo.png"
  4112. alt
  4113. v-if="itemTool.tool.indexOf(37) == -1"
  4114. />
  4115. <div class="checkDiv" v-else>
  4116. <img
  4117. src="../../../assets/icon/checkedIs.png"
  4118. alt
  4119. /><span>已选择</span>
  4120. </div>
  4121. </div>
  4122. </div>
  4123. <div class="tool">
  4124. <div
  4125. class="whiteBIcon"
  4126. @click="addTools(38, itemTaskIndex, toolIndex)"
  4127. >
  4128. <img
  4129. src="../../../assets/icon/secondToolList/24game.png"
  4130. alt
  4131. />
  4132. <div style="margin: 5px 0">24点</div>
  4133. </div>
  4134. <div
  4135. class="check"
  4136. @click="addTools(38, itemTaskIndex, toolIndex)"
  4137. >
  4138. <img
  4139. src="../../../assets/icon/checkNo.png"
  4140. alt
  4141. v-if="itemTool.tool.indexOf(38) == -1"
  4142. />
  4143. <div class="checkDiv" v-else>
  4144. <img
  4145. src="../../../assets/icon/checkedIs.png"
  4146. alt
  4147. /><span>已选择</span>
  4148. </div>
  4149. </div>
  4150. </div>
  4151. <div class="tool">
  4152. <div
  4153. class="whiteBIcon"
  4154. @click="addTools(31, itemTaskIndex, toolIndex)"
  4155. >
  4156. <img
  4157. src="../../../assets/icon/secondToolList/networkPanel.png"
  4158. alt
  4159. />
  4160. <div style="margin: 5px 0">数学画板</div>
  4161. </div>
  4162. <div
  4163. class="check"
  4164. @click="addTools(31, itemTaskIndex, toolIndex)"
  4165. >
  4166. <img
  4167. src="../../../assets/icon/checkNo.png"
  4168. alt
  4169. v-if="itemTool.tool.indexOf(31) == -1"
  4170. />
  4171. <div class="checkDiv" v-else>
  4172. <img
  4173. src="../../../assets/icon/checkedIs.png"
  4174. alt
  4175. /><span>已选择</span>
  4176. </div>
  4177. </div>
  4178. </div>
  4179. <div class="tool">
  4180. <div
  4181. class="whiteBIcon"
  4182. @click="addTools(39, itemTaskIndex, toolIndex)"
  4183. >
  4184. <img
  4185. src="../../../assets/icon/secondToolList/GeoGebra.png"
  4186. alt
  4187. />
  4188. <div style="margin: 5px 0">GeoGebra</div>
  4189. </div>
  4190. <div
  4191. class="check"
  4192. @click="addTools(39, itemTaskIndex, toolIndex)"
  4193. >
  4194. <img
  4195. src="../../../assets/icon/checkNo.png"
  4196. alt
  4197. v-if="itemTool.tool.indexOf(39) == -1"
  4198. />
  4199. <div class="checkDiv" v-else>
  4200. <img
  4201. src="../../../assets/icon/checkedIs.png"
  4202. alt
  4203. /><span>已选择</span>
  4204. </div>
  4205. </div>
  4206. </div>
  4207. <div class="tool">
  4208. <div
  4209. class="whiteBIcon"
  4210. @click="addTools(58, itemTaskIndex, toolIndex)"
  4211. >
  4212. <img
  4213. src="../../../assets/icon/fourthToolList/car.png"
  4214. alt
  4215. />
  4216. <div style="margin: 5px 0">模拟驾驶</div>
  4217. </div>
  4218. <div
  4219. class="check"
  4220. @click="addTools(58, itemTaskIndex, toolIndex)"
  4221. >
  4222. <img
  4223. src="../../../assets/icon/checkNo.png"
  4224. alt
  4225. v-if="itemTool.tool.indexOf(58) == -1"
  4226. />
  4227. <div class="checkDiv" v-else>
  4228. <img
  4229. src="../../../assets/icon/checkedIs.png"
  4230. alt
  4231. /><span>已选择</span>
  4232. </div>
  4233. </div>
  4234. </div>
  4235. <div class="tool">
  4236. <div
  4237. class="whiteBIcon"
  4238. @click="addTools(59, itemTaskIndex, toolIndex)"
  4239. >
  4240. <img
  4241. src="../../../assets/icon/fourthToolList/lineSearch.png"
  4242. alt
  4243. />
  4244. <div style="margin: 5px 0">路径搜索</div>
  4245. </div>
  4246. <div
  4247. class="check"
  4248. @click="addTools(59, itemTaskIndex, toolIndex)"
  4249. >
  4250. <img
  4251. src="../../../assets/icon/checkNo.png"
  4252. alt
  4253. v-if="itemTool.tool.indexOf(59) == -1"
  4254. />
  4255. <div class="checkDiv" v-else>
  4256. <img
  4257. src="../../../assets/icon/checkedIs.png"
  4258. alt
  4259. /><span>已选择</span>
  4260. </div>
  4261. </div>
  4262. </div>
  4263. <div class="tool">
  4264. <div
  4265. class="whiteBIcon"
  4266. @click="addTools(60, itemTaskIndex, toolIndex)"
  4267. >
  4268. <img
  4269. src="../../../assets/icon/fourthToolList/deepLearning.png"
  4270. alt
  4271. />
  4272. <div style="margin: 5px 0">深度学习</div>
  4273. </div>
  4274. <div
  4275. class="check"
  4276. @click="addTools(60, itemTaskIndex, toolIndex)"
  4277. >
  4278. <img
  4279. src="../../../assets/icon/checkNo.png"
  4280. alt
  4281. v-if="itemTool.tool.indexOf(60) == -1"
  4282. />
  4283. <div class="checkDiv" v-else>
  4284. <img
  4285. src="../../../assets/icon/checkedIs.png"
  4286. alt
  4287. /><span>已选择</span>
  4288. </div>
  4289. </div>
  4290. </div>
  4291. <div class="tool">
  4292. <div
  4293. class="whiteBIcon"
  4294. @click="addTools(61, itemTaskIndex, toolIndex)"
  4295. >
  4296. <img
  4297. src="../../../assets/icon/fourthToolList/allHistory.png"
  4298. alt
  4299. />
  4300. <div style="margin: 5px 0">全历史</div>
  4301. </div>
  4302. <div
  4303. class="check"
  4304. @click="addTools(61, itemTaskIndex, toolIndex)"
  4305. >
  4306. <img
  4307. src="../../../assets/icon/checkNo.png"
  4308. alt
  4309. v-if="itemTool.tool.indexOf(61) == -1"
  4310. />
  4311. <div class="checkDiv" v-else>
  4312. <img
  4313. src="../../../assets/icon/checkedIs.png"
  4314. alt
  4315. /><span>已选择</span>
  4316. </div>
  4317. </div>
  4318. </div>
  4319. </div>
  4320. <div class="toolSort" v-if="itemTool.toolType == 4">
  4321. <div class="tool">
  4322. <div
  4323. class="whiteBIcon"
  4324. @click="addTools(26, itemTaskIndex, toolIndex)"
  4325. >
  4326. <img
  4327. src="../../../assets/icon/thirdToolList/courseDesign.png"
  4328. alt
  4329. />
  4330. <div style="margin: 5px 0">课程设计</div>
  4331. </div>
  4332. <div
  4333. class="check"
  4334. @click="addTools(26, itemTaskIndex, toolIndex)"
  4335. >
  4336. <img
  4337. src="../../../assets/icon/checkNo.png"
  4338. alt
  4339. v-if="itemTool.tool.indexOf(26) == -1"
  4340. />
  4341. <div class="checkDiv" v-else>
  4342. <img
  4343. src="../../../assets/icon/checkedIs.png"
  4344. alt
  4345. /><span>已选择</span>
  4346. </div>
  4347. </div>
  4348. </div>
  4349. <div class="tool">
  4350. <div
  4351. class="whiteBIcon"
  4352. @click="addTools(25, itemTaskIndex, toolIndex)"
  4353. >
  4354. <img
  4355. src="../../../assets/icon/thirdToolList/evalua.png"
  4356. alt
  4357. />
  4358. <div style="margin: 5px 0">目标管理</div>
  4359. </div>
  4360. <div
  4361. class="check"
  4362. @click="addTools(25, itemTaskIndex, toolIndex)"
  4363. >
  4364. <img
  4365. src="../../../assets/icon/checkNo.png"
  4366. alt
  4367. v-if="itemTool.tool.indexOf(25) == -1"
  4368. />
  4369. <div class="checkDiv" v-else>
  4370. <img
  4371. src="../../../assets/icon/checkedIs.png"
  4372. alt
  4373. /><span>已选择</span>
  4374. </div>
  4375. </div>
  4376. </div>
  4377. <!-- <div class="tool">
  4378. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  4379. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  4380. <div style="margin: 5px 0">汉字宫</div>
  4381. </div>
  4382. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  4383. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  4384. <div class="checkDiv" v-else>
  4385. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4386. </div>
  4387. </div>
  4388. </div> -->
  4389. </div>
  4390. </div>
  4391. </div>
  4392. <div
  4393. class="addToolFun"
  4394. @click="addToolFun(itemTaskIndex)"
  4395. >
  4396. <div class="addToolImg">
  4397. <img src="../../../assets/icon/add.png" alt />
  4398. </div>
  4399. <div>添加工具</div>
  4400. </div>
  4401. </div>
  4402. </div>
  4403. <div
  4404. v-else-if="
  4405. unitJson[unitIndex].easy == 2 ||
  4406. unitJson[unitIndex].easy == 4
  4407. "
  4408. class="toolChoose"
  4409. style="padding: 0 0 0 30px"
  4410. >
  4411. <div class="tools">
  4412. <div
  4413. class="leftTools"
  4414. style="width: 95%"
  4415. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  4416. :key="toolIndex"
  4417. >
  4418. <div>
  4419. <textarea
  4420. rows="3"
  4421. type="text"
  4422. placeholder="添加工具描述"
  4423. class="binfo_input"
  4424. style="margin: 0 0 20px 0; width: 71.5% !important"
  4425. v-model="itemTool.toolDetail"
  4426. ></textarea>
  4427. </div>
  4428. <div
  4429. style="
  4430. display: flex;
  4431. flex-direction: row;
  4432. align-items: baseline;
  4433. flex-wrap: nowrap;
  4434. justify-content: flex-start;
  4435. position: relative;
  4436. "
  4437. >
  4438. <div style="margin-right: 20px; font-weight: bold">
  4439. 步骤 {{ toolIndex + 1 }} :
  4440. </div>
  4441. <div
  4442. class="remove"
  4443. @click="deleteTool(itemTaskIndex, toolIndex)"
  4444. v-if="itemTask.toolChoose.length > 1"
  4445. style="position: absolute; right: 55px"
  4446. ></div>
  4447. </div>
  4448. <div style="min-height: 163px">
  4449. <div class="toolSort">
  4450. <div class="tool">
  4451. <div
  4452. class="whiteBIcon"
  4453. @click="openTools(itemTaskIndex, 1, toolIndex)"
  4454. >
  4455. <img
  4456. src="../../../assets/icon/secondToolList/whiteBoard.png"
  4457. alt
  4458. />
  4459. <div style="margin: 5px 0">电子白板</div>
  4460. </div>
  4461. <div
  4462. class="check"
  4463. @click="addTools(1, itemTaskIndex, toolIndex)"
  4464. >
  4465. <img
  4466. src="../../../assets/icon/checkNo.png"
  4467. alt
  4468. v-if="itemTool.tool.indexOf(1) == -1"
  4469. />
  4470. <div class="checkDiv" v-else>
  4471. <img
  4472. src="../../../assets/icon/checkedIs.png"
  4473. alt
  4474. /><span>已选择</span>
  4475. </div>
  4476. </div>
  4477. </div>
  4478. <div class="tool">
  4479. <div
  4480. class="whiteBIcon"
  4481. @click="openTools(itemTaskIndex, 52, toolIndex)"
  4482. >
  4483. <img
  4484. src="../../../assets/icon/fourthToolList/text.png"
  4485. alt
  4486. />
  4487. <div style="margin: 5px 0">文档</div>
  4488. </div>
  4489. <div
  4490. class="check"
  4491. @click="addTools(52, itemTaskIndex, toolIndex)"
  4492. >
  4493. <img
  4494. src="../../../assets/icon/checkNo.png"
  4495. alt
  4496. v-if="itemTool.tool.indexOf(52) == -1"
  4497. />
  4498. <div class="checkDiv" v-else>
  4499. <img
  4500. src="../../../assets/icon/checkedIs.png"
  4501. alt
  4502. /><span>已选择</span>
  4503. </div>
  4504. </div>
  4505. </div>
  4506. <div class="tool">
  4507. <div
  4508. class="whiteBIcon"
  4509. @click="openTools(itemTaskIndex, 3, toolIndex)"
  4510. >
  4511. <img
  4512. src="../../../assets/icon/secondToolList/mindMapping.png"
  4513. alt
  4514. />
  4515. <div style="margin: 5px 0">思维导图</div>
  4516. </div>
  4517. <div
  4518. class="check"
  4519. @click="addTools(3, itemTaskIndex, toolIndex)"
  4520. >
  4521. <img
  4522. src="../../../assets/icon/checkNo.png"
  4523. alt
  4524. v-if="itemTool.tool.indexOf(3) == -1"
  4525. />
  4526. <div class="checkDiv" v-else>
  4527. <img
  4528. src="../../../assets/icon/checkedIs.png"
  4529. alt
  4530. /><span>已选择</span>
  4531. </div>
  4532. </div>
  4533. </div>
  4534. <div class="tool">
  4535. <div
  4536. class="whiteBIcon"
  4537. @click="openTools(itemTaskIndex, 4, toolIndex)"
  4538. >
  4539. <img
  4540. src="../../../assets/icon/thirdToolList/ask.png"
  4541. alt
  4542. />
  4543. <div style="margin: 5px 0">问卷调查</div>
  4544. </div>
  4545. <div
  4546. class="check"
  4547. @click="addTools(4, itemTaskIndex, toolIndex)"
  4548. >
  4549. <img
  4550. src="../../../assets/icon/checkNo.png"
  4551. alt
  4552. v-if="itemTool.tool.indexOf(4) == -1"
  4553. />
  4554. <div class="checkDiv" v-else>
  4555. <img
  4556. src="../../../assets/icon/checkedIs.png"
  4557. alt
  4558. /><span>已选择</span>
  4559. </div>
  4560. </div>
  4561. </div>
  4562. <div class="tool">
  4563. <div
  4564. class="whiteBIcon"
  4565. @click="openTools(itemTaskIndex, 45, toolIndex)"
  4566. >
  4567. <img
  4568. src="../../../assets/icon/thirdToolList/choose.png"
  4569. alt
  4570. />
  4571. <div style="margin: 5px 0">选择题</div>
  4572. </div>
  4573. <div
  4574. class="check"
  4575. @click="addTools(45, itemTaskIndex, toolIndex)"
  4576. >
  4577. <img
  4578. src="../../../assets/icon/checkNo.png"
  4579. alt
  4580. v-if="itemTool.tool.indexOf(45) == -1"
  4581. />
  4582. <div class="checkDiv" v-else>
  4583. <img
  4584. src="../../../assets/icon/checkedIs.png"
  4585. alt
  4586. /><span>已选择</span>
  4587. </div>
  4588. </div>
  4589. </div>
  4590. <div class="tool">
  4591. <div
  4592. class="whiteBIcon"
  4593. @click="openTools(itemTaskIndex, 15, toolIndex)"
  4594. >
  4595. <img
  4596. src="../../../assets/icon/thirdToolList/answer.png"
  4597. alt
  4598. />
  4599. <div style="margin: 5px 0">问答工具</div>
  4600. </div>
  4601. <div
  4602. class="check"
  4603. @click="addTools(15, itemTaskIndex, toolIndex)"
  4604. >
  4605. <img
  4606. src="../../../assets/icon/checkNo.png"
  4607. alt
  4608. v-if="itemTool.tool.indexOf(15) == -1"
  4609. />
  4610. <div class="checkDiv" v-else>
  4611. <img
  4612. src="../../../assets/icon/checkedIs.png"
  4613. alt
  4614. /><span>已选择</span>
  4615. </div>
  4616. </div>
  4617. </div>
  4618. <div class="tool">
  4619. <div
  4620. class="whiteBIcon"
  4621. @click="addTools(16, itemTaskIndex, toolIndex)"
  4622. >
  4623. <img
  4624. src="../../../assets/icon/thirdToolList/work.png"
  4625. alt
  4626. />
  4627. <div style="margin: 5px 0">作业提交</div>
  4628. </div>
  4629. <div
  4630. class="check"
  4631. @click="addTools(16, itemTaskIndex, toolIndex)"
  4632. >
  4633. <img
  4634. src="../../../assets/icon/checkNo.png"
  4635. alt
  4636. v-if="itemTool.tool.indexOf(16) == -1"
  4637. />
  4638. <div class="checkDiv" v-else>
  4639. <img
  4640. src="../../../assets/icon/checkedIs.png"
  4641. alt
  4642. /><span>已选择</span>
  4643. </div>
  4644. </div>
  4645. </div>
  4646. <div class="tool">
  4647. <div
  4648. class="whiteBIcon"
  4649. @click="openTools(itemTaskIndex, 50, toolIndex)"
  4650. >
  4651. <img
  4652. src="../../../assets/icon/thirdToolList/plwork.png"
  4653. alt
  4654. />
  4655. <div style="margin: 5px 0">批量上传</div>
  4656. </div>
  4657. <div
  4658. class="check"
  4659. @click="addTools(50, itemTaskIndex, toolIndex)"
  4660. >
  4661. <img
  4662. src="../../../assets/icon/checkNo.png"
  4663. alt
  4664. v-if="itemTool.tool.indexOf(50) == -1"
  4665. />
  4666. <div class="checkDiv" v-else>
  4667. <img
  4668. src="../../../assets/icon/checkedIs.png"
  4669. alt
  4670. /><span>已选择</span>
  4671. </div>
  4672. </div>
  4673. </div>
  4674. <div class="tool">
  4675. <div
  4676. class="whiteBIcon"
  4677. @click="openTools(itemTaskIndex, 41, toolIndex)"
  4678. >
  4679. <img
  4680. src="../../../assets/icon/thirdToolList/select.png"
  4681. alt
  4682. />
  4683. <div style="margin: 5px 0">选择填空</div>
  4684. </div>
  4685. <div
  4686. class="check"
  4687. @click="addTools(41, itemTaskIndex, toolIndex)"
  4688. >
  4689. <img
  4690. src="../../../assets/icon/checkNo.png"
  4691. alt
  4692. v-if="itemTool.tool.indexOf(41) == -1"
  4693. />
  4694. <div class="checkDiv" v-else>
  4695. <img
  4696. src="../../../assets/icon/checkedIs.png"
  4697. alt
  4698. /><span>已选择</span>
  4699. </div>
  4700. </div>
  4701. </div>
  4702. <div class="tool">
  4703. <div
  4704. class="whiteBIcon"
  4705. @click="openTools(itemTaskIndex, 47, toolIndex)"
  4706. >
  4707. <img
  4708. src="../../../assets/icon/fourthToolList/conSentences.png"
  4709. alt
  4710. />
  4711. <div style="margin: 5px 0">连词成句</div>
  4712. </div>
  4713. <div
  4714. class="check"
  4715. @click="addTools(47, itemTaskIndex, toolIndex)"
  4716. >
  4717. <img
  4718. src="../../../assets/icon/checkNo.png"
  4719. alt
  4720. v-if="itemTool.tool.indexOf(47) == -1"
  4721. />
  4722. <div class="checkDiv" v-else>
  4723. <img
  4724. src="../../../assets/icon/checkedIs.png"
  4725. alt
  4726. /><span>已选择</span>
  4727. </div>
  4728. </div>
  4729. </div>
  4730. <div class="tool">
  4731. <div
  4732. class="whiteBIcon"
  4733. @click="openTools(itemTaskIndex, 48, toolIndex)"
  4734. >
  4735. <img
  4736. src="../../../assets/icon/fourthToolList/table.png"
  4737. alt
  4738. />
  4739. <div style="margin: 5px 0">表格</div>
  4740. </div>
  4741. <div
  4742. class="check"
  4743. @click="addTools(48, itemTaskIndex, toolIndex)"
  4744. >
  4745. <img
  4746. src="../../../assets/icon/checkNo.png"
  4747. alt
  4748. v-if="itemTool.tool.indexOf(48) == -1"
  4749. />
  4750. <div class="checkDiv" v-else>
  4751. <img
  4752. src="../../../assets/icon/checkedIs.png"
  4753. alt
  4754. /><span>已选择</span>
  4755. </div>
  4756. </div>
  4757. </div>
  4758. </div>
  4759. </div>
  4760. </div>
  4761. <div
  4762. class="addToolFun"
  4763. style="margin-bottom: 20px"
  4764. @click="addToolFun(itemTaskIndex)"
  4765. >
  4766. <div class="addToolImg">
  4767. <img src="../../../assets/icon/add.png" alt />
  4768. </div>
  4769. <div>添加工具</div>
  4770. </div>
  4771. </div>
  4772. </div>
  4773. <div
  4774. v-else-if="
  4775. unitJson[unitIndex].easy == 1 ||
  4776. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  4777. "
  4778. class="toolChoose"
  4779. style="padding: 0 0 0 30px"
  4780. >
  4781. <div class="tools">
  4782. <div
  4783. class="leftTools"
  4784. style="
  4785. width: 95%;
  4786. padding: 0 0 15px 0;
  4787. margin-bottom: 15px;
  4788. "
  4789. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  4790. :key="toolIndex"
  4791. >
  4792. <div style="min-height: 163px">
  4793. <div class="toolSort">
  4794. <div class="tool">
  4795. <div
  4796. class="whiteBIcon"
  4797. @click="openTools(itemTaskIndex, 50, toolIndex)"
  4798. >
  4799. <img
  4800. src="../../../assets/icon/thirdToolList/plwork.png"
  4801. alt
  4802. />
  4803. <div style="margin: 5px 0">批量上传</div>
  4804. </div>
  4805. <div
  4806. class="check"
  4807. @click="addTools(50, itemTaskIndex, toolIndex)"
  4808. >
  4809. <img
  4810. src="../../../assets/icon/checkNo.png"
  4811. alt
  4812. v-if="itemTool.tool.indexOf(50) == -1"
  4813. />
  4814. <div class="checkDiv" v-else>
  4815. <img
  4816. src="../../../assets/icon/checkedIs.png"
  4817. alt
  4818. /><span>已选择</span>
  4819. </div>
  4820. </div>
  4821. </div>
  4822. </div>
  4823. </div>
  4824. </div>
  4825. </div>
  4826. </div>
  4827. <div
  4828. class="elist_css"
  4829. v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  4830. >
  4831. <div class="elist_title">
  4832. <div
  4833. style="
  4834. display: flex;
  4835. flex-direction: row;
  4836. align-items: center;
  4837. margin-bottom: 20px;
  4838. "
  4839. >
  4840. <div class="lineTitle">评价设置</div>
  4841. </div>
  4842. </div>
  4843. <div class="mbCss">
  4844. <div class="pjCss">
  4845. <div
  4846. v-if="itemTask.eList && itemTask.eList.length"
  4847. class="elist_input"
  4848. >
  4849. <div
  4850. v-for="(eItem, eIndex) in itemTask.eList"
  4851. :key="eIndex"
  4852. class="elist_input_box"
  4853. >
  4854. <span>评价名称:</span>
  4855. <input
  4856. type="input"
  4857. v-model="itemTask.eList[eIndex].value"
  4858. placeholder="填写评价名称"
  4859. />
  4860. <span>评星等级:</span>
  4861. <el-rate
  4862. v-model="itemTask.eList[eIndex].score"
  4863. @change="setEListStar()"
  4864. disabled
  4865. ></el-rate>
  4866. <div
  4867. class="remove"
  4868. @click="
  4869. deletEList(unitIndex, itemTaskIndex, eIndex)
  4870. "
  4871. ></div>
  4872. <div class="elist_inptu_text">
  4873. <span>评价描述:</span>
  4874. <input
  4875. type="input"
  4876. v-model="itemTask.eList[eIndex].detail"
  4877. placeholder="填写评价描述"
  4878. />
  4879. </div>
  4880. <div class="elist_inptu_text" v-if="evalua">
  4881. <span>目标:</span>
  4882. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  4883. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  4884. @change="forceUpdate()">
  4885. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  4886. :value="e.name">
  4887. </el-option>
  4888. </el-select> -->
  4889. <el-cascader
  4890. :options="targetArray"
  4891. v-model="itemTask.eList[eIndex].target"
  4892. :props="{ checkStrictly: true }"
  4893. :show-all-levels="false"
  4894. clearable
  4895. ></el-cascader>
  4896. </div>
  4897. </div>
  4898. </div>
  4899. <div
  4900. class="addToolFun"
  4901. @click="addEList(unitIndex, itemTaskIndex)"
  4902. style="margin: 35px 35px 0 0"
  4903. >
  4904. <div class="addToolImg">
  4905. <img src="../../../assets/icon/add.png" alt />
  4906. </div>
  4907. <div>添加</div>
  4908. </div>
  4909. </div>
  4910. <div
  4911. v-if="evalua"
  4912. style="
  4913. border: 1px solid #e5e5e5;
  4914. width: 55%;
  4915. margin-top: 20px;
  4916. box-shadow: 3px 1px 15px 3px #e0e0e0;
  4917. "
  4918. class="evaCss"
  4919. >
  4920. <div class="e_add_top">
  4921. <div class="e_add_title">
  4922. <span>当前使用目标管理</span>
  4923. <span>{{ eTitle }}</span>
  4924. <img
  4925. src="../../../assets/line.png"
  4926. class="cru_line"
  4927. style="
  4928. width: 125px;
  4929. height: 20px;
  4930. bottom: -10px;
  4931. left: 155px;
  4932. "
  4933. />
  4934. </div>
  4935. </div>
  4936. <div class="e_add_content" style="width: 100%">
  4937. <div class="e_add_list_pbox" style="width: 100%">
  4938. <div class="e_add_list_pbox_title">
  4939. <span class="type_title">切换模式</span>
  4940. <div class="type_content">
  4941. <span
  4942. :class="{ active: typeMode == 1 }"
  4943. @click="OtherMb(1)"
  4944. >目标树</span
  4945. >
  4946. <span
  4947. :class="{ active: typeMode == 2 }"
  4948. @click="OtherMb(2)"
  4949. >目标罗盘</span
  4950. >
  4951. <span
  4952. :class="{ active: typeMode == 3 }"
  4953. @click="OtherMb(3)"
  4954. >目标看板</span
  4955. >
  4956. </div>
  4957. </div>
  4958. <div class="e_add_list_pbox_content">
  4959. <Mind
  4960. :showBar="false"
  4961. :mindData="data"
  4962. style="width: 100%"
  4963. :jsmindId="
  4964. unitIndex + '-' + itemTaskIndex + 'mind'
  4965. "
  4966. v-if="typeMode == 1"
  4967. ></Mind>
  4968. <Sunburst
  4969. :Josn="eJson"
  4970. :num="eJSONNum"
  4971. style="width: 100%"
  4972. v-if="typeMode == 2"
  4973. >
  4974. </Sunburst>
  4975. <SeeBoard
  4976. :Josn="eJson"
  4977. :num="eJSONNum"
  4978. :ename="eTitle"
  4979. style="width: 100%"
  4980. v-if="typeMode == 3"
  4981. ></SeeBoard>
  4982. </div>
  4983. </div>
  4984. </div>
  4985. </div>
  4986. </div>
  4987. </div>
  4988. <div class="funBlock" style="padding: 0">
  4989. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  4990. <div>折叠</div>
  4991. <div class="arrow">
  4992. <img src="../../../assets/icon/fold.png" alt />
  4993. </div>
  4994. </div>
  4995. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  4996. <div>展开</div>
  4997. <div class="arrow">
  4998. <img src="../../../assets/icon/expand.png" alt />
  4999. </div>
  5000. </div>
  5001. </div>
  5002. </div>
  5003. <div
  5004. class="addTaskBorder"
  5005. @click="addTaskBorder"
  5006. v-if="!unitJson[unitIndex].easy"
  5007. >
  5008. <div>
  5009. <img src="../../../assets/icon/addHw.png" alt />
  5010. <span>添加任务</span>
  5011. </div>
  5012. </div>
  5013. </div>
  5014. </div>
  5015. </div>
  5016. <div class="rightBox" v-if="this.steps == 4">
  5017. <div class="basic_box_success">
  5018. <div class="right_img">
  5019. <img src="../../../assets/icon/right.png" alt />
  5020. </div>
  5021. <div style="font-weight: bold">成功</div>
  5022. <!-- <div>您的课程编号</div>
  5023. <div class="number">{{ number }}</div>-->
  5024. <!-- <div class="success_button">
  5025. <div class="look_course" @click="isNoFinsh">
  5026. 邀请老师协同编辑
  5027. </div>
  5028. <div class="attend_others" @click="goCourse">预览课程</div>
  5029. </div> -->
  5030. </div>
  5031. </div>
  5032. <div class="info_btnBox">
  5033. <button
  5034. class="c_pub_button_return pub_btn_return_img"
  5035. @click="lastSteps"
  5036. >
  5037. 返回课程
  5038. </button>
  5039. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps" v-if="this.steps == 1">
  5040. 确认上传
  5041. </button>
  5042. </div>
  5043. </div>
  5044. </div>
  5045. </div>
  5046. <el-dialog
  5047. title="提示"
  5048. :visible.sync="dialogVisible"
  5049. :append-to-body="true"
  5050. width="25%"
  5051. :before-close="handleClose"
  5052. class="dialog_diy2 customWidth"
  5053. >
  5054. <div>请复制该链接邀请协同编辑</div>
  5055. <div>http://www.boomyon.com/index-zhang.com</div>
  5056. <span slot="footer" class="dialog-footer">
  5057. <el-button type="primary">复制链接分享</el-button>
  5058. <el-button @click="dialogVisible = false">取消</el-button>
  5059. </span>
  5060. </el-dialog>
  5061. <el-dialog
  5062. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  5063. :visible.sync="dialogVisible1"
  5064. :append-to-body="true"
  5065. width="25%"
  5066. :before-close="handleClose"
  5067. class="dialog_diy2 customWidth"
  5068. >
  5069. <el-form>
  5070. <el-form-item label="文档标题">
  5071. <el-input
  5072. v-model="tTitle"
  5073. auto-complete="off"
  5074. placeholder="请输入文档标题名..."
  5075. ></el-input>
  5076. </el-form-item>
  5077. <div>文档简介</div>
  5078. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  5079. </el-form>
  5080. <span slot="footer" class="dialog-footer">
  5081. <el-button @click="dialogVisible1 = false">取 消</el-button>
  5082. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  5083. >添加</el-button
  5084. >
  5085. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  5086. </span>
  5087. </el-dialog>
  5088. <el-dialog
  5089. title="添加文档"
  5090. :visible.sync="dialogVisible2"
  5091. :append-to-body="true"
  5092. width="500px"
  5093. :before-close="handleClose"
  5094. class="dialog_diy"
  5095. >
  5096. <el-form>
  5097. <el-form-item label="文档标题">
  5098. <el-input
  5099. v-model="templateC.title"
  5100. auto-complete="off"
  5101. placeholder="请输入文档标题名..."
  5102. ></el-input>
  5103. </el-form-item>
  5104. <div>文档内容</div>
  5105. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  5106. </el-form>
  5107. <span slot="footer" class="dialog-footer">
  5108. <el-button @click="clearChoose">取 消</el-button>
  5109. <el-button type="primary" @click="wordNext()">确定</el-button>
  5110. </span>
  5111. </el-dialog>
  5112. <el-dialog
  5113. title="添加富文本"
  5114. :visible.sync="dialogVisible6"
  5115. :append-to-body="true"
  5116. width="500px"
  5117. :before-close="handleClose"
  5118. class="dialog_diy"
  5119. >
  5120. <el-form>
  5121. <el-form-item label="文本标题">
  5122. <el-input
  5123. v-model="AttText.title"
  5124. auto-complete="off"
  5125. @input="change2"
  5126. placeholder="请输入文本标题..."
  5127. ></el-input>
  5128. </el-form-item>
  5129. <div>富文本内容</div>
  5130. <editor-bar
  5131. v-model="AttText.text"
  5132. @change="change"
  5133. v-if="dialogVisible6"
  5134. ></editor-bar>
  5135. </el-form>
  5136. <span slot="footer" class="dialog-footer">
  5137. <el-button @click="clearAttText">取 消</el-button>
  5138. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  5139. </span>
  5140. </el-dialog>
  5141. <el-dialog
  5142. title="添加链接"
  5143. :visible.sync="dialogVisible7"
  5144. :append-to-body="true"
  5145. width="500px"
  5146. :before-close="handleClose"
  5147. class="dialog_diy lineCss"
  5148. >
  5149. <el-form>
  5150. <el-form-item label="标题" :label-width="formLabelWidth">
  5151. <span>
  5152. <el-input
  5153. placeholder="请输入链接标题"
  5154. clearable
  5155. v-model="lineTitle"
  5156. class="add_input"
  5157. ></el-input>
  5158. </span>
  5159. </el-form-item>
  5160. <el-form-item label="链接" :label-width="formLabelWidth">
  5161. <span>
  5162. <el-input
  5163. placeholder="请输入链接"
  5164. clearable
  5165. v-model="line"
  5166. class="add_input"
  5167. ></el-input>
  5168. </span>
  5169. </el-form-item>
  5170. </el-form>
  5171. <span slot="footer" class="dialog-footer">
  5172. <el-button @click="clearLine">取 消</el-button>
  5173. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  5174. </span>
  5175. </el-dialog>
  5176. <el-dialog
  5177. title="添加资源"
  5178. :visible.sync="dialogVisibleSource"
  5179. :append-to-body="true"
  5180. width="100%"
  5181. :before-close="handleClose"
  5182. class="dialog_diy source_diy"
  5183. >
  5184. <div>
  5185. <sourceDialog :sourceData="sourceData"></sourceDialog>
  5186. </div>
  5187. <span slot="footer" class="dialog-footer">
  5188. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  5189. <el-button type="primary" @click="addSource">确定</el-button>
  5190. </span>
  5191. </el-dialog>
  5192. <el-dialog
  5193. title="添加课程成员"
  5194. :visible.sync="dialogVisible3"
  5195. :append-to-body="true"
  5196. width="25%"
  5197. height="80%"
  5198. :before-close="handleClose"
  5199. class="addNewPP customWidth"
  5200. >
  5201. <div class="people">
  5202. <div class="people_top">
  5203. <div class="people_nav">选择成员</div>
  5204. <div class="people_top_right">
  5205. <div class="people_search">
  5206. <el-input
  5207. style="height: 100%"
  5208. placeholder="搜索成员名称"
  5209. v-model="searchPeople"
  5210. ></el-input>
  5211. <div class="search_img" @click="searchStudent">
  5212. <img src="../../../assets/icon/search.png" alt />
  5213. </div>
  5214. </div>
  5215. </div>
  5216. </div>
  5217. <el-checkbox-group v-model="checkboxList" class="people_name">
  5218. <el-checkbox
  5219. v-for="item in studentJuri"
  5220. :key="item.userid"
  5221. :label="item.userid"
  5222. >{{ item.name ? item.name : "暂无学生可选" }}</el-checkbox
  5223. >
  5224. </el-checkbox-group>
  5225. </div>
  5226. <span slot="footer" class="dialog-footer">
  5227. <el-button @click="dialogVisible3 = false">取 消</el-button>
  5228. <el-button type="primary" @click="isAddPP">确定</el-button>
  5229. </span>
  5230. </el-dialog>
  5231. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  5232. :before-close="handleClose" class="addNewPP">
  5233. <div class="people" style="height: 300px">
  5234. <div class="people_top">
  5235. <div class="people_top_right">
  5236. <div class="people_search">
  5237. <el-select v-model="gradeId" placeholder="请选择年级" class="student_input" clearable @change="getClass()">
  5238. <el-option label="全部" value=""></el-option>
  5239. <el-option v-for="(item, index) in gradeList" :key="index" :label="item.name" :value="item.id"></el-option>
  5240. </el-select>
  5241. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  5242. <!-- @click="getClass()"
  5243. @keyup.enter.native="getClass()"
  5244. -->
  5245. <div class="search_img">
  5246. <img src="../../../assets/icon/search.png" alt />
  5247. </div>
  5248. </div>
  5249. </div>
  5250. <div class="people_nav">选择班级</div>
  5251. </div>
  5252. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange" v-if="grade2.length" >
  5253. <div v-for="item in grade2" :key="item.id" class="p_box">
  5254. <el-checkbox :label="item.id">
  5255. {{ item.name }}
  5256. </el-checkbox>
  5257. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
  5258. 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
  5259. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
  5260. @click="OpenInviteD(item.id)">随机码设置</div>
  5261. <img src="../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
  5262. </div>
  5263. </el-checkbox-group>
  5264. <div v-if="!grade2.length" style="padding:20px 10px">暂无数据</div>
  5265. </div>
  5266. <span slot="footer" class="dialog-footer">
  5267. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  5268. <el-button type="primary" @click="isAddClass">确定</el-button>
  5269. </span>
  5270. </el-dialog>
  5271. <el-dialog
  5272. title="添加协同成员"
  5273. :visible.sync="dialogVisibleMember"
  5274. :append-to-body="true"
  5275. width="25%"
  5276. height="80%"
  5277. :before-close="handleClose"
  5278. class="addNewPP customWidth"
  5279. >
  5280. <div class="people">
  5281. <div class="people_top">
  5282. <div class="people_top_right">
  5283. <div class="people_search">
  5284. <el-input
  5285. placeholder="搜索成员名称"
  5286. v-model="searchTN"
  5287. @keyup.enter.native="getTeacher"
  5288. ></el-input>
  5289. <div class="search_img" @click="getTeacher">
  5290. <img src="../../../assets/icon/search.png" alt />
  5291. </div>
  5292. </div>
  5293. </div>
  5294. <div class="people_nav">选择成员</div>
  5295. </div>
  5296. <el-checkbox-group
  5297. v-model="checkboxList3"
  5298. class="people_name"
  5299. v-if="teacherJuri.length"
  5300. >
  5301. <el-checkbox
  5302. v-for="item in teacherJuri"
  5303. :key="item.userid"
  5304. :label="item.userid"
  5305. >
  5306. <div class="t_j_box">
  5307. <el-tooltip
  5308. placement="top"
  5309. :content="item.name ? item.name : '暂无姓名'"
  5310. >
  5311. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  5312. </el-tooltip>
  5313. <el-tooltip placement="top" :content="item.username">
  5314. <span>{{ item.username }}</span>
  5315. </el-tooltip>
  5316. <el-tooltip placement="top" :content="item.school">
  5317. <span>{{ item.school }}</span>
  5318. </el-tooltip>
  5319. </div>
  5320. </el-checkbox>
  5321. </el-checkbox-group>
  5322. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  5323. </div>
  5324. <span slot="footer" class="dialog-footer">
  5325. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  5326. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  5327. </span>
  5328. </el-dialog>
  5329. <el-dialog
  5330. title="创建问卷"
  5331. :visible.sync="dialogVisible5"
  5332. :append-to-body="true"
  5333. width="800px"
  5334. :before-close="handleClose"
  5335. class="dialog_diy"
  5336. >
  5337. <div>
  5338. <div
  5339. class="a_add_title"
  5340. style="
  5341. display: flex;
  5342. flex-direction: row;
  5343. align-items: center;
  5344. justify-content: center;
  5345. "
  5346. >
  5347. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5348. <el-input
  5349. v-model="askJson.askTitle"
  5350. placeholder="请输入标题"
  5351. style="width: 400px"
  5352. ></el-input>
  5353. </div>
  5354. <div class="a_addBox">
  5355. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  5356. <div
  5357. class="a_add_box"
  5358. v-for="(item1, index1) in askJson.askCount"
  5359. :key="index1"
  5360. >
  5361. <div class="a_add_checkType">
  5362. <span
  5363. :class="{
  5364. active:
  5365. askJson.askJson[index1].type == '1' ||
  5366. !askJson.askJson[index1].type,
  5367. }"
  5368. @click="checkAskType('1', askJson.askJson[index1])"
  5369. >单选题</span
  5370. >
  5371. <span
  5372. :class="{ active: askJson.askJson[index1].type == '2' }"
  5373. @click="checkAskType('2', askJson.askJson[index1])"
  5374. >多选题</span
  5375. >
  5376. </div>
  5377. <div class="a_add_head">
  5378. <div>
  5379. {{ index1 + 1 + "、" }}
  5380. <el-input
  5381. class="a_add_head_input"
  5382. v-model="askJson.askJson[index1].askstitle"
  5383. placeholder="请输入题目..."
  5384. >
  5385. </el-input>
  5386. </div>
  5387. <div class="a_add_head_div">
  5388. <el-button type="primary" size="small" @click="addAskList()"
  5389. >添加</el-button
  5390. >
  5391. <el-button
  5392. type="primary"
  5393. size="small"
  5394. @click="deleteAskList(index1)"
  5395. v-if="askJson.askCount != 1"
  5396. >删除
  5397. </el-button>
  5398. </div>
  5399. </div>
  5400. <div class="a_add_body">
  5401. <div class="a_add_input">
  5402. <el-input
  5403. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  5404. :key="checkIndex"
  5405. v-model="askJson.askJson[index1].checkList[checkIndex]"
  5406. placeholder="请输入选项..."
  5407. style="width: 150px; margin: 10px 10px 0 0"
  5408. ></el-input>
  5409. </div>
  5410. <div class="a_add_body_div">
  5411. <el-button
  5412. style="margin: 10px 0px 0 0"
  5413. type="primary"
  5414. size="small"
  5415. @click="addcheckList(askJson.askJson[index1])"
  5416. >添加</el-button
  5417. >
  5418. <el-button
  5419. type="primary"
  5420. size="small"
  5421. style="margin: 10px 0 0 10px"
  5422. @click="deletecheckList(askJson.askJson[index1])"
  5423. v-if="askJson.askJson[index1].askItem != 1"
  5424. >删除
  5425. </el-button>
  5426. </div>
  5427. </div>
  5428. </div>
  5429. </div>
  5430. </div>
  5431. <span slot="footer" class="dialog-footer">
  5432. <el-button @click="dialogVisible5 = false">取 消</el-button>
  5433. <el-button type="primary" @click="addAsk">确 定</el-button>
  5434. </span>
  5435. </el-dialog>
  5436. <el-dialog
  5437. title="创建选择题"
  5438. :visible.sync="dialogVisibleChoice"
  5439. :append-to-body="true"
  5440. width="800px"
  5441. :before-close="handleClose"
  5442. class="dialog_diy"
  5443. >
  5444. <div>
  5445. <!-- <div class="a_add_title" style="
  5446. display: flex;
  5447. flex-direction: row;
  5448. align-items: center;
  5449. justify-content: center;
  5450. ">
  5451. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5452. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  5453. </div> -->
  5454. <div class="a_addBox">
  5455. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  5456. 请输入题目内容
  5457. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px">智能粘贴</button>
  5458. </div>
  5459. <div
  5460. class="a_add_box"
  5461. v-for="(item1, index1) in testJson.testCount"
  5462. :key="index1"
  5463. >
  5464. <div class="a_add_checkType">
  5465. <span
  5466. :class="{ active: testJson.testJson[index1].type == '1' }"
  5467. @click="checkTestType('1', testJson.testJson[index1])"
  5468. >单选题</span
  5469. >
  5470. <span
  5471. :class="{ active: testJson.testJson[index1].type == '2' }"
  5472. @click="checkTestType('2', testJson.testJson[index1])"
  5473. >多选题</span
  5474. >
  5475. </div>
  5476. <div class="a_add_head">
  5477. <div class="timuUpImg">
  5478. <div>
  5479. {{ index1 + 1 + "、" }}
  5480. <el-input
  5481. class="a_add_head_input"
  5482. v-model="testJson.testJson[index1].teststitle"
  5483. placeholder="请输入题目..."
  5484. >
  5485. </el-input>
  5486. </div>
  5487. <div class="xzUpImg" @click.stop="addImg($event)">
  5488. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5489. <input
  5490. type="file"
  5491. accept="image/*"
  5492. style="display: none"
  5493. @change="beforeUploadTiMu($event, index1)"
  5494. />
  5495. </div>
  5496. </div>
  5497. <div class="a_add_head_div">
  5498. <el-button type="primary" size="small" @click="addTestList()"
  5499. >添加</el-button
  5500. >
  5501. <el-button
  5502. type="primary"
  5503. size="small"
  5504. @click="deleteTestList(index1)"
  5505. v-if="testJson.testCount != 1"
  5506. >删除
  5507. </el-button>
  5508. </div>
  5509. </div>
  5510. <div
  5511. class="timuImgBox"
  5512. v-if="
  5513. testJson.testJson[index1].timuList &&
  5514. testJson.testJson[index1].timuList.length
  5515. "
  5516. >
  5517. <div
  5518. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  5519. :key="tIndex"
  5520. class="timuImg"
  5521. @click.stop="previewImg(timg.src)"
  5522. >
  5523. <img :src="timg.src" alt="" />
  5524. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  5525. <img src="../../../assets/icon/delete.png" alt="" />
  5526. </div>
  5527. </div>
  5528. </div>
  5529. <div class="a_add_body">
  5530. <div class="a_add_input a_add_input_choice">
  5531. <el-radio-group
  5532. v-model="testJson.testJson[index1].answer"
  5533. v-if="testJson.testJson[index1].type == 1"
  5534. >
  5535. <div class="radioBox">
  5536. <el-radio
  5537. v-for="(item2, checkIndex) in testJson.testJson[index1]
  5538. .testItem"
  5539. :key="checkIndex"
  5540. :label="checkIndex"
  5541. >
  5542. <div style="margin-right: 10px">
  5543. 选项{{ checkIndex + 1 }}
  5544. </div>
  5545. <div
  5546. style="margin-right: 10px; width: 300px"
  5547. v-if="
  5548. testJson.testJson[index1].checkList[checkIndex] &&
  5549. testJson.testJson[index1].checkList[checkIndex]
  5550. .imgType &&
  5551. testJson.testJson[index1].checkList[checkIndex]
  5552. .imgType == 1
  5553. "
  5554. >
  5555. <div
  5556. class="inImg"
  5557. @click.stop="
  5558. previewImg(
  5559. testJson.testJson[index1].checkList[checkIndex]
  5560. .src
  5561. )
  5562. "
  5563. >
  5564. <el-image
  5565. :src="
  5566. testJson.testJson[index1].checkList[checkIndex]
  5567. .src
  5568. "
  5569. lazy
  5570. />
  5571. <!-- <img :src="
  5572. testJson.testJson[index1].checkList[checkIndex]
  5573. .src
  5574. " alt="" /> -->
  5575. </div>
  5576. </div>
  5577. <el-input
  5578. v-else
  5579. v-model="
  5580. testJson.testJson[index1].checkList[checkIndex]
  5581. "
  5582. placeholder="请输入选项..."
  5583. style="width: 300px; margin-right: 10px"
  5584. ></el-input>
  5585. <div class="xzUpImg" @click.stop="addImg($event)">
  5586. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5587. <input
  5588. type="file"
  5589. accept="image/*"
  5590. style="display: none"
  5591. @change="beforeUploadTi($event, index1, checkIndex)"
  5592. />
  5593. </div>
  5594. </el-radio>
  5595. </div>
  5596. </el-radio-group>
  5597. <el-checkbox-group
  5598. v-model="testJson.testJson[index1].answer"
  5599. v-if="testJson.testJson[index1].type == '2'"
  5600. >
  5601. <div class="radioBox">
  5602. <el-checkbox
  5603. v-for="(item2, checkIndex1) in testJson.testJson[index1]
  5604. .testItem"
  5605. :key="checkIndex1"
  5606. :label="checkIndex1"
  5607. >
  5608. <div style="margin-right: 10px">
  5609. 选项{{ checkIndex1 + 1 }}
  5610. </div>
  5611. <div
  5612. style="margin-right: 10px; width: 300px"
  5613. v-if="
  5614. testJson.testJson[index1].checkList[checkIndex1] &&
  5615. testJson.testJson[index1].checkList[checkIndex1]
  5616. .imgType &&
  5617. testJson.testJson[index1].checkList[checkIndex1]
  5618. .imgType == 1
  5619. "
  5620. >
  5621. <div
  5622. class="inImg"
  5623. @click.stop="
  5624. previewImg(
  5625. testJson.testJson[index1].checkList[checkIndex1]
  5626. .src
  5627. )
  5628. "
  5629. >
  5630. <el-image
  5631. :src="
  5632. testJson.testJson[index1].checkList[checkIndex1]
  5633. .src
  5634. "
  5635. lazy
  5636. />
  5637. <!-- <img :src="
  5638. testJson.testJson[index1].checkList[checkIndex1]
  5639. .src
  5640. " alt="" /> -->
  5641. </div>
  5642. </div>
  5643. <el-input
  5644. v-else
  5645. v-model="
  5646. testJson.testJson[index1].checkList[checkIndex1]
  5647. "
  5648. placeholder="请输入选项..."
  5649. style="width: 300px; margin-right: 10px"
  5650. ></el-input>
  5651. <div class="xzUpImg" @click.stop="addImg($event)">
  5652. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5653. <input
  5654. type="file"
  5655. accept="image/*"
  5656. style="display: none"
  5657. @change="beforeUploadTi($event, index1, checkIndex1)"
  5658. />
  5659. </div>
  5660. </el-checkbox>
  5661. </div>
  5662. </el-checkbox-group>
  5663. </div>
  5664. <div class="a_add_body_div" style="margin-bottom: 3px">
  5665. <el-button
  5666. type="primary"
  5667. size="small"
  5668. @click="addTcheckList(testJson.testJson[index1])"
  5669. >添加</el-button
  5670. >
  5671. <el-button
  5672. type="primary"
  5673. size="small"
  5674. @click="deleteTcheckList(testJson.testJson[index1])"
  5675. v-if="testJson.testJson[index1].testItem != 1"
  5676. >删除
  5677. </el-button>
  5678. </div>
  5679. </div>
  5680. </div>
  5681. </div>
  5682. </div>
  5683. <span slot="footer" class="dialog-footer">
  5684. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  5685. <el-button type="primary" @click="addTest">确 定</el-button>
  5686. </span>
  5687. </el-dialog>
  5688. <el-dialog
  5689. title="添加工具"
  5690. :visible.sync="dialogVisible4"
  5691. :append-to-body="true"
  5692. width="600px"
  5693. :before-close="handleClose"
  5694. class="dialog_diy addToolsDia"
  5695. >
  5696. <div class="toolChoose" style="padding: 0 0 0 30px">
  5697. <div class="tools">
  5698. <div
  5699. class="leftTools"
  5700. style="
  5701. width: 95%;
  5702. padding: 0 0 15px 0;
  5703. margin: 15px 0;
  5704. "
  5705. v-for="(itemTools, itemToolsIndex) in chapTools"
  5706. :key="itemToolsIndex"
  5707. >
  5708. <div
  5709. style="
  5710. display: flex;
  5711. flex-direction: row;
  5712. align-items: baseline;
  5713. flex-wrap: nowrap;
  5714. justify-content: flex-start;
  5715. position: relative;
  5716. "
  5717. >
  5718. <div class="chooseWho">
  5719. <div
  5720. :class="chapToolsType == 0 ? 'isChooseActive' : ''"
  5721. @click="chapToolsType = 0"
  5722. >
  5723. 互动类
  5724. </div>
  5725. <div
  5726. :class="chapToolsType == 1 ? 'isChooseActive' : ''"
  5727. @click="chapToolsType = 1"
  5728. >
  5729. 思维类
  5730. </div>
  5731. <div
  5732. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  5733. @click="chapToolsType = 2"
  5734. >
  5735. 评价类
  5736. </div>
  5737. <div
  5738. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  5739. @click="chapToolsType = 2"
  5740. >
  5741. 其他
  5742. </div>
  5743. </div>
  5744. </div>
  5745. <div style="min-height: 163px">
  5746. <div class="toolSort" v-if="chapToolsType == 0">
  5747. <div class="tool">
  5748. <div class="whiteBIcon" @click="chapAddTools(8)">
  5749. <img
  5750. src="../../../assets/icon/secondToolList/library.png"
  5751. alt
  5752. />
  5753. <div style="margin: 5px 0">素材库</div>
  5754. </div>
  5755. <div class="check" @click="chapAddTools(8)">
  5756. <img
  5757. src="../../../assets/icon/checkNo.png"
  5758. alt
  5759. v-if="itemTools.tools.indexOf(8) == -1"
  5760. />
  5761. <div class="checkDiv" v-else>
  5762. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5763. >已选择</span
  5764. >
  5765. </div>
  5766. </div>
  5767. </div>
  5768. </div>
  5769. <div class="toolSort" v-if="chapToolsType == 1">
  5770. <div class="tool">
  5771. <div class="whiteBIcon" @click="chapAddTools(7)">
  5772. <img
  5773. src="../../../assets/icon/secondToolList/mindNetwork.png"
  5774. alt
  5775. />
  5776. <div style="margin: 5px 0">思维网格</div>
  5777. </div>
  5778. <div class="check" @click="chapAddTools(7)">
  5779. <img
  5780. src="../../../assets/icon/checkNo.png"
  5781. alt
  5782. v-if="itemTools.tools.indexOf(7) == -1"
  5783. />
  5784. <div class="checkDiv" v-else>
  5785. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5786. >已选择</span
  5787. >
  5788. </div>
  5789. </div>
  5790. </div>
  5791. <div class="tool">
  5792. <div class="whiteBIcon" @click="chapAddTools(1)">
  5793. <img
  5794. src="../../../assets/icon/secondToolList/whiteBoard.png"
  5795. alt
  5796. />
  5797. <div style="margin: 5px 0">电子白板</div>
  5798. </div>
  5799. <div class="check" @click="chapAddTools(1)">
  5800. <img
  5801. src="../../../assets/icon/checkNo.png"
  5802. alt
  5803. v-if="itemTools.tools.indexOf(1) == -1"
  5804. />
  5805. <div class="checkDiv" v-else>
  5806. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5807. >已选择</span
  5808. >
  5809. </div>
  5810. </div>
  5811. </div>
  5812. <div class="tool">
  5813. <div class="whiteBIcon" @click="chapAddTools(2)">
  5814. <img
  5815. src="../../../assets/icon/secondToolList/note.png"
  5816. alt
  5817. />
  5818. <div style="margin: 5px 0">便签</div>
  5819. </div>
  5820. <div class="check" @click="chapAddTools(2)">
  5821. <img
  5822. src="../../../assets/icon/checkNo.png"
  5823. alt
  5824. v-if="itemTools.tools.indexOf(2) == -1"
  5825. />
  5826. <div class="checkDiv" v-else>
  5827. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5828. >已选择</span
  5829. >
  5830. </div>
  5831. </div>
  5832. </div>
  5833. <div class="tool">
  5834. <div class="whiteBIcon" @click="chapAddTools(6)">
  5835. <img
  5836. src="../../../assets/icon/secondToolList/doc.png"
  5837. alt
  5838. />
  5839. <div style="margin: 5px 0">协同文档</div>
  5840. </div>
  5841. <div class="check" @click="chapAddTools(6)">
  5842. <img
  5843. src="../../../assets/icon/checkNo.png"
  5844. alt
  5845. v-if="itemTools.tools.indexOf(6) == -1"
  5846. />
  5847. <div class="checkDiv" v-else>
  5848. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5849. >已选择</span
  5850. >
  5851. </div>
  5852. </div>
  5853. </div>
  5854. <div class="tool">
  5855. <div class="whiteBIcon" @click="chapAddTools(3)">
  5856. <img
  5857. src="../../../assets/icon/secondToolList/mindMapping.png"
  5858. alt
  5859. />
  5860. <div style="margin: 5px 0">思维导图</div>
  5861. </div>
  5862. <div class="check" @click="chapAddTools(3)">
  5863. <img
  5864. src="../../../assets/icon/checkNo.png"
  5865. alt
  5866. v-if="itemTools.tools.indexOf(3) == -1"
  5867. />
  5868. <div class="checkDiv" v-else>
  5869. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5870. >已选择</span
  5871. >
  5872. </div>
  5873. </div>
  5874. </div>
  5875. <div class="tool">
  5876. <div class="whiteBIcon" @click="chapAddTools(31)">
  5877. <img
  5878. src="../../../assets/icon/secondToolList/networkPanel.png"
  5879. alt
  5880. />
  5881. <div style="margin: 5px 0">数学画板</div>
  5882. </div>
  5883. <div class="check" @click="chapAddTools(31)">
  5884. <img
  5885. src="../../../assets/icon/checkNo.png"
  5886. alt
  5887. v-if="itemTools.tools.indexOf(31) == -1"
  5888. />
  5889. <div class="checkDiv" v-else>
  5890. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5891. >已选择</span
  5892. >
  5893. </div>
  5894. </div>
  5895. </div>
  5896. </div>
  5897. <div class="toolSort" v-if="chapToolsType == 2">
  5898. <div class="tool">
  5899. <div class="whiteBIcon" @click="chapAddTools(5)">
  5900. <img
  5901. src="../../../assets/icon/thirdToolList/score.png"
  5902. alt
  5903. />
  5904. <div style="margin: 5px 0">量规评分</div>
  5905. </div>
  5906. <div class="check" @click="chapAddTools(5)">
  5907. <img
  5908. src="../../../assets/icon/checkNo.png"
  5909. alt
  5910. v-if="itemTools.tools.indexOf(5) == -1"
  5911. />
  5912. <div class="checkDiv" v-else>
  5913. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5914. >已选择</span
  5915. >
  5916. </div>
  5917. </div>
  5918. </div>
  5919. <div class="tool">
  5920. <div
  5921. class="whiteBIcon"
  5922. @click="openTools(chapCount, 4, null)"
  5923. >
  5924. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  5925. <div style="margin: 5px 0">问卷调查</div>
  5926. </div>
  5927. <div class="check" @click="chapAddTools(4)">
  5928. <img
  5929. src="../../../assets/icon/checkNo.png"
  5930. alt
  5931. v-if="itemTools.tools.indexOf(4) == -1"
  5932. />
  5933. <div class="checkDiv" v-else>
  5934. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5935. >已选择</span
  5936. >
  5937. </div>
  5938. </div>
  5939. </div>
  5940. </div>
  5941. </div>
  5942. <div>
  5943. <input
  5944. type="text"
  5945. placeholder="添加工具描述"
  5946. class="binfo_input"
  5947. style="margin: 20px 0; width: 71.5% !important"
  5948. v-model="itemTools.toolDetail"
  5949. />
  5950. </div>
  5951. </div>
  5952. </div>
  5953. </div>
  5954. <span slot="footer" class="dialog-footer">
  5955. <el-button @click="dialogVisible4 = false">取 消</el-button>
  5956. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  5957. </span>
  5958. </el-dialog>
  5959. <el-dialog
  5960. title="添加问答"
  5961. :visible.sync="dialogVisible8"
  5962. :append-to-body="true"
  5963. width="500px"
  5964. :before-close="handleClose"
  5965. class="dialog_diy"
  5966. >
  5967. <div>
  5968. <div
  5969. class="a_add_title"
  5970. style="
  5971. display: flex;
  5972. flex-direction: column;
  5973. align-items: flex-start;
  5974. justify-content: center;
  5975. "
  5976. >
  5977. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  5978. <el-input
  5979. v-model="answerQ"
  5980. placeholder="请输入您要问的问题"
  5981. ></el-input>
  5982. </div>
  5983. </div>
  5984. <span slot="footer" class="dialog-footer">
  5985. <el-button @click="dialogVisible8 = false">取 消</el-button>
  5986. <el-button type="primary" @click="addAnswer">确 定</el-button>
  5987. </span>
  5988. </el-dialog>
  5989. <el-dialog
  5990. title="添加问题"
  5991. :visible.sync="dialogVisibleMp3"
  5992. :append-to-body="true"
  5993. width="500px"
  5994. :before-close="handleClose"
  5995. class="dialog_diy"
  5996. >
  5997. <div>
  5998. <div
  5999. class="a_add_title"
  6000. style="
  6001. display: flex;
  6002. flex-direction: column;
  6003. align-items: flex-start;
  6004. justify-content: center;
  6005. "
  6006. >
  6007. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6008. <el-input
  6009. v-model="answerQ"
  6010. placeholder="请输入您想要回答的问题"
  6011. ></el-input>
  6012. </div>
  6013. </div>
  6014. <span slot="footer" class="dialog-footer">
  6015. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  6016. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  6017. </span>
  6018. </el-dialog>
  6019. <el-dialog
  6020. title="上传图片"
  6021. :visible.sync="choosePicVisible"
  6022. :append-to-body="true"
  6023. width="500px"
  6024. :before-close="handleClose"
  6025. class="dialog_diy"
  6026. >
  6027. <div>
  6028. <div class="fileCss" style="padding-top: 20px">
  6029. <div>
  6030. <button class="info_btn" @click="addImg($event)">
  6031. 选择本地文件
  6032. <input
  6033. type="file"
  6034. accept="image/*"
  6035. style="display: none"
  6036. @change="beforeUpload1"
  6037. />
  6038. </button>
  6039. </div>
  6040. <div>
  6041. <el-button
  6042. @click="getAllBanner"
  6043. v-if="isSysPic == false && cover.length == 0"
  6044. >选择系统文件</el-button
  6045. >
  6046. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  6047. <img :src="cover[0].url" alt="" />
  6048. <div class="deletePic" @click="deleteSysPic">
  6049. <img src="../../../assets/icon/delete.png" alt="" />
  6050. </div>
  6051. </div>
  6052. </div>
  6053. </div>
  6054. <div class="fileCss">
  6055. <div>选择本地文件</div>
  6056. <div>选择系统文件</div>
  6057. </div>
  6058. </div>
  6059. <span slot="footer" class="dialog-footer">
  6060. <el-button @click="choosePicVisible = false">取 消</el-button>
  6061. <el-button type="primary" @click="choosePicVisible = false"
  6062. >确 定</el-button
  6063. >
  6064. </span>
  6065. </el-dialog>
  6066. <el-dialog
  6067. title="选择系统文件"
  6068. :visible.sync="sysPicVisible"
  6069. :append-to-body="true"
  6070. width="710px"
  6071. :before-close="handleClose"
  6072. class="dialog_diy"
  6073. >
  6074. <div class="cru_selectBox" style="margin: 0">
  6075. <div
  6076. @click="getChoosePic(1)"
  6077. class="cru_select"
  6078. :class="chooseType == 1 ? 'cru_selected' : ''"
  6079. >
  6080. 绘画
  6081. </div>
  6082. <div
  6083. @click="getChoosePic(2)"
  6084. class="cru_select"
  6085. :class="chooseType == 2 ? 'cru_selected' : ''"
  6086. >
  6087. 科技
  6088. </div>
  6089. <div
  6090. @click="getChoosePic(3)"
  6091. class="cru_select"
  6092. :class="chooseType == 3 ? 'cru_selected' : ''"
  6093. >
  6094. 人文
  6095. </div>
  6096. <div
  6097. @click="getChoosePic(4)"
  6098. class="cru_select"
  6099. :class="chooseType == 4 ? 'cru_selected' : ''"
  6100. >
  6101. 艺术
  6102. </div>
  6103. </div>
  6104. <div class="sysPicBox">
  6105. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  6106. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  6107. </div>
  6108. </div>
  6109. <span slot="footer" class="dialog-footer">
  6110. <el-button @click="sysPicVisible = false">取 消</el-button>
  6111. <el-button type="primary">确 定</el-button>
  6112. </span>
  6113. </el-dialog>
  6114. <el-dialog
  6115. title="选择填空"
  6116. :visible.sync="dialogVisibleSelect"
  6117. :append-to-body="true"
  6118. width="800px"
  6119. :before-close="handleClose"
  6120. class="dialog_diy dialog_diy3"
  6121. >
  6122. <div v-if="selectJson">
  6123. <div class="select_box1" v-if="selectSteps == 1">
  6124. <div class="select_box1_img">
  6125. <div class="select_box1_title">
  6126. <span>上传题目图片</span
  6127. ><span>提示:请将题目以图片的方式上传</span>
  6128. </div>
  6129. <div class="select_box1_add_img">
  6130. <div
  6131. class="uploadFm"
  6132. @click="addImg($event)"
  6133. v-if="!selectJson.url"
  6134. >
  6135. <input
  6136. type="file"
  6137. accept="image/*"
  6138. style="display: none"
  6139. @change="beforeUploadSelect"
  6140. />
  6141. <img src="../../../assets/icon/addPoster.png" alt="" />
  6142. </div>
  6143. <div class="isSysPic" v-else>
  6144. <img :src="selectJson.url" alt="" />
  6145. <div class="deletePic" @click="deleteSelectPic">
  6146. <img src="../../../assets/icon/delete.png" alt="" />
  6147. </div>
  6148. </div>
  6149. </div>
  6150. </div>
  6151. <div class="select_box1_select">
  6152. <div class="select_box1_title">
  6153. <span>添加选项</span><span>提示:请输入题目选项</span>
  6154. </div>
  6155. <div class="select_box1_select_box">
  6156. <el-input
  6157. v-for="(item2, checkIndex) in selectJson.select"
  6158. :key="checkIndex"
  6159. v-model="selectJson.select[checkIndex]"
  6160. placeholder="请输入选项..."
  6161. style="width: 150px; margin: 10px 10px 0 0"
  6162. ></el-input>
  6163. <div class="select_box1_select_box_add">
  6164. <el-button
  6165. style="margin: 10px 0px 0 0"
  6166. type="primary"
  6167. size="small"
  6168. @click="addSelectList(selectJson)"
  6169. >
  6170. 添加</el-button
  6171. >
  6172. <el-button
  6173. type="primary"
  6174. size="small"
  6175. style="margin: 10px 0 0 0"
  6176. @click="deleteSelectList(selectJson)"
  6177. v-if="selectJson.select && selectJson.select.length > 0"
  6178. >删除</el-button
  6179. >
  6180. </div>
  6181. </div>
  6182. </div>
  6183. </div>
  6184. <div v-if="selectSteps == 2">
  6185. <div class="select_box2">
  6186. <div class="select_box2_title">设置答案</div>
  6187. <div class="select_box2_box">
  6188. <div class="select_box2_img">
  6189. <img :src="selectJson.url" alt="" />
  6190. </div>
  6191. <div class="select_box2_answer">
  6192. <div class="select_answer_title">根据题目选择对应答案</div>
  6193. <div
  6194. class="select_box2_answer_box"
  6195. v-for="(item2, checkIndex) in selectJson.select"
  6196. :key="checkIndex"
  6197. >
  6198. <span>{{ checkIndex + 1 }}、</span>
  6199. <el-select
  6200. v-model="selectJson.answer[checkIndex]"
  6201. placeholder="请选择正确答案"
  6202. >
  6203. <el-option
  6204. v-for="(e, eIndex) in selectJson.select"
  6205. :key="eIndex"
  6206. :label="e"
  6207. :value="eIndex"
  6208. >
  6209. </el-option>
  6210. </el-select>
  6211. </div>
  6212. </div>
  6213. </div>
  6214. </div>
  6215. </div>
  6216. </div>
  6217. <span slot="footer" class="dialog-footer">
  6218. <el-button
  6219. type="primary"
  6220. @click="nextSelectSteps()"
  6221. v-if="selectSteps == 1"
  6222. >下一步</el-button
  6223. >
  6224. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  6225. >上一步</el-button
  6226. >
  6227. <el-button
  6228. type="primary"
  6229. @click="addSelectAnswer"
  6230. v-if="selectSteps == 2"
  6231. >确 定</el-button
  6232. >
  6233. </span>
  6234. </el-dialog>
  6235. <el-dialog
  6236. title="添加评价"
  6237. :visible.sync="dialogVisibleRate"
  6238. :append-to-body="true"
  6239. width="650px"
  6240. :before-close="handleClose"
  6241. class="dialog_diy"
  6242. >
  6243. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  6244. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  6245. <div class="pjCss" style="width: 100%">
  6246. <div
  6247. v-if="rateJson.length"
  6248. class="elist_input"
  6249. style="height: 360px; overflow: auto"
  6250. >
  6251. <div
  6252. v-for="(eItem, eIndex) in rateJson"
  6253. :key="eIndex"
  6254. class="elist_input_box"
  6255. >
  6256. <span style="min-width: 100px; text-align: right"
  6257. >个人评价指标:</span
  6258. >
  6259. <input
  6260. type="input"
  6261. v-model="eItem.value"
  6262. placeholder="填写评价名称"
  6263. />
  6264. <div class="remove" @click="deletRateList(eIndex)"></div>
  6265. <div style="width: 100%; display: flex">
  6266. <span style="min-width: 100px; text-align: right"
  6267. >评星等级:</span
  6268. >
  6269. <el-rate v-model="eItem.score" disabled></el-rate>
  6270. </div>
  6271. <div class="elist_inptu_text" style="align-items: flex-start">
  6272. <span style="min-width: 100px; text-align: right">描述:</span>
  6273. <textarea
  6274. class="rate_textarea"
  6275. :rows="3"
  6276. v-model="eItem.detail"
  6277. placeholder="填写评价描述"
  6278. ></textarea>
  6279. </div>
  6280. </div>
  6281. </div>
  6282. <div class="addToolFun" @click="addRateList()">
  6283. <div class="addToolImg">
  6284. <img src="../../../assets/icon/add.png" alt />
  6285. </div>
  6286. <div>添加</div>
  6287. </div>
  6288. </div>
  6289. </div>
  6290. <span slot="footer" class="dialog-footer">
  6291. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  6292. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  6293. </span>
  6294. </el-dialog>
  6295. <el-dialog
  6296. title="连词成句设置"
  6297. :visible.sync="dialogVisibleSentence"
  6298. :append-to-body="true"
  6299. width="1000px"
  6300. :before-close="handleClose"
  6301. class="dialog_diy dialog_diy3"
  6302. >
  6303. <div>
  6304. <div class="sentenBox">
  6305. <div class="addSen" @click="addSt">添加题目</div>
  6306. <div
  6307. v-for="(st, stIndex) in sentenceList"
  6308. :key="stIndex"
  6309. style="padding-bottom: 20px"
  6310. >
  6311. <div class="sentenTopBox">
  6312. <div class="sentenTop">
  6313. <div>题目设置</div>
  6314. <div>
  6315. <el-input
  6316. placeholder="请输入卡片内容"
  6317. v-model="st.sentenceTitle"
  6318. ></el-input>
  6319. </div>
  6320. <div @click="addSen(stIndex)">添加</div>
  6321. </div>
  6322. <div
  6323. class="remove1"
  6324. v-if="sentenceList.length > 1"
  6325. @click="deleteSentence(stIndex)"
  6326. ></div>
  6327. </div>
  6328. <div class="cardList">
  6329. <div v-if="st.addSentence.length > 0" class="cardBox">
  6330. <div
  6331. class="isCard"
  6332. v-for="(s, sIndex) in st.addSentence"
  6333. :key="sIndex"
  6334. @click="setRightAnswer(s, stIndex, sIndex)"
  6335. >
  6336. <el-tooltip
  6337. class="item"
  6338. effect="light"
  6339. :content="s"
  6340. placement="top"
  6341. >
  6342. <div>{{ s }}</div>
  6343. </el-tooltip>
  6344. <div
  6345. class="deleteWord"
  6346. @click.stop="deleteS(s, stIndex, sIndex)"
  6347. >
  6348. <img src="../../../assets/icon/delete.png" alt="" />
  6349. </div>
  6350. </div>
  6351. </div>
  6352. <div class="card">
  6353. <img
  6354. src="../../../assets/icon/conSentences/noTitle.png"
  6355. alt=""
  6356. />
  6357. </div>
  6358. </div>
  6359. <div class="rightCardBox">
  6360. <div>正确顺序</div>
  6361. <div class="rightCardList">
  6362. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  6363. <div
  6364. v-for="(r, rIndex) in st.rightAnswer"
  6365. :key="rIndex"
  6366. class="cardCss"
  6367. >
  6368. <div
  6369. class="isCard1"
  6370. @click="returnCard(r, stIndex, rIndex)"
  6371. >
  6372. <el-tooltip
  6373. class="item"
  6374. effect="light"
  6375. :content="r"
  6376. placement="top"
  6377. >
  6378. <div>{{ r }}</div>
  6379. </el-tooltip>
  6380. </div>
  6381. <div>{{ rIndex + 1 }}</div>
  6382. </div>
  6383. </div>
  6384. <div class="card" v-if="st.rightAnswer.length == 0">
  6385. <img
  6386. src="../../../assets/icon/conSentences/noAnswer.png"
  6387. alt=""
  6388. />
  6389. </div>
  6390. </div>
  6391. </div>
  6392. </div>
  6393. </div>
  6394. </div>
  6395. <span slot="footer" class="dialog-footer">
  6396. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  6397. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  6398. </span>
  6399. </el-dialog>
  6400. <el-dialog
  6401. title="添加表格"
  6402. :visible.sync="dialogVisibleTable"
  6403. :append-to-body="true"
  6404. width="95%"
  6405. :before-close="handleClose"
  6406. class="dialog_diy"
  6407. >
  6408. <el-form>
  6409. <!-- <el-form-item label="文本标题">
  6410. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6411. </el-form-item> -->
  6412. <div>表格内容</div>
  6413. <Table v-model="tableJson.text" @change="change"></Table>
  6414. </el-form>
  6415. <span slot="footer" class="dialog-footer">
  6416. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  6417. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  6418. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  6419. </span>
  6420. </el-dialog>
  6421. <el-dialog
  6422. title="添加文档"
  6423. :visible.sync="dialogVisibleWord"
  6424. :append-to-body="true"
  6425. width="800px"
  6426. :before-close="handleClose"
  6427. class="dialog_diy"
  6428. >
  6429. <el-form>
  6430. <!-- <el-form-item label="文本标题">
  6431. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6432. </el-form-item> -->
  6433. <div>文档内容</div>
  6434. <editor-bar v-model="wordJson.text"></editor-bar>
  6435. </el-form>
  6436. <span slot="footer" class="dialog-footer">
  6437. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  6438. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  6439. </span>
  6440. </el-dialog>
  6441. <el-dialog
  6442. title="添加班级"
  6443. :visible.sync="dialogVisibleMoreUpload"
  6444. :append-to-body="true"
  6445. width="30%"
  6446. :before-close="handleClose"
  6447. class="dialog_diy"
  6448. >
  6449. <div
  6450. style="
  6451. width: 100%;
  6452. display: flex;
  6453. flex-direction: row;
  6454. flex-wrap: nowrap;
  6455. align-items: center;
  6456. justify-content: center;
  6457. "
  6458. >
  6459. <div>班级:</div>
  6460. <el-select multiple v-model="uploadJson" placeholder="请选择">
  6461. <el-option
  6462. v-for="item in classJuri"
  6463. :key="item.id"
  6464. :label="item.name"
  6465. :value="item.id"
  6466. >
  6467. </el-option>
  6468. </el-select>
  6469. </div>
  6470. <span slot="footer" class="dialog-footer">
  6471. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  6472. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  6473. </span>
  6474. </el-dialog>
  6475. <el-dialog
  6476. title="设置随机码"
  6477. :visible.sync="dialogVisibleInvite"
  6478. :append-to-body="true"
  6479. width="360px"
  6480. :before-close="handleClose"
  6481. class="dialog_diy"
  6482. >
  6483. <div
  6484. style="
  6485. width: 100%;
  6486. display: flex;
  6487. flex-direction: row;
  6488. flex-wrap: nowrap;
  6489. align-items: center;
  6490. justify-content: center;
  6491. "
  6492. >
  6493. <div>随机码:</div>
  6494. <el-input
  6495. v-model="icode"
  6496. style="width: 240px"
  6497. placeholder="请输入随机码"
  6498. ></el-input>
  6499. </div>
  6500. <span slot="footer" class="dialog-footer">
  6501. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  6502. <el-button type="primary" @click="addInvite">确定</el-button>
  6503. </span>
  6504. </el-dialog>
  6505. <el-dialog
  6506. title="添加预设时间"
  6507. :visible.sync="dialogVisiblePreTime"
  6508. :append-to-body="true"
  6509. width="30%"
  6510. :before-close="handleClose"
  6511. class="dialog_diy"
  6512. >
  6513. <div>
  6514. <Time
  6515. :preTime="preTime"
  6516. @updateTimeNum="updateTime"
  6517. v-if="dialogVisiblePreTime"
  6518. ></Time>
  6519. </div>
  6520. <span slot="footer" class="dialog-footer">
  6521. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  6522. <el-button type="primary" @click="addPreTime">确定</el-button>
  6523. </span>
  6524. </el-dialog>
  6525. <el-dialog
  6526. title="导入目标"
  6527. :visible.sync="dialogVisiblemb"
  6528. :append-to-body="true"
  6529. width="70%"
  6530. :before-close="handleClose"
  6531. class="dialog_diy"
  6532. >
  6533. <div>
  6534. <div
  6535. style="
  6536. width: 100%;
  6537. display: flex;
  6538. flex-direction: row;
  6539. flex-wrap: nowrap;
  6540. align-content: center;
  6541. align-items: center;
  6542. justify-content: space-between;
  6543. "
  6544. >
  6545. <div
  6546. style="
  6547. display: flex;
  6548. flex-flow: row nowrap;
  6549. align-items: flex-start;
  6550. width: 100%;
  6551. flex-direction: column;
  6552. flex-wrap: nowrap;
  6553. position: relative;
  6554. "
  6555. >
  6556. <div class="e_box">
  6557. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  6558. <div class="e_card_picture">
  6559. <img src="../../../assets/e_picture.png" />
  6560. </div>
  6561. <div class="e_card_name">
  6562. <span>{{ item.title }}</span>
  6563. </div>
  6564. <div class="e_card_btn">
  6565. <span @click="checkEva(item.id, 2)">导入</span>
  6566. </div>
  6567. </div>
  6568. <div class="addEva" @click="openT">
  6569. <img src="../../../assets/icon/addEva.png" alt="" />
  6570. </div>
  6571. <div
  6572. v-if="evaJuri.length === 0"
  6573. style="margin: 0 auto; color: #6e6e6e"
  6574. >
  6575. 暂无数据
  6576. </div>
  6577. </div>
  6578. </div>
  6579. </div>
  6580. </div>
  6581. <span slot="footer" class="dialog-footer">
  6582. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  6583. </span>
  6584. </el-dialog>
  6585. <el-dialog
  6586. title="分组设置"
  6587. :visible.sync="dialogVisibleGroup"
  6588. :append-to-body="true"
  6589. width="650px"
  6590. :before-close="handleClose"
  6591. class="dialog_diy"
  6592. >
  6593. <div class="groupBox">
  6594. <div v-if="groupJson.group" class="groupContent">
  6595. <div class="groupTitle">请设置小组数量</div>
  6596. <div
  6597. v-for="(item, index) in groupJson.group"
  6598. :key="index"
  6599. class="groupName"
  6600. >
  6601. <span class="groupn">组{{ index + 1 }}名称:</span>
  6602. <el-input
  6603. v-model="item.name"
  6604. placeholder="请输入名称..."
  6605. style="width: 250px"
  6606. ></el-input>
  6607. <div class="groupBtn">
  6608. <el-button type="primary" size="small" @click="addGroup(index)">
  6609. 添加</el-button
  6610. >
  6611. <el-button
  6612. type="primary"
  6613. size="small"
  6614. @click="deleteGroup(index)"
  6615. v-if="groupJson.group && groupJson.group.length > 1"
  6616. >删除</el-button
  6617. >
  6618. </div>
  6619. </div>
  6620. </div>
  6621. <div class="groupContent">
  6622. <div class="groupTitle">请设置每组人数数量</div>
  6623. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  6624. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  6625. <el-input-number
  6626. v-model="groupJson.number"
  6627. :controls="false"
  6628. :min="2"
  6629. :max="10"
  6630. placeholder="2-10人以内"
  6631. ></el-input-number>
  6632. </div>
  6633. </div>
  6634. <span slot="footer" class="dialog-footer">
  6635. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  6636. <el-button type="primary" @click="addGroupJson">确定</el-button>
  6637. </span>
  6638. </el-dialog>
  6639. <interVideo
  6640. :dialogVisibleVideo.sync="dialogVisibleVideo"
  6641. :videoJson="videoJson"
  6642. @add="addVideoJson"
  6643. ></interVideo>
  6644. </div>
  6645. </template>
  6646. <script>
  6647. import "../../../common/aws-sdk-2.235.1.min.js";
  6648. import $ from "jquery";
  6649. import EditorBar from "../../../components/tools/wangEnduit";
  6650. import Table from "../../../components/tools/table";
  6651. import Mind from "../../tools/jsmind2";
  6652. import Time from "../../tools/time.vue";
  6653. import Sunburst from "../../tools/sunburst";
  6654. import SeeBoard from "../../tools/seeBoard";
  6655. import weilaiData from "../components/weilai.js";
  6656. import sourceDialog from "../teacherSource/dialog.vue";
  6657. import interVideo from "../interVideo/index.vue";
  6658. export default {
  6659. components: {
  6660. EditorBar,
  6661. Mind,
  6662. Time,
  6663. Sunburst,
  6664. SeeBoard,
  6665. Table,
  6666. sourceDialog,
  6667. interVideo,
  6668. },
  6669. data() {
  6670. return {
  6671. checkAll: false,
  6672. chooseType: 1,
  6673. checkedCities: [],
  6674. isIndeterminate: true,
  6675. isSysPic: false,
  6676. steps: 1,
  6677. nbOrder: 0,
  6678. courseId: "",
  6679. chapToolsType: 0,
  6680. chapTools: [
  6681. {
  6682. tools: [],
  6683. toolDetail: "",
  6684. },
  6685. ],
  6686. line: "",
  6687. lineTitle: "",
  6688. sysPic: [],
  6689. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  6690. isPushTitleList: [],
  6691. lineCount: 0,
  6692. lineType: 0,
  6693. chapCount: 0,
  6694. courseName: "",
  6695. isTeacherSee: false,
  6696. courseText: "",
  6697. preTime: 0,
  6698. formLabelWidth: "100px",
  6699. choosePicVisible: false,
  6700. sysPicVisible: false,
  6701. uploadLoading1: false,
  6702. noneBtnImg: false,
  6703. updateBoolean2: false,
  6704. unitIndex: 0,
  6705. taskCount: 0,
  6706. dialogVisible: false,
  6707. dialogVisible1: false,
  6708. dialogVisible2: false,
  6709. dialogVisible3: false,
  6710. dialogVisible4: false,
  6711. dialogVisible5: false,
  6712. dialogVisible6: false,
  6713. dialogVisible7: false,
  6714. dialogVisible8: false,
  6715. dialogVisible9: false,
  6716. dialogVisibleClass: false,
  6717. dialogVisibleMember: false,
  6718. dialogVisibleMp3: false,
  6719. dialogVisibleSelect: false,
  6720. dialogVisibleSentence: false,
  6721. dialogVisibleRate: false,
  6722. dialogVisibleChoice: false,
  6723. dialogVisiblemb: false,
  6724. dialogVisibleInvite: false,
  6725. dialogVisibleSource: false,
  6726. dialogVisibleVideo: false,
  6727. isClickColor: 0,
  6728. publicTool: 0,
  6729. searchPeople: "",
  6730. searchTN: "",
  6731. userid: this.$route.query.userid,
  6732. oid: this.$route.query.oid,
  6733. org: this.$route.query.org,
  6734. role: this.$route.query.role,
  6735. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  6736. dialogVisibleTable: false,
  6737. dialogVisibleWord: false,
  6738. tableJson: { text: "" },
  6739. wordJson: { text: "" },
  6740. dialogVisibleMoreUpload: false,
  6741. dialogVisiblePreTime: false,
  6742. uploadJson: [],
  6743. classJuri: [],
  6744. gradeList: [],
  6745. cover: [], //课程封面
  6746. myWord: [],
  6747. evaJuri: [],
  6748. evalua: "",
  6749. targetArray: [],
  6750. eTitle: "",
  6751. eJson: {},
  6752. fid: "", //一级
  6753. sid: "", //二级
  6754. tid: "", //二级
  6755. typeMode: 1,
  6756. eJSONNum: 0,
  6757. data: {
  6758. meta: {
  6759. name: "example",
  6760. author: "dd@163.com",
  6761. version: "0.2",
  6762. },
  6763. format: "node_array",
  6764. data: [{ id: "root", isroot: true, topic: "" }],
  6765. },
  6766. askJson: {
  6767. askCount: 1,
  6768. askTitle: "",
  6769. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6770. },
  6771. testJson: {},
  6772. selectJson: {},
  6773. rateJson: [],
  6774. unitJson2: [],
  6775. unitJson: [
  6776. {
  6777. dyName: "", //单元标题
  6778. chapterInfo: [
  6779. {
  6780. isread: false,
  6781. chapterid: this.guid(),
  6782. title: "",
  6783. courseName: "",
  6784. taskJson: [
  6785. {
  6786. task: "",
  6787. taskDetail: "",
  6788. chapterData: [],
  6789. toolChoose: [
  6790. {
  6791. tool: [],
  6792. toolDetail: "",
  6793. toolType: 1,
  6794. askCount: 1,
  6795. askTitle: "",
  6796. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6797. },
  6798. ],
  6799. toolText: "",
  6800. isShowTools: false,
  6801. askCount: 1,
  6802. isFold: 0,
  6803. askTitle: "",
  6804. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6805. checkJson: [{ checkCount: [], checkPerent: [] }],
  6806. homeworkList: [],
  6807. },
  6808. ],
  6809. itemCount: 1,
  6810. fileList1: [],
  6811. video: [],
  6812. testData: [],
  6813. pData: [],
  6814. templateArray: [],
  6815. },
  6816. ],
  6817. },
  6818. ],
  6819. studentJuri: [],
  6820. teacherJuri: [],
  6821. checkboxList: [],
  6822. checkboxList2: [],
  6823. checkboxList3: [],
  6824. classSearch: "",
  6825. gradeId:"",
  6826. number: "",
  6827. tTitle: "",
  6828. tdetail: "",
  6829. templateC: {},
  6830. AttText: {},
  6831. AttTextType: 0,
  6832. AttTextIndex: 0,
  6833. cTemplate: "",
  6834. CourseType: [],
  6835. CourseType2: [],
  6836. CourseTypeJson: {},
  6837. courseTypeId: [],
  6838. courseTypeSon: [],
  6839. clearArray: [],
  6840. pTypeCheck: [],
  6841. pTypeCheckName: [],
  6842. loading: false,
  6843. toolType: 1,
  6844. inputShow: true,
  6845. inputShow2: true,
  6846. toolIndex: 0,
  6847. cidType: 0,
  6848. answerQ: "",
  6849. grade: [],
  6850. grade2: [],
  6851. courseUserid: "",
  6852. timer: null,
  6853. timer2: null,
  6854. checkId: "",
  6855. isDelete: 1,
  6856. addindex: 0,
  6857. selectSteps: 1,
  6858. groupJson: {},
  6859. dialogVisibleGroup: false,
  6860. rightBoxHeight: 0,
  6861. ManAarray: [],
  6862. checkBoolean: false,
  6863. inviteCode: [],
  6864. inviteId: "",
  6865. icode: "",
  6866. easyArray: [2, 4],
  6867. sourceData: {},
  6868. videoJson: {},
  6869. };
  6870. },
  6871. computed: {
  6872. // rightBoxHeight: function () {
  6873. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  6874. // },
  6875. offsetLetfPx: function () {
  6876. //addnum可以直接在模板语法里面用,相当于data内的值
  6877. return (
  6878. $(".cru_select")[this.unitIndex] &&
  6879. $(".cru_select")[this.unitIndex].offsetLeft
  6880. );
  6881. },
  6882. getMan2() {
  6883. return function (people) {
  6884. let _people = people;
  6885. let _people2 = "";
  6886. if (this.ManAarray.length) {
  6887. for (var i = 0; i < this.ManAarray.length; i++) {
  6888. if (this.ManAarray[i].userid == people) {
  6889. _people2 = this.ManAarray[i].name;
  6890. break;
  6891. }
  6892. }
  6893. }
  6894. if (people == this.courseUserid) {
  6895. return "";
  6896. }
  6897. return this.ManAarray.length ? _people2 : "";
  6898. };
  6899. },
  6900. isInvite() {
  6901. return function (cid) {
  6902. let array = [];
  6903. for (var i = 0; i < this.inviteCode.length; i++) {
  6904. array.push(this.inviteCode[i].cid);
  6905. }
  6906. return array.indexOf(cid) != -1;
  6907. };
  6908. },
  6909. getInviteCodeC() {
  6910. return function (cid) {
  6911. let array = [];
  6912. for (var i = 0; i < this.inviteCode.length; i++) {
  6913. array.push(this.inviteCode[i].cid);
  6914. }
  6915. return this.inviteCode[array.indexOf(cid)].ic;
  6916. };
  6917. },
  6918. getClassC() {
  6919. return function (c) {
  6920. let _c2 = "";
  6921. if (this.grade.length) {
  6922. for (var i = 0; i < this.grade.length; i++) {
  6923. if (this.grade[i].id == c) {
  6924. _c2 = this.grade[i].name;
  6925. break;
  6926. }
  6927. }
  6928. }
  6929. return this.grade.length ? _c2 : "";
  6930. };
  6931. },
  6932. },
  6933. watch: {
  6934. unitIndex(newValue, oldValue) {
  6935. if (this.isDelete == 2) {
  6936. this.isDelete = 1;
  6937. return;
  6938. }
  6939. if (this.cid != "") {
  6940. let _unitIndex = oldValue;
  6941. if (
  6942. JSON.stringify(this.unitJson2[_unitIndex]) ==
  6943. JSON.stringify(this.unitJson[_unitIndex])
  6944. ) {
  6945. this.$refs.rightboxR.scrollTop = 0;
  6946. return;
  6947. }
  6948. let cPan = 1;
  6949. for (
  6950. var j = 0;
  6951. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6952. j++
  6953. ) {
  6954. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6955. j
  6956. ].proVisible = false;
  6957. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6958. j
  6959. ].proVisible2 = false;
  6960. if (
  6961. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6962. .length > 1
  6963. ) {
  6964. for (
  6965. var z = 0;
  6966. z <
  6967. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6968. .length;
  6969. z++
  6970. ) {
  6971. if (
  6972. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  6973. .toolChoose[z].tool.length
  6974. ) {
  6975. this.$message.error("请把工具添加完整");
  6976. cPan = 2;
  6977. break;
  6978. }
  6979. }
  6980. }
  6981. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6982. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6983. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6984. (ele) => {
  6985. return ele.value != "";
  6986. }
  6987. );
  6988. }
  6989. }
  6990. if (cPan == 2) {
  6991. this.unitIndex = oldValue;
  6992. return;
  6993. }
  6994. for (var i = 0; i < this.unitJson.length; i++) {
  6995. if (this.addindex != i) {
  6996. delete this.unitJson[i].isUpdate;
  6997. }
  6998. }
  6999. this.$refs.rightboxR.scrollTop = 0;
  7000. this.addindex = -1;
  7001. let params = [
  7002. {
  7003. cid: this.cid,
  7004. chapters: JSON.stringify(this.unitJson),
  7005. uid: this.userid,
  7006. unitIndex: _unitIndex,
  7007. },
  7008. ];
  7009. this.ajax
  7010. .post(this.$store.state.api + "updateWorkNew4", params)
  7011. .then((res) => {
  7012. // this.$message({
  7013. // message: "修改成功",
  7014. // type: "success",
  7015. // });
  7016. // this.courseId = this.cid;
  7017. })
  7018. .catch((err) => {
  7019. this.$message.error("网络不佳");
  7020. console.error(err);
  7021. });
  7022. }
  7023. },
  7024. steps(newValue) {
  7025. if (newValue == 4) {
  7026. this.goTo(
  7027. "/course?userid=" +
  7028. this.userid +
  7029. "&oid=" +
  7030. this.oid +
  7031. "&org=" +
  7032. this.org +
  7033. "&role=" +
  7034. this.role
  7035. );
  7036. }
  7037. },
  7038. },
  7039. methods: {
  7040. openAI(){
  7041. window.parent.postMessage({ tools: "64" }, "*");
  7042. },
  7043. setMan() {
  7044. // let teacherJuri = this.teacherJuri2;
  7045. this.ManAarray = [];
  7046. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  7047. if (_user.indexOf(this.courseUserid || this.userid) == -1) {
  7048. _user.push(this.courseUserid || this.userid);
  7049. }
  7050. let params = {
  7051. uid: _user.join(","),
  7052. };
  7053. this.ajax
  7054. .get(this.$store.state.api + "getAllUserById", params)
  7055. .then((res) => {
  7056. let teacherJuri = res.data[0];
  7057. this.ManAarray = teacherJuri;
  7058. })
  7059. .catch((err) => {
  7060. console.error(err);
  7061. });
  7062. },
  7063. previewImg(url) {
  7064. this.$hevueImgPreview(url);
  7065. },
  7066. scrollChange() {
  7067. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  7068. // document.querySelector('.course_left').scrollHeight
  7069. // document.querySelector('.stepsBottom2').scrollHeight
  7070. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  7071. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  7072. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  7073. let top = $(".rightBox")[0].scrollTop - 300 - stepsBottom2;
  7074. // if (top < client) {
  7075. // $('.stepsBottom2')[0].style.position = 'absolute'
  7076. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  7077. // // $('.stepsBottom2')[0].style.top = client + 'px'
  7078. // } else
  7079. if (top > 0) {
  7080. let top = $(".rightBox")[0].offsetTop;
  7081. $(".stepsBottom2")[0].style.position = "fixed";
  7082. $(".stepsBottom2")[0].style.top = top + "px";
  7083. // $('.stepsBottom2')[0].style.top = top + 'px'
  7084. } else {
  7085. $(".stepsBottom2")[0].style.position = "absolute";
  7086. $(".stepsBottom2")[0].style.top = "0px";
  7087. }
  7088. },
  7089. handleCheckAllChange(val) {
  7090. this.checkedCities = val ? cityOptions : [];
  7091. this.isIndeterminate = false;
  7092. },
  7093. handleCheckedCitiesChange(value) {
  7094. let checkedCount = value.length;
  7095. this.checkAll = checkedCount === this.cities.length;
  7096. this.isIndeterminate =
  7097. checkedCount > 0 && checkedCount < this.cities.length;
  7098. },
  7099. addHw(e) {
  7100. var el = e.currentTarget;
  7101. el.getElementsByTagName("input")[0].click();
  7102. },
  7103. change(val) {
  7104. console.log(val);
  7105. },
  7106. change2(val) {
  7107. console.log(val);
  7108. this.$forceUpdate();
  7109. },
  7110. handleClose(done) {
  7111. done();
  7112. },
  7113. imgChange2(i, j) {
  7114. var _tmp = this.testJson.testJson[i].checkList[j];
  7115. this.noneBtnImg = _tmp.length >= 1;
  7116. },
  7117. imgChange3(i) {
  7118. var _tmp = this.testJson.testJson[i];
  7119. this.noneBtnImg = _tmp.length >= 1;
  7120. },
  7121. imgChange1(file, fileList, type, itemTaskIndex) {
  7122. if (type == 1) {
  7123. var _tmp = this.cover;
  7124. } else if (
  7125. type == 2 ||
  7126. type == 3 ||
  7127. type == 6 ||
  7128. type == 7 ||
  7129. type == 8
  7130. ) {
  7131. var _tmp =
  7132. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7133. .chapterData;
  7134. } else if (type == 4) {
  7135. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  7136. } else {
  7137. var _tmp =
  7138. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7139. .homeworkList;
  7140. }
  7141. this.noneBtnImg = _tmp.length >= 1;
  7142. },
  7143. goTo(path) {
  7144. this.$router.push(path);
  7145. },
  7146. guid() {
  7147. var _num,
  7148. i,
  7149. _guid = "";
  7150. for (i = 0; i < 32; i++) {
  7151. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  7152. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  7153. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  7154. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  7155. _guid += "-";
  7156. }
  7157. }
  7158. return _guid;
  7159. },
  7160. lastSteps() {
  7161. this
  7162. .$confirm("是否保存?", "提示", {
  7163. confirmButtonText: "保存",
  7164. cancelButtonText: "不保存",
  7165. type: "warning",
  7166. })
  7167. .then(() => {
  7168. if (this.cid == "" || this.cid == undefined) {
  7169. if (this.courseName == "") {
  7170. this.$message.error("请补充填写课程名称");
  7171. return;
  7172. } else {
  7173. this.addWork();
  7174. }
  7175. } else {
  7176. if (this.courseName == "") {
  7177. this.$message.error("请补充填写课程名称");
  7178. return;
  7179. } else {
  7180. if (this.userid != this.courseUserid && this.role != "1") {
  7181. this.updateWork2();
  7182. } else {
  7183. this.updateWork();
  7184. }
  7185. }
  7186. }
  7187. })
  7188. .catch(() => {
  7189. this.goTo(
  7190. "/course?userid=" +
  7191. this.userid +
  7192. "&oid=" +
  7193. this.oid +
  7194. "&org=" +
  7195. this.org +
  7196. "&role=" +
  7197. this.role
  7198. );
  7199. });
  7200. },
  7201. nextSteps() {
  7202. if (this.cid == "" || this.cid == undefined) {
  7203. if (this.courseName == "") {
  7204. this.$message.error("请补充填写课程名称");
  7205. return;
  7206. } else {
  7207. this.addWork();
  7208. }
  7209. } else {
  7210. if (this.courseName == "") {
  7211. this.$message.error("请补充填写课程名称");
  7212. return;
  7213. } else {
  7214. if (this.userid != this.courseUserid && this.role != "1") {
  7215. this.updateWork2();
  7216. } else {
  7217. this.updateWork();
  7218. }
  7219. }
  7220. }
  7221. this.$refs.stepBox.scrollTop = 0;
  7222. },
  7223. unitSet(i) {
  7224. this.unitIndex = i;
  7225. // this.$refs.rightboxR.scrollTop = 0;
  7226. },
  7227. time() {
  7228. if (!this.now) {
  7229. this.now = new Date().getTime();
  7230. return true;
  7231. } else {
  7232. let time = new Date().getTime();
  7233. if (time - this.now > 3000) {
  7234. this.now = time;
  7235. return true;
  7236. } else {
  7237. return false;
  7238. }
  7239. }
  7240. },
  7241. deleteUnit(i) {
  7242. var _this = this;
  7243. if (_this.time()) {
  7244. _this
  7245. .$confirm("确定删除此单元吗?", "提示", {
  7246. confirmButtonText: "确定",
  7247. cancelButtonText: "取消",
  7248. type: "warning",
  7249. })
  7250. .then(() => {
  7251. _this.isDelete = 2;
  7252. // _this.unitIndex = _this.unitIndex - 1;
  7253. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  7254. // _this.$message.success("删除成功");
  7255. })
  7256. .catch(() => {
  7257. return;
  7258. });
  7259. }
  7260. },
  7261. deleteWork(chapid) {
  7262. let params = [
  7263. {
  7264. cid: this.cid,
  7265. chapters: JSON.stringify(this.unitJson),
  7266. uid: this.userid,
  7267. chapid: chapid,
  7268. },
  7269. ];
  7270. this.ajax
  7271. .post(this.$store.state.api + "deleteWork", params)
  7272. .then((res) => {
  7273. this.$message({
  7274. message: "删除成功",
  7275. type: "success",
  7276. });
  7277. this.unitJson.splice(this.unitIndex, 1);
  7278. this.unitIndex = this.unitIndex - 1;
  7279. })
  7280. .catch((err) => {
  7281. this.$message.error("网络不佳");
  7282. console.error(err);
  7283. });
  7284. },
  7285. deleteTool(itemTaskIndex, i) {
  7286. var _this = this;
  7287. if (_this.time()) {
  7288. _this
  7289. .$confirm("确定删除此工具吗?", "提示", {
  7290. confirmButtonText: "确定",
  7291. cancelButtonText: "取消",
  7292. type: "warning",
  7293. })
  7294. .then(() => {
  7295. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7296. itemTaskIndex
  7297. ].toolChoose.splice(i, 1);
  7298. _this.$message.success("删除成功");
  7299. })
  7300. .catch(() => {
  7301. return;
  7302. });
  7303. }
  7304. },
  7305. deleteSentence(i) {
  7306. var _this = this;
  7307. if (_this.time()) {
  7308. _this
  7309. .$confirm("确定删除此题目吗?", "提示", {
  7310. confirmButtonText: "确定",
  7311. cancelButtonText: "取消",
  7312. type: "warning",
  7313. })
  7314. .then(() => {
  7315. _this.sentenceList.splice(i, 1);
  7316. _this.$message.success("删除成功");
  7317. })
  7318. .catch(() => {
  7319. return;
  7320. });
  7321. }
  7322. },
  7323. deleteS(s, i, j) {
  7324. this.sentenceList[i].addSentence.splice(j, 1);
  7325. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  7326. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  7327. this.sentenceList[i].rightAnswer.splice(a, 1);
  7328. }
  7329. },
  7330. openT() {
  7331. window.parent.postMessage({ tools: "25" }, "*");
  7332. },
  7333. deleteTask(i) {
  7334. var _this = this;
  7335. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  7336. _this
  7337. .$confirm("确定删除此任务吗?", "提示", {
  7338. confirmButtonText: "确定",
  7339. cancelButtonText: "取消",
  7340. type: "warning",
  7341. })
  7342. .then(() => {
  7343. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  7344. _this.$message.success("删除成功");
  7345. // this.$nextTick(() => {
  7346. // $('.stepsBottom2')[0].style.transition = 'unset'
  7347. // setTimeout(() => {
  7348. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  7349. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  7350. // let top = $('.stepsBottom2')[0].offsetTop - 20
  7351. // if (top > client) {
  7352. // $('.stepsBottom2')[0].style.top = client + 'px'
  7353. // }
  7354. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  7355. // this.$forceUpdate()
  7356. // }, 500)
  7357. // })
  7358. })
  7359. .catch(() => {
  7360. return;
  7361. });
  7362. },
  7363. handlePictureCardPreview(file) {
  7364. this.dialogImageUrl = file.url;
  7365. },
  7366. clean(i, c) {
  7367. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  7368. },
  7369. handle_remove1(file, fileList, type) {
  7370. var _tmp = this.cover;
  7371. // for (var i = 0, len = _tmp.length; i < len; i++) {
  7372. // if (_tmp[i].uid == file.uid) {
  7373. // _tmp.splice(i, 1);
  7374. // break;
  7375. // }
  7376. // this.cover = _tmp;
  7377. // }
  7378. this.cover = [];
  7379. this.noneBtnImg = this.cover.length >= 1;
  7380. this.isSysPic = false;
  7381. this.$forceUpdate();
  7382. },
  7383. addImg(e) {
  7384. var el = e.currentTarget;
  7385. el.getElementsByTagName("input")[0].click();
  7386. e.target.value = "";
  7387. },
  7388. addChaptersTools(i) {
  7389. this.chapTools = [
  7390. {
  7391. tools: [],
  7392. toolDetail: "",
  7393. },
  7394. ];
  7395. this.chapCount = i;
  7396. this.dialogVisible4 = true;
  7397. },
  7398. isNoFinsh() {
  7399. this.$message.warning("功能正在开发中");
  7400. },
  7401. addAttText(i) {
  7402. this.AttText = {
  7403. title: "",
  7404. text: "",
  7405. };
  7406. this.taskCount = i;
  7407. this.AttTextType = 0;
  7408. this.$forceUpdate();
  7409. this.dialogVisible6 = true;
  7410. },
  7411. openLine(i) {
  7412. this.line = "";
  7413. this.lineCount = i;
  7414. this.lineType = 0;
  7415. this.$forceUpdate();
  7416. this.dialogVisible7 = true;
  7417. },
  7418. pasteLine(i) {
  7419. navigator.clipboard
  7420. .readText()
  7421. .then((v) => {
  7422. console.log("获取剪贴板成功:", v);
  7423. const html = v;
  7424. const regex = /src="(.*?)"/g;
  7425. const match = regex.exec(html);
  7426. if (match && match[1]) {
  7427. console.log(match[1]);
  7428. this.$message.success("粘贴成功");
  7429. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7430. i
  7431. ].chapterData.push({
  7432. name: "链接",
  7433. title: "嵌入代码",
  7434. url: match[1],
  7435. type: 8,
  7436. });
  7437. } else {
  7438. // console.log("未找到包含 src 属性的 iframe");
  7439. this.$message.error("没有找到粘贴的链接");
  7440. }
  7441. })
  7442. .catch((v) => {
  7443. console.log("获取剪贴板失败: ", v);
  7444. });
  7445. },
  7446. openSource(i) {
  7447. this.lineCount = i;
  7448. this.sourceData = {};
  7449. this.dialogVisibleSource = true;
  7450. },
  7451. addSource() {
  7452. if (!Object.keys(this.sourceData).length) {
  7453. this.$message.error("请选择要上传的资源");
  7454. return;
  7455. }
  7456. let keys = Object.keys(this.sourceData);
  7457. for (var i = 0; i < keys.length; i++) {
  7458. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7459. this.lineCount
  7460. ].chapterData.push({
  7461. name: "链接",
  7462. title: this.sourceData[keys[i]].name,
  7463. url: this.sourceData[keys[i]].url,
  7464. type: 8,
  7465. });
  7466. }
  7467. this.$forceUpdate();
  7468. this.dialogVisibleSource = false;
  7469. },
  7470. deleteM(i, j) {
  7471. this.testJson.testJson[i].timuList.splice(j, 1);
  7472. },
  7473. beforeUploadTiMu(event, i) {
  7474. const loading = this.openLoading();
  7475. var file = event.target.files[0];
  7476. var credentials = {
  7477. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7478. secretAccessKey: "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",
  7479. }; //秘钥形式的登录上传
  7480. window.AWS.config.update(credentials);
  7481. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7482. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7483. var _this = this;
  7484. if (file) {
  7485. var params = {
  7486. Key:
  7487. file.name.split(".")[0] +
  7488. new Date().getTime() +
  7489. "." +
  7490. file.name.split(".")[file.name.split(".").length - 1],
  7491. ContentType: file.type,
  7492. Body: file,
  7493. "Access-Control-Allow-Credentials": "*",
  7494. ACL: "public-read",
  7495. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7496. var options = {
  7497. partSize: 2048 * 1024 * 1024,
  7498. queueSize: 2,
  7499. leavePartsOnError: true,
  7500. };
  7501. bucket
  7502. .upload(params, options)
  7503. .on("httpUploadProgress", function (evt) {
  7504. //这里可以写进度条
  7505. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7506. })
  7507. .send(function (err, data) {
  7508. loading.close();
  7509. if (err) {
  7510. _this.$message.error("上传失败");
  7511. } else {
  7512. if (_this.testJson.testJson[i].timuList) {
  7513. _this.testJson.testJson[i].timuList.push({
  7514. src: data.Location,
  7515. });
  7516. } else {
  7517. _this.testJson.testJson[i].timuList = [];
  7518. _this.testJson.testJson[i].timuList.push({
  7519. src: data.Location,
  7520. });
  7521. }
  7522. _this.imgChange3(i);
  7523. _this.$forceUpdate();
  7524. }
  7525. });
  7526. }
  7527. },
  7528. beforeUploadTi(event, i, j) {
  7529. const loading = this.openLoading();
  7530. var file = event.target.files[0];
  7531. var credentials = {
  7532. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7533. secretAccessKey: "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",
  7534. }; //秘钥形式的登录上传
  7535. window.AWS.config.update(credentials);
  7536. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7537. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7538. var _this = this;
  7539. if (file) {
  7540. var params = {
  7541. Key:
  7542. file.name.split(".")[0] +
  7543. new Date().getTime() +
  7544. "." +
  7545. file.name.split(".")[file.name.split(".").length - 1],
  7546. ContentType: file.type,
  7547. Body: file,
  7548. "Access-Control-Allow-Credentials": "*",
  7549. ACL: "public-read",
  7550. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7551. var options = {
  7552. partSize: 2048 * 1024 * 1024,
  7553. queueSize: 2,
  7554. leavePartsOnError: true,
  7555. };
  7556. bucket
  7557. .upload(params, options)
  7558. .on("httpUploadProgress", function (evt) {
  7559. //这里可以写进度条
  7560. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7561. })
  7562. .send(function (err, data) {
  7563. loading.close();
  7564. if (err) {
  7565. _this.$message.error("上传失败");
  7566. } else {
  7567. _this.testJson.testJson[i].checkList[j] = {};
  7568. _this.testJson.testJson[i].checkList[j].src = data.Location;
  7569. _this.testJson.testJson[i].checkList[j].imgType = 1;
  7570. _this.imgChange2(i, j);
  7571. _this.$forceUpdate();
  7572. }
  7573. });
  7574. }
  7575. },
  7576. beforeUpload1(event, type) {
  7577. // const loading = this.openLoading();
  7578. var file = event.target.files[0];
  7579. var credentials = {
  7580. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7581. secretAccessKey: "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",
  7582. }; //秘钥形式的登录上传
  7583. window.AWS.config.update(credentials);
  7584. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7585. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7586. var _this = this;
  7587. if (file) {
  7588. var params = {
  7589. Key:
  7590. file.name.split(".")[0] +
  7591. new Date().getTime() +
  7592. "." +
  7593. file.name.split(".")[file.name.split(".").length - 1],
  7594. ContentType: file.type,
  7595. Body: file,
  7596. "Access-Control-Allow-Credentials": "*",
  7597. ACL: "public-read",
  7598. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7599. var options = {
  7600. partSize: 2048 * 1024 * 1024,
  7601. queueSize: 2,
  7602. leavePartsOnError: true,
  7603. };
  7604. bucket
  7605. .upload(params, options)
  7606. .on("httpUploadProgress", function (evt) {
  7607. //这里可以写进度条
  7608. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7609. })
  7610. .send(function (err, data) {
  7611. // loading.close();
  7612. if (err) {
  7613. // var a = _this.$refs.upload1.uploadFiles;
  7614. // a.splice(a.length - 1, a.length);
  7615. _this.$message.error("上传失败");
  7616. } else {
  7617. _this.cover.push({
  7618. name: file.name,
  7619. url: data.Location,
  7620. uid: file.uid,
  7621. });
  7622. _this.imgChange1(null, null, 1, null);
  7623. _this.choosePicVisible = false;
  7624. console.log(data.Location);
  7625. }
  7626. });
  7627. }
  7628. },
  7629. beforeUploadSelect(event, type) {
  7630. // const loading = this.openLoading();
  7631. var file = event.target.files[0];
  7632. var credentials = {
  7633. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7634. secretAccessKey: "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",
  7635. }; //秘钥形式的登录上传
  7636. window.AWS.config.update(credentials);
  7637. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7638. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7639. var _this = this;
  7640. if (file) {
  7641. var params = {
  7642. Key:
  7643. file.name.split(".")[0] +
  7644. new Date().getTime() +
  7645. "." +
  7646. file.name.split(".")[file.name.split(".").length - 1],
  7647. ContentType: file.type,
  7648. Body: file,
  7649. "Access-Control-Allow-Credentials": "*",
  7650. ACL: "public-read",
  7651. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7652. var options = {
  7653. partSize: 2048 * 1024 * 1024,
  7654. queueSize: 2,
  7655. leavePartsOnError: true,
  7656. };
  7657. bucket
  7658. .upload(params, options)
  7659. .on("httpUploadProgress", function (evt) {
  7660. //这里可以写进度条
  7661. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7662. })
  7663. .send(function (err, data) {
  7664. // loading.close();
  7665. if (err) {
  7666. _this.$message.error("上传失败");
  7667. } else {
  7668. _this.selectJson.url = data.Location;
  7669. console.log(data.Location);
  7670. }
  7671. });
  7672. }
  7673. },
  7674. chooseSysPic(p) {
  7675. this.cover.push({
  7676. name: "系统图片.png",
  7677. url: p,
  7678. });
  7679. this.imgChange1(null, null, 1, null);
  7680. this.isSysPic = true;
  7681. this.sysPicVisible = false;
  7682. },
  7683. beforeUpload(data) {
  7684. this.$refs.upload1.uploadFiles;
  7685. this.uploadLoading1 = true;
  7686. var file = data.file;
  7687. var credentials = {
  7688. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7689. secretAccessKey: "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",
  7690. }; //秘钥形式的登录上传
  7691. window.AWS.config.update(credentials);
  7692. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7693. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7694. var _this = this;
  7695. if (file) {
  7696. var params = {
  7697. Key:
  7698. file.name.split(".")[0] +
  7699. new Date().getTime() +
  7700. "." +
  7701. file.name.split(".")[file.name.split(".").length - 1],
  7702. ContentType: file.type,
  7703. Body: file,
  7704. "Access-Control-Allow-Credentials": "*",
  7705. ACL: "public-read",
  7706. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7707. var options = {
  7708. partSize: 2048 * 1024 * 1024,
  7709. queueSize: 2,
  7710. leavePartsOnError: true,
  7711. };
  7712. bucket
  7713. .upload(params, options)
  7714. .on("httpUploadProgress", function (evt) {
  7715. //这里可以写进度条
  7716. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7717. })
  7718. .send(function (err, data) {
  7719. _this.uploadLoading1 = false;
  7720. if (err) {
  7721. // var a = _this.$refs.upload1.uploadFiles;
  7722. // a.splice(a.length - 1, a.length);
  7723. _this.$message.error("上传失败");
  7724. } else {
  7725. //上传成功处理
  7726. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  7727. name: file.name,
  7728. url: data.Location,
  7729. uid: file.uid,
  7730. });
  7731. _this.imgChange();
  7732. console.log(data.Location);
  7733. }
  7734. });
  7735. }
  7736. },
  7737. onExceed() {
  7738. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  7739. },
  7740. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  7741. // const loading = this.openLoading();
  7742. var file = event.target.files[0];
  7743. var credentials = {
  7744. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7745. secretAccessKey: "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",
  7746. }; //秘钥形式的登录上传
  7747. window.AWS.config.update(credentials);
  7748. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7749. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7750. var _this = this;
  7751. if (type == 3) {
  7752. var b = [
  7753. "DOC",
  7754. "DOCX",
  7755. "DOCM",
  7756. "DOTM",
  7757. "DOTX",
  7758. "PPTX",
  7759. "PPSX",
  7760. "PPT",
  7761. "PPS",
  7762. "PPTM",
  7763. "POTM",
  7764. "PPAM",
  7765. "POTX",
  7766. "PPSM",
  7767. ];
  7768. if (
  7769. b.indexOf(
  7770. file.name
  7771. .split(".")
  7772. [file.name.split(".").length - 1].toLocaleUpperCase()
  7773. ) != -1
  7774. ) {
  7775. if (file.size / 1024 / 1024 > 80) {
  7776. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7777. this.inputShow = true;
  7778. // var a = _this.$refs.upload1.uploadFiles;
  7779. // a.splice(a.length - 1, a.length);
  7780. // loading.close();
  7781. return;
  7782. }
  7783. } else if (
  7784. file.name
  7785. .split(".")
  7786. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7787. ) {
  7788. if (file.size / 1024 / 1024 > 80) {
  7789. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7790. this.inputShow = true;
  7791. // var a = _this.$refs.upload1.uploadFiles;
  7792. // a.splice(a.length - 1, a.length);
  7793. // loading.close();
  7794. return;
  7795. }
  7796. }
  7797. }
  7798. this.inputShow = false;
  7799. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7800. itemTaskIndex
  7801. ].progress = 0;
  7802. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7803. itemTaskIndex
  7804. ].proVisible = true;
  7805. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7806. itemTaskIndex
  7807. ].isFinishSize = 0;
  7808. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7809. itemTaskIndex
  7810. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7811. _this.$forceUpdate();
  7812. if (file) {
  7813. var params = {
  7814. Key:
  7815. file.name.split(".")[0] +
  7816. new Date().getTime() +
  7817. "." +
  7818. file.name.split(".")[file.name.split(".").length - 1],
  7819. ContentType: file.type,
  7820. Body: file,
  7821. "Access-Control-Allow-Credentials": "*",
  7822. ACL: "public-read",
  7823. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7824. var options = {
  7825. partSize: 2048 * 1024 * 1024,
  7826. queueSize: 2,
  7827. leavePartsOnError: true,
  7828. };
  7829. bucket
  7830. .upload(params, options)
  7831. .on("httpUploadProgress", function (evt) {
  7832. //这里可以写进度条
  7833. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7834. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7835. itemTaskIndex
  7836. ].progress = parseInt((evt.loaded / evt.total) * 100);
  7837. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7838. itemTaskIndex
  7839. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7840. _this.$forceUpdate();
  7841. })
  7842. .send(function (err, data) {
  7843. // loading.close();
  7844. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7845. itemTaskIndex
  7846. ].progress = 100;
  7847. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7848. itemTaskIndex
  7849. ].isFinishSize =
  7850. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7851. itemTaskIndex
  7852. ].isAllSize;
  7853. _this.$forceUpdate();
  7854. setTimeout(() => {
  7855. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7856. itemTaskIndex
  7857. ].proVisible = false;
  7858. _this.$forceUpdate();
  7859. }, 1000);
  7860. _this.inputShow = true;
  7861. if (err) {
  7862. // var a = _this.$refs.upload1.uploadFiles;
  7863. // a.splice(a.length - 1, a.length);
  7864. _this.$message.error("上传失败");
  7865. } else {
  7866. if (type == 13) {
  7867. let _type = 2;
  7868. var imgA = [
  7869. "png",
  7870. "jpg",
  7871. "jpeg",
  7872. "bmp",
  7873. "gif",
  7874. "webp",
  7875. "psd",
  7876. "svg",
  7877. "tiff",
  7878. ];
  7879. var fileA = [
  7880. "PDF",
  7881. "DOC",
  7882. "DOCX",
  7883. "DOCM",
  7884. "DOTM",
  7885. "DOTX",
  7886. "PPTX",
  7887. "PPSX",
  7888. "PPT",
  7889. "PPS",
  7890. "PPTM",
  7891. "POTM",
  7892. "PPAM",
  7893. "POTX",
  7894. "PPSM",
  7895. "XLSX",
  7896. "XLS",
  7897. ];
  7898. var videoA = [
  7899. "AVI",
  7900. "NAVI",
  7901. "MPEG",
  7902. "ASF",
  7903. "MOV",
  7904. "WMV",
  7905. "3GP",
  7906. "RM",
  7907. "RMVB",
  7908. "FLV",
  7909. "F4V",
  7910. "H.264",
  7911. "H.265",
  7912. "REAL VIDEO",
  7913. "MKV",
  7914. "WebM",
  7915. "HDDVD",
  7916. "MP4",
  7917. "MPG",
  7918. "M4V",
  7919. "MGV",
  7920. "OGV",
  7921. "QTM",
  7922. "STR",
  7923. "AMC",
  7924. "DVX",
  7925. "EVO",
  7926. "DAT",
  7927. "OGG",
  7928. "OGM",
  7929. ];
  7930. if (
  7931. fileA.indexOf(
  7932. data.Location.split(".")[
  7933. data.Location.split(".").length - 1
  7934. ].toLocaleUpperCase()
  7935. ) != -1
  7936. ) {
  7937. _type = 3;
  7938. } else if (
  7939. videoA.indexOf(
  7940. data.Location.split(".")[
  7941. data.Location.split(".").length - 1
  7942. ].toLocaleUpperCase()
  7943. ) != -1
  7944. ) {
  7945. _type = 2;
  7946. } else if (
  7947. imgA.indexOf(
  7948. data.Location.split(".")[
  7949. data.Location.split(".").length - 1
  7950. ].toLocaleLowerCase()
  7951. ) != -1
  7952. ) {
  7953. _type = 13;
  7954. } else {
  7955. _type = 12;
  7956. }
  7957. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7958. itemTaskIndex
  7959. ].chapterData.push({
  7960. name: file.name,
  7961. url: data.Location,
  7962. uid: file.uid,
  7963. type: _type,
  7964. });
  7965. _this.imgChange1(null, null, _type, itemTaskIndex);
  7966. } else if (type == 2 || type == 3 || type == 12) {
  7967. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7968. itemTaskIndex
  7969. ].chapterData.push({
  7970. name: file.name,
  7971. url: data.Location,
  7972. uid: file.uid,
  7973. type: type,
  7974. });
  7975. _this.imgChange1(null, null, type, itemTaskIndex);
  7976. } else if (type == 4) {
  7977. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7978. itemTaskIndex
  7979. ].fileList1.push({
  7980. name: file.name,
  7981. url: data.Location,
  7982. uid: file.uid,
  7983. });
  7984. _this.imgChange1(null, null, type, itemTaskIndex);
  7985. } else if (type == 5) {
  7986. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7987. itemTaskIndex
  7988. ].homeworkList.push({
  7989. name: file.name,
  7990. url: data.Location,
  7991. uid: file.uid,
  7992. });
  7993. _this.imgChange1(null, null, type, itemTaskIndex);
  7994. }
  7995. console.log(data.Location);
  7996. }
  7997. });
  7998. }
  7999. },
  8000. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  8001. // const loading = this.openLoading();
  8002. var file = event.target.files[0];
  8003. var credentials = {
  8004. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8005. secretAccessKey: "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",
  8006. }; //秘钥形式的登录上传
  8007. window.AWS.config.update(credentials);
  8008. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8009. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8010. var _this = this;
  8011. if (type == 3) {
  8012. var b = [
  8013. "DOC",
  8014. "DOCX",
  8015. "DOCM",
  8016. "DOTM",
  8017. "DOTX",
  8018. "PPTX",
  8019. "PPSX",
  8020. "PPT",
  8021. "PPS",
  8022. "PPTM",
  8023. "POTM",
  8024. "PPAM",
  8025. "POTX",
  8026. "PPSM",
  8027. ];
  8028. if (
  8029. b.indexOf(
  8030. file.name
  8031. .split(".")
  8032. [file.name.split(".").length - 1].toLocaleUpperCase()
  8033. ) != -1
  8034. ) {
  8035. if (file.size / 1024 / 1024 > 80) {
  8036. this.$message.error("上传文件大于80兆,请重新选择文件!");
  8037. this.inputShow = true;
  8038. // var a = _this.$refs.upload1.uploadFiles;
  8039. // a.splice(a.length - 1, a.length);
  8040. // loading.close();
  8041. return;
  8042. }
  8043. } else if (
  8044. file.name
  8045. .split(".")
  8046. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  8047. ) {
  8048. if (file.size / 1024 / 1024 > 80) {
  8049. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  8050. this.inputShow = true;
  8051. // var a = _this.$refs.upload1.uploadFiles;
  8052. // a.splice(a.length - 1, a.length);
  8053. // loading.close();
  8054. return;
  8055. }
  8056. }
  8057. }
  8058. this.inputShow = false;
  8059. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8060. itemTaskIndex
  8061. ].progress = 0;
  8062. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8063. itemTaskIndex
  8064. ].proVisible = true;
  8065. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8066. itemTaskIndex
  8067. ].isFinishSize = 0;
  8068. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8069. itemTaskIndex
  8070. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  8071. _this.$forceUpdate();
  8072. if (file) {
  8073. var params = {
  8074. Key:
  8075. file.name.split(".")[0] +
  8076. new Date().getTime() +
  8077. "." +
  8078. file.name.split(".")[file.name.split(".").length - 1],
  8079. ContentType: file.type,
  8080. Body: file,
  8081. "Access-Control-Allow-Credentials": "*",
  8082. ACL: "public-read",
  8083. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8084. var options = {
  8085. partSize: 2048 * 1024 * 1024,
  8086. queueSize: 2,
  8087. leavePartsOnError: true,
  8088. };
  8089. bucket
  8090. .upload(params, options)
  8091. .on("httpUploadProgress", function (evt) {
  8092. //这里可以写进度条
  8093. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8094. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8095. itemTaskIndex
  8096. ].progress = parseInt((evt.loaded / evt.total) * 100);
  8097. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8098. itemTaskIndex
  8099. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  8100. _this.$forceUpdate();
  8101. })
  8102. .send(function (err, data) {
  8103. // loading.close();
  8104. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8105. itemTaskIndex
  8106. ].progress = 100;
  8107. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8108. itemTaskIndex
  8109. ].isFinishSize =
  8110. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8111. itemTaskIndex
  8112. ].isAllSize;
  8113. _this.$forceUpdate();
  8114. setTimeout(() => {
  8115. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8116. itemTaskIndex
  8117. ].proVisible = false;
  8118. _this.$forceUpdate();
  8119. }, 1000);
  8120. _this.inputShow = true;
  8121. if (err) {
  8122. // var a = _this.$refs.upload1.uploadFiles;
  8123. // a.splice(a.length - 1, a.length);
  8124. _this.$message.error("上传失败");
  8125. } else {
  8126. if (type == 2 || type == 3) {
  8127. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8128. itemTaskIndex
  8129. ].chapterData.push({
  8130. name: file.name,
  8131. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8132. // itemTaskIndex
  8133. // ].chapterData.length+1),
  8134. url: data.Location,
  8135. uid: file.uid,
  8136. type: type,
  8137. text: string,
  8138. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8139. // itemTaskIndex
  8140. // ].chapterData.length + 1),
  8141. });
  8142. _this.imgChange1(null, null, type, itemTaskIndex);
  8143. } else if (type == 4) {
  8144. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8145. itemTaskIndex
  8146. ].fileList1.push({
  8147. name: file.name,
  8148. url: data.Location,
  8149. uid: file.uid,
  8150. });
  8151. _this.imgChange1(null, null, type, itemTaskIndex);
  8152. } else if (type == 5) {
  8153. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8154. itemTaskIndex
  8155. ].homeworkList.push({
  8156. name: file.name,
  8157. url: data.Location,
  8158. uid: file.uid,
  8159. });
  8160. _this.imgChange1(null, null, type, itemTaskIndex);
  8161. }
  8162. console.log(data.Location);
  8163. }
  8164. });
  8165. }
  8166. },
  8167. addunit() {
  8168. this.unitJson.push({
  8169. dyName: "", //单元标题
  8170. isUpdate: 1,
  8171. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  8172. chapterInfo: [
  8173. {
  8174. isread: false,
  8175. chapterid: this.guid(),
  8176. title: "",
  8177. courseName: "",
  8178. taskJson: [
  8179. {
  8180. task: "",
  8181. taskDetail: "",
  8182. chapterData: [],
  8183. toolText: "",
  8184. toolChoose: [
  8185. {
  8186. tool: [],
  8187. toolDetail: "",
  8188. toolType: 1,
  8189. askCount: 1,
  8190. askTitle: "",
  8191. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8192. },
  8193. ],
  8194. isShowTools: false,
  8195. askCount: 1,
  8196. isFold: 0,
  8197. askTitle: "",
  8198. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8199. checkJson: [{ checkCount: [], checkPerent: [] }],
  8200. homeworkList: [],
  8201. },
  8202. ],
  8203. itemCount: 1,
  8204. fileList1: [],
  8205. video: [],
  8206. testData: [],
  8207. pData: [],
  8208. templateArray: [],
  8209. },
  8210. ],
  8211. });
  8212. this.addindex = this.unitJson.length - 1;
  8213. setTimeout(() => {
  8214. this.unitIndex = this.unitJson.length - 1;
  8215. this.unitSet(this.unitIndex);
  8216. }, 0);
  8217. },
  8218. addToolFun(itemTaskIndex) {
  8219. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8220. itemTaskIndex
  8221. ].toolChoose.push({
  8222. tool: [],
  8223. toolDetail: "",
  8224. toolType: 1,
  8225. askCount: 1,
  8226. askTitle: "",
  8227. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8228. });
  8229. },
  8230. addTaskBorder() {
  8231. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  8232. task: "",
  8233. taskDetail: "",
  8234. chapterData: [],
  8235. toolChoose: [
  8236. {
  8237. tool: [],
  8238. toolDetail: "",
  8239. toolType: 1,
  8240. askCount: 1,
  8241. askTitle: "",
  8242. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8243. },
  8244. ],
  8245. toolText: "",
  8246. isShowTools: false,
  8247. askCount: 1,
  8248. isFold: 0,
  8249. askTitle: "",
  8250. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8251. checkJson: [{ checkCount: [], checkPerent: [] }],
  8252. homeworkList: [],
  8253. });
  8254. },
  8255. add(e, i) {
  8256. var el = e.currentTarget;
  8257. el.getElementsByTagName("input")[0].click();
  8258. },
  8259. fold(i, e, type) {
  8260. var a = e.currentTarget.parentElement.parentElement;
  8261. var b = e.currentTarget.parentElement;
  8262. if (type == 1) {
  8263. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  8264. a.className += " smallTaskBorder";
  8265. b.className += " funBlockTop";
  8266. } else {
  8267. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  8268. a.className = "taskBorder";
  8269. b.className = "funBlock";
  8270. }
  8271. console.log(e);
  8272. },
  8273. fold2(i) {
  8274. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  8275. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  8276. } else {
  8277. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  8278. }
  8279. this.$forceUpdate();
  8280. },
  8281. deleteHomeworkBox(unitIndex, index, i) {
  8282. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  8283. this.taskCount
  8284. ].homeworkList.splice(i, 1);
  8285. },
  8286. getStudent() {
  8287. let params = {
  8288. oid: this.oid,
  8289. cu: "",
  8290. cn: this.searchPeople,
  8291. };
  8292. this.ajax
  8293. .get(this.$store.state.api + "selectStudentAdd", params)
  8294. .then((res) => {
  8295. this.studentJuri = res.data[0];
  8296. })
  8297. .catch((err) => {
  8298. this.isLoading = false;
  8299. console.error(err);
  8300. });
  8301. },
  8302. getTeacher() {
  8303. let params = {
  8304. oid:
  8305. this.org && this.org != "undefined" && this.org != "null"
  8306. ? this.org
  8307. : this.oid,
  8308. cu: "",
  8309. cn: this.searchTN,
  8310. };
  8311. this.ajax
  8312. .get(
  8313. this.$store.state.api +
  8314. (this.org && this.org != "undefined" && this.org != "null"
  8315. ? "selectTeacherAddOrg"
  8316. : "selectTeacherAdd"),
  8317. params
  8318. )
  8319. .then((res) => {
  8320. let teacherJuri = res.data[0];
  8321. for (var i = 0; i < teacherJuri.length; i++) {
  8322. if (teacherJuri[i].userid == this.userid) {
  8323. teacherJuri.splice(i, 1);
  8324. break;
  8325. }
  8326. }
  8327. this.teacherJuri = teacherJuri;
  8328. })
  8329. .catch((err) => {
  8330. console.error(err);
  8331. });
  8332. },
  8333. searchStudent() {
  8334. this.getStudent();
  8335. },
  8336. selectGrage() {
  8337. let params = {
  8338. oid: this.oid,
  8339. };
  8340. this.ajax
  8341. .get(this.$store.state.api + "selectGrageBySchool", params)
  8342. .then((res) => {
  8343. this.gradeList = res.data[0];
  8344. })
  8345. .catch((err) => {
  8346. this.isLoading = false;
  8347. console.error(err);
  8348. });
  8349. },
  8350. //获取班级列表
  8351. getClass() {
  8352. let params = {
  8353. oid: this.oid,
  8354. gid: this.gradeId,
  8355. cn: this.classSearch,
  8356. };
  8357. this.ajax
  8358. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  8359. .then((res) => {
  8360. if (!this.grade.length) {
  8361. this.grade = res.data[0];
  8362. }
  8363. this.grade2 = res.data[0];
  8364. this.classJuri = res.data[0];
  8365. })
  8366. .catch((err) => {
  8367. this.isLoading = false;
  8368. console.error(err);
  8369. });
  8370. },
  8371. CourseType2Change(val) {
  8372. this.pTypeCheck = [];
  8373. for (var i = 0; i < this.CourseType2.length; i++) {
  8374. let typeA = this.CourseType2[i];
  8375. if (val.indexOf(typeA.name) != -1) {
  8376. this.pTypeCheck.push(...typeA.id);
  8377. }
  8378. }
  8379. },
  8380. getChapterData(e, i, j, ic, type) {
  8381. e.stopPropagation();
  8382. this.updataC = true;
  8383. this.icc = ic;
  8384. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  8385. console.log("还不能下载图片喔");
  8386. }
  8387. },
  8388. deleteChapterData(e, i, j, ic, taskI) {
  8389. e.stopPropagation();
  8390. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  8391. },
  8392. updataVideoT(e, i, j, ic) {
  8393. e.stopPropagation();
  8394. this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  8395. ic
  8396. ].name = JSON.parse(JSON.stringify(e.target.value));
  8397. this.$forceUpdate();
  8398. },
  8399. upCd(e, i, j, taskCount, ic) {
  8400. e.stopPropagation();
  8401. if (ic == 0) {
  8402. return;
  8403. }
  8404. var a =
  8405. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  8406. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  8407. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  8408. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8409. this.$forceUpdate();
  8410. },
  8411. downCd(e, i, j, taskCount, ic) {
  8412. e.stopPropagation();
  8413. if (
  8414. ic ==
  8415. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  8416. 1
  8417. ) {
  8418. return;
  8419. }
  8420. var a =
  8421. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  8422. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  8423. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  8424. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8425. this.$forceUpdate();
  8426. },
  8427. addWork() {
  8428. let cPan = 1;
  8429. for (var i = 0; i < this.unitJson.length; i++) {
  8430. for (
  8431. var j = 0;
  8432. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8433. j++
  8434. ) {
  8435. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8436. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8437. if (
  8438. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8439. ) {
  8440. for (
  8441. var z = 0;
  8442. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8443. z++
  8444. ) {
  8445. if (
  8446. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8447. .length
  8448. ) {
  8449. this.$message.error("请把工具添加完整");
  8450. cPan = 2;
  8451. break;
  8452. }
  8453. }
  8454. }
  8455. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8456. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8457. i
  8458. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8459. return ele.value != "";
  8460. });
  8461. }
  8462. }
  8463. }
  8464. this.inputShow = true;
  8465. if (cPan == 2) {
  8466. return;
  8467. }
  8468. for (var i = 0; i < this.unitJson.length; i++) {
  8469. delete this.unitJson[i].isUpdate;
  8470. }
  8471. let params = [
  8472. {
  8473. uid: this.userid,
  8474. title: this.courseName.replace(/%/g, "%25"),
  8475. brief: this.courseText.replace(/%/g, "%25"),
  8476. cover:
  8477. this.cover.length > 0
  8478. ? JSON.stringify(this.cover)
  8479. : JSON.stringify([
  8480. {
  8481. name: "noBanner.jpg",
  8482. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8483. uid: 1656409780264,
  8484. status: "success",
  8485. },
  8486. ]),
  8487. evaId: this.evalua,
  8488. astudent:
  8489. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8490. see: this.isTeacherSee == true ? 1 : 0,
  8491. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  8492. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  8493. courseType: JSON.stringify(this.courseTypeId),
  8494. ateacher:
  8495. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8496. inviteCode: JSON.stringify(this.inviteCode),
  8497. },
  8498. ];
  8499. this.ajax
  8500. .post(this.$store.state.api + "addWorkNew2E", params)
  8501. .then((res) => {
  8502. console.log(this.steps);
  8503. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8504. this.$message({
  8505. message: "新增成功",
  8506. type: "success",
  8507. });
  8508. // }
  8509. this.number = res.data.ordernumber;
  8510. this.courseId = res.data.courseId;
  8511. this.cid = res.data.courseId;
  8512. this.courseUserid = this.userid;
  8513. this.islogin = true;
  8514. this.steps = 4;
  8515. })
  8516. .catch((err) => {
  8517. this.$message.error("网络不佳");
  8518. console.error(err);
  8519. });
  8520. },
  8521. goCourse() {
  8522. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  8523. },
  8524. updateWork2() {
  8525. let _unitIndex = this.unitIndex;
  8526. let cPan = 1;
  8527. for (
  8528. var j = 0;
  8529. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8530. j++
  8531. ) {
  8532. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8533. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8534. j
  8535. ].proVisible2 = false;
  8536. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8537. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8538. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8539. (ele) => {
  8540. return ele.value != "";
  8541. }
  8542. );
  8543. }
  8544. }
  8545. this.inputShow = true;
  8546. if (cPan == 2) {
  8547. return;
  8548. }
  8549. let params = [
  8550. {
  8551. cid: this.cid,
  8552. chapters: JSON.stringify(this.unitJson),
  8553. uid: this.userid,
  8554. unitIndex: _unitIndex,
  8555. },
  8556. ];
  8557. this.ajax
  8558. .post(this.$store.state.api + "updateWorkNew4", params)
  8559. .then((res) => {
  8560. this.$message({
  8561. message: "修改成功",
  8562. type: "success",
  8563. });
  8564. this.courseId = this.cid;
  8565. })
  8566. .catch((err) => {
  8567. this.$message.error("网络不佳");
  8568. console.error(err);
  8569. });
  8570. },
  8571. updateWork() {
  8572. let cPan = 1;
  8573. for (var i = 0; i < this.unitJson.length; i++) {
  8574. for (
  8575. var j = 0;
  8576. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8577. j++
  8578. ) {
  8579. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8580. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8581. if (
  8582. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8583. ) {
  8584. for (
  8585. var z = 0;
  8586. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8587. z++
  8588. ) {
  8589. if (
  8590. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8591. .length
  8592. ) {
  8593. this.$message.error("请把工具添加完整");
  8594. cPan = 2;
  8595. break;
  8596. }
  8597. }
  8598. }
  8599. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8600. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8601. i
  8602. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8603. return ele.value != "";
  8604. });
  8605. }
  8606. }
  8607. }
  8608. this.inputShow = true;
  8609. if (cPan == 2) {
  8610. this.step--;
  8611. return;
  8612. }
  8613. for (var i = 0; i < this.unitJson.length; i++) {
  8614. delete this.unitJson[i].isUpdate;
  8615. }
  8616. let params = [
  8617. {
  8618. cid: this.cid,
  8619. title: this.courseName.replace(/%/g, "%25"),
  8620. brief: this.courseText.replace(/%/g, "%25"),
  8621. cover:
  8622. this.cover.length > 0
  8623. ? JSON.stringify(this.cover)
  8624. : JSON.stringify([
  8625. {
  8626. name: "noBanner.jpg",
  8627. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8628. uid: 1656409780264,
  8629. status: "success",
  8630. },
  8631. ]),
  8632. evaId: this.evalua,
  8633. astudent:
  8634. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8635. see: this.isTeacherSee == true ? 1 : 0,
  8636. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  8637. template: this.myWord != "undefined" ? this.myWord : [],
  8638. uid: this.userid,
  8639. courseType: JSON.stringify(this.courseTypeId),
  8640. ateacher:
  8641. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8642. inviteCode: JSON.stringify(this.inviteCode),
  8643. },
  8644. ];
  8645. this.ajax
  8646. .post(this.$store.state.api + "updateWorkNew2", params)
  8647. .then((res) => {
  8648. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8649. if (this.cidType == 1) {
  8650. this.$message({
  8651. message: "修改成功",
  8652. type: "success",
  8653. });
  8654. } else {
  8655. this.$message({
  8656. message: "新增成功",
  8657. type: "success",
  8658. });
  8659. }
  8660. // }
  8661. this.number = this.nbOrder;
  8662. this.courseId = this.cid;
  8663. this.steps = 4;
  8664. })
  8665. .catch((err) => {
  8666. this.$message.error("网络不佳");
  8667. console.error(err);
  8668. });
  8669. },
  8670. guid() {
  8671. var _num,
  8672. i,
  8673. _guid = "";
  8674. for (i = 0; i < 32; i++) {
  8675. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  8676. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  8677. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  8678. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  8679. _guid += "-";
  8680. }
  8681. }
  8682. return _guid;
  8683. },
  8684. insertWord() {
  8685. this.dialogVisible1 = true;
  8686. this.updateBoolean2 = false;
  8687. this.tTitle = "";
  8688. this.tdetail = "";
  8689. },
  8690. addWord() {
  8691. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  8692. name: this.tTitle,
  8693. content: this.tdetail,
  8694. uid: this.guid(),
  8695. });
  8696. this.dialogVisible1 = false;
  8697. },
  8698. upWord() {},
  8699. selectWord(uid, i, c) {
  8700. this.dialogVisible1 = true;
  8701. this.updateBoolean2 = true;
  8702. if (
  8703. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  8704. ) {
  8705. this.tTitle =
  8706. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  8707. this.tdetail =
  8708. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  8709. }
  8710. },
  8711. isAddPP() {
  8712. if (this.checkboxList.length > 0) {
  8713. this.$message({
  8714. message: "添加成功",
  8715. type: "success",
  8716. });
  8717. this.dialogVisible3 = false;
  8718. } else {
  8719. this.$message({
  8720. message: "请添加课程成员",
  8721. type: "error",
  8722. });
  8723. }
  8724. },
  8725. isAddClass() {
  8726. this.dialogVisibleClass = false;
  8727. },
  8728. isAddPPTeacher() {
  8729. this.dialogVisibleMember = false;
  8730. this.setMan();
  8731. },
  8732. getTemplate() {
  8733. this.ajax
  8734. .get(this.$store.state.api + "getCourseTemplateT", "")
  8735. .then((res) => {
  8736. this.templateArray = res.data[0];
  8737. this.getTemplateOid();
  8738. this.$forceUpdate();
  8739. })
  8740. .catch((err) => {});
  8741. },
  8742. getTemplateOid() {
  8743. let params = {
  8744. oid: this.oid,
  8745. };
  8746. this.ajax
  8747. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8748. .then((res) => {
  8749. if (res.data[0].length) {
  8750. this.templateArray = [...res.data[0], ...this.templateArray];
  8751. }
  8752. this.getTemplateOrg();
  8753. this.$forceUpdate();
  8754. })
  8755. .catch((err) => {});
  8756. },
  8757. getTemplateOrg() {
  8758. let params = {
  8759. oid: this.org,
  8760. };
  8761. this.ajax
  8762. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8763. .then((res) => {
  8764. if (res.data[0].length) {
  8765. this.templateArray = [...res.data[0], ...this.templateArray];
  8766. }
  8767. this.$forceUpdate();
  8768. })
  8769. .catch((err) => {});
  8770. },
  8771. clearChoose() {
  8772. this.clearArray.splice(this.templateC.id, 1);
  8773. this.dialogVisible2 = false;
  8774. },
  8775. clearAttText() {
  8776. this.AttText = {
  8777. title: "",
  8778. text: "",
  8779. };
  8780. this.dialogVisible6 = false;
  8781. },
  8782. clearLine() {
  8783. this.line = "";
  8784. this.dialogVisible7 = false;
  8785. },
  8786. checkTemplate(res) {
  8787. let _this = this;
  8788. _this
  8789. .$confirm("确定选择此模板吗?", "提示", {
  8790. confirmButtonText: "确定",
  8791. cancelButtonText: "取消",
  8792. type: "warning",
  8793. })
  8794. .then(() => {
  8795. _this.unitJson = JSON.parse(res.chapters);
  8796. _this.steps++;
  8797. setTimeout(() => {
  8798. this.checkEva(this.checkId);
  8799. }, 1000);
  8800. })
  8801. .catch(() => {
  8802. return;
  8803. });
  8804. },
  8805. checkTemplate1(w) {
  8806. this.steps++;
  8807. },
  8808. checkTemplate2() {
  8809. let _this = this;
  8810. _this
  8811. .$confirm("确定选择空模板吗?", "提示", {
  8812. confirmButtonText: "确定",
  8813. cancelButtonText: "取消",
  8814. type: "warning",
  8815. })
  8816. .then(() => {
  8817. _this.unitIndex = 0;
  8818. _this.unitJson = [
  8819. {
  8820. dyName: "", //单元标题
  8821. chapterInfo: [
  8822. {
  8823. isread: false,
  8824. chapterid: this.guid(),
  8825. title: "",
  8826. courseName: "",
  8827. taskJson: [
  8828. {
  8829. task: "",
  8830. taskDetail: "",
  8831. chapterData: [],
  8832. toolText: "",
  8833. toolChoose: [
  8834. {
  8835. tool: [],
  8836. toolDetail: "",
  8837. toolType: 1,
  8838. askCount: 1,
  8839. askTitle: "",
  8840. askJson: [
  8841. { askstitle: "", askItem: 1, checkList: [] },
  8842. ],
  8843. },
  8844. ],
  8845. isShowTools: false,
  8846. askCount: 1,
  8847. isFold: 0,
  8848. askTitle: "",
  8849. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8850. checkJson: [{ checkCount: [], checkPerent: [] }],
  8851. homeworkList: [],
  8852. },
  8853. ],
  8854. itemCount: 1,
  8855. fileList1: [],
  8856. video: [],
  8857. testData: [],
  8858. pData: [],
  8859. templateArray: [],
  8860. },
  8861. ],
  8862. },
  8863. ];
  8864. this.steps++;
  8865. this.updateWork();
  8866. })
  8867. .catch(() => {
  8868. return;
  8869. });
  8870. },
  8871. checkTemplate3() {
  8872. let _this = this;
  8873. _this
  8874. .$confirm("确定选择简易模式吗?", "提示", {
  8875. confirmButtonText: "确定",
  8876. cancelButtonText: "取消",
  8877. type: "warning",
  8878. })
  8879. .then(() => {
  8880. _this.unitIndex = 0;
  8881. _this.unitJson = [
  8882. {
  8883. dyName: "", //单元标题
  8884. easy: 1,
  8885. chapterInfo: [
  8886. {
  8887. isread: false,
  8888. chapterid: this.guid(),
  8889. title: "",
  8890. courseName: "",
  8891. taskJson: [
  8892. {
  8893. task: "",
  8894. taskDetail: "",
  8895. chapterData: [],
  8896. toolText: "",
  8897. toolChoose: [
  8898. {
  8899. tool: [],
  8900. toolDetail: "",
  8901. toolType: 1,
  8902. askCount: 1,
  8903. askTitle: "",
  8904. askJson: [
  8905. { askstitle: "", askItem: 1, checkList: [] },
  8906. ],
  8907. },
  8908. ],
  8909. isShowTools: false,
  8910. askCount: 1,
  8911. isFold: 0,
  8912. askTitle: "",
  8913. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8914. checkJson: [{ checkCount: [], checkPerent: [] }],
  8915. homeworkList: [],
  8916. },
  8917. ],
  8918. itemCount: 1,
  8919. fileList1: [],
  8920. video: [],
  8921. testData: [],
  8922. pData: [],
  8923. templateArray: [],
  8924. },
  8925. ],
  8926. },
  8927. ];
  8928. this.steps++;
  8929. this.updateWork();
  8930. })
  8931. .catch(() => {
  8932. return;
  8933. });
  8934. },
  8935. checkTemplate4() {
  8936. let _this = this;
  8937. _this
  8938. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  8939. confirmButtonText: "确定",
  8940. cancelButtonText: "取消",
  8941. type: "warning",
  8942. })
  8943. .then(() => {
  8944. _this.unitIndex = 0;
  8945. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  8946. this.steps++;
  8947. this.updateWork();
  8948. })
  8949. .catch(() => {
  8950. return;
  8951. });
  8952. },
  8953. wordNext() {
  8954. this.dialogVisible2 = false;
  8955. },
  8956. isAddOrUpdateAttText() {
  8957. if (this.AttTextType == 0) {
  8958. this.addAttTextMessage();
  8959. } else {
  8960. this.updateAttText();
  8961. }
  8962. },
  8963. isAddOrUpdateLine() {
  8964. if (!this.lineTitle) {
  8965. this.$message.error("请填写链接标题");
  8966. return;
  8967. }
  8968. if (this.lineType == 0) {
  8969. this.addLine();
  8970. } else {
  8971. this.updateLine();
  8972. }
  8973. },
  8974. addAttTextMessage() {
  8975. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8976. this.taskCount
  8977. ].chapterData.push({
  8978. name: this.AttText.title,
  8979. url: this.AttText.text,
  8980. type: 6,
  8981. });
  8982. this.imgChange1(null, null, 6, this.taskCount);
  8983. this.dialogVisible6 = false;
  8984. },
  8985. selectAttText(itemTaskIndex, i) {
  8986. this.AttText.title =
  8987. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8988. itemTaskIndex
  8989. ].chapterData[i].name;
  8990. this.AttText.text =
  8991. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8992. itemTaskIndex
  8993. ].chapterData[i].url;
  8994. this.taskCount = itemTaskIndex;
  8995. this.AttTextIndex = i;
  8996. this.AttTextType = 1;
  8997. this.dialogVisible6 = true;
  8998. },
  8999. updateAttText() {
  9000. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9001. this.taskCount
  9002. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  9003. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9004. this.taskCount
  9005. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  9006. this.dialogVisible6 = false;
  9007. },
  9008. addLine() {
  9009. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9010. this.lineCount
  9011. ].chapterData.push({
  9012. name: "链接",
  9013. title: this.lineTitle,
  9014. url: this.line,
  9015. type: 8,
  9016. });
  9017. this.imgChange1(null, null, 8, this.lineCount);
  9018. this.dialogVisible7 = false;
  9019. },
  9020. selectLine(itemTaskIndex, i) {
  9021. this.line =
  9022. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9023. itemTaskIndex
  9024. ].chapterData[i].url;
  9025. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9026. itemTaskIndex
  9027. ].chapterData[i].title
  9028. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9029. .chapterData[i].title
  9030. : "";
  9031. this.taskCount = itemTaskIndex;
  9032. this.lineCount = i;
  9033. this.lineType = 1;
  9034. this.dialogVisible7 = true;
  9035. },
  9036. updateLine() {
  9037. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9038. this.taskCount
  9039. ].chapterData[this.lineCount].url = this.line;
  9040. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9041. this.taskCount
  9042. ].chapterData[this.lineCount].title = this.lineTitle;
  9043. this.dialogVisible7 = false;
  9044. },
  9045. addPP() {
  9046. this.dialogVisible3 = true;
  9047. },
  9048. goTo(path) {
  9049. this.$router.push(path);
  9050. },
  9051. openTools(itemTaskIndex, i, toolIndex) {
  9052. this.toolIndex = toolIndex;
  9053. this.taskCount = itemTaskIndex;
  9054. if (i == 4) {
  9055. if (toolIndex == null) {
  9056. var a =
  9057. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9058. .chapterData;
  9059. for (var i = 0; i < a.length; i++) {
  9060. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  9061. this.askJson =
  9062. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9063. itemTaskIndex
  9064. ].chapterData[i].askJson;
  9065. }
  9066. }
  9067. } else {
  9068. this.askJson = JSON.parse(
  9069. JSON.stringify(
  9070. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9071. itemTaskIndex
  9072. ].toolChoose[toolIndex]
  9073. )
  9074. );
  9075. }
  9076. this.dialogVisible5 = true;
  9077. } else if (i == 45) {
  9078. if (
  9079. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9080. .toolChoose[toolIndex].testJson
  9081. ) {
  9082. this.testJson = JSON.parse(
  9083. JSON.stringify(
  9084. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9085. itemTaskIndex
  9086. ].toolChoose[toolIndex].testJson
  9087. )
  9088. );
  9089. } else {
  9090. var testJson = {
  9091. testCount: 1,
  9092. testTitle: "",
  9093. testJson: [
  9094. {
  9095. teststitle: "",
  9096. testItem: 1,
  9097. checkList: [],
  9098. timuList: [],
  9099. answer: [],
  9100. type: "1",
  9101. },
  9102. ],
  9103. };
  9104. this.testJson = testJson;
  9105. }
  9106. this.dialogVisibleChoice = true;
  9107. } else if (i == 47) {
  9108. if (
  9109. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9110. .toolChoose[toolIndex].sentenceList
  9111. ) {
  9112. this.sentenceList = JSON.parse(
  9113. JSON.stringify(
  9114. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9115. itemTaskIndex
  9116. ].toolChoose[toolIndex].sentenceList
  9117. )
  9118. );
  9119. } else {
  9120. var sentenceList = [
  9121. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9122. ];
  9123. this.sentenceList = sentenceList;
  9124. }
  9125. this.dialogVisibleSentence = true;
  9126. } else if (i == 48) {
  9127. if (
  9128. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9129. .toolChoose[toolIndex].tableJson
  9130. ) {
  9131. this.tableJson = JSON.parse(
  9132. JSON.stringify(
  9133. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9134. itemTaskIndex
  9135. ].toolChoose[toolIndex].tableJson
  9136. )
  9137. );
  9138. } else {
  9139. var tableJson = { text: "" };
  9140. this.tableJson = tableJson;
  9141. }
  9142. this.dialogVisibleTable = true;
  9143. } else if (i == 52) {
  9144. if (
  9145. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9146. .toolChoose[toolIndex].wordJson
  9147. ) {
  9148. this.wordJson = JSON.parse(
  9149. JSON.stringify(
  9150. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9151. itemTaskIndex
  9152. ].toolChoose[toolIndex].wordJson
  9153. )
  9154. );
  9155. } else {
  9156. var wordJson = { text: "" };
  9157. this.wordJson = wordJson;
  9158. }
  9159. this.dialogVisibleWord = true;
  9160. // else if (i == 50) {
  9161. // if (
  9162. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9163. // .toolChoose[toolIndex].uploadJson
  9164. // ) {
  9165. // this.uploadJson = JSON.parse(
  9166. // JSON.stringify(
  9167. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9168. // itemTaskIndex
  9169. // ].toolChoose[toolIndex].uploadJson
  9170. // )
  9171. // );
  9172. // } else {
  9173. // var uploadJson = [];
  9174. // this.uploadJson = uploadJson;
  9175. // }
  9176. // this.dialogVisibleMoreUpload = true;
  9177. // }
  9178. } else if (i == 10) {
  9179. if (
  9180. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9181. .toolChoose[toolIndex].preTime
  9182. ) {
  9183. this.preTime = JSON.parse(
  9184. JSON.stringify(
  9185. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9186. itemTaskIndex
  9187. ].toolChoose[toolIndex].preTime
  9188. )
  9189. );
  9190. } else {
  9191. var preTime = 0;
  9192. this.preTime = preTime;
  9193. }
  9194. this.dialogVisiblePreTime = true;
  9195. } else if (i == 49) {
  9196. if (
  9197. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9198. .toolChoose[toolIndex].groupJson
  9199. ) {
  9200. this.groupJson = JSON.parse(
  9201. JSON.stringify(
  9202. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9203. itemTaskIndex
  9204. ].toolChoose[toolIndex].groupJson
  9205. )
  9206. );
  9207. } else {
  9208. var groupJson = {
  9209. group: [{ name: "第1组" }],
  9210. number: undefined,
  9211. islock: 1,
  9212. };
  9213. this.groupJson = groupJson;
  9214. }
  9215. this.dialogVisibleGroup = true;
  9216. } else if (i == 62) {
  9217. if (
  9218. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9219. .toolChoose[toolIndex].videoJson
  9220. ) {
  9221. this.videoJson = JSON.parse(
  9222. JSON.stringify(
  9223. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9224. itemTaskIndex
  9225. ].toolChoose[toolIndex].videoJson
  9226. )
  9227. );
  9228. } else {
  9229. var videoJson = {
  9230. video: "",
  9231. setting: [],
  9232. };
  9233. this.videoJson = videoJson;
  9234. }
  9235. this.dialogVisibleVideo = true;
  9236. } else if (i == 15) {
  9237. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9238. itemTaskIndex
  9239. ].toolChoose[toolIndex].answerQ
  9240. ? JSON.parse(
  9241. JSON.stringify(
  9242. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9243. itemTaskIndex
  9244. ].toolChoose[toolIndex].answerQ
  9245. )
  9246. )
  9247. : "";
  9248. this.dialogVisible8 = true;
  9249. } else if (i == 40) {
  9250. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9251. itemTaskIndex
  9252. ].toolChoose[toolIndex].rateJson
  9253. ? JSON.parse(
  9254. JSON.stringify(
  9255. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9256. itemTaskIndex
  9257. ].toolChoose[toolIndex].rateJson
  9258. )
  9259. )
  9260. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  9261. this.selectSteps = 1;
  9262. this.dialogVisibleRate = true;
  9263. } else if (i == 42) {
  9264. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9265. itemTaskIndex
  9266. ].toolChoose[toolIndex].answerQ
  9267. ? JSON.parse(
  9268. JSON.stringify(
  9269. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9270. itemTaskIndex
  9271. ].toolChoose[toolIndex].answerQ
  9272. )
  9273. )
  9274. : "";
  9275. this.dialogVisibleMp3 = true;
  9276. } else if (i == 41) {
  9277. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9278. itemTaskIndex
  9279. ].toolChoose[toolIndex].selectJson
  9280. ? JSON.parse(
  9281. JSON.stringify(
  9282. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9283. itemTaskIndex
  9284. ].toolChoose[toolIndex].selectJson
  9285. )
  9286. )
  9287. : { url: "", select: [], answer: [] };
  9288. this.selectSteps = 1;
  9289. this.dialogVisibleSelect = true;
  9290. } else if (i == 3) {
  9291. if (!this.cid) {
  9292. this.$message.error(
  9293. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  9294. );
  9295. return;
  9296. }
  9297. window.parent.postMessage(
  9298. {
  9299. tools: "3y",
  9300. cid: this.cid,
  9301. stage: this.unitIndex,
  9302. task: itemTaskIndex,
  9303. tool: toolIndex,
  9304. },
  9305. "*"
  9306. );
  9307. } else if (i == 1) {
  9308. if (!this.cid) {
  9309. this.$message.error(
  9310. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  9311. );
  9312. return;
  9313. }
  9314. window.parent.postMessage(
  9315. {
  9316. tools: "1y",
  9317. cid: this.cid,
  9318. stage: this.unitIndex,
  9319. task: itemTaskIndex,
  9320. tool: toolIndex,
  9321. },
  9322. "*"
  9323. );
  9324. } else if (i == 57) {
  9325. if (!this.cid) {
  9326. this.$message.error(
  9327. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  9328. );
  9329. return;
  9330. }
  9331. window.parent.postMessage(
  9332. {
  9333. tools: "57y",
  9334. cid: this.cid,
  9335. stage: this.unitIndex,
  9336. task: itemTaskIndex,
  9337. tool: toolIndex,
  9338. },
  9339. "*"
  9340. );
  9341. }
  9342. },
  9343. chapAddTools(i) {
  9344. if (this.chapTools[0].tools.length == 0) {
  9345. this.chapTools[0].tools.push(i);
  9346. } else {
  9347. if (this.chapTools[0].tools.indexOf(i) != -1) {
  9348. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  9349. } else {
  9350. this.chapTools[0].tools.push(i);
  9351. }
  9352. }
  9353. this.$forceUpdate();
  9354. },
  9355. addChaptersDataTools() {
  9356. if (this.chapTools[0].tools.indexOf(4) != -1) {
  9357. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9358. this.chapCount
  9359. ].chapterData.push({
  9360. name: this.chapTools[0].toolDetail,
  9361. url: this.chapTools[0].tools,
  9362. type: 7,
  9363. askJson: this.askJson,
  9364. });
  9365. } else {
  9366. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9367. this.chapCount
  9368. ].chapterData.push({
  9369. name: this.chapTools[0].toolDetail,
  9370. url: this.chapTools[0].tools,
  9371. type: 7,
  9372. });
  9373. }
  9374. this.imgChange1(null, null, 7, this.chapCount);
  9375. this.dialogVisible4 = false;
  9376. },
  9377. addTools(i, itemTaskIndex, toolIndex) {
  9378. // if (
  9379. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9380. // .toolChoose[toolIndex].tool.length == 0
  9381. // ) {
  9382. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9383. // itemTaskIndex
  9384. // ].toolChoose[toolIndex].tool.push(i);
  9385. // } else {
  9386. // if (
  9387. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9388. // itemTaskIndex
  9389. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9390. // ) {
  9391. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9392. // itemTaskIndex
  9393. // ].toolChoose[toolIndex].tool.splice(
  9394. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9395. // itemTaskIndex
  9396. // ].toolChoose[toolIndex].tool.indexOf(i),
  9397. // 1
  9398. // );
  9399. // } else {
  9400. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9401. // itemTaskIndex
  9402. // ].toolChoose[toolIndex].tool.push(i);
  9403. // }
  9404. // console.log(
  9405. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9406. // .toolChoose[toolIndex].tool
  9407. // );
  9408. // }
  9409. if (i == 4) {
  9410. if (
  9411. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9412. .toolChoose[toolIndex].askJson.askTitle == "" ||
  9413. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9414. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  9415. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9416. .toolChoose[toolIndex].askJson[0].checkList < 2
  9417. ) {
  9418. this.openTools(itemTaskIndex, 4, toolIndex);
  9419. // this.$message({
  9420. // message: "请填写完整问卷内容",
  9421. // type: "error",
  9422. // });
  9423. return;
  9424. }
  9425. }
  9426. if (i == 45) {
  9427. if (
  9428. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9429. .toolChoose[toolIndex].testJson ||
  9430. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9431. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  9432. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9433. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  9434. ) {
  9435. this.openTools(itemTaskIndex, 45, toolIndex);
  9436. // this.$message({
  9437. // message: "请填写完整问卷内容",
  9438. // type: "error",
  9439. // });
  9440. return;
  9441. }
  9442. }
  9443. if (i == 47) {
  9444. if (
  9445. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9446. .toolChoose[toolIndex].sentenceList ||
  9447. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9448. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  9449. ) {
  9450. this.openTools(itemTaskIndex, 47, toolIndex);
  9451. return;
  9452. }
  9453. }
  9454. // if (i == 48) {
  9455. // if (
  9456. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9457. // .toolChoose[toolIndex].tableJson
  9458. // ) {
  9459. // this.openTools(itemTaskIndex, 48, toolIndex);
  9460. // return;
  9461. // }
  9462. // }
  9463. // if (i == 50) {
  9464. // if (
  9465. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9466. // .toolChoose[toolIndex].uploadJson
  9467. // ) {
  9468. // this.openTools(itemTaskIndex, 50, toolIndex);
  9469. // return;
  9470. // }
  9471. // }
  9472. if (i == 49) {
  9473. if (
  9474. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9475. .toolChoose[toolIndex].groupJson
  9476. ) {
  9477. this.openTools(itemTaskIndex, 49, toolIndex);
  9478. return;
  9479. }
  9480. }
  9481. if (i == 62) {
  9482. if (
  9483. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9484. .toolChoose[toolIndex].videoJson
  9485. ) {
  9486. this.openTools(itemTaskIndex, 62, toolIndex);
  9487. return;
  9488. }
  9489. }
  9490. if (i == 15) {
  9491. if (
  9492. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9493. .toolChoose[toolIndex].answerQ ||
  9494. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9495. .toolChoose[toolIndex].answerQ == ""
  9496. ) {
  9497. this.openTools(itemTaskIndex, 15, toolIndex);
  9498. // this.$message({
  9499. // message: "请填写问答内容",
  9500. // type: "error",
  9501. // });
  9502. return;
  9503. }
  9504. }
  9505. if (i == 40) {
  9506. if (
  9507. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9508. .toolChoose[toolIndex].rateJson ||
  9509. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9510. .toolChoose[toolIndex].rateJson.length
  9511. ) {
  9512. this.openTools(itemTaskIndex, 40, toolIndex);
  9513. return;
  9514. }
  9515. }
  9516. if (i == 41) {
  9517. if (
  9518. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9519. .toolChoose[toolIndex].selectJson ||
  9520. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9521. .toolChoose[toolIndex].selectJson.url == "" ||
  9522. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9523. .toolChoose[toolIndex].selectJson.select.length ||
  9524. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9525. .toolChoose[toolIndex].selectJson.answer.length
  9526. ) {
  9527. this.openTools(itemTaskIndex, 41, toolIndex);
  9528. return;
  9529. }
  9530. }
  9531. if (i == 42) {
  9532. if (
  9533. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9534. .toolChoose[toolIndex].answerQ ||
  9535. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9536. .toolChoose[toolIndex].answerQ == ""
  9537. ) {
  9538. this.openTools(itemTaskIndex, 42, toolIndex);
  9539. return;
  9540. }
  9541. }
  9542. if (
  9543. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9544. .toolChoose[toolIndex].tool.length > 0
  9545. ) {
  9546. if (
  9547. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9548. itemTaskIndex
  9549. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9550. ) {
  9551. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9552. itemTaskIndex
  9553. ].toolChoose[toolIndex].tool.splice(
  9554. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9555. itemTaskIndex
  9556. ].toolChoose[toolIndex].tool.indexOf(i),
  9557. 1
  9558. );
  9559. } else {
  9560. // this.$message({
  9561. // message: "每个工具只能添加一个",
  9562. // type: "error",
  9563. // });
  9564. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9565. itemTaskIndex
  9566. ].toolChoose[toolIndex].tool = [];
  9567. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9568. itemTaskIndex
  9569. ].toolChoose[toolIndex].tool.push(i);
  9570. }
  9571. } else {
  9572. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9573. itemTaskIndex
  9574. ].toolChoose[toolIndex].tool.push(i);
  9575. }
  9576. this.$forceUpdate();
  9577. },
  9578. addAskList() {
  9579. this.askJson.askJson.push({
  9580. askstitle: "",
  9581. askItem: 1,
  9582. checkList: [],
  9583. });
  9584. this.askJson.askCount++;
  9585. },
  9586. addTestList() {
  9587. this.testJson.testJson.push({
  9588. teststitle: "",
  9589. testItem: 1,
  9590. checkList: [],
  9591. timuList: [],
  9592. answer: [],
  9593. type: "1",
  9594. });
  9595. this.testJson.testCount++;
  9596. },
  9597. deleteAskList(index) {
  9598. this.askJson.askJson.splice(index, 1);
  9599. this.askJson.askCount--;
  9600. },
  9601. deleteTestList(index) {
  9602. this.testJson.testJson.splice(index, 1);
  9603. this.testJson.testCount--;
  9604. },
  9605. addcheckList(json) {
  9606. json.checkList.length++;
  9607. json.askItem++;
  9608. },
  9609. deletecheckList(json) {
  9610. json.checkList.length--;
  9611. json.askItem--;
  9612. },
  9613. addTcheckList(json) {
  9614. json.checkList.length++;
  9615. json.testItem++;
  9616. },
  9617. deleteTcheckList(json) {
  9618. json.checkList.length--;
  9619. json.testItem--;
  9620. },
  9621. checkTestType(type, json) {
  9622. json.type = type;
  9623. json.answer = [];
  9624. },
  9625. checkAskType(type, json) {
  9626. json.type = type;
  9627. json.checkList = [];
  9628. },
  9629. addSelectList(json) {
  9630. json.select.push("");
  9631. json.answer.push("");
  9632. },
  9633. deleteSelectList(json) {
  9634. // json.select.length--;
  9635. // json.answer.length--;
  9636. json.select.splice(json.select.length - 1, 1);
  9637. json.answer.splice(json.answer.length - 1, 1);
  9638. },
  9639. addAsk() {
  9640. if (this.askJson.askTitle === "") {
  9641. this.$message.error("标题不能为空!");
  9642. return;
  9643. }
  9644. var aj = this.askJson.askJson;
  9645. var b = 1;
  9646. for (var i = 0; i < aj.length; i++) {
  9647. if (aj[i].askstitle === "") {
  9648. var a = 1;
  9649. for (let index = 0; index < aj[i].askItem; index++) {
  9650. const element = aj[i].checkList[index]
  9651. ? aj[i].checkList[index]
  9652. : "";
  9653. if (element != "") {
  9654. b++;
  9655. this.$message.error("填写了选项,题目不能为空!");
  9656. return;
  9657. } else {
  9658. a++;
  9659. }
  9660. }
  9661. if (b == 1) {
  9662. this.$message.error("至少填写一个问题");
  9663. return;
  9664. }
  9665. } else if (aj[i].askstitle != "") {
  9666. for (let index = 0; index < aj[i].askItem; index++) {
  9667. const element = aj[i].checkList[index]
  9668. ? aj[i].checkList[index]
  9669. : "";
  9670. var index = 0;
  9671. for (var z = 0; z < aj[i].checkList.length; z++) {
  9672. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9673. if (checkC != "") {
  9674. index++;
  9675. } else {
  9676. this.$message.error("选项不能为空!");
  9677. return;
  9678. }
  9679. }
  9680. b++;
  9681. if (index < 2) {
  9682. this.$message.error("填写了的题目,选项至少要有两项!");
  9683. return;
  9684. }
  9685. }
  9686. }
  9687. }
  9688. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  9689. var elc = el.checkList.filter((element) => {
  9690. return element != "";
  9691. });
  9692. return el.askstitle != "" && elc.length != 0;
  9693. });
  9694. if (!this.dialogVisible4) {
  9695. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9696. this.taskCount
  9697. ].toolChoose[this.toolIndex] = this.askJson;
  9698. }
  9699. this.dialogVisible5 = false;
  9700. if (
  9701. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9702. .toolChoose[this.toolIndex].tool != 4
  9703. ) {
  9704. this.addTools(4, this.taskCount, this.toolIndex);
  9705. }
  9706. },
  9707. addTest() {
  9708. // if (this.testJson.testTitle === "") {
  9709. // this.$message.error("标题不能为空!");
  9710. // return;
  9711. // }
  9712. var aj = this.testJson.testJson;
  9713. var b = 1;
  9714. for (var i = 0; i < aj.length; i++) {
  9715. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  9716. var a = 1;
  9717. for (let index = 0; index < aj[i].testItem; index++) {
  9718. const element = aj[i].checkList[index]
  9719. ? aj[i].checkList[index]
  9720. : "";
  9721. if (element != "") {
  9722. b++;
  9723. this.$message.error("填写了选项,题目不能为空!");
  9724. return;
  9725. } else {
  9726. a++;
  9727. }
  9728. }
  9729. if (b == 1) {
  9730. this.$message.error("至少填写一个问题");
  9731. return;
  9732. }
  9733. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  9734. for (let index = 0; index < aj[i].testItem; index++) {
  9735. const element = aj[i].checkList[index]
  9736. ? aj[i].checkList[index]
  9737. : "";
  9738. var index = 0;
  9739. for (var z = 0; z < aj[i].checkList.length; z++) {
  9740. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9741. if (checkC != "") {
  9742. index++;
  9743. } else {
  9744. this.$message.error("选项不能为空!");
  9745. return;
  9746. }
  9747. }
  9748. b++;
  9749. if (index < 2) {
  9750. this.$message.error("填写了的题目,选项至少要有两项!");
  9751. return;
  9752. }
  9753. if (
  9754. (aj[i].type == "2" && !aj[i].answer.length) ||
  9755. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  9756. ) {
  9757. this.$message.error("有题目未选择答案请选择答案");
  9758. return;
  9759. }
  9760. }
  9761. }
  9762. }
  9763. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  9764. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  9765. var elc = el.checkList.filter((element) => {
  9766. return element != "";
  9767. });
  9768. return (
  9769. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  9770. );
  9771. });
  9772. isTestJson.testCount = isTestJson.testJson.length;
  9773. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9774. this.taskCount
  9775. ].toolChoose[this.toolIndex].testJson = isTestJson;
  9776. this.dialogVisibleChoice = false;
  9777. if (
  9778. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9779. .toolChoose[this.toolIndex].tool != 45
  9780. ) {
  9781. this.addTools(45, this.taskCount, this.toolIndex);
  9782. }
  9783. },
  9784. addVideoJson(videoJson) {
  9785. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9786. this.taskCount
  9787. ].toolChoose[this.toolIndex].videoJson = videoJson;
  9788. this.dialogVisibleVideo = false;
  9789. if (
  9790. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9791. .toolChoose[this.toolIndex].tool != 62
  9792. ) {
  9793. this.addTools(62, this.taskCount, this.toolIndex);
  9794. }
  9795. },
  9796. //自动获取剪贴板
  9797. pasteOption() {
  9798. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9799. if (!iframe) {
  9800. this.$message.error("请使用AI共创生成题目");
  9801. return;
  9802. }
  9803. let copyData = iframe.contentWindow.copyData;
  9804. if (!copyData || !copyData.selectData.length) {
  9805. this.$message.error("请使用AI共创生成题目");
  9806. return;
  9807. }
  9808. let selectData = copyData.selectData;
  9809. for (var i = 0; i < selectData.length; i++) {
  9810. let answer = 0;
  9811. switch (selectData[i].answer[0]) {
  9812. case "A":
  9813. answer = 0;
  9814. break;
  9815. case "B":
  9816. answer = 1;
  9817. break;
  9818. case "C":
  9819. answer = 2;
  9820. break;
  9821. case "D":
  9822. answer = 3;
  9823. break;
  9824. case "E":
  9825. answer = 4;
  9826. break;
  9827. default:
  9828. break;
  9829. }
  9830. this.testJson.testJson.push({
  9831. teststitle: selectData[i].subject,
  9832. testItem: selectData[i].options.length,
  9833. checkList: selectData[i].options,
  9834. timuList: [],
  9835. answer: answer,
  9836. type: "1",
  9837. });
  9838. this.testJson.testCount++;
  9839. }
  9840. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  9841. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  9842. var elc = el.checkList.filter((element) => {
  9843. return element != "";
  9844. });
  9845. return (
  9846. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  9847. );
  9848. });
  9849. isTestJson.testCount = isTestJson.testJson.length;
  9850. this.testJson = isTestJson;
  9851. this.$forceUpdate();
  9852. },
  9853. pasteTask() {
  9854. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9855. if (!iframe) {
  9856. this.$message.error("请使用AI共创生成");
  9857. return;
  9858. }
  9859. let copyData = iframe.contentWindow.copyData;
  9860. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  9861. this.$message.error("请使用AI共创生成");
  9862. return;
  9863. }
  9864. let stageTasksData = copyData.tasksData;
  9865. let taskA = [];
  9866. let tasks = stageTasksData;
  9867. for (var j = 0; j < tasks.length; j++) {
  9868. taskA.push({
  9869. task: tasks[j].taskName,
  9870. taskDetail: tasks[j].taskDecs,
  9871. chapterData: [],
  9872. toolText: "",
  9873. toolChoose: [
  9874. {
  9875. tool: [],
  9876. toolDetail: "",
  9877. toolType: 1,
  9878. askCount: 1,
  9879. askTitle: "",
  9880. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9881. },
  9882. ],
  9883. isShowTools: false,
  9884. askCount: 1,
  9885. isFold: 0,
  9886. askTitle: "",
  9887. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9888. checkJson: [{ checkCount: [], checkPerent: [] }],
  9889. homeworkList: [],
  9890. });
  9891. }
  9892. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  9893. this.$forceUpdate();
  9894. },
  9895. pasteStage() {
  9896. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9897. if (!iframe) {
  9898. this.$message.error("请使用AI共创生成");
  9899. return;
  9900. }
  9901. let copyData = iframe.contentWindow.copyData;
  9902. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  9903. this.$message.error("请使用AI共创生成");
  9904. return;
  9905. }
  9906. let stageData = copyData.stageData;
  9907. let stage = [];
  9908. for (var i = 0; i < stageData.length; i++) {
  9909. stage.push({
  9910. dyName: stageData[i], //单元标题
  9911. chapterInfo: [
  9912. {
  9913. isread: false,
  9914. chapterid: this.guid(),
  9915. title: "",
  9916. courseName: "",
  9917. taskJson: [
  9918. {
  9919. task: "",
  9920. taskDetail: "",
  9921. chapterData: [],
  9922. toolText: "",
  9923. toolChoose: [
  9924. {
  9925. tool: [],
  9926. toolDetail: "",
  9927. toolType: 1,
  9928. askCount: 1,
  9929. askTitle: "",
  9930. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9931. },
  9932. ],
  9933. isShowTools: false,
  9934. askCount: 1,
  9935. isFold: 0,
  9936. askTitle: "",
  9937. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9938. checkJson: [{ checkCount: [], checkPerent: [] }],
  9939. homeworkList: [],
  9940. },
  9941. ],
  9942. itemCount: 1,
  9943. fileList1: [],
  9944. video: [],
  9945. testData: [],
  9946. pData: [],
  9947. templateArray: [],
  9948. },
  9949. ],
  9950. });
  9951. }
  9952. let _this = this;
  9953. _this
  9954. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  9955. confirmButtonText: "确定",
  9956. cancelButtonText: "取消",
  9957. type: "warning",
  9958. })
  9959. .then(() => {
  9960. _this.unitIndex = 0;
  9961. _this.unitJson = stage;
  9962. _this.steps++;
  9963. _this.updateWork();
  9964. })
  9965. .catch(() => {
  9966. return;
  9967. });
  9968. },
  9969. addAnswer() {
  9970. if (this.answerQ == "") {
  9971. this.$message.error("请输入您想要问的问题");
  9972. return;
  9973. }
  9974. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9975. this.taskCount
  9976. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  9977. this.dialogVisible8 = false;
  9978. if (
  9979. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9980. .toolChoose[this.toolIndex].tool != 15
  9981. ) {
  9982. this.addTools(15, this.taskCount, this.toolIndex);
  9983. }
  9984. },
  9985. addMp3Answer() {
  9986. if (this.answerQ == "") {
  9987. this.$message.error("请输入您想要回答的问题");
  9988. return;
  9989. }
  9990. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9991. this.taskCount
  9992. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  9993. this.dialogVisibleMp3 = false;
  9994. },
  9995. addRateAnswer() {
  9996. var a = 1;
  9997. for (var i = 0; i < this.rateJson.length; i++) {
  9998. if (this.rateJson[i].value == "") {
  9999. a = 2;
  10000. break;
  10001. }
  10002. }
  10003. if (a == 2) {
  10004. this.$message.error("请把评价信息填写完整");
  10005. return;
  10006. }
  10007. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10008. this.taskCount
  10009. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  10010. this.dialogVisibleRate = false;
  10011. if (
  10012. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10013. .toolChoose[this.toolIndex].tool != 40
  10014. ) {
  10015. this.addTools(40, this.taskCount, this.toolIndex);
  10016. }
  10017. },
  10018. addSelectAnswer() {
  10019. if (this.selectJson.url == "") {
  10020. this.$message.error("请上传题目");
  10021. return;
  10022. }
  10023. if (!this.selectJson.select.length) {
  10024. this.$message.error("请添加选项");
  10025. return;
  10026. }
  10027. if (!this.selectJson.answer.length) {
  10028. this.$message.error("请设置答案");
  10029. return;
  10030. }
  10031. var a = 1;
  10032. for (var i = 0; i < this.selectJson.answer.length; i++) {
  10033. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  10034. a = 2;
  10035. }
  10036. }
  10037. if (a == 2) {
  10038. this.$message.error("请设置答案");
  10039. return;
  10040. }
  10041. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10042. this.taskCount
  10043. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  10044. this.dialogVisibleSelect = false;
  10045. if (
  10046. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10047. .toolChoose[this.toolIndex].tool != 41
  10048. ) {
  10049. this.addTools(41, this.taskCount, this.toolIndex);
  10050. }
  10051. },
  10052. nextSelectSteps() {
  10053. if (this.selectJson.url == "") {
  10054. this.$message.error("请上传题目");
  10055. return;
  10056. }
  10057. if (!this.selectJson.select.length) {
  10058. this.$message.error("请添加选项");
  10059. return;
  10060. }
  10061. var a = 1;
  10062. for (var i = 0; i < this.selectJson.select.length; i++) {
  10063. if (!this.selectJson.select[i]) {
  10064. a = 2;
  10065. }
  10066. }
  10067. if (a == 2) {
  10068. this.$message.error("添加的选项不能为空");
  10069. return;
  10070. }
  10071. this.selectSteps++;
  10072. },
  10073. selectCourseDetail() {
  10074. if (this.cid == "" || this.cid == undefined) {
  10075. console.log("这是新增课程");
  10076. this.selectAllType();
  10077. } else {
  10078. this.cidType = 1;
  10079. let params = {
  10080. cid: this.cid,
  10081. };
  10082. this.ajax
  10083. .get(this.$store.state.api + "select_course_detail", params)
  10084. .then((res) => {
  10085. this.loading = true;
  10086. this.unitJson = JSON.parse(res.data[0][0].chapters);
  10087. for (var j = 0; j < this.unitJson.length; j++) {
  10088. for (
  10089. var k = 0;
  10090. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  10091. k++
  10092. ) {
  10093. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  10094. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10095. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10096. : [];
  10097. let _chapterData = [];
  10098. for (
  10099. var c = 0;
  10100. c <
  10101. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  10102. .length;
  10103. c++
  10104. ) {
  10105. if (
  10106. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10107. ) {
  10108. _chapterData.push(
  10109. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10110. );
  10111. }
  10112. }
  10113. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  10114. _chapterData;
  10115. }
  10116. }
  10117. this.$forceUpdate();
  10118. this.courseName = res.data[0][0].title;
  10119. this.courseText = res.data[0][0].brief;
  10120. this.evalua = res.data[0][0].evaId;
  10121. this.cover = JSON.parse(res.data[0][0].cover);
  10122. this.noneBtnImg = this.cover.length >= 1;
  10123. // this.checkboxList =
  10124. // res.data[0][0].course_student.length > 0
  10125. // ? JSON.parse(res.data[0][0].course_student)
  10126. // : [];
  10127. this.checkboxList2 = res.data[0][0].juri
  10128. ? res.data[0][0].juri.split(",")
  10129. : [];
  10130. this.inviteCode = [];
  10131. for (var i = 0; i < res.data[2].length; i++) {
  10132. this.inviteCode.push({
  10133. cid: res.data[2][i].classid,
  10134. ic: res.data[2][i].code,
  10135. });
  10136. }
  10137. this.checkboxList3 = res.data[0][0].course_teacher
  10138. ? res.data[0][0].course_teacher.split(",")
  10139. : [];
  10140. // this.isTeacherSee =
  10141. // res.data[0][0].is_teacher_look == 0 ? true : false;
  10142. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  10143. this.myWord = res.data[0][0].template;
  10144. this.templateC.id = "123";
  10145. this.courseUserid = res.data[0][0].userid;
  10146. // if(this.courseUserid == this.userid){
  10147. // this.InviteChange(this.checkboxList2)
  10148. // }
  10149. this.nbOrder = res.data[0][0].ordernumber;
  10150. this.courseTypeId = [];
  10151. for (var i = 0; i < res.data[1].length; i++) {
  10152. this.courseTypeId.push(res.data[1][i].typeid);
  10153. }
  10154. console.log(this.courseTypeId);
  10155. // if (this.timer) clearInterval(this.timer);
  10156. if (this.timer) clearTimeout(this.timer);
  10157. this.timer = null;
  10158. // this.timer = setInterval(() => {
  10159. // this.seleteCourseUpdate();
  10160. this.setMan();
  10161. this.selectAllType();
  10162. // }, 5000);
  10163. this.$forceUpdate();
  10164. setTimeout(() => {
  10165. this.checkEva(this.evalua);
  10166. }, 0);
  10167. })
  10168. .catch((err) => {
  10169. console.error(err);
  10170. });
  10171. }
  10172. },
  10173. seleteCourseUpdate() {
  10174. let params = {
  10175. cid: this.cid,
  10176. };
  10177. this.ajax
  10178. .get(this.$store.state.api + "select_course_detail", params)
  10179. .then((res) => {
  10180. // console.log(this.unitJson);
  10181. let unitJson = JSON.parse(res.data[0][0].chapters);
  10182. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  10183. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  10184. let _unitJson = [];
  10185. let _chapAarry = [];
  10186. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  10187. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  10188. let index = 1;
  10189. let chapindex;
  10190. if (_unitJson2.length > unitJson.length) {
  10191. for (let c = 0; c < _unitJson2.length; c++) {
  10192. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  10193. }
  10194. for (let j = 0; j < unitJson.length; j++) {
  10195. let count = 0;
  10196. for (let k = 0; k < _unitJson2.length; k++) {
  10197. if (
  10198. unitJson[j].chapterInfo[0].chapterid ==
  10199. _unitJson2[k].chapterInfo[0].chapterid
  10200. ) {
  10201. count++;
  10202. _chapAarry.splice(
  10203. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10204. 1
  10205. );
  10206. _unitJson.push(unitJson[j]);
  10207. break;
  10208. }
  10209. }
  10210. // if(count === 0){
  10211. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10212. // }
  10213. }
  10214. for (let k = 0; k < _unitJson2.length; k++) {
  10215. if (_unitJson2[k].isUpdate == 1) {
  10216. _chapAarry.splice(
  10217. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10218. 1
  10219. );
  10220. _unitJson.push(_unitJson2[k]);
  10221. }
  10222. }
  10223. console.log(_chapAarry);
  10224. for (let d = 0; d < _unitJson2.length; d++) {
  10225. if (
  10226. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  10227. ) {
  10228. if (_unitIndex == d) {
  10229. index = 2;
  10230. }
  10231. chapindex = d;
  10232. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10233. }
  10234. }
  10235. } else {
  10236. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  10237. }
  10238. for (let i = 0; i < unitJson.length; i++) {
  10239. if (
  10240. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  10241. _unitJson[i].chapterInfo[0].chapterid !=
  10242. unitJson[i].chapterInfo[0].chapterid
  10243. ) {
  10244. if (i == _unitJson.length - 1) {
  10245. // this.unitIndex++
  10246. _unitIndex2++;
  10247. }
  10248. _unitJson.splice(i, 0, unitJson[i]);
  10249. } else if (i > _unitJson.length - 1) {
  10250. _unitJson.push(unitJson[i]);
  10251. } else if (
  10252. _unitJson[i].chapterInfo[0].chapterid ==
  10253. unitJson[i].chapterInfo[0].chapterid
  10254. ) {
  10255. _unitJson[i] = unitJson[i];
  10256. }
  10257. // if (i == _unitIndex) {
  10258. // continue;
  10259. // } else
  10260. }
  10261. if (_chapAarry.length && index != 2) {
  10262. if (chapindex < _unitIndex) {
  10263. this.isDelete = 2;
  10264. // this.unitIndex--;
  10265. _unitIndex2--;
  10266. } else if (
  10267. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  10268. _unitJson[_unitIndex].chapterInfo[0].chapterid
  10269. ) {
  10270. this.isDelete = 2;
  10271. for (let n = 0; n < _unitJson.length; n++) {
  10272. if (
  10273. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  10274. _unitJson[n].chapterInfo[0].chapterid
  10275. ) {
  10276. // this.unitIndex = n;
  10277. _unitIndex2 = n;
  10278. _unitJson[n] = _unitJson2[_unitIndex];
  10279. break;
  10280. }
  10281. }
  10282. }
  10283. } else if (index != 2) {
  10284. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  10285. _unitJson2[_unitIndex];
  10286. for (
  10287. var ci = 0;
  10288. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  10289. ci++
  10290. ) {
  10291. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  10292. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  10293. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10294. .toolChoose
  10295. : [];
  10296. let _chapterData = [];
  10297. for (
  10298. var c = 0;
  10299. c <
  10300. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  10301. .length;
  10302. c++
  10303. ) {
  10304. if (
  10305. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10306. .chapterData[c]
  10307. ) {
  10308. _chapterData.push(
  10309. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10310. .chapterData[c]
  10311. );
  10312. }
  10313. }
  10314. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  10315. _chapterData;
  10316. }
  10317. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  10318. }
  10319. if (index == 1) {
  10320. this.unitJson = _unitJson;
  10321. this.$forceUpdate();
  10322. setTimeout(() => {
  10323. if (this.unitIndex != _unitIndex2) {
  10324. this.isDelete = 2;
  10325. this.unitIndex = _unitIndex2;
  10326. }
  10327. }, 0);
  10328. this.timer = setTimeout(() => {
  10329. this.seleteCourseUpdate();
  10330. }, 1000);
  10331. } else if (index == 2) {
  10332. let _this = this;
  10333. _this
  10334. .$confirm(
  10335. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  10336. "提示",
  10337. {
  10338. confirmButtonText: "需要",
  10339. cancelButtonText: "取消",
  10340. type: "warning",
  10341. }
  10342. )
  10343. .then(() => {
  10344. if (_this.time()) {
  10345. _this.restoreWork(
  10346. _chapAarry[0],
  10347. _unitJson,
  10348. chapindex,
  10349. _unitJson2,
  10350. _unitIndex2
  10351. );
  10352. }
  10353. })
  10354. .catch(() => {
  10355. _this.unitJson = _unitJson;
  10356. _this.$forceUpdate();
  10357. setTimeout(() => {
  10358. if (this.unitIndex != _unitIndex2) {
  10359. this.isDelete = 2;
  10360. this.unitIndex = _unitIndex2;
  10361. }
  10362. }, 0);
  10363. _this.timer = setTimeout(() => {
  10364. _this.seleteCourseUpdate();
  10365. }, 1000);
  10366. });
  10367. }
  10368. })
  10369. .catch((err) => {
  10370. console.error(err);
  10371. });
  10372. },
  10373. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  10374. let params = [
  10375. {
  10376. cid: this.cid,
  10377. chapters: JSON.stringify(this.unitJson),
  10378. uid: this.userid,
  10379. chapid: chapid,
  10380. },
  10381. ];
  10382. this.ajax
  10383. .post(this.$store.state.api + "restoreWork", params)
  10384. .then((res) => {
  10385. this.$message({
  10386. message: "恢复成功",
  10387. type: "success",
  10388. });
  10389. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  10390. this.unitJson = unitJson;
  10391. this.$forceUpdate();
  10392. setTimeout(() => {
  10393. if (this.unitIndex != unitIndex2) {
  10394. this.isDelete = 2;
  10395. this.unitIndex = unitIndex2;
  10396. }
  10397. }, 0);
  10398. this.timer = setTimeout(() => {
  10399. this.seleteCourseUpdate();
  10400. }, 1000);
  10401. })
  10402. .catch((err) => {
  10403. this.$message.error("网络不佳");
  10404. console.error(err);
  10405. });
  10406. },
  10407. getTypeName() {
  10408. console.log(this.courseTypeId);
  10409. this.$forceUpdate();
  10410. },
  10411. selectAllType() {
  10412. let params = {
  10413. org: this.org && this.org != "" ? this.org : "",
  10414. oid: this.oid && this.oid != "" ? this.oid : "",
  10415. };
  10416. this.ajax
  10417. .get(this.$store.state.api + "selectAllType", params)
  10418. .then((res) => {
  10419. if(this.oid == "69893dca-1d47-11ed-8c78-005056b86db5"){
  10420. res.data[0] = [...res.data[0],...res.data[4]]
  10421. }
  10422. this.CourseType = res.data;
  10423. this.CourseType2 = [
  10424. { name: "智见课程", id: [] },
  10425. { name: "智行课程", id: [] },
  10426. { name: "智创课程", id: [] },
  10427. ];
  10428. for (var cti = 0; cti < res.data[0].length; cti++) {
  10429. if (
  10430. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  10431. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  10432. ) {
  10433. this.CourseType2[0].id.push(res.data[0][cti].id);
  10434. }else if(res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  10435. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"){
  10436. this.CourseType2[1].id.push(res.data[0][cti].id);
  10437. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  10438. this.CourseType2[2].id.push(res.data[0][cti].id);
  10439. }
  10440. if(res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"){
  10441. res.data[0][cti].name = "年级";
  10442. }else if(res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"){
  10443. res.data[0][cti].name = "学科";
  10444. }else if(res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"){
  10445. res.data[0][cti].name = "主题";
  10446. }
  10447. }
  10448. let _courseTypeId = [];
  10449. for (var i = 0; i < res.data[0].length; i++) {
  10450. if (!this.cid) {
  10451. this.courseTypeId[res.data[0][i].id] = [];
  10452. }
  10453. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  10454. // }
  10455. this.CourseTypeJson[res.data[0][i].id] = [];
  10456. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10457. if (res.data[0][i].name == "栏目") {
  10458. this.CourseType[0][i].name = "主题";
  10459. }
  10460. }
  10461. if (res.data[2].length == 0 && res.data[3].length == 0) {
  10462. for (var j = 0; j < res.data[1].length; j++) {
  10463. if (
  10464. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  10465. _courseTypeId.indexOf(res.data[1][j].id) == -1
  10466. ) {
  10467. _courseTypeId.push(res.data[1][j].id);
  10468. }
  10469. if (res.data[0][i].id == res.data[1][j].pid) {
  10470. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10471. }
  10472. }
  10473. } else {
  10474. if (res.data[2].length > 0) {
  10475. for (var j = 0; j < res.data[2].length; j++) {
  10476. if (
  10477. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  10478. _courseTypeId.indexOf(res.data[2][j].id) == -1
  10479. ) {
  10480. _courseTypeId.push(res.data[2][j].id);
  10481. }
  10482. if (res.data[0][i].id == res.data[2][j].pid) {
  10483. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  10484. }
  10485. }
  10486. }
  10487. if (res.data[3].length > 0) {
  10488. for (var j = 0; j < res.data[3].length; j++) {
  10489. if (
  10490. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  10491. _courseTypeId.indexOf(res.data[3][j].id) == -1
  10492. ) {
  10493. _courseTypeId.push(res.data[3][j].id);
  10494. }
  10495. if (res.data[0][i].id == res.data[3][j].pid) {
  10496. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  10497. }
  10498. }
  10499. }
  10500. }
  10501. }
  10502. this.courseTypeId = _courseTypeId;
  10503. })
  10504. .catch((err) => {
  10505. console.error(err);
  10506. });
  10507. },
  10508. selectType() {
  10509. this.ajax
  10510. .get(this.$store.state.api + "selectType")
  10511. .then((res) => {
  10512. this.CourseType = res.data;
  10513. for (var i = 0; i < res.data[0].length; i++) {
  10514. if (!this.cid) {
  10515. this.courseTypeId[res.data[0][i].id] = "";
  10516. }
  10517. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10518. if (res.data[0][i].name == "栏目") {
  10519. this.CourseType[0][i].name = "主题";
  10520. }
  10521. }
  10522. for (var j = 0; j < res.data[1].length; j++) {
  10523. if (res.data[0][i].id == res.data[1][j].pid) {
  10524. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10525. this.CourseTypeJson[res.data[0][i].id] = [];
  10526. }
  10527. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10528. }
  10529. }
  10530. }
  10531. this.selectTypeByOid();
  10532. this.selectTypeByOrg();
  10533. })
  10534. .catch((err) => {
  10535. console.error(err);
  10536. });
  10537. },
  10538. selectTypeByOid() {
  10539. let params = {
  10540. oid: this.oid,
  10541. };
  10542. this.ajax
  10543. .get(this.$store.state.api + "selectTypeByOid", params)
  10544. .then((res) => {
  10545. for (var i = 0; i < res.data[0].length; i++) {
  10546. for (var j = 0; j < res.data[1].length; j++) {
  10547. if (res.data[0][i].id == res.data[1][j].pid) {
  10548. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10549. this.CourseTypeJson[res.data[0][i].id] = [];
  10550. }
  10551. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10552. }
  10553. }
  10554. }
  10555. })
  10556. .catch((err) => {
  10557. console.error(err);
  10558. });
  10559. },
  10560. selectTypeByOrg() {
  10561. let params = {
  10562. oid: this.org,
  10563. };
  10564. this.ajax
  10565. .get(this.$store.state.api + "selectTypeByOrg", params)
  10566. .then((res) => {
  10567. for (var i = 0; i < res.data[0].length; i++) {
  10568. for (var j = 0; j < res.data[1].length; j++) {
  10569. if (res.data[0][i].id == res.data[1][j].pid) {
  10570. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10571. this.CourseTypeJson[res.data[0][i].id] = [];
  10572. }
  10573. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10574. }
  10575. }
  10576. }
  10577. this.$forceUpdate();
  10578. })
  10579. .catch((err) => {
  10580. console.error(err);
  10581. });
  10582. },
  10583. OtherMb(type) {
  10584. this.typeMode = type;
  10585. setTimeout(() => {
  10586. this.checkEva(this.checkId);
  10587. }, 0);
  10588. },
  10589. openMember() {
  10590. this.searchTN = "";
  10591. this.getTeacher();
  10592. this.dialogVisibleMember = true;
  10593. },
  10594. checkEva(id, type) {
  10595. this.dialogVisiblemb = false;
  10596. this.selectEva();
  10597. if (this.evalua != id && type == 2) {
  10598. this.$message.success("导入成功");
  10599. }
  10600. this.evalua = id;
  10601. this.checkId = id;
  10602. if (this.evalua != "") {
  10603. for (var i = 0; i < this.evaJuri.length; i++) {
  10604. if (this.evalua == this.evaJuri[i].id) {
  10605. this.eTitle = this.evaJuri[i].title;
  10606. this.eJson = JSON.parse(this.evaJuri[i].content);
  10607. }
  10608. }
  10609. this.data.data = [];
  10610. this.$forceUpdate();
  10611. setTimeout(() => {
  10612. this.setMindData();
  10613. }, 500);
  10614. }
  10615. },
  10616. deleteEva() {
  10617. let _this = this;
  10618. if (_this.evalua == "") {
  10619. this.$message.warning("内容已经清空了,请勿重复清空");
  10620. return;
  10621. }
  10622. _this
  10623. .$confirm("确定删除此目标吗?", "提示", {
  10624. confirmButtonText: "确定",
  10625. cancelButtonText: "取消",
  10626. type: "warning",
  10627. })
  10628. .then(() => {
  10629. _this.evalua = "";
  10630. _this.checkId = "";
  10631. _this.eTitle = "";
  10632. let _unitJson = _this.unitJson;
  10633. for (var i = 0; i < _unitJson.length; i++) {
  10634. let _task = _unitJson[i].chapterInfo[0].taskJson;
  10635. for (var j = 0; j < _task.length; j++) {
  10636. let _eList = _task[j].eList;
  10637. for (var k = 0; k < _eList.length; k++) {
  10638. delete _eList[k].target;
  10639. }
  10640. }
  10641. }
  10642. _this.$forceUpdate();
  10643. if (_this.cid) {
  10644. _this.updateWork();
  10645. }
  10646. })
  10647. .catch(() => {
  10648. return;
  10649. });
  10650. },
  10651. selectEva() {
  10652. let params = {
  10653. oid: this.oid,
  10654. };
  10655. this.ajax
  10656. .get(this.$store.state.api + "selectAllEvaluation", params)
  10657. .then((res) => {
  10658. this.evaJuri = res.data[0];
  10659. })
  10660. .catch((err) => {
  10661. console.error(err);
  10662. });
  10663. },
  10664. setMindData() {
  10665. let targetArray = [];
  10666. this.data.data = [];
  10667. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10668. let _eJson = Object.keys(this.eJson);
  10669. let _e = this.eJson;
  10670. for (let i = 0; i < _eJson.length; i++) {
  10671. let element = _e[_eJson[i]];
  10672. this.data.data.push({
  10673. id: element.id,
  10674. parentid: "root",
  10675. topic: element.name,
  10676. });
  10677. // targetArray.push({
  10678. // id: element.id,
  10679. // parentid: "root",
  10680. // name: element.name,
  10681. // });
  10682. targetArray.push({
  10683. value: element.name,
  10684. label: element.name,
  10685. children: [],
  10686. });
  10687. let _eJsonc = Object.keys(element.child);
  10688. let _e2 = element.child;
  10689. for (let j = 0; j < _eJsonc.length; j++) {
  10690. let _ec = _e2[_eJsonc[j]];
  10691. this.data.data.push({
  10692. id: _ec.id,
  10693. parentid: element.id,
  10694. topic: _ec.name,
  10695. });
  10696. // targetArray.push({
  10697. // id: _ec.id,
  10698. // parentid: element.id,
  10699. // name: _ec.name,
  10700. // });
  10701. targetArray[i].children.push({
  10702. value: _ec.name,
  10703. label: _ec.name,
  10704. children: [],
  10705. });
  10706. let _eJsonz = Object.keys(_ec.child);
  10707. let _e3 = _ec.child;
  10708. for (let z = 0; z < _eJsonz.length; z++) {
  10709. let _ez = _e3[_eJsonz[z]];
  10710. this.data.data.push({
  10711. id: _ez.id,
  10712. parentid: _ec.id,
  10713. topic: _ez.name,
  10714. });
  10715. // targetArray.push({
  10716. // id: _ez.id,
  10717. // parentid: _ec.id,
  10718. // name: _ez.name,
  10719. // });
  10720. targetArray[i].children[j].children.push({
  10721. value: _ez.name,
  10722. label: _ez.name,
  10723. });
  10724. }
  10725. }
  10726. }
  10727. this.targetArray = targetArray;
  10728. this.$forceUpdate();
  10729. },
  10730. /*添加评价 */
  10731. addEList(index, tIndex) {
  10732. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  10733. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  10734. value: "",
  10735. detail: "",
  10736. score: 5,
  10737. })
  10738. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  10739. { value: "", detail: "", score: 5 },
  10740. ]);
  10741. this.$forceUpdate();
  10742. },
  10743. forceUpdate() {
  10744. this.$forceUpdate();
  10745. },
  10746. deletEList(index, tIndex, eIndex) {
  10747. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  10748. eIndex,
  10749. 1
  10750. );
  10751. this.$forceUpdate();
  10752. },
  10753. getChoosePic(t) {
  10754. this.chooseType = t;
  10755. this.getAllBanner();
  10756. },
  10757. getAllBanner() {
  10758. this.sysPicVisible = true;
  10759. let params = {
  10760. t: this.chooseType,
  10761. };
  10762. this.ajax
  10763. .get(this.$store.state.api + "selectAllBanner", params)
  10764. .then((res) => {
  10765. this.sysPic = res.data[0];
  10766. })
  10767. .catch((err) => {
  10768. console.error(err);
  10769. });
  10770. },
  10771. // getClass() {
  10772. // let params = {
  10773. // oid: this.oid,
  10774. // };
  10775. // this.ajax
  10776. // .get(this.$store.state.api + "selectClassBySchool", params)
  10777. // .then((res) => {
  10778. // this.classJuri = res.data[0];
  10779. // })
  10780. // .catch((err) => {
  10781. // console.error(err);
  10782. // });
  10783. // },
  10784. deleteSysPic() {
  10785. this.cover = [];
  10786. this.isSysPic = false;
  10787. },
  10788. deleteSelectPic() {
  10789. this.selectJson.url = "";
  10790. },
  10791. setEListStar() {
  10792. this.$forceUpdate();
  10793. },
  10794. deletRateList(i) {
  10795. this.rateJson.splice(i, 1);
  10796. },
  10797. addRateList() {
  10798. this.rateJson.push({ detail: "", score: 5, value: "" });
  10799. },
  10800. addSt() {
  10801. this.sentenceList.push({
  10802. sentenceTitle: "",
  10803. addSentence: [],
  10804. rightAnswer: [],
  10805. });
  10806. },
  10807. addSen(i) {
  10808. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  10809. // this.isPushTitleList.push(this.sentenceTitle);
  10810. this.sentenceList[i].sentenceTitle = "";
  10811. },
  10812. setRightAnswer(s, i, j) {
  10813. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  10814. this.sentenceList[i].rightAnswer.push(s);
  10815. }
  10816. },
  10817. returnCard(r, i, j) {
  10818. this.sentenceList[i].rightAnswer.splice(j, 1);
  10819. },
  10820. addSentenceTool() {
  10821. for (var i = 0; i < this.sentenceList.length; i++) {
  10822. if (this.sentenceList[i].rightAnswer.length == 0) {
  10823. this.$message.error("请将信息填写完整!");
  10824. return;
  10825. }
  10826. if (
  10827. this.sentenceList[i].addSentence.length !=
  10828. this.sentenceList[i].rightAnswer.length
  10829. ) {
  10830. this.$message.error("请将信息填写完整!");
  10831. return;
  10832. }
  10833. }
  10834. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10835. this.taskCount
  10836. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  10837. this.sentenceList = [
  10838. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  10839. ];
  10840. this.dialogVisibleSentence = false;
  10841. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10842. // itemTaskIndex
  10843. // ].toolChoose[toolIndex].tool = [];
  10844. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10845. // itemTaskIndex
  10846. // ].toolChoose[toolIndex].tool.push(i);
  10847. if (
  10848. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10849. .toolChoose[this.toolIndex].tool != 47
  10850. ) {
  10851. this.addTools(47, this.taskCount, this.toolIndex);
  10852. }
  10853. },
  10854. addTableJson() {
  10855. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  10856. // this.$message.error("请将信息填写完整!");
  10857. // return;
  10858. // }
  10859. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10860. this.taskCount
  10861. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  10862. // this.tableJson = [{ text: "" }];
  10863. // this.dialogVisibleTable = false;
  10864. this.$message.success("上传成功");
  10865. if (
  10866. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10867. .toolChoose[this.toolIndex].tool != 48
  10868. ) {
  10869. this.addTools(48, this.taskCount, this.toolIndex);
  10870. }
  10871. },
  10872. addWordJson() {
  10873. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10874. this.taskCount
  10875. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  10876. // this.wordJson = [{ text: "" }];
  10877. // this.dialogVisibleWord = false;
  10878. this.$message.success("上传成功");
  10879. if (
  10880. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10881. .toolChoose[this.toolIndex].tool != 52
  10882. ) {
  10883. this.addTools(52, this.taskCount, this.toolIndex);
  10884. }
  10885. },
  10886. addMoreUpload() {
  10887. if (this.uploadJson.length == 0) {
  10888. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10889. this.taskCount
  10890. ].toolChoose[this.toolIndex].uploadJson = [];
  10891. } else {
  10892. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10893. this.taskCount
  10894. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  10895. }
  10896. this.uploadJson = [];
  10897. this.dialogVisibleMoreUpload = false;
  10898. if (
  10899. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10900. .toolChoose[this.toolIndex].tool != 50
  10901. ) {
  10902. this.addTools(50, this.taskCount, this.toolIndex);
  10903. }
  10904. },
  10905. addPreTime() {
  10906. if (this.preTime == 0) {
  10907. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10908. this.taskCount
  10909. ].toolChoose[this.toolIndex].preTime = 0;
  10910. } else {
  10911. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10912. this.taskCount
  10913. ].toolChoose[this.toolIndex].preTime = this.preTime;
  10914. }
  10915. this.preTime = 0;
  10916. this.dialogVisiblePreTime = false;
  10917. if (
  10918. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10919. .toolChoose[this.toolIndex].tool != 10
  10920. ) {
  10921. this.addTools(10, this.taskCount, this.toolIndex);
  10922. }
  10923. },
  10924. goToTask(i) {
  10925. $(".rightBox")[0].scrollTop =
  10926. $(".taskBorder")[i].offsetTop +
  10927. $(".taskBorder")[i].parentElement.parentElement.offsetTop;
  10928. this.isClickColor = i + 1;
  10929. },
  10930. taskMove(type, index) {
  10931. // this
  10932. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  10933. // confirmButtonText: "确定",
  10934. // cancelButtonText: "取消",
  10935. // type: "warning",
  10936. // })
  10937. // .then(() => {
  10938. if (type == 1) {
  10939. if (index > 0) {
  10940. let a = JSON.parse(
  10941. JSON.stringify(
  10942. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  10943. )
  10944. );
  10945. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  10946. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  10947. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  10948. }
  10949. } else {
  10950. if (
  10951. index <
  10952. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  10953. ) {
  10954. let a = JSON.parse(
  10955. JSON.stringify(
  10956. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  10957. )
  10958. );
  10959. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  10960. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  10961. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  10962. }
  10963. }
  10964. this.$forceUpdate();
  10965. // })
  10966. // .catch(() => {
  10967. // return;
  10968. // })
  10969. },
  10970. addGroup(i) {
  10971. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  10972. this.groupJson.group.push({
  10973. name: "第" + (this.groupJson.group.length + 1) + "组",
  10974. });
  10975. },
  10976. deleteGroup(i) {
  10977. this.groupJson.group.splice(i, 1);
  10978. },
  10979. addGroupJson() {
  10980. for (var i = 0; i < this.groupJson.group.length; i++) {
  10981. if (!this.groupJson.group[i].name) {
  10982. this.$message.error("请将信息填写完整!");
  10983. return;
  10984. }
  10985. }
  10986. if (!this.groupJson.number) {
  10987. this.$message.error("请将信息填写完整!");
  10988. return;
  10989. }
  10990. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10991. this.taskCount
  10992. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  10993. JSON.stringify(this.groupJson)
  10994. );
  10995. this.dialogVisibleGroup = false;
  10996. this.groupJson = {};
  10997. if (
  10998. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10999. .toolChoose[this.toolIndex].tool != 49
  11000. ) {
  11001. this.addTools(49, this.taskCount, this.toolIndex);
  11002. }
  11003. },
  11004. updateTime(preTime) {
  11005. this.preTime = preTime;
  11006. },
  11007. InviteChange(val) {
  11008. console.log(val);
  11009. return;
  11010. let array = JSON.parse(JSON.stringify(val));
  11011. this.inviteCode = this.inviteCode.filter((el) => {
  11012. if (val.indexOf(el.cid) != -1) {
  11013. array.splice(array.indexOf(el.cid), 1);
  11014. return el;
  11015. }
  11016. });
  11017. for (var i = 0; i < array.length; i++) {
  11018. this.getInviteCode(array[i]);
  11019. }
  11020. },
  11021. async getInviteCode(cid) {
  11022. let code = this.randomNumber();
  11023. let params = {
  11024. code: code,
  11025. oid: this.oid,
  11026. };
  11027. let type = 1;
  11028. for (var i = 0; i < this.inviteCode.length; i++) {
  11029. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  11030. type = 2;
  11031. }
  11032. }
  11033. if (type == 2) {
  11034. this.getInviteCode(cid);
  11035. return;
  11036. }
  11037. const res = await this.ajax.get(
  11038. this.$store.state.api + "selectInviteCode2",
  11039. params
  11040. );
  11041. if (
  11042. res.data.length &&
  11043. res.data[0].length &&
  11044. res.data[0][0].courseId != this.cid
  11045. ) {
  11046. this.getInviteCode(cid);
  11047. return;
  11048. }
  11049. let array = [];
  11050. for (var i = 0; i < this.inviteCode.length; i++) {
  11051. array.push(this.inviteCode[i].cid);
  11052. }
  11053. if (array.indexOf(cid) != -1) {
  11054. this.inviteCode[array.indexOf(cid)].ic = code;
  11055. } else {
  11056. this.inviteCode.push({ cid: cid, ic: code });
  11057. }
  11058. },
  11059. OpenInviteD(cid) {
  11060. let array = [];
  11061. this.icode = "";
  11062. for (var i = 0; i < this.inviteCode.length; i++) {
  11063. array.push(this.inviteCode[i].cid);
  11064. }
  11065. if (array.indexOf(cid) != -1) {
  11066. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  11067. }
  11068. this.inviteId = cid;
  11069. this.dialogVisibleInvite = true;
  11070. },
  11071. addInvite() {
  11072. let reg = /^[A-Za-z0-9]{4,}$/;
  11073. if (!reg.test(this.icode)) {
  11074. this.$message.error("请输入至少四位数字或英文组合的随机码");
  11075. return;
  11076. }
  11077. let type = 1;
  11078. for (var i = 0; i < this.inviteCode.length; i++) {
  11079. if (
  11080. this.inviteCode[i].cid != this.inviteId &&
  11081. this.icode == this.inviteCode[i].ic
  11082. ) {
  11083. type = 2;
  11084. }
  11085. }
  11086. if (type == 2) {
  11087. this.$message.error("已有此随机码,不能重复");
  11088. return;
  11089. }
  11090. let params = {
  11091. code: this.icode,
  11092. oid: this.oid,
  11093. };
  11094. this.ajax
  11095. .get(this.$store.state.api + "selectInviteCode", params)
  11096. .then((res) => {
  11097. if (
  11098. res.data.length &&
  11099. res.data[0].length &&
  11100. res.data[0][0].courseId != this.cid
  11101. ) {
  11102. this.$message.error("已有此随机码,不能重复");
  11103. return;
  11104. }
  11105. let array = [];
  11106. for (var i = 0; i < this.inviteCode.length; i++) {
  11107. array.push(this.inviteCode[i].cid);
  11108. }
  11109. if (array.indexOf(this.inviteId) != -1) {
  11110. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  11111. } else {
  11112. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  11113. }
  11114. this.icode = "";
  11115. this.dialogVisibleInvite = false;
  11116. })
  11117. .catch((err) => {
  11118. console.error(err);
  11119. });
  11120. },
  11121. randomNumber() {
  11122. // 随机生成两位数
  11123. // let num = Math.floor(Math.random() * 900) + 100;
  11124. // 生成 0 到 99 之间的随机整数
  11125. const randomNumber = Math.floor(Math.random() * 100);
  11126. // 如果随机数小于 10,补上前导零
  11127. const num =
  11128. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  11129. // 随机生成两个大写字母
  11130. let letters = "";
  11131. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  11132. for (let i = 0; i < 3; i++) {
  11133. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  11134. }
  11135. // 随机生成两位数字和字母的组合
  11136. let mix = "";
  11137. let chars =
  11138. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  11139. for (let i = 0; i < 3; i++) {
  11140. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  11141. mix += char;
  11142. }
  11143. // 随机选择一种类型
  11144. let type = Math.floor(Math.random() * 3);
  11145. return num;
  11146. // 根据类型输出结果
  11147. switch (type) {
  11148. case 0:
  11149. console.log(num); // 输出两位数
  11150. return num;
  11151. case 1:
  11152. console.log(letters); // 输出两个大写字母
  11153. return letters;
  11154. case 2:
  11155. console.log(mix); // 输出两位数字和字母的组合
  11156. return mix;
  11157. }
  11158. },
  11159. },
  11160. beforeDestroy() {
  11161. clearTimeout(this.timer);
  11162. this.timer = null;
  11163. clearInterval(this.timer2);
  11164. this.timer2 = null;
  11165. },
  11166. beforeRouteLeave(to, from, next) {
  11167. clearTimeout(this.timer);
  11168. this.timer = null;
  11169. clearInterval(this.timer2);
  11170. this.timer2 = null;
  11171. next();
  11172. },
  11173. created() {
  11174. this.getStudent();
  11175. this.getTeacher();
  11176. this.getClass();
  11177. this.selectGrage();
  11178. this.getTemplate();
  11179. // this.selectType();
  11180. this.selectEva();
  11181. this.loading = false;
  11182. this.timer2 = setInterval(() => {
  11183. this.selectEva();
  11184. }, 5000);
  11185. setTimeout(() => {
  11186. this.selectCourseDetail();
  11187. }, 500);
  11188. },
  11189. mounted() {
  11190. this.$nextTick(() => {
  11191. //监听这个dom的scroll事件
  11192. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  11193. });
  11194. },
  11195. };
  11196. </script>
  11197. <style scoped>
  11198. @media screen and (max-width: 1280px) {
  11199. .mbCss {
  11200. flex-direction: column !important;
  11201. }
  11202. .pjCss {
  11203. width: 100% !important;
  11204. }
  11205. .evaCss {
  11206. width: 100% !important;
  11207. }
  11208. }
  11209. .dialog_diy >>> .el-dialog__header {
  11210. background: #3c3c3c !important;
  11211. padding: 15px 20px;
  11212. }
  11213. .dialog_diy >>> .el-dialog__title {
  11214. color: #fff;
  11215. }
  11216. .dialog_diy >>> .el-dialog__headerbtn {
  11217. top: 19px;
  11218. }
  11219. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  11220. color: #fff;
  11221. }
  11222. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  11223. color: #fff;
  11224. }
  11225. .dialog_diy >>> .el-dialog__body,
  11226. .dialog_diy >>> .el-dialog__footer {
  11227. background: #fafafa;
  11228. }
  11229. .dialog_diy3 >>> .el-dialog__body,
  11230. .dialog_diy3 >>> .el-dialog__footer {
  11231. background: #eee !important;
  11232. }
  11233. .dialog_diy3 >>> .el-dialog__body {
  11234. padding: 20px 20px;
  11235. }
  11236. .source_diy >>> .el-dialog {
  11237. height: 100% !important;
  11238. margin: 0 auto !important;
  11239. }
  11240. .source_diy >>> .el-dialog__body {
  11241. height: calc(100% - 185px);
  11242. overflow: auto;
  11243. background: #e6eaf0;
  11244. }
  11245. .source_diy >>> .el-dialog__footer {
  11246. background: #e6eaf0 !important;
  11247. }
  11248. .left {
  11249. border-right: 1px solid rgb(60, 94, 143);
  11250. display: flex;
  11251. flex-direction: column;
  11252. align-items: center;
  11253. min-height: 600px;
  11254. width: 385px;
  11255. height: 80%;
  11256. }
  11257. .tips {
  11258. color: rgb(128, 128, 128);
  11259. font-size: 12px;
  11260. width: 270px;
  11261. margin: 40px;
  11262. }
  11263. .pb_content {
  11264. height: 100% !important;
  11265. /* margin: 0 20px 0 20px; */
  11266. }
  11267. .pb_content_body {
  11268. width: 100% !important;
  11269. height: 100%;
  11270. }
  11271. .info_solid {
  11272. width: 270px;
  11273. height: 30px;
  11274. border-left: 1px solid #bdbdbd;
  11275. margin: 10px 0px 10px 30px;
  11276. }
  11277. .info_steps {
  11278. width: 270px;
  11279. font-size: 0.875rem;
  11280. display: flex;
  11281. align-items: center;
  11282. }
  11283. .info_steps span:nth-child(1) {
  11284. width: 30px;
  11285. height: 30px;
  11286. background: rgba(0, 0, 0, 0.38);
  11287. display: block;
  11288. color: #fff;
  11289. border-radius: 40px;
  11290. text-align: center;
  11291. line-height: 30px;
  11292. }
  11293. .steps_active {
  11294. background: #3d67bc !important;
  11295. }
  11296. .info_steps span:nth-child(2) {
  11297. margin-left: 5px;
  11298. }
  11299. .right {
  11300. height: 100%;
  11301. width: calc(100% - 40px);
  11302. display: flex;
  11303. overflow: hidden;
  11304. margin:0 auto;
  11305. }
  11306. .basic_box {
  11307. margin: 0 auto;
  11308. position: relative;
  11309. padding: 0 20px 0 20px;
  11310. }
  11311. .basic_box2 {
  11312. position: relative;
  11313. width: calc(100% - 300px);
  11314. }
  11315. .basic_box_success {
  11316. width: 100%;
  11317. height: 100%;
  11318. padding: 50px 0;
  11319. position: relative;
  11320. text-align: center;
  11321. /* border-bottom: 1px solid #bfbfbf; */
  11322. box-sizing: border-box;
  11323. display: flex;
  11324. align-items: center;
  11325. flex-direction: column;
  11326. justify-content: center;
  11327. }
  11328. .info_title {
  11329. font-size: 1.5em;
  11330. margin-right: 25px;
  11331. /* margin: 20px 30px 20px 30px; */
  11332. }
  11333. .bInfo_title {
  11334. text-align: left;
  11335. margin: 10px 0;
  11336. }
  11337. .small_title {
  11338. font-size: 14px;
  11339. line-height: 40px;
  11340. }
  11341. .chapter_beizhu {
  11342. font-size: 12px;
  11343. font-weight: bold;
  11344. float: right;
  11345. color: rgb(128, 128, 128);
  11346. margin-top: 5px;
  11347. }
  11348. .chapter_uploadBox1 {
  11349. text-align: left;
  11350. background-color: rgb(242, 242, 242);
  11351. width: 100%;
  11352. height: 67px;
  11353. padding: 0px 15px;
  11354. border-radius: 8px;
  11355. overflow: hidden;
  11356. font-size: 16px;
  11357. box-sizing: border-box;
  11358. position: relative;
  11359. }
  11360. .chapter_add {
  11361. width: 100%;
  11362. height: 32px;
  11363. margin-top: 15px;
  11364. cursor: pointer;
  11365. }
  11366. .chapter_add_l {
  11367. margin-left: 5px;
  11368. width: 30px;
  11369. height: 30px;
  11370. float: left;
  11371. border: 1px solid #aaa;
  11372. color: #aaa;
  11373. border-radius: 50%;
  11374. font-size: 25px;
  11375. text-align: center;
  11376. }
  11377. .chapter_add_r {
  11378. font-size: 18px;
  11379. height: 40px;
  11380. line-height: 30px;
  11381. text-indent: 10px;
  11382. color: #aaa;
  11383. }
  11384. .chapter_add_r span {
  11385. font-size: 12px;
  11386. color: rgb(204, 204, 204);
  11387. }
  11388. .chapter_add_input {
  11389. display: none;
  11390. }
  11391. .line {
  11392. width: 85%;
  11393. margin: 0 auto;
  11394. border-top: 1px solid #e5e5e5;
  11395. margin-top: 20px;
  11396. }
  11397. .info_btnBox {
  11398. width: calc(100%);
  11399. display: flex;
  11400. justify-content: center;
  11401. height: 70px;
  11402. align-items: center;
  11403. background: #fff;
  11404. margin: 0 auto;
  11405. border-top: 2px solid rgb(228, 232, 237);
  11406. box-sizing: border-box;
  11407. border-radius: 0px 0 5px 5px;
  11408. }
  11409. .info_btn+.info_btn {
  11410. margin-left: 15px;
  11411. }
  11412. .info_btn,
  11413. .teacherWord {
  11414. color: #fff;
  11415. background-color: #0f7eff;
  11416. padding: 8px 24px;
  11417. font-size: 0.9375rem;
  11418. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  11419. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  11420. min-width: 64px;
  11421. font-weight: 500;
  11422. border-radius: 4px;
  11423. box-sizing: border-box;
  11424. border: none;
  11425. cursor: pointer;
  11426. }
  11427. .teacherWord {
  11428. width: 105px !important;
  11429. text-align: center !important;
  11430. line-height: 36px !important;
  11431. padding: 0 !important;
  11432. font-size: 14px !important;
  11433. margin: 10px 0 !important;
  11434. }
  11435. .wordTeacher {
  11436. display: flex;
  11437. flex-direction: column;
  11438. width: 20%;
  11439. text-align: center;
  11440. font-size: 14px;
  11441. margin: 30px 30px 0 10px;
  11442. background: #fff;
  11443. position: relative;
  11444. border-radius: 5px;
  11445. padding: 25px 0px;
  11446. }
  11447. .wordPic {
  11448. margin: 0 auto;
  11449. width: 60px;
  11450. height: 60px;
  11451. cursor: pointer;
  11452. }
  11453. .deleteWord {
  11454. width: 22px;
  11455. height: 22px;
  11456. position: absolute;
  11457. right: 5px;
  11458. top: -15px;
  11459. cursor: pointer;
  11460. display: none;
  11461. z-index: 999;
  11462. }
  11463. .wordPic > img,
  11464. .deleteWord > img,
  11465. .addToolImg > img {
  11466. width: 100%;
  11467. height: 100%;
  11468. }
  11469. .info_btn:hover {
  11470. background-color: #4f7cd5 !important;
  11471. }
  11472. .cru_selectBox {
  11473. display: flex;
  11474. margin: 24px 0 10px;
  11475. flex-wrap: nowrap;
  11476. white-space: nowrap;
  11477. overflow: auto;
  11478. position: relative;
  11479. height: 47px;
  11480. }
  11481. .cru_selectBox::-webkit-scrollbar {
  11482. /*滚动条整体样式*/
  11483. width: 6px;
  11484. /*高宽分别对应横竖滚动条的尺寸*/
  11485. height: 6px;
  11486. }
  11487. /*定义滚动条轨道 内阴影+圆角*/
  11488. .cru_selectBox::-webkit-scrollbar-track {
  11489. border-radius: 10px;
  11490. background-color: #eee;
  11491. }
  11492. /*定义滑块 内阴影+圆角*/
  11493. .cru_selectBox::-webkit-scrollbar-thumb {
  11494. border-radius: 10px;
  11495. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  11496. background-color: rgba(0, 0, 0, 0.1);
  11497. }
  11498. .cru_line {
  11499. position: absolute;
  11500. bottom: 0px;
  11501. transition: all 0.5s;
  11502. left: 0px;
  11503. width: 125px;
  11504. margin-left: -25px;
  11505. }
  11506. .cru_select {
  11507. font-size: 21px;
  11508. margin-right: 37px;
  11509. margin-left: 5px;
  11510. cursor: pointer;
  11511. color: #a6a6a6;
  11512. }
  11513. .cru_selected {
  11514. color: #0b7fc2 !important;
  11515. }
  11516. .chapter_contentbox {
  11517. display: flex;
  11518. align-items: center;
  11519. margin-top: 15px;
  11520. }
  11521. .chapter_contentbox .cc_title {
  11522. margin: 0px;
  11523. color: black;
  11524. display: block;
  11525. white-space: nowrap;
  11526. overflow: hidden;
  11527. text-overflow: ellipsis;
  11528. margin-right: 20px;
  11529. font-size: 18px;
  11530. height: 20px;
  11531. line-height: 22px;
  11532. min-width: fit-content;
  11533. display: flex;
  11534. }
  11535. .chapter_contentbox .cc_title::before {
  11536. content: '';
  11537. height: 100%;
  11538. width: 3px;
  11539. background: #3681FC;
  11540. border-radius: 3px;
  11541. opacity: 1;
  11542. display: block;
  11543. margin-right: 10px;
  11544. }
  11545. .chapter_contentbox .cc_input {
  11546. width: 100%;
  11547. display:flex;
  11548. }
  11549. .show_taskD{
  11550. min-width:fit-content;
  11551. margin-left: 10px;
  11552. display: flex;
  11553. align-items: center;
  11554. font-size: 14px;
  11555. cursor: pointer;
  11556. color: #717C8D;
  11557. }
  11558. .show_taskD > img{
  11559. width:15px;
  11560. margin-right:5px;
  11561. }
  11562. .show_taskD.show > img{
  11563. transform: rotate(180deg);
  11564. }
  11565. .remove {
  11566. background-image: url("../../../assets/icon/new/delete_u.png");
  11567. cursor: pointer;
  11568. opacity: 0.5;
  11569. width: 30px;
  11570. min-width: 30px;
  11571. height: 30px;
  11572. background-size: 100% 100%;
  11573. background-repeat: no-repeat;
  11574. margin-left: 10px;
  11575. }
  11576. .remove1 {
  11577. background-image: url("../../../assets/remove1.png");
  11578. background-repeat: no-repeat;
  11579. background-position: 5px 10px;
  11580. width: 40px;
  11581. height: 50px;
  11582. cursor: pointer;
  11583. }
  11584. .binfo_input {
  11585. width: 100%;
  11586. margin: 0;
  11587. padding: 12px 14px;
  11588. display: block;
  11589. min-width: 0;
  11590. outline: none;
  11591. box-sizing: border-box;
  11592. background: none;
  11593. border: none;
  11594. border-radius: 4px;
  11595. background: #fff;
  11596. font-size: 16px;
  11597. resize: none;
  11598. font-family: 'Microsoft YaHei';
  11599. min-height:48px;
  11600. border: 1px solid #3682fc00;
  11601. }
  11602. .binfo_textarea {
  11603. border: 1px solid #CAD1DC;
  11604. font-size: 16px;
  11605. resize: none;
  11606. background: #fcfcfc;
  11607. font-family: 'Microsoft YaHei';
  11608. }
  11609. .binfo_input:focus-visible {
  11610. border: 1px solid #3681FC !important;
  11611. }
  11612. .time {
  11613. display: flex;
  11614. margin: 35px 0 80px 0;
  11615. }
  11616. .chapter_btnbox {
  11617. width: 160px;
  11618. border-radius: 5px;
  11619. border: 2px dashed gray;
  11620. display: flex;
  11621. padding: 8px 50px;
  11622. align-items: center;
  11623. justify-content: center;
  11624. margin: 30px auto 0;
  11625. cursor: pointer;
  11626. }
  11627. .icon_add {
  11628. position: relative;
  11629. width: 24px;
  11630. padding-top: 20px;
  11631. border-radius: 100%;
  11632. border-width: 2px;
  11633. border-style: solid;
  11634. border-color: gray;
  11635. }
  11636. .icon_add i:nth-child(1) {
  11637. position: absolute;
  11638. left: 50%;
  11639. top: 50%;
  11640. height: 60%;
  11641. transform: translate(-50%, -50%);
  11642. border-width: 1px;
  11643. border-style: solid;
  11644. border-color: inherit;
  11645. }
  11646. .icon_add i:nth-child(2) {
  11647. position: absolute;
  11648. top: 50%;
  11649. left: 50%;
  11650. width: 60%;
  11651. transform: translate(-50%, -50%);
  11652. border-width: 1px;
  11653. border-style: solid;
  11654. border-color: inherit;
  11655. }
  11656. .chapter_btn_w {
  11657. font-size: 0.9375rem;
  11658. font-weight: bold;
  11659. color: gray;
  11660. margin-left: 20px;
  11661. }
  11662. .disUoloadSty >>> .el-icon-plus {
  11663. display: none !important;
  11664. /* 上传按钮隐藏 */
  11665. }
  11666. .imgLeft {
  11667. margin: 15px 0;
  11668. }
  11669. .add_info_box {
  11670. margin: 20px 0 0;
  11671. display: flex;
  11672. flex-wrap: wrap;
  11673. }
  11674. .add_info_box button {
  11675. /* margin: 0 10px 10px 0; */
  11676. }
  11677. .add_info_box2 {
  11678. display: flex;
  11679. align-items: center;
  11680. flex-wrap: wrap;
  11681. }
  11682. .add_info_box2::after {
  11683. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  11684. color: red;
  11685. font-size: 14px;
  11686. margin-bottom: 10px;
  11687. }
  11688. .add_chapters_box {
  11689. text-align: left;
  11690. background-color: #fff;
  11691. width: 100%;
  11692. border-radius: 4px;
  11693. font-size: 16px;
  11694. box-sizing: border-box;
  11695. position: relative;
  11696. padding: 20px 15px;
  11697. height: auto;
  11698. overflow-y: auto;
  11699. overflow-x: hidden;
  11700. }
  11701. .add_chapters_box.add_c_none{
  11702. display: flex;
  11703. justify-content: center;
  11704. align-items: center;
  11705. }
  11706. .add_c_none > img{
  11707. width: 135px;
  11708. }
  11709. .homework_box {
  11710. display: flex;
  11711. align-items: flex-start;
  11712. flex-wrap: wrap;
  11713. margin: 15px 0 0 0;
  11714. flex-direction: column;
  11715. align-content: flex-start;
  11716. }
  11717. .course_homework {
  11718. display: flex;
  11719. justify-content: center;
  11720. flex-direction: row;
  11721. align-items: center;
  11722. margin: 0 10px 0 0;
  11723. }
  11724. .course_homework >>> .el-input__inner {
  11725. width: 140px;
  11726. margin-left: 15px;
  11727. }
  11728. .chapter_upload_move {
  11729. position: relative;
  11730. background-color: #fff;
  11731. position: absolute;
  11732. width: 100%;
  11733. top: 0px;
  11734. left: 0px;
  11735. border: 1px solid #eee;
  11736. border-radius: 5px;
  11737. transition: width 2s;
  11738. -moz-transition: width 2s;
  11739. -webkit-transition: width 2s;
  11740. -o-transition: width 2s;
  11741. }
  11742. .chapter_upload_l_i {
  11743. background-image: url("../../../assets/icon.png");
  11744. background-position: 3px -165px;
  11745. width: 30px;
  11746. height: 30px;
  11747. margin: 10px auto 0 auto;
  11748. }
  11749. .course_input_box {
  11750. display: flex;
  11751. margin-right: 20px;
  11752. width: 800px;
  11753. align-items: center;
  11754. }
  11755. .course_input_box>.binfo_input {
  11756. width: calc(100% - 48px - 200px - 20px);
  11757. margin: 0 10px;
  11758. }
  11759. .bb_courseIcon {
  11760. width: 48px;
  11761. height: 48px;
  11762. background: #3681FC;
  11763. border-radius: 6px;
  11764. display: flex;
  11765. align-items: center;
  11766. justify-content: center;
  11767. }
  11768. .bb_courseIcon>img {
  11769. width: 25px;
  11770. height: auto
  11771. }
  11772. .big_box {
  11773. margin-top: 20px;
  11774. display: flex;
  11775. border-bottom: 1px solid #E0E2ED;
  11776. }
  11777. .left_first {
  11778. display: flex;
  11779. flex-direction: column;
  11780. flex-wrap: nowrap;
  11781. width: calc(100% - 400px);
  11782. padding: 0 0 0 0;
  11783. box-sizing: border-box;
  11784. }
  11785. .right_first {
  11786. width: 400px;
  11787. display: flex;
  11788. align-items: center;
  11789. justify-content: center;
  11790. border-left: 1px solid #E0E2ED;
  11791. box-sizing: border-box;
  11792. padding-bottom:20px;
  11793. flex-direction: column;
  11794. }
  11795. .ai_box{
  11796. width: 204px;
  11797. display: flex;
  11798. justify-content: flex-end;
  11799. margin-bottom: 15px;
  11800. }
  11801. .ai_content{
  11802. display: flex;
  11803. align-items: center;
  11804. font-size: 14px;
  11805. padding: 7px 20px;
  11806. box-sizing: border-box;
  11807. box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.16);
  11808. border-radius: 12px;
  11809. font-weight: 700;
  11810. cursor: pointer;
  11811. }
  11812. .ai_content>img{
  11813. width: 40px;
  11814. margin-right: 5px;
  11815. }
  11816. .right_title {
  11817. /* height: 30px; */
  11818. padding: 0 20px;
  11819. font-size: 18px;
  11820. font-weight: bold;
  11821. /* color: #0f7eff; */
  11822. margin: 20px auto 0;
  11823. display: flex;
  11824. /* justify-content: space-between; */
  11825. align-items: center;
  11826. }
  11827. .people {
  11828. border: 1px solid rgb(229 229 229);
  11829. height: 495px;
  11830. border-radius: 5px;
  11831. width: 100%;
  11832. overflow: auto;
  11833. }
  11834. .people_top {
  11835. display: flex;
  11836. width: 100%;
  11837. /* justify-content: space-between; */
  11838. /* align-items: center; */
  11839. flex-direction: column;
  11840. padding: 10px 10px 0;
  11841. box-sizing: border-box;
  11842. }
  11843. .people_nav,
  11844. .people_top_right {
  11845. /* padding: 20px 0 0 20px; */
  11846. }
  11847. .people_top_right {
  11848. height: 40px;
  11849. margin-bottom: 10px;
  11850. }
  11851. .people_search {
  11852. display: flex;
  11853. position: relative;
  11854. }
  11855. .people_search >>> .el-input__inner {
  11856. /* height: 25px; */
  11857. width: 95%;
  11858. }
  11859. .search_img {
  11860. width: 20px;
  11861. height: 20px;
  11862. position: absolute;
  11863. right: 30px;
  11864. top: 50%;
  11865. transform: translateY(-50%);
  11866. }
  11867. .search_img > img {
  11868. width: 100%;
  11869. height: 100%;
  11870. }
  11871. .people_name {
  11872. display: flex;
  11873. justify-content: flex-start;
  11874. padding: 20px 10px;
  11875. flex-direction: column;
  11876. flex-wrap: wrap;
  11877. }
  11878. .p_box {
  11879. position: relative;
  11880. }
  11881. .people_name >>> .el-checkbox {
  11882. width: 100%;
  11883. display: flex;
  11884. align-items: center;
  11885. margin-bottom: 10px;
  11886. }
  11887. .people_name >>> .el-checkbox__label {
  11888. text-overflow: ellipsis;
  11889. overflow: hidden;
  11890. width: calc(100%);
  11891. }
  11892. .people_name2 >>> .el-checkbox__label {
  11893. width: calc(100% - 130px);
  11894. }
  11895. .inviteCode {
  11896. position: absolute;
  11897. right: 30px;
  11898. color: #237ade;
  11899. top: 0;
  11900. cursor: pointer;
  11901. font-size: 13px;
  11902. }
  11903. .noneInvite {
  11904. color: #a8a8a8;
  11905. }
  11906. .inviteImg {
  11907. position: absolute;
  11908. right: 5px;
  11909. top: 0;
  11910. width: 20px;
  11911. }
  11912. .right_img {
  11913. width: 150px;
  11914. height: 150px;
  11915. margin: 20px auto;
  11916. }
  11917. .right_img > img {
  11918. width: 100%;
  11919. height: 100%;
  11920. }
  11921. .number {
  11922. margin-top: 20px;
  11923. color: #4aa6ff;
  11924. text-decoration: underline;
  11925. }
  11926. .success_button {
  11927. display: flex;
  11928. text-align: center;
  11929. margin: 5% 0 auto;
  11930. flex-direction: row;
  11931. justify-content: center;
  11932. }
  11933. .look_course {
  11934. margin-right: 40px;
  11935. background: #3d67bc;
  11936. width: 200px;
  11937. height: 35px;
  11938. line-height: 35px;
  11939. color: #fff;
  11940. text-align: center;
  11941. font-size: 14px;
  11942. border-radius: 5px;
  11943. cursor: pointer;
  11944. }
  11945. .attend_others {
  11946. width: 250px;
  11947. background: #4fb13c;
  11948. height: 35px;
  11949. line-height: 35px;
  11950. color: #fff;
  11951. text-align: center;
  11952. font-size: 14px;
  11953. border-radius: 5px;
  11954. cursor: pointer;
  11955. }
  11956. .dialog_diy2 >>> .el-dialog__body {
  11957. text-align: center;
  11958. }
  11959. .write_togother {
  11960. position: absolute;
  11961. right: 45px;
  11962. display: flex;
  11963. top: 5%;
  11964. }
  11965. .write_people {
  11966. font-size: 14px;
  11967. line-height: 50px;
  11968. padding-right: 10px;
  11969. }
  11970. .end_write {
  11971. background: #3d67bc;
  11972. color: #fff;
  11973. width: 100px;
  11974. height: 35px;
  11975. line-height: 35px;
  11976. text-align: center;
  11977. font-size: 14px;
  11978. border-radius: 5px;
  11979. cursor: pointer;
  11980. }
  11981. .chapter_upload+.chapter_upload {
  11982. margin-top: 15px;
  11983. }
  11984. .chapter_upload {
  11985. height: 35px;
  11986. position: relative;
  11987. display: flex;
  11988. align-items: center;
  11989. width: 100%;
  11990. min-height: 35px;
  11991. box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16);
  11992. border-radius: 4px;
  11993. overflow: hidden;
  11994. }
  11995. .chapter_upload_t {
  11996. background-color: #fff;
  11997. position: absolute;
  11998. height: 100%;
  11999. top: 0px;
  12000. left: 0px;
  12001. box-sizing: border-box;
  12002. }
  12003. .chapter_upload_o {
  12004. width: 100%;
  12005. height: 100%;
  12006. position: relative;
  12007. z-index: 1;
  12008. }
  12009. .chapter_upload_ic {
  12010. margin: 0 15px 0px auto;
  12011. display: flex;
  12012. align-items: center;
  12013. }
  12014. .chapter_upload_ic_l {
  12015. width: 50px;
  12016. height: 50px;
  12017. float: left;
  12018. }
  12019. .chapter_upload_ic_l div {
  12020. width: 30px;
  12021. height: 35px;
  12022. background: url("../../../assets/icon/icon.png");
  12023. }
  12024. .chapter_upload_ic_r {
  12025. height: 100%;
  12026. display: flex;
  12027. align-items: center;
  12028. cursor: pointer;
  12029. }
  12030. .chapter_upload_ic_r div {
  12031. width: 18px;
  12032. height: 18px;
  12033. background-image: url("../../../assets/icon/new/delete_u.png");
  12034. background-size: 100% 100%;
  12035. }
  12036. .chapter_upload_n {
  12037. display: flex;
  12038. text-indent: 10px;
  12039. text-decoration: none;
  12040. text-overflow: ellipsis;
  12041. white-space: nowrap;
  12042. overflow: hidden;
  12043. width: 55%;
  12044. margin-left: 10px;
  12045. cursor: pointer;
  12046. margin-top: 2px;
  12047. align-items: center;
  12048. }
  12049. .chapter_upload_l_i2,
  12050. .chapter_upload_l_i3,
  12051. .chapter_upload_l_i8,
  12052. .chapter_upload_l_i6,
  12053. .chapter_upload_l_i12,
  12054. .chapter_upload_l_i13 {
  12055. width: 15px;
  12056. height: 15px;
  12057. background-size: 100% 100%;
  12058. }
  12059. .chapter_upload_l_i2 {
  12060. background-image: url("../../../assets/icon/new/u_word.png");
  12061. }
  12062. .chapter_upload_l_i3 {
  12063. background-image: url("../../../assets/icon/new/u_video.png");
  12064. }
  12065. .chapter_upload_l_i8 {
  12066. background-image: url("../../../assets/icon/new/u_url.png");
  12067. }
  12068. .chapter_upload_l_i6 {
  12069. background-image: url("../../../assets/icon/new/u_url.png");
  12070. }
  12071. .chapter_upload_l_i12 {
  12072. background-image: url("../../../assets/icon/new/u_word.png");
  12073. }
  12074. .chapter_upload_l_i13 {
  12075. background-image: url("../../../assets/icon/new/u_img.png");
  12076. }
  12077. .chapter_upload_noSee {
  12078. background-image: url("../../../assets/icon/new/u_noUpload.png");
  12079. width: 18px;
  12080. height: 18px;
  12081. background-size: 100% 100%;
  12082. display: block;
  12083. margin-right: 20px;
  12084. }
  12085. .chapter_upload_ud {
  12086. display: flex;
  12087. flex-direction: row;
  12088. justify-content: center;
  12089. margin: 0 20px 0 0;
  12090. }
  12091. .chapter_upload_ud>.chapter_upload_up {
  12092. margin-bottom: 0;
  12093. margin-right: 5px;
  12094. }
  12095. .chapter_upload_down,
  12096. .chapter_upload_up {
  12097. width: 20px;
  12098. height: 20px;
  12099. background: #F0F4FA;
  12100. cursor: pointer;
  12101. margin: 0 auto;
  12102. border-radius: 5px;
  12103. display: flex;
  12104. justify-content: center;
  12105. align-items: center;
  12106. }
  12107. .chapter_upload_up::after,
  12108. .chapter_upload_down::after {
  12109. content: '';
  12110. background-image: url('../../../assets/icon/new/downBtn.png');
  12111. width: 13px;
  12112. height: 13px;
  12113. background-size: 100% 100%;
  12114. display: block;
  12115. }
  12116. .chapter_upload_up::after {
  12117. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  12118. }
  12119. .chapter_upload_up {
  12120. margin-bottom: 5px;
  12121. }
  12122. .addWordStyle {
  12123. display: flex;
  12124. flex-direction: row;
  12125. justify-content: flex-start;
  12126. overflow-x: auto;
  12127. white-space: nowrap;
  12128. flex-wrap: wrap;
  12129. }
  12130. /* table 样式 */
  12131. .cont >>> table {
  12132. border-top: 1px solid #ccc;
  12133. border-left: 1px solid #ccc;
  12134. }
  12135. .cont >>> table td,
  12136. .cont >>> table th {
  12137. border-bottom: 1px solid #ccc;
  12138. border-right: 1px solid #ccc;
  12139. /* padding: 20px 5px; */
  12140. padding: 5px 10px;
  12141. max-width: 0px;
  12142. height: 30px;
  12143. vertical-align: baseline;
  12144. }
  12145. .cont >>> table th {
  12146. border-bottom: 2px solid #ccc;
  12147. text-align: center;
  12148. }
  12149. /* blockquote 样式 */
  12150. .cont >>> blockquote {
  12151. display: block;
  12152. border-left: 8px solid #d0e5f2;
  12153. padding: 5px 10px;
  12154. margin: 10px 0;
  12155. line-height: 1.4;
  12156. font-size: 100%;
  12157. background-color: #f1f1f1;
  12158. }
  12159. /* code 样式 */
  12160. .cont >>> code {
  12161. display: inline-block;
  12162. *display: inline;
  12163. *zoom: 1;
  12164. background-color: #f1f1f1;
  12165. border-radius: 3px;
  12166. padding: 3px 5px;
  12167. margin: 0 3px;
  12168. }
  12169. .cont >>> pre code {
  12170. display: block;
  12171. }
  12172. /* ul ol 样式 */
  12173. .cont >>> ul,
  12174. ol {
  12175. margin: 10px 0 10px 20px;
  12176. }
  12177. .wordbox {
  12178. display: flex;
  12179. flex-wrap: wrap;
  12180. cursor: pointer;
  12181. width: 100%;
  12182. }
  12183. .checkword {
  12184. width: 22px;
  12185. height: 22px;
  12186. margin: 10px auto 0;
  12187. cursor: pointer;
  12188. }
  12189. .checkword img {
  12190. width: 100%;
  12191. }
  12192. .stepBg {
  12193. display: flex;
  12194. flex-direction: column;
  12195. justify-content: space-between;
  12196. align-items: center;
  12197. background: #fff;
  12198. width: 300px;
  12199. margin: 0 25px 0 0;
  12200. }
  12201. .stepTop {
  12202. min-width: 300px;
  12203. width: 300px;
  12204. /* border-radius: 10px; */
  12205. display: flex;
  12206. flex-direction: column;
  12207. justify-content: flex-start;
  12208. align-items: center;
  12209. flex-wrap: nowrap;
  12210. background: #fff;
  12211. /* top: 18%; */
  12212. }
  12213. .stepTop > div {
  12214. height: 80px;
  12215. width: 85%;
  12216. cursor: pointer;
  12217. margin: 10px 0;
  12218. border-radius: 10px;
  12219. }
  12220. .first,
  12221. .second,
  12222. .third,
  12223. .four {
  12224. background: #4a83d0;
  12225. height: 90px;
  12226. color: #fff;
  12227. display: flex;
  12228. flex-direction: row;
  12229. align-items: center;
  12230. justify-content: center;
  12231. }
  12232. .first > div:nth-child(1),
  12233. .second > div:nth-child(1),
  12234. .third > div:nth-child(1),
  12235. .four > div:nth-child(1) {
  12236. margin: 5px 10px 0 0;
  12237. width: 2rem;
  12238. }
  12239. .firstNo,
  12240. .secondNo,
  12241. .thirdNo,
  12242. .fourNo {
  12243. background: #e7e7e7;
  12244. color: #adadad;
  12245. display: flex;
  12246. flex-direction: row;
  12247. align-items: center;
  12248. justify-content: center;
  12249. }
  12250. .firstNo > div:nth-child(1),
  12251. .secondNo > div:nth-child(1),
  12252. .thirdNo > div:nth-child(1),
  12253. .fourNo > div:nth-child(1) {
  12254. margin: 5px 10px 0 0;
  12255. width: 2rem;
  12256. }
  12257. .uploadWidth >>> .el-upload {
  12258. width: 60px;
  12259. height: 60px;
  12260. position: relative;
  12261. }
  12262. .addPeople {
  12263. background: #fa6060;
  12264. width: 150px;
  12265. height: 40px;
  12266. color: #fff;
  12267. border-radius: 5px;
  12268. text-align: center;
  12269. line-height: 40px;
  12270. font-size: 14px;
  12271. cursor: pointer;
  12272. }
  12273. .kcImg {
  12274. width: 60px;
  12275. margin-left: 10px;
  12276. }
  12277. .zyImg {
  12278. width: 55px;
  12279. margin: 0 10px;
  12280. }
  12281. .deleteZy {
  12282. width: 20px;
  12283. position: absolute;
  12284. top: 5px;
  12285. right: 5px;
  12286. cursor: pointer;
  12287. }
  12288. .kcImg > img,
  12289. .zyImg > img,
  12290. .deleteZy > img {
  12291. width: 100%;
  12292. height: 100%;
  12293. }
  12294. .zyBox {
  12295. display: flex;
  12296. flex-direction: row;
  12297. align-items: center;
  12298. background: #67d37d;
  12299. color: #fff;
  12300. width: 210px;
  12301. margin: 20px 20px 0 0;
  12302. border-radius: 10px;
  12303. height: 70px;
  12304. position: relative;
  12305. }
  12306. .upCss {
  12307. display: flex;
  12308. flex-direction: row;
  12309. justify-content: flex-start;
  12310. }
  12311. .upCss >>> .el-icon-plus {
  12312. position: none !important;
  12313. width: 200px;
  12314. height: 100px;
  12315. display: flex;
  12316. flex-wrap: nowrap;
  12317. flex-direction: column;
  12318. align-items: center;
  12319. justify-content: center;
  12320. border: 1px dashed #ccc;
  12321. min-width: 78px;
  12322. min-height: 100px;
  12323. z-index: 999;
  12324. }
  12325. .upCss >>> .el-upload-list__item-name {
  12326. width: 100px;
  12327. white-space: nowrap;
  12328. overflow: hidden;
  12329. text-overflow: ellipsis;
  12330. }
  12331. .addStageImg {
  12332. min-width: 25px;
  12333. min-height: 25px;
  12334. width: 25px;
  12335. height: 25px;
  12336. cursor: pointer;
  12337. }
  12338. .addHW {
  12339. width: 28px;
  12340. height: 28px;
  12341. cursor: pointer;
  12342. }
  12343. .addStageImg > img,
  12344. .addHW > img {
  12345. width: 100%;
  12346. height: 100%;
  12347. }
  12348. .addNewPP >>> .el-dialog__body {
  12349. padding: 5px 20px;
  12350. }
  12351. .isHeight {
  12352. height: 680px;
  12353. }
  12354. .toolChoose {
  12355. display: flex;
  12356. /* width: 100%; */
  12357. flex-direction: row;
  12358. flex-wrap: wrap;
  12359. }
  12360. .tool {
  12361. display: flex;
  12362. flex-direction: column;
  12363. flex-wrap: nowrap;
  12364. width: fit-content;
  12365. margin: 10px 0 10px 0;
  12366. align-items: center;
  12367. }
  12368. .tool + .tool {
  12369. margin-right: 45px;
  12370. }
  12371. .whiteBIcon {
  12372. width: 80px;
  12373. cursor: pointer;
  12374. display: flex;
  12375. flex-direction: column;
  12376. flex-wrap: nowrap;
  12377. align-items: center;
  12378. font-size: 14px;
  12379. }
  12380. .whiteBIcon > img,
  12381. .toolIcon > img,
  12382. .arrow > img {
  12383. width: 100%;
  12384. height: 100%;
  12385. }
  12386. .check img {
  12387. width: 20px;
  12388. height: 20px;
  12389. }
  12390. .whiteBIcon > img {
  12391. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  12392. border-radius: 15px;
  12393. }
  12394. .check {
  12395. /* width: 20px;
  12396. height: 20px; */
  12397. cursor: pointer;
  12398. margin: 10px 0;
  12399. }
  12400. .checkDiv {
  12401. display: flex;
  12402. align-items: center;
  12403. }
  12404. .checkDiv span {
  12405. margin-left: 5px;
  12406. color: #858585;
  12407. }
  12408. .customWidth >>> .el-dialog {
  12409. min-width: 500px !important;
  12410. }
  12411. .a_addBox {
  12412. margin: 10px 0;
  12413. background: #fff;
  12414. padding: 15px;
  12415. max-height: 600px;
  12416. overflow: auto;
  12417. }
  12418. .a_add_box {
  12419. border-bottom: 2px solid #eee;
  12420. padding-bottom: 25px;
  12421. }
  12422. .a_add_head {
  12423. display: flex;
  12424. align-items: center;
  12425. justify-content: space-between;
  12426. margin: 10px 0 0 0;
  12427. font-size: 18px;
  12428. }
  12429. .a_add_checkType {
  12430. margin-top: 10px;
  12431. display: flex;
  12432. font-size: 16px;
  12433. align-items: center;
  12434. }
  12435. .a_add_checkType span {
  12436. box-sizing: border-box;
  12437. padding: 0 0 5px 0;
  12438. cursor: pointer;
  12439. }
  12440. .a_add_checkType span + span {
  12441. margin-left: 10px;
  12442. }
  12443. .a_add_checkType .active {
  12444. border-bottom: 2px solid #409eff;
  12445. color: #409eff;
  12446. }
  12447. .a_add_head .a_add_head_input {
  12448. width: 300px;
  12449. }
  12450. .a_add_head .a_add_head_div {
  12451. display: flex;
  12452. align-items: center;
  12453. justify-content: space-between;
  12454. }
  12455. .a_add_body {
  12456. display: flex;
  12457. /* align-items: center; */
  12458. align-items: flex-end;
  12459. }
  12460. .a_add_input {
  12461. display: flex;
  12462. align-items: center;
  12463. flex-wrap: wrap;
  12464. }
  12465. .a_add_input_choice {
  12466. flex-direction: column;
  12467. margin-right: 10px;
  12468. }
  12469. .a_add_input_choice >>> .el-radio {
  12470. display: flex;
  12471. align-items: center;
  12472. flex-direction: row-reverse;
  12473. margin: 30px 0 0 0;
  12474. }
  12475. .a_add_input_choice >>> .el-checkbox {
  12476. display: flex;
  12477. align-items: center;
  12478. flex-direction: row-reverse;
  12479. margin: 30px 0 0 0;
  12480. }
  12481. .width100 {
  12482. width: 100%;
  12483. }
  12484. .a_add_input .a_add_persent {
  12485. width: 100%;
  12486. }
  12487. .a_add_persent_div {
  12488. width: 100%;
  12489. display: flex;
  12490. align-items: center;
  12491. }
  12492. .a_add_persent_div span {
  12493. margin: 5px 0;
  12494. }
  12495. .a_add_persent_div span:nth-child(1) {
  12496. width: 30%;
  12497. }
  12498. .a_add_persent_div span:nth-child(2) {
  12499. width: 7%;
  12500. }
  12501. .a_add_persent_div span:nth-child(3) {
  12502. width: 40%;
  12503. }
  12504. .a_add_body_div {
  12505. display: flex;
  12506. align-items: center;
  12507. justify-content: center;
  12508. /* flex-direction: column; */
  12509. }
  12510. .all_choose {
  12511. display: flex;
  12512. flex-direction: row;
  12513. align-items: flex-start;
  12514. width: 100%;
  12515. }
  12516. .all_choose>span {
  12517. min-width: fit-content;
  12518. display: block;
  12519. white-space: nowrap;
  12520. overflow: hidden;
  12521. text-overflow: ellipsis;
  12522. margin-right: 20px;
  12523. font-weight: bold;
  12524. font-size: 14px;
  12525. }
  12526. .all_choose >>> .el-checkbox-group {
  12527. display: flex;
  12528. flex-direction: row;
  12529. width: 100%;
  12530. flex-wrap: wrap;
  12531. align-content: center;
  12532. justify-content: flex-start;
  12533. align-items: center;
  12534. margin-top: 3px;
  12535. }
  12536. .all_choose > .el-checkbox-group >>> .el-checkbox {
  12537. margin-bottom: 10px;
  12538. display: flex;
  12539. flex-direction: row;
  12540. align-items: center;
  12541. margin-right:10px;
  12542. }
  12543. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  12544. min-width: 80px;
  12545. overflow: hidden;
  12546. width: 80px;
  12547. text-overflow: ellipsis;
  12548. white-space: nowrap;
  12549. }
  12550. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  12551. width: auto;
  12552. }
  12553. .choose > div:nth-child(3) > span {
  12554. /* letter-spacing: 0 !important; */
  12555. }
  12556. .choose {
  12557. display: flex;
  12558. flex-direction: column;
  12559. flex-wrap: nowrap;
  12560. height: 100%;
  12561. justify-content: space-evenly;
  12562. align-items: flex-start;
  12563. }
  12564. .both {
  12565. display: flex;
  12566. flex-direction: row;
  12567. flex-wrap: wrap;
  12568. width: 100%;
  12569. align-items: center;
  12570. justify-content: flex-start;
  12571. margin: 15px 0;
  12572. }
  12573. .notice >>> .el-dialog {
  12574. width: 500px !important;
  12575. text-align: center;
  12576. }
  12577. .notice >>> .el-button {
  12578. margin-top: 20px;
  12579. }
  12580. .whiteBg {
  12581. background: #fff;
  12582. border-radius: 10px;
  12583. }
  12584. .wb_j_box {
  12585. display: flex;
  12586. width: 100%;
  12587. padding: 20px 20px 0;
  12588. box-sizing: border-box;
  12589. }
  12590. .wb_j_box_content {
  12591. width: calc(100% - 55% - 100px);
  12592. display: flex;
  12593. align-items: center;
  12594. }
  12595. .wb_j_box_p_box {
  12596. max-width: calc(100% - 200px);
  12597. word-break: break-all;
  12598. overflow: hidden;
  12599. margin: 0 0 0 10px;
  12600. font-size: 14px;
  12601. color: #6e6e6e;
  12602. }
  12603. .chooseWho {
  12604. display: flex;
  12605. width: 380px;
  12606. flex-direction: row;
  12607. flex-wrap: nowrap;
  12608. justify-content: space-between;
  12609. padding-bottom: 10px;
  12610. }
  12611. .chooseWho > div {
  12612. cursor: pointer;
  12613. padding-bottom: 10px;
  12614. font-weight: bold;
  12615. }
  12616. .isChooseActive {
  12617. color: #3e88f4;
  12618. border-bottom: 2px solid #2f80f3;
  12619. }
  12620. .toolSort {
  12621. display: flex;
  12622. flex-direction: row;
  12623. flex-wrap: wrap;
  12624. justify-content: flex-start;
  12625. align-items: flex-start;
  12626. }
  12627. .toolSort > div {
  12628. margin-right: 45px;
  12629. }
  12630. .tools {
  12631. width: 100%;
  12632. display: flex;
  12633. flex-direction: column;
  12634. flex-wrap: nowrap;
  12635. align-items: flex-start;
  12636. }
  12637. .leftTools,
  12638. .rightTools {
  12639. width: 50%;
  12640. }
  12641. .leftTools+.leftTools{
  12642. border-top: 1px solid #dbdbdb;
  12643. padding-top: 30px;
  12644. }
  12645. .rightTools {
  12646. display: flex;
  12647. flex-direction: row;
  12648. flex-wrap: nowrap;
  12649. justify-content: space-around;
  12650. }
  12651. .firstToolList {
  12652. display: flex;
  12653. flex-direction: column;
  12654. flex-wrap: nowrap;
  12655. align-items: center;
  12656. }
  12657. .iconList {
  12658. display: flex;
  12659. flex-direction: row;
  12660. flex-wrap: wrap;
  12661. justify-content: flex-start;
  12662. align-items: center;
  12663. margin: 20px 0 5px 0;
  12664. width: 240px;
  12665. min-width: 240px;
  12666. }
  12667. .iconTool {
  12668. display: flex;
  12669. flex-direction: column;
  12670. flex-wrap: nowrap;
  12671. align-items: center;
  12672. justify-content: flex-start;
  12673. margin: 15px 10px;
  12674. }
  12675. .toolIcon {
  12676. width: 50px;
  12677. }
  12678. .taskBorder {
  12679. /*border: 1px solid #e1e1e1; */
  12680. border-radius: 8px;
  12681. margin-top: 20px;
  12682. /* min-height: 1160px; */
  12683. position: relative;
  12684. background: #F0F4FA;
  12685. padding: 20px;
  12686. box-sizing: border-box;
  12687. }
  12688. .smallTaskBorder {
  12689. height: 170px;
  12690. min-height: 170px !important;
  12691. overflow: hidden;
  12692. }
  12693. .taskBorder > div {
  12694. /* padding: 30px 0 10px 30px; */
  12695. }
  12696. .addTaskBorder {
  12697. border: 2px solid #5E9AFC;
  12698. border-radius: 8px;
  12699. margin-top: 25px;
  12700. cursor: pointer;
  12701. height: 50px;
  12702. line-height: 50px;
  12703. }
  12704. .addTaskBorder>div {
  12705. margin: 0 auto;
  12706. display: flex;
  12707. align-items: center;
  12708. justify-content: center;
  12709. }
  12710. .addTaskBorder>div>img {
  12711. width: 20px;
  12712. }
  12713. .addTaskBorder>div>span {
  12714. font-size: 16px;
  12715. margin-left: 10px;
  12716. color: #5E9AFC;
  12717. }
  12718. .funBlock {
  12719. display: flex;
  12720. padding: 15px 0;
  12721. flex-direction: row;
  12722. justify-content: flex-end;
  12723. align-items: center;
  12724. position: absolute;
  12725. right: 15px;
  12726. bottom: 35px;
  12727. }
  12728. .fold {
  12729. display: flex;
  12730. margin: 0 10px;
  12731. flex-direction: row;
  12732. align-items: center;
  12733. cursor: pointer;
  12734. }
  12735. .arrow {
  12736. width: 15px;
  12737. height: 15px;
  12738. margin-left: 10px;
  12739. }
  12740. .addToolFun {
  12741. display: flex;
  12742. width: 150px;
  12743. flex-direction: row;
  12744. align-items: center;
  12745. justify-content: center;
  12746. border: 1px dashed;
  12747. border-radius: 5px;
  12748. height: 50px;
  12749. margin: 20px auto 35px;
  12750. cursor: pointer;
  12751. }
  12752. .addToolFun2 {
  12753. display: flex;
  12754. width: 100%;
  12755. border: 2px dashed #CAD1DC;
  12756. flex-direction: row;
  12757. align-items: center;
  12758. justify-content: center;
  12759. border-radius: 5px;
  12760. height: 50px;
  12761. margin: 35px auto 0;
  12762. cursor: pointer;
  12763. }
  12764. .addToolImg {
  12765. width: 20px;
  12766. height: 20px;
  12767. margin-right: 10px;
  12768. }
  12769. .addToolsDia >>> .el-dialog__body {
  12770. padding: 20px;
  12771. }
  12772. .addToolsDia >>> .el-dialog__body > .toolChoose {
  12773. padding: 0;
  12774. }
  12775. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  12776. padding: 0;
  12777. border-bottom: none;
  12778. margin-bottom: 0;
  12779. }
  12780. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  12781. width: 100%;
  12782. }
  12783. .lineCss >>> .el-form-item__label {
  12784. width: auto !important;
  12785. }
  12786. .lineCss >>> .el-form-item__content {
  12787. margin-left: 50px !important;
  12788. }
  12789. .newSteps {
  12790. display: flex;
  12791. width: 100% !important;
  12792. height: 80px;
  12793. cursor: pointer;
  12794. margin: 10px 0;
  12795. border-radius: 10px;
  12796. flex-direction: row;
  12797. align-content: center;
  12798. justify-content: center;
  12799. align-items: center;
  12800. margin: 0 !important;
  12801. }
  12802. /* 评价样式 */
  12803. .elist_css {
  12804. padding-bottom: 60px !important;
  12805. }
  12806. .elist_title {
  12807. margin-bottom: 10px;
  12808. }
  12809. .elist_input {
  12810. }
  12811. .elist_input_box {
  12812. display: flex;
  12813. align-items: center;
  12814. flex-wrap: wrap;
  12815. }
  12816. .elist_input_box + .elist_input_box {
  12817. margin-top: 30px;
  12818. }
  12819. .elist_input .elist_input_box input {
  12820. font: inherit;
  12821. color: currentColor;
  12822. /* width: 200px; */
  12823. max-width: 200px;
  12824. padding: 8px 14px;
  12825. display: block;
  12826. min-width: 0;
  12827. outline: none;
  12828. border: 1px solid rgba(0, 0, 0, 0.23);
  12829. border-radius: 4px;
  12830. box-sizing: border-box;
  12831. background: #fff;
  12832. margin: 0 20px 0 0;
  12833. }
  12834. .elist_input .elist_input_box span {
  12835. height: 36px;
  12836. line-height: 36px;
  12837. color: rgb(82, 82, 82);
  12838. min-width: 80px;
  12839. }
  12840. .elist_input .elist_input_box .remove {
  12841. height: 20px;
  12842. width: 20px;
  12843. background-size: 100% 100%;
  12844. background-position: unset;
  12845. margin-left: 5px;
  12846. }
  12847. .elist_input_box >>> .el-rate {
  12848. display: flex;
  12849. height: 36px;
  12850. align-items: center;
  12851. }
  12852. .elist_input_box .elist_inptu_text {
  12853. width: 100%;
  12854. display: flex;
  12855. align-items: center;
  12856. margin-top: 10px;
  12857. }
  12858. .elist_input_box .elist_inptu_text input {
  12859. /* width: 500px; */
  12860. width: 100%;
  12861. max-width: unset;
  12862. }
  12863. .elist_input_box >>> .el-rate__icon {
  12864. font-size: 24px;
  12865. }
  12866. .elist_btn {
  12867. margin-top: 10px;
  12868. }
  12869. .lineTitle {
  12870. /* margin-top: 15px; */
  12871. width: 110px;
  12872. font-size:18px;
  12873. }
  12874. .courseTop {
  12875. display: flex;
  12876. flex-direction: row;
  12877. justify-content: flex-start;
  12878. align-items: center;
  12879. width: calc(100%);
  12880. margin: 0 auto;
  12881. padding: 10px 0;
  12882. }
  12883. .stepsNav {
  12884. display: flex;
  12885. flex-direction: row;
  12886. justify-content: flex-start;
  12887. align-items: center;
  12888. }
  12889. .stepsWord {
  12890. font-size: 18px;
  12891. color: #fff;
  12892. font-weight: bold;
  12893. margin-left: auto;
  12894. background: rgb(15, 126, 255);
  12895. border-radius: 5px;
  12896. padding: 3px 25px;
  12897. box-sizing: border-box;
  12898. }
  12899. .rightBox {
  12900. width: calc(100%);
  12901. background: rgb(255, 255, 255);
  12902. /* border-radius: 10px; */
  12903. overflow: auto;
  12904. height: calc(100% - 120px);
  12905. margin: 0 auto;
  12906. position: relative;
  12907. box-sizing: border-box;
  12908. border-radius: 5px 0px;
  12909. }
  12910. .e_add_top {
  12911. display: flex;
  12912. justify-content: space-between;
  12913. padding: 20px 20px 0 20px;
  12914. border-radius: 3px;
  12915. background: #fff;
  12916. }
  12917. .e_add_title2 {
  12918. display: flex;
  12919. align-items: center;
  12920. }
  12921. .e_add_title2 span {
  12922. width: 40px;
  12923. }
  12924. .e_add_title {
  12925. display: flex;
  12926. align-items: center;
  12927. color: #b8b8b8;
  12928. font-size: 18px;
  12929. position: relative;
  12930. height: 40px;
  12931. }
  12932. .e_add_title span {
  12933. margin-right: 10px;
  12934. }
  12935. .e_add_title .el_input {
  12936. width: 300px;
  12937. }
  12938. .e_add_title >>> .el-input__inner {
  12939. width: 400px;
  12940. }
  12941. .e_add_btn {
  12942. }
  12943. .e_add_content {
  12944. display: flex;
  12945. width: 100%;
  12946. }
  12947. .e_add_list {
  12948. background: #fff;
  12949. height: 500px;
  12950. width: 210px;
  12951. position: relative;
  12952. margin: 15px 5px 0 0;
  12953. flex-shrink: 0;
  12954. display: flex;
  12955. flex-direction: column;
  12956. }
  12957. .e_add_list_title {
  12958. font-size: 20px;
  12959. width: 100%;
  12960. box-sizing: border-box;
  12961. padding: 15px 40px;
  12962. text-align: center;
  12963. border-bottom: 1px solid #eaeaea;
  12964. position: relative;
  12965. display: flex;
  12966. align-items: center;
  12967. justify-content: center;
  12968. height: 57px;
  12969. background: #f6f6f6;
  12970. }
  12971. .e_add_list_title span {
  12972. overflow: hidden;
  12973. white-space: nowrap;
  12974. text-overflow: ellipsis;
  12975. }
  12976. .e_add_list_title img {
  12977. position: absolute;
  12978. right: 15px;
  12979. width: 25px;
  12980. cursor: pointer;
  12981. top: 50%;
  12982. transform: translateY(-50%);
  12983. }
  12984. .e_add_list_body {
  12985. height: calc(100% - 187px);
  12986. overflow: auto;
  12987. }
  12988. .e_add_list_child {
  12989. width: 100%;
  12990. display: flex;
  12991. align-items: center;
  12992. justify-content: center;
  12993. position: relative;
  12994. box-sizing: border-box;
  12995. padding: 15px 40px;
  12996. text-align: center;
  12997. }
  12998. .e_add_list_child span {
  12999. overflow: hidden;
  13000. white-space: nowrap;
  13001. text-overflow: ellipsis;
  13002. cursor: pointer;
  13003. }
  13004. .e_add_list_child img {
  13005. position: absolute;
  13006. right: 10px;
  13007. width: 21px;
  13008. cursor: pointer;
  13009. top: 50%;
  13010. transform: translateY(-50%);
  13011. }
  13012. .e_add_list_child + .e_add_list_child {
  13013. border-top: 1px solid #eaeaea;
  13014. }
  13015. .e_add_list_child .active {
  13016. color: #409eff;
  13017. }
  13018. .e_add_list_btn {
  13019. position: absolute;
  13020. bottom: 0;
  13021. height: 50px;
  13022. background: rgb(120, 120, 254);
  13023. width: 100%;
  13024. color: #fff;
  13025. font-size: 16px;
  13026. text-align: center;
  13027. line-height: 50px;
  13028. cursor: pointer;
  13029. }
  13030. .e_add_list_detail {
  13031. position: absolute;
  13032. bottom: 0;
  13033. height: 130px;
  13034. background: rgb(120, 120, 254);
  13035. width: 100%;
  13036. color: #fff;
  13037. font-size: 16px;
  13038. display: flex;
  13039. align-items: center;
  13040. justify-content: center;
  13041. }
  13042. .e_add_list_detail textarea {
  13043. height: 90%;
  13044. width: 95%;
  13045. border: none;
  13046. resize: none;
  13047. outline: none;
  13048. padding: 5px;
  13049. box-sizing: border-box;
  13050. }
  13051. .e_add_list_pbox {
  13052. width: 100%;
  13053. }
  13054. .e_add_list_pbox_title {
  13055. height: 50px;
  13056. background: #fff;
  13057. display: flex;
  13058. align-items: center;
  13059. width: 100%;
  13060. box-sizing: border-box;
  13061. padding: 0 20px;
  13062. flex-direction: row;
  13063. flex-wrap: wrap;
  13064. }
  13065. .type_title {
  13066. font-size: 18px;
  13067. font-weight: 700;
  13068. }
  13069. .type_content {
  13070. font-size: 16px;
  13071. margin-left: 30px;
  13072. }
  13073. .type_content span + span {
  13074. margin-left: 20px;
  13075. }
  13076. .type_content span {
  13077. cursor: pointer;
  13078. padding-bottom: 5px;
  13079. box-sizing: border-box;
  13080. }
  13081. .type_content .active {
  13082. color: #409eff;
  13083. border-bottom: 2px solid #409eff;
  13084. }
  13085. .e_add_list_pbox_content {
  13086. height: calc(100% - 50px);
  13087. display: flex;
  13088. align-items: center;
  13089. width: 100%;
  13090. background: #fff;
  13091. }
  13092. .mbCss {
  13093. width: 100%;
  13094. display: flex;
  13095. flex-direction: row;
  13096. flex-wrap: nowrap;
  13097. align-content: center;
  13098. align-items: flex-start;
  13099. justify-content: flex-start;
  13100. }
  13101. .pjCss {
  13102. /* width: 42%; */
  13103. width: calc(100% - 55%);
  13104. display: flex;
  13105. flex-direction: column;
  13106. flex-wrap: nowrap;
  13107. align-items: flex-start;
  13108. margin-top: 1.5%;
  13109. }
  13110. .e_box {
  13111. display: flex;
  13112. flex-wrap: wrap;
  13113. max-height: 500px;
  13114. align-items: flex-start;
  13115. overflow: auto;
  13116. }
  13117. .e_card {
  13118. border: 1px solid #ccc;
  13119. background: #fff;
  13120. margin-right: 20px;
  13121. width: 270px;
  13122. display: flex;
  13123. flex-direction: column;
  13124. align-items: center;
  13125. border-radius: 5px;
  13126. margin-top: 10px;
  13127. text-align: center;
  13128. }
  13129. .e_card_picture {
  13130. margin: 10px 0;
  13131. }
  13132. .e_card_picture > img {
  13133. width: 50px;
  13134. }
  13135. .e_card_name {
  13136. width: 100%;
  13137. padding: 0 10px;
  13138. box-sizing: border-box;
  13139. margin-bottom: 10px;
  13140. overflow: hidden;
  13141. text-overflow: ellipsis;
  13142. white-space: nowrap;
  13143. }
  13144. .e_card_time {
  13145. width: 100%;
  13146. padding: 0 10px;
  13147. box-sizing: border-box;
  13148. font-size: 15px;
  13149. color: #c3c3c3;
  13150. margin-bottom: 10px;
  13151. }
  13152. .e_card_btn {
  13153. height: 40px;
  13154. display: flex;
  13155. align-items: center;
  13156. width: 100%;
  13157. background: rgb(244, 244, 244);
  13158. }
  13159. .e_card_btn:hover {
  13160. background: rgb(221 221 221);
  13161. }
  13162. .e_card_btn span {
  13163. flex: 1 1 auto;
  13164. text-align: center;
  13165. cursor: pointer;
  13166. }
  13167. .addEva {
  13168. border: 1px solid #ccc;
  13169. background: #fff;
  13170. margin-right: 20px;
  13171. width: 270px;
  13172. height: 149px;
  13173. display: flex;
  13174. flex-direction: column;
  13175. align-items: center;
  13176. border-radius: 5px;
  13177. margin-top: 10px;
  13178. text-align: center;
  13179. cursor: pointer;
  13180. justify-content: center;
  13181. }
  13182. .addEva > img {
  13183. width: 50px;
  13184. object-fit: cover;
  13185. }
  13186. .uploadFm {
  13187. border: 1px dashed #ccc;
  13188. width: 202px;
  13189. height: 130px;
  13190. position: relative;
  13191. cursor: pointer;
  13192. display: flex;
  13193. flex-direction: column;
  13194. justify-content: center;
  13195. align-items: center;
  13196. font-size: 14px;
  13197. color: #6e6e6e;
  13198. }
  13199. .uploadFm > img {
  13200. width: 50px;
  13201. }
  13202. .fileCss {
  13203. width: 100%;
  13204. display: flex;
  13205. flex-direction: row;
  13206. flex-wrap: nowrap;
  13207. justify-content: space-around;
  13208. align-items: center;
  13209. padding-top: 15px;
  13210. }
  13211. .sysPicBox {
  13212. display: flex;
  13213. flex-direction: row;
  13214. flex-wrap: wrap;
  13215. align-content: flex-start;
  13216. height: 435px;
  13217. overflow: auto;
  13218. }
  13219. .sysPic {
  13220. width: 200px;
  13221. height: 115px;
  13222. margin: 0 20px 20px 0;
  13223. cursor: pointer;
  13224. }
  13225. .sysPic > img,
  13226. .isSysPic > img,
  13227. .deletePic > img {
  13228. width: 100%;
  13229. height: 100%;
  13230. object-fit: cover;
  13231. }
  13232. .isSysPic {
  13233. width: 200px;
  13234. height: 115px;
  13235. position: relative;
  13236. }
  13237. .deletePic {
  13238. width: 20px;
  13239. height: 20px;
  13240. position: absolute;
  13241. top: 0;
  13242. right: 0;
  13243. cursor: pointer;
  13244. }
  13245. .select_box1 {
  13246. }
  13247. .select_box1_img {
  13248. background: #fff;
  13249. border-radius: 5px;
  13250. padding: 15px;
  13251. box-sizing: border-box;
  13252. margin-bottom: 20px;
  13253. }
  13254. .select_box1_title {
  13255. padding: 0 0 15px 0;
  13256. border-bottom: 1px solid #eee;
  13257. margin-bottom: 15px;
  13258. }
  13259. .select_box1_title span:nth-child(1) {
  13260. font-size: 16px;
  13261. margin-right: 20px;
  13262. color: #000;
  13263. }
  13264. .select_box1_title span:nth-child(2) {
  13265. font-size: 14px;
  13266. color: rgb(112, 112, 112);
  13267. }
  13268. .select_box1_add_img {
  13269. }
  13270. .select_box1_select {
  13271. background: #fff;
  13272. border-radius: 5px;
  13273. padding: 15px;
  13274. box-sizing: border-box;
  13275. }
  13276. .select_box2 {
  13277. }
  13278. .select_box2_title {
  13279. background: #fff;
  13280. border-radius: 5px;
  13281. padding: 5px 10px;
  13282. box-sizing: border-box;
  13283. margin-bottom: 10px;
  13284. }
  13285. .select_box2_box {
  13286. display: flex;
  13287. height: 500px;
  13288. }
  13289. .select_box2_img {
  13290. width: calc(100% - 310px);
  13291. height: 100%;
  13292. overflow: auto;
  13293. background: #fff;
  13294. border-radius: 5px;
  13295. }
  13296. .select_box2_img img {
  13297. width: 100%;
  13298. }
  13299. .select_box2_answer {
  13300. background: #fff;
  13301. margin-left: 10px;
  13302. border-radius: 5px;
  13303. width: 300px;
  13304. overflow: auto;
  13305. height: 100%;
  13306. display: flex;
  13307. flex-direction: column;
  13308. align-items: center;
  13309. padding-top: 10px;
  13310. box-sizing: border-box;
  13311. }
  13312. .select_box2_answer_box {
  13313. margin: 0 0 10px 0;
  13314. width: 85%;
  13315. }
  13316. .rate_textarea {
  13317. font: inherit;
  13318. color: currentColor;
  13319. width: 100%;
  13320. padding: 8px 14px;
  13321. display: block;
  13322. min-width: 0;
  13323. outline: none;
  13324. border: 1px solid rgba(0, 0, 0, 0.23);
  13325. border-radius: 4px;
  13326. box-sizing: border-box;
  13327. background: #fff;
  13328. margin: 0 20px 0 0;
  13329. resize: none;
  13330. }
  13331. .select_answer_title {
  13332. text-align: left;
  13333. width: 85%;
  13334. margin-bottom: 10px;
  13335. font-size: 18px;
  13336. color: #8e8e8e;
  13337. }
  13338. .mask {
  13339. background-color: rgb(0 0 0 / 30%);
  13340. /* position: fixed; */
  13341. position: absolute;
  13342. top: 0;
  13343. left: 0;
  13344. width: 100%;
  13345. height: 100%;
  13346. z-index: 90;
  13347. display: flex;
  13348. align-items: center;
  13349. justify-content: center;
  13350. }
  13351. .progressBox {
  13352. width: 300px;
  13353. height: 150px;
  13354. background: #fff;
  13355. border-radius: 10px;
  13356. box-shadow: 0 0 6px 1px #bfbfbf;
  13357. display: flex;
  13358. align-items: center;
  13359. justify-content: center;
  13360. flex-direction: column;
  13361. position: relative;
  13362. color: #6c6c6c;
  13363. }
  13364. .progressBox >>> .el-progress-bar__outer {
  13365. background-color: #d1dfff !important;
  13366. }
  13367. .progressBox .lbox {
  13368. height: 50px;
  13369. font-size: 19px;
  13370. display: flex;
  13371. align-items: center;
  13372. color: #747474;
  13373. }
  13374. .progressBox .lbox img {
  13375. width: 40px;
  13376. margin-right: 20px;
  13377. }
  13378. .closeCss {
  13379. position: absolute;
  13380. top: 8px;
  13381. right: 8px;
  13382. cursor: pointer;
  13383. width: 20px;
  13384. height: 20px;
  13385. }
  13386. .closeCss > img {
  13387. width: 100%;
  13388. height: 100%;
  13389. }
  13390. .updateTips::after {
  13391. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  13392. font-size: 14px;
  13393. margin-left: 20px;
  13394. font-weight: 400;
  13395. color: #ff3a3a;
  13396. }
  13397. .updateMask {
  13398. width: 100%;
  13399. z-index: 3;
  13400. top: 0;
  13401. position: absolute;
  13402. /* background-color: rgba(0,0,0,.3); */
  13403. }
  13404. .t_j_box {
  13405. display: flex;
  13406. }
  13407. .t_j_box span:nth-child(1) {
  13408. width: 15%;
  13409. overflow: hidden;
  13410. margin-right: 10px;
  13411. text-overflow: ellipsis;
  13412. white-space: nowrap;
  13413. }
  13414. .t_j_box span:nth-child(2) {
  13415. width: 30%;
  13416. overflow: hidden;
  13417. text-overflow: ellipsis;
  13418. margin-right: 10px;
  13419. }
  13420. .t_j_box span:nth-child(3) {
  13421. max-width: calc(55% - 20px);
  13422. overflow: hidden;
  13423. text-overflow: ellipsis;
  13424. }
  13425. .sentenBox {
  13426. background: #fff;
  13427. height: 600px;
  13428. overflow: auto;
  13429. background-image: url("../../../assets/icon/conSentences/csBg.png");
  13430. background-position: 102%;
  13431. background-repeat: no-repeat;
  13432. background-size: 60%;
  13433. }
  13434. .addSen {
  13435. background: #409efe;
  13436. width: 90px;
  13437. color: #fff;
  13438. height: 35px;
  13439. text-align: center;
  13440. line-height: 35px;
  13441. border-radius: 5px;
  13442. float: right;
  13443. margin: 10px 20px 0 0;
  13444. cursor: pointer;
  13445. }
  13446. .sentenTop {
  13447. display: flex;
  13448. flex-direction: row;
  13449. flex-wrap: nowrap;
  13450. align-items: center;
  13451. }
  13452. .sentenTop > div:nth-child(2) {
  13453. width: 300px;
  13454. margin: 0 15px;
  13455. }
  13456. .sentenTop > div:nth-child(3) {
  13457. background: #409efe;
  13458. color: #fff;
  13459. width: 65px;
  13460. height: 35px;
  13461. text-align: center;
  13462. line-height: 35px;
  13463. border-radius: 5px;
  13464. cursor: pointer;
  13465. }
  13466. .cardList {
  13467. padding: 30px 0 20px 0;
  13468. display: flex;
  13469. flex-direction: row;
  13470. flex-wrap: wrap;
  13471. align-items: center;
  13472. box-sizing: border-box;
  13473. border-bottom: 1px solid #f4f4f4;
  13474. width: 98%;
  13475. margin: 0 auto;
  13476. }
  13477. .cardBox {
  13478. display: flex;
  13479. flex-direction: row;
  13480. flex-wrap: wrap;
  13481. align-items: center;
  13482. align-content: center;
  13483. }
  13484. .isCard,
  13485. .isCard1 {
  13486. width: 140px;
  13487. height: 65px;
  13488. text-align: center;
  13489. line-height: 65px;
  13490. font-size: 20px;
  13491. cursor: pointer;
  13492. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  13493. background-size: cover;
  13494. position: relative;
  13495. z-index: 99;
  13496. }
  13497. .isCard1 {
  13498. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  13499. }
  13500. .isCard:hover .deleteWord {
  13501. display: block;
  13502. }
  13503. .isCard > div:nth-child(1),
  13504. .isCard1 > div:nth-child(1) {
  13505. white-space: nowrap;
  13506. overflow: hidden;
  13507. text-overflow: ellipsis;
  13508. width: 80%;
  13509. margin: 0 auto;
  13510. }
  13511. .card {
  13512. width: 140px;
  13513. height: 65px;
  13514. }
  13515. .card > img {
  13516. width: 100%;
  13517. height: 100%;
  13518. }
  13519. .rightCardBox {
  13520. margin: 10px 0 0 10px;
  13521. }
  13522. .rightCardBox > div:nth-child(1) {
  13523. margin-bottom: 10px;
  13524. }
  13525. .cardCss {
  13526. display: flex;
  13527. flex-direction: column;
  13528. flex-wrap: nowrap;
  13529. align-items: center;
  13530. border-bottom: 3px solid #b4c3d3;
  13531. padding: 0 0 5px 0;
  13532. margin-right: 10px;
  13533. }
  13534. .cardCss > div:nth-child(2) {
  13535. background: #5b7b9d;
  13536. color: #fff;
  13537. width: 20px;
  13538. height: 20px;
  13539. border-radius: 50%;
  13540. text-align: center;
  13541. line-height: 20px;
  13542. }
  13543. .sentenTopBox {
  13544. display: flex;
  13545. flex-direction: row;
  13546. flex-wrap: nowrap;
  13547. align-items: center;
  13548. justify-content: space-between;
  13549. padding: 55px 0 0 20px;
  13550. box-sizing: border-box;
  13551. width: 85%;
  13552. }
  13553. .stepsBottom {
  13554. width: 85%;
  13555. margin-bottom: 20px;
  13556. box-shadow: 0 0 10px 10px #f7f7f7;
  13557. background: #f7f7f7;
  13558. border-radius: 10px;
  13559. overflow: hidden;
  13560. }
  13561. .course_left {
  13562. width: 300px;
  13563. height: auto;
  13564. position: relative;
  13565. }
  13566. .stepsBottom2 {
  13567. width: 300px;
  13568. margin: 20px 0;
  13569. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  13570. /* background: #f7f7f7; */
  13571. border-radius: 8px;
  13572. overflow: hidden;
  13573. height: fit-content;
  13574. position: relative;
  13575. /* transition: all .5s; */
  13576. }
  13577. .navTop {
  13578. background: #53749b;
  13579. color: #fff;
  13580. height: 40px;
  13581. line-height: 40px;
  13582. padding-left: 15px;
  13583. font-size: 18px;
  13584. }
  13585. .navBottom {
  13586. background: #F0F4FA;
  13587. height: 300px;
  13588. overflow: auto;
  13589. }
  13590. .navTask {
  13591. display: flex;
  13592. flex-direction: row;
  13593. flex-wrap: nowrap;
  13594. align-items: center;
  13595. padding: 10px 10px 10px 0;
  13596. cursor: pointer;
  13597. background: #ffffff;
  13598. width: 95%;
  13599. margin: 10px auto;
  13600. box-sizing: border-box;
  13601. border-radius: 5px;
  13602. }
  13603. .isNavTask {
  13604. background: #3681FC;
  13605. }
  13606. .isNavTask .nt_taskName {
  13607. color: #fff !important;
  13608. }
  13609. .isNavTask .nt_taskTitle {
  13610. color: #AECCFE !important;
  13611. }
  13612. .navTask .nt_taskBox {
  13613. width: calc(100% - 40px);
  13614. padding: 0 10px 0 20px;
  13615. box-sizing: border-box;
  13616. }
  13617. .navTask .nt_taskTitle {
  13618. color: #717C8D;
  13619. line-height: 25px;
  13620. font-size: 14px;
  13621. }
  13622. .navTask .nt_taskName {
  13623. /* color: #fff; */
  13624. /* max-width: 130px; */
  13625. width: 100%;
  13626. white-space: nowrap;
  13627. overflow: hidden;
  13628. text-overflow: ellipsis;
  13629. font-size: 15px;
  13630. color: #0E1E33;
  13631. }
  13632. .groupBox {
  13633. }
  13634. .groupContent + .groupContent {
  13635. margin-top: 30px;
  13636. }
  13637. .groupTitle {
  13638. font-size: 24px;
  13639. color: rgb(80, 80, 80);
  13640. margin-bottom: 20px;
  13641. }
  13642. .groupName {
  13643. display: flex;
  13644. align-items: center;
  13645. }
  13646. .groupn {
  13647. font-size: 15px;
  13648. margin-right: 10px;
  13649. }
  13650. .groupName + .groupName {
  13651. margin-top: 15px;
  13652. }
  13653. .groupBtn {
  13654. margin-left: 10px;
  13655. }
  13656. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  13657. text-align: left;
  13658. }
  13659. .radioBox > div {
  13660. margin: 10px 0 0 10px;
  13661. }
  13662. .radioBox >>> .el-radio__input,
  13663. .radioBox >>> .el-checkbox__inner {
  13664. margin-left: 10px;
  13665. }
  13666. .radioBox >>> .el-radio__label,
  13667. .radioBox >>> .el-checkbox__label {
  13668. display: flex;
  13669. align-items: center;
  13670. }
  13671. .inImg {
  13672. width: 50px;
  13673. }
  13674. .inImg > img {
  13675. width: 100%;
  13676. height: 100%;
  13677. object-fit: cover;
  13678. }
  13679. .upCss >>> .el-upload-list--picture .el-upload-list__item {
  13680. height: auto;
  13681. }
  13682. .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
  13683. width: 200px;
  13684. height: 100px;
  13685. object-fit: contain;
  13686. background: unset;
  13687. }
  13688. .upCss
  13689. >>> .el-upload-list--picture
  13690. .el-upload-list__item.is-success
  13691. .el-upload-list__item-name {
  13692. display: none;
  13693. }
  13694. .tcMember + .tcMember::before {
  13695. content: "、";
  13696. }
  13697. .xzUpImg {
  13698. width: 25px;
  13699. height: 25px;
  13700. cursor: pointer;
  13701. }
  13702. .xzUpImg > img {
  13703. width: 100%;
  13704. height: 100%;
  13705. }
  13706. .closeCss {
  13707. position: absolute;
  13708. top: 8px;
  13709. right: 8px;
  13710. cursor: pointer;
  13711. width: 20px;
  13712. height: 20px;
  13713. }
  13714. .closeCss > img {
  13715. width: 100%;
  13716. height: 100%;
  13717. }
  13718. .moveBtn {
  13719. display: flex;
  13720. flex-direction: column;
  13721. align-items: flex-end;
  13722. width: 40px;
  13723. }
  13724. .timuUpImg {
  13725. display: flex;
  13726. flex-direction: row;
  13727. align-items: center;
  13728. }
  13729. .timuUpImg > div:nth-child(1) {
  13730. margin-right: 10px;
  13731. }
  13732. .timuImgBox {
  13733. margin: 10px 0;
  13734. display: flex;
  13735. flex-direction: column;
  13736. flex-wrap: wrap;
  13737. align-items: flex-start;
  13738. }
  13739. .timuImg {
  13740. width: 100px;
  13741. margin: 5px 0;
  13742. cursor: pointer;
  13743. position: relative;
  13744. }
  13745. .timuImg:hover .deleteWord {
  13746. display: block;
  13747. }
  13748. .deleteWord {
  13749. width: 25px;
  13750. height: 25px;
  13751. position: absolute;
  13752. right: -5px;
  13753. top: -5px;
  13754. cursor: pointer;
  13755. display: none;
  13756. }
  13757. .timuImg > img,
  13758. .deleteWord > img {
  13759. width: 100%;
  13760. height: 100%;
  13761. object-fit: cover;
  13762. }
  13763. .e_add_delete {
  13764. cursor: pointer;
  13765. margin-left: 10px;
  13766. }
  13767. .pType_box {
  13768. margin-top: 30px;
  13769. align-items: flex-end;
  13770. }
  13771. .noneBox {
  13772. height: 100%;
  13773. width: 100%;
  13774. display: flex;
  13775. align-items: center;
  13776. justify-content: center;
  13777. margin-top: 150px;
  13778. }
  13779. .noneBox > img {
  13780. width: 300px;
  13781. }
  13782. </style>