addCourse.vue 492 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694
  1. <template>
  2. <div class="pb_content" style="background: #F0F2F5;">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  6. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  7. <div class="courseTop">
  8. <div class="stepsNav">
  9. <el-breadcrumb separator-class="el-icon-arrow-right">
  10. <el-breadcrumb-item :to="{
  11. path:
  12. '/course?userid=' +
  13. userid +
  14. '&oid=' +
  15. oid +
  16. '&org=' +
  17. org +
  18. '&role=' +
  19. role,
  20. }">课程管理</el-breadcrumb-item>
  21. <el-breadcrumb-item>
  22. <span style="color: rgb(15, 126, 255)">添加课程</span>
  23. </el-breadcrumb-item>
  24. </el-breadcrumb>
  25. </div>
  26. <div class="r_pub_button_retrun" @click="lastSteps()">返回</div>
  27. </div>
  28. <div class="rightBox" style="padding: 0;"
  29. :style="{ height: (!isBtnDisplay) ? 'calc(100% - 50px)' : 'calc(100% - 120px)' }" v-if="this.steps == 1"
  30. @mousewheel="scrollChange">
  31. <div class="updateMask" :style="{
  32. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  33. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  34. <div class="whiteBg" style="background:unset;padding: 0;">
  35. <div>
  36. <div class="basic_box" style="padding: 0;">
  37. <div class="big_box">
  38. <div class="left_first">
  39. <div :class="{
  40. updateTips: cid && userid != courseUserid && role != '1',
  41. }">
  42. <div style="width: 100%;">
  43. <div class="course_input_box">
  44. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course.png" /></div>
  45. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  46. style="border: 1.5px solid rgb(202, 209, 220);margin: 0px 10px 0px 0px;border-radius: 5px;font-weight: 600;padding: 12px 14px 12px 71px;" />
  47. <!-- background: #f6f6f6; -->
  48. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  49. style="justify-content: center;width: 200px;"></el-switch>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  54. <span>类型</span>
  55. <!-- 学科+ 主题+ 未来+ -->
  56. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  57. style="display: flex; align-items: center">
  58. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  59. <el-radio :label="item.name">{{
  60. item.name
  61. }}</el-radio>
  62. </div>
  63. </el-radio-group>
  64. </div>
  65. <div class="both">
  66. <div class="choose">
  67. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  68. <span v-if="CourseTypeJson[item.id].length > 0 &&
  69. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  70. ? pTypeCheck.indexOf(item.id) != -1
  71. : true)
  72. ">{{ item.name }}:</span>
  73. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  74. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  75. ? pTypeCheck.indexOf(item.id) != -1
  76. : true)
  77. ">
  78. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  79. item1.name }}</el-checkbox>
  80. </el-checkbox-group>
  81. <!-- <div
  82. v-else
  83. style="font-size: 14px; margin-left: -8px"
  84. >
  85. 暂无
  86. </div> -->
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="right_first">
  92. <!-- <div class="ai_box">
  93. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  94. </div> -->
  95. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  96. <div style="width: 100%;">
  97. <div class="uploadFm" @click="choosePicVisible = true" :class="{uploadFm2:cover.length}">
  98. <img src="../../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0"/>
  99. <img :src="cover[0].url" alt="" class="cover_p" v-else/>
  100. <div v-if="cover.length == 0">点击添加封面</div>
  101. <div class="cover_mask"><img src="../../../assets/icon/new/cover_update.png" /><span style="margin-top:5px;">修改封面</span></div>
  102. </div>
  103. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  104. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  105. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  106. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  107. <i class="el-icon-plus"></i>
  108. </el-upload> -->
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. <div class="whiteBg" style="margin-top: 10px">
  116. <div class="wb_j_box">
  117. <div class="wb_j_box_content">
  118. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  119. (dialogVisibleClass = true),
  120. (classSearch = ''),
  121. (gradeId = ''),
  122. getClass()
  123. ">添加班级</button>
  124. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  125. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  126. getClassC(tc) }}</span>
  127. </div> -->
  128. <div class="wb_j_box_btn" @click="
  129. (dialogVisibleClass = true),
  130. (classSearch = ''),
  131. (gradeId = ''),
  132. getClass()
  133. ">
  134. <div class="wb_j_box_title">授课班级</div>
  135. <div class="wb_j_box_btn_c">
  136. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  137. v-if="checkboxList2.length" popper-class="text_tooltip2">
  138. <div class="wb_j_box_span">{{ getListClassC(checkboxList2) }}</div>
  139. </el-tooltip>
  140. <div v-else class="wb_j_box_span">请选择授课班级</div>
  141. <div class="wb_j_box_arrow"></div>
  142. </div>
  143. </div>
  144. </div>
  145. <div style="margin-left: auto;">
  146. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="isPasteTask">智能粘贴</button>
  147. </div>
  148. </div>
  149. </div>
  150. <div class="whiteBg" style="border-radius: 0; margin-top: 15px" v-if="false">
  151. <div class="right_title">课程简要描述</div>
  152. <div style="width: 95%; padding: 15px 0px 15px 20px">
  153. <div style="width: 55%">
  154. <textarea rows="8" class="binfo_input" cols v-model="courseText"></textarea>
  155. </div>
  156. </div>
  157. </div>
  158. <div class="whiteBg" style="border-radius: 0; background:#F0F2F5;">
  159. <!-- <div class="right_title">
  160. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon2.png" />
  161. </div>
  162. <span style="margin:0 10px">上传课程内容</span>
  163. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" style="margin-left: 145px"
  164. v-if="isPasteTask">智能粘贴</button>
  165. </div> -->
  166. <div style="display: flex">
  167. <div class="course_left">
  168. <div class="stepsBottom2">
  169. <div class="navBottom" :style="{ height: heightPx }">
  170. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  171. .taskJson" :key="tIndex" :class="{
  172. dragOverTop: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex > tIndex,
  173. dragOverBottom: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex < tIndex,
  174. }">
  175. <div @dragstart="dragTaskStart(t, tIndex)" @dragover.prevent="dragTaskOver(tIndex)"
  176. @dragend="dragTaskEnd()" draggable @click="goToTask(tIndex)" class="navTask" :class="{
  177. isNavTask:
  178. isClickColor > 0 && isClickColor == tIndex + 1,
  179. isNavOpen: t.toolOpen,
  180. }">
  181. <div style="left: 8px;" class="chapter_upload_drag"></div>
  182. <div class="nt_taskBox">
  183. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  184. <div class="nt_taskName">
  185. <el-tooltip effect="light" :content="t.task" placement="top">
  186. <span>{{ t.task }}</span>
  187. </el-tooltip>
  188. </div>
  189. </div>
  190. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  191. 1
  192. ">
  193. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  194. @click.stop="taskMove(1, tIndex)"></div>
  195. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  196. @click.stop="taskMove(2, tIndex)"></div>
  197. </div> -->
  198. </div>
  199. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  200. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  201. @click="jumpGj(tIndex, toolIndex2)">
  202. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  203. <div>工具{{ toolIndex2 + 1 }}:</div>
  204. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  205. </div>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. <div class="basic_box2">
  213. <div style="margin: 0 0 20px 0; padding: 0 0 0 10px"
  214. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  215. <div class="taskBorder" style="padding: 20px 20px 10px;">
  216. <div class="basic_box" style="
  217. margin: 0;
  218. min-height: 0;
  219. padding: 10px 0 0 !important;
  220. ">
  221. <div style="
  222. display: flex;
  223. margin: 0 0 0 0;
  224. flex-direction: row;
  225. justify-content: space-between;
  226. align-items: center;
  227. ">
  228. <div class="lineTitle" style="margin-bottom:10px">学习内容</div>
  229. <div style="margin-bottom:10px" v-if="!item.taskJson[0].isFoldchapter" class="show_taskD show"
  230. @click="foldC(0)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  231. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(0)"><img
  232. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div>
  233. </div>
  234. <div v-if="!item.taskJson[0].isFoldchapter">
  235. <div class="add_chapters_box add_c_none" v-if="item.taskJson[0].chapterData &&
  236. item.taskJson[0].chapterData.length == 0
  237. "><img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  238. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  239. <div @dragstart="dragStart(item1, index1, 0)" @dragover.prevent="dragOver(index1, 0)"
  240. @dragend="dragEnd()" draggable class="chapter_upload" v-for="(item1, index1) in item.taskJson[0]
  241. .chapterData" :key="item1.id" @click="
  242. getChapterData(
  243. $event,
  244. unitIndex,
  245. index,
  246. index1,
  247. item1.type
  248. )
  249. " :class="{
  250. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+'0'+'-'+index1 && oldIndex > index1,
  251. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+'0'+'-'+index1 && oldIndex < index1,
  252. }">
  253. <div class="chapter_upload_drag"></div>
  254. <div class="chapter_upload_t" style="width: 100%"></div>
  255. <div class="chapter_upload_o" style="
  256. position: relative;
  257. display: flex;
  258. align-items: center;
  259. ">
  260. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  261. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  262. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  263. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  264. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  265. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  266. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  267. </div>
  268. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  269. </div>
  270. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  271. </div>
  272. </div>
  273. <div class="chapter_upload_n">
  274. <input readonly="true" v-if="item1.type == 2 ||
  275. item1.type == 3 ||
  276. item1.type == 12 ||
  277. item1.type == 13 ||
  278. item1.type == 7
  279. " :placeholder="item1.name" @click="
  280. updataVideoT(
  281. $event,
  282. unitIndex,
  283. 0,
  284. index1
  285. )
  286. " style="
  287. border: none;
  288. outline: none;
  289. width: 80%;
  290. minwidth: 215px;
  291. z-index: 99;
  292. font-size: 14px;
  293. white-space: nowrap;
  294. overflow: hidden;
  295. text-overflow: ellipsis;
  296. " />
  297. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  298. border: none;
  299. outline: none;
  300. width: 80%;
  301. white-space: nowrap;
  302. overflow: hidden;
  303. text-overflow: ellipsis;
  304. " readonly="true" @click="selectAttText(0, index1)" />
  305. <input :placeholder="item1.title ? item1.title : '链接'
  306. " v-if="item1.type == 8" style="
  307. border: none;
  308. outline: none;
  309. width: 80%;
  310. white-space: nowrap;
  311. overflow: hidden;
  312. text-overflow: ellipsis;
  313. " readonly="true" @click="selectLine(0, index1)" />
  314. <input :placeholder="item1.title ? item1.title : '链接'
  315. " v-if="item1.type == 14" style="
  316. border: none;
  317. outline: none;
  318. width: 80%;
  319. white-space: nowrap;
  320. overflow: hidden;
  321. text-overflow: ellipsis;
  322. " readonly="true" @click="openUpdateSource(0, index1)" />
  323. </div>
  324. <div class="chapter_upload_ic">
  325. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  326. </div>
  327. <div class="chapter_upload_ud" style="z-index: 99">
  328. <div class="chapter_upload_up" @click.stop="
  329. upCd(
  330. $event,
  331. unitIndex,
  332. index,
  333. 0,
  334. index1
  335. )
  336. "></div>
  337. <div class="chapter_upload_down" @click.stop="
  338. downCd(
  339. $event,
  340. unitIndex,
  341. index,
  342. 0,
  343. index1
  344. )
  345. "></div>
  346. </div>
  347. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  348. item1.type == 3 ||
  349. item1.type == 12 ||
  350. item1.type == 13 ||
  351. item1.type == 7
  352. " @click.stop="
  353. updataVideoT(
  354. $event,
  355. unitIndex,
  356. 0,
  357. index1
  358. )
  359. ">
  360. <div></div>
  361. </div>
  362. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  363. @click="selectAttText(0, index1)">
  364. <div></div>
  365. </div>
  366. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  367. @click="selectLine(0, index1)">
  368. <div></div>
  369. </div>
  370. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  371. @click="openUpdateSource(0, index1)">
  372. <div></div>
  373. </div>
  374. <div class="chapter_upload_ic_r" @click.stop="
  375. deleteChapterData(
  376. $event,
  377. unitIndex,
  378. index,
  379. index1,
  380. 0
  381. )
  382. ">
  383. <div></div>
  384. </div>
  385. </div>
  386. </div>
  387. </div>
  388. </div>
  389. </div>
  390. <div class="add_info_box" style="margin:10px 0 0" v-if="!item.taskJson[0].isFoldchapter">
  391. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  392. 文件
  393. <input type="file" accept="*" style="display: none" v-if="inputShow"
  394. @change="beforeUpload2($event, unitIndex, 13, 0)" />
  395. </button>
  396. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  397. 图文
  398. </button>
  399. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  400. 链接
  401. </button>
  402. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  403. 代码
  404. </button>
  405. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  406. 资源
  407. </button>
  408. <!-- <button class="info_btn" @click="addImg($event)">
  409. 其他附件
  410. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  411. " />
  412. </button> -->
  413. </div>
  414. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  415. .proVisible
  416. " class="mask">
  417. <div class="progressBox">
  418. <!-- <div id="closePro" class="closeCss">
  419. <img src="../../../../assets/icon/close.png" alt />
  420. </div> -->
  421. <div class="lbox">
  422. <img src="../../../assets/loading.gif" />上传中,请稍后
  423. </div>
  424. <div style="margin-bottom: 10px">
  425. <span>{{
  426. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  427. .isFinishSize
  428. }}M</span>
  429. /
  430. <span>{{
  431. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  432. .isAllSize
  433. }}M</span>
  434. </div>
  435. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  436. .progress
  437. ? unitJson[unitIndex].chapterInfo[0]
  438. .taskJson[0].progress
  439. : 0
  440. " style="width: 80%"></el-progress>
  441. </div>
  442. </div>
  443. </div>
  444. </div>
  445. <div class="taskBorder" :style="{
  446. minHeight: unitJson[unitIndex].easy && 'unset',
  447. }" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  448. <div v-if="unitJson[unitIndex].easy != 1">
  449. <div :style="{
  450. marginBottom:
  451. unitJson[unitIndex].easy == 3 ||
  452. (unitJson[unitIndex].easy == 5 &&
  453. itemTask.taskType == 1)
  454. ? '75px'
  455. : '0',
  456. }">
  457. <div style="
  458. display: flex;
  459. margin: 0px 0 20px;
  460. flex-direction: row;
  461. justify-content: flex-start;
  462. align-items: center;
  463. ">
  464. <div class="lineTitle">任务{{ itemTaskIndex + 1 }}概述</div>
  465. </div>
  466. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  467. flex-direction: row;
  468. justify-content: flex-start;
  469. align-items: center;
  470. ">
  471. <!-- <div class="cc_title">
  472. 任务{{ itemTaskIndex + 1 }}
  473. </div> -->
  474. <div class="cc_input">
  475. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  476. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  477. itemTaskIndex
  478. ].task
  479. " />
  480. <div v-if="itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  481. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  482. <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img
  483. src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div>
  484. </div>
  485. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
  486. </div>
  487. </div>
  488. </div>
  489. <div style="margin: 25px 0" v-if="itemTask.isFold2">
  490. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  491. itemTaskIndex
  492. ].taskDetail
  493. " @change="change"></editor-bar> -->
  494. <textarea rows="2" v-autoHeight="70" class="binfo_input" placeholder="请输入任务描述" cols v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  495. itemTaskIndex
  496. ].taskDetail
  497. "></textarea>
  498. </div>
  499. <div class="toolChoose" style="margin: 20px 0">
  500. <div class="tools">
  501. <div class="leftTools" style="
  502. width: 100%;
  503. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  504. <div style="
  505. display: flex;
  506. flex-direction: row;
  507. align-items: baseline;
  508. flex-wrap: nowrap;
  509. justify-content: flex-start;
  510. position: relative;
  511. ">
  512. <div :id="'gj' + itemTaskIndex + '' + toolIndex"
  513. style="margin-right: 20px; font-weight: bold">
  514. 步骤 {{ toolIndex + 1 }} :
  515. </div>
  516. <div class="chooseWho">
  517. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  518. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = false), $forceUpdate()">
  519. 互动类
  520. </div>
  521. <div :class="itemTool.toolType == 1
  522. ? 'isChooseActive'
  523. : ''
  524. " @click="
  525. (itemTool.toolType = 1), (itemTool.isFold3 = false), $forceUpdate()
  526. ">
  527. 思维类
  528. </div>
  529. <div :class="itemTool.toolType == 6
  530. ? 'isChooseActive'
  531. : ''
  532. " @click="
  533. (itemTool.toolType = 6), (itemTool.isFold3 = false), $forceUpdate()
  534. ">
  535. 协作类
  536. </div>
  537. <div :class="itemTool.toolType == 2
  538. ? 'isChooseActive'
  539. : ''
  540. " @click="
  541. (itemTool.toolType = 2), (itemTool.isFold3 = false), $forceUpdate()
  542. ">
  543. 测评类
  544. </div>
  545. <div :class="itemTool.toolType == 7
  546. ? 'isChooseActive'
  547. : ''
  548. " @click="
  549. (itemTool.toolType = 7), (itemTool.isFold3 = false), $forceUpdate()
  550. ">
  551. 评价类
  552. </div>
  553. <div :class="itemTool.toolType == 3
  554. ? 'isChooseActive'
  555. : ''
  556. " @click="
  557. (itemTool.toolType = 3), (itemTool.isFold3 = false), $forceUpdate()
  558. ">
  559. 编程类
  560. </div>
  561. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  562. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = false), $forceUpdate()">
  563. 学科类
  564. </div>
  565. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  566. " @click="(itemTool.toolType = 4), $forceUpdate()">
  567. 其他
  568. </div> -->
  569. </div>
  570. <div class="chapter_upload_ud2" style="z-index: 9;margin:0 0 0 auto" v-if="itemTask.toolChoose.length > 1">
  571. <div class="chapter_upload_up2" @click.stop="
  572. upTool(
  573. $event,
  574. unitIndex,
  575. itemTaskIndex,
  576. toolIndex
  577. )
  578. ">上移</div>
  579. <div class="chapter_upload_down2" @click.stop="
  580. downTool(
  581. $event,
  582. unitIndex,
  583. itemTaskIndex,
  584. toolIndex
  585. )
  586. ">下移</div>
  587. </div>
  588. <div v-if="!itemTool.isFold3" class="show_toolD show"
  589. @click="fold3(itemTaskIndex, toolIndex)"
  590. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  591. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  592. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  593. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  594. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div>
  595. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  596. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0;top:-5px;"></div>
  597. </div>
  598. <div style="min-height: 163px" v-show="!itemTool.isFold3">
  599. <div class="toolSort" v-if="itemTool.toolType == 0">
  600. <!-- <div class="tool">
  601. <div
  602. class="whiteBIcon"
  603. @click="addTools(8, itemTaskIndex, toolIndex)"
  604. >
  605. <img src="../../../assets/icon/secondToolList/library.png" alt />
  606. <div style="margin: 5px 0">素材库</div>
  607. </div>
  608. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  609. <img
  610. src="../../../assets/icon/checkNo.png"
  611. alt
  612. v-if="itemTool.tool.indexOf(8) == -1"
  613. />
  614. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  615. alt /><span>已选择</span></div>
  616. </div>
  617. </div>-->
  618. <!-- <div class="tool">
  619. <div
  620. class="whiteBIcon"
  621. @click="addTools(17, itemTaskIndex, toolIndex)"
  622. >
  623. <img
  624. src="../../../assets/icon/secondToolList/library.png"
  625. alt
  626. />
  627. <div style="margin: 5px 0">学习资料</div>
  628. </div>
  629. <div
  630. class="check"
  631. @click="addTools(17, itemTaskIndex, toolIndex)"
  632. >
  633. <img
  634. src="../../../assets/icon/checkNo.png"
  635. alt
  636. v-if="itemTool.tool.indexOf(17) == -1"
  637. />
  638. <img
  639. src="../../../assets/icon/checkedIs.png"
  640. alt
  641. v-else
  642. />
  643. </div>10
  644. </div> -->
  645. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(10) != -1 }"
  646. @click="addTools(10, itemTaskIndex, toolIndex)">
  647. <div class="whiteBIcon" @click.stop="
  648. openTools(itemTaskIndex, 10, toolIndex)
  649. ">
  650. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  651. <div style="margin: 5px 0">倒计时</div>
  652. </div>
  653. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  654. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1"><img
  655. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  656. <!-- <div class="check" @click="
  657. addTools(10, itemTaskIndex, toolIndex)
  658. ">
  659. <img src="../../../assets/icon/checkNo.png" alt
  660. v-if="itemTool.tool.indexOf(10) == -1" />
  661. <div class="checkDiv" v-else>
  662. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  663. </div>
  664. </div> -->
  665. </div>
  666. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(65) != -1 }"
  667. @click="addTools(65, itemTaskIndex, toolIndex)">
  668. <div class="whiteBIcon" @click.stop="addTools(65, itemTaskIndex, toolIndex)">
  669. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  670. <div style="margin: 5px 0">挑人</div>
  671. </div>
  672. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  673. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1"><img
  674. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  675. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  676. <img src="../../../assets/icon/checkNo.png" alt
  677. v-if="itemTool.tool.indexOf(65) == -1" />
  678. <div class="checkDiv" v-else>
  679. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  680. </div>
  681. </div> -->
  682. </div>
  683. <!-- <div class="tool">
  684. <div
  685. class="whiteBIcon"
  686. @click="
  687. openTools(itemTaskIndex, 49, toolIndex)
  688. "
  689. >
  690. <img
  691. src="../../../assets/icon/fourthToolList/group.png"
  692. alt
  693. />
  694. <div style="margin: 5px 0">学生分组</div>
  695. </div>
  696. <div
  697. class="check"
  698. @click="
  699. addTools(49, itemTaskIndex, toolIndex)
  700. "
  701. >
  702. <img
  703. src="../../../assets/icon/checkNo.png"
  704. alt
  705. v-if="itemTool.tool.indexOf(49) == -1"
  706. />
  707. <div class="checkDiv" v-else>
  708. <img
  709. src="../../../assets/icon/checkedIs.png"
  710. alt
  711. /><span>已选择</span>
  712. </div>
  713. </div>
  714. </div> -->
  715. <!-- <div class="tool">
  716. <div class="whiteBIcon" @click="
  717. openTools(itemTaskIndex, 62, toolIndex)
  718. ">
  719. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  720. <div style="margin: 5px 0">交互视频</div>
  721. </div>
  722. <div class="check" @click="
  723. addTools(62, itemTaskIndex, toolIndex)
  724. ">
  725. <img src="../../../assets/icon/checkNo.png" alt
  726. v-if="itemTool.tool.indexOf(62) == -1" />
  727. <div class="checkDiv" v-else>
  728. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  729. </div>
  730. </div>
  731. </div> -->
  732. </div>
  733. <div class="toolSort" v-if="itemTool.toolType == 1">
  734. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(7) != -1 }"
  735. @click="addTools(7, itemTaskIndex, toolIndex)">
  736. <div class="whiteBIcon" @click.stop="
  737. addTools(7, itemTaskIndex, toolIndex)
  738. ">
  739. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  740. <div style="margin: 5px 0">思维网格</div>
  741. </div>
  742. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  743. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1"><img
  744. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  745. <!-- <div class="check" @click="
  746. addTools(7, itemTaskIndex, toolIndex)
  747. ">
  748. <img src="../../../assets/icon/checkNo.png" alt
  749. v-if="itemTool.tool.indexOf(7) == -1" />
  750. <div class="checkDiv" v-else>
  751. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  752. </div>
  753. </div> -->
  754. </div>
  755. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(1) != -1 }"
  756. @click="addTools(1, itemTaskIndex, toolIndex)">
  757. <div class="whiteBIcon" @click.stop="
  758. openTools(itemTaskIndex, 1, toolIndex)
  759. ">
  760. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  761. <div style="margin: 5px 0">电子白板</div>
  762. </div>
  763. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  764. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1"><img
  765. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  766. <!-- <div class="check" @click="
  767. addTools(1, itemTaskIndex, toolIndex)
  768. ">
  769. <img src="../../../assets/icon/checkNo.png" alt
  770. v-if="itemTool.tool.indexOf(1) == -1" />
  771. <div class="checkDiv" v-else>
  772. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  773. </div>
  774. </div> -->
  775. </div>
  776. <!-- <div class="tool">
  777. <div
  778. class="whiteBIcon"
  779. @click="addTools(2, itemTaskIndex, toolIndex)"
  780. >
  781. <img
  782. src="../../../assets/icon/secondToolList/note.png"
  783. alt
  784. />
  785. <div style="margin: 5px 0">便签</div>
  786. </div>
  787. <div
  788. class="check"
  789. @click="addTools(2, itemTaskIndex, toolIndex)"
  790. >
  791. <img
  792. src="../../../assets/icon/checkNo.png"
  793. alt
  794. v-if="itemTool.tool.indexOf(2) == -1"
  795. />
  796. <div class="checkDiv" v-else>
  797. <img
  798. src="../../../assets/icon/checkedIs.png"
  799. alt
  800. /><span>已选择</span>
  801. </div>
  802. </div>
  803. </div> -->
  804. <!-- <div class="tool">
  805. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  806. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  807. <div style="margin: 5px 0">协同文档</div>
  808. </div>
  809. <div
  810. class="check"
  811. @click="addTools(6, itemTaskIndex, toolIndex)"
  812. >
  813. <img
  814. src="../../../assets/icon/checkNo.png"
  815. alt
  816. v-if="itemTool.tool.indexOf(6) == -1"
  817. />
  818. <div class="checkDiv" v-else>
  819. <img
  820. src="../../../assets/icon/checkedIs.png"
  821. alt
  822. /><span>已选择</span>
  823. </div>
  824. </div>
  825. </div> -->
  826. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(52) != -1 }"
  827. @click="addTools(52, itemTaskIndex, toolIndex)">
  828. <div class="whiteBIcon" @click.stop="
  829. openTools(itemTaskIndex, 52, toolIndex)
  830. ">
  831. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  832. <div style="margin: 5px 0">文档</div>
  833. </div>
  834. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  835. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1"><img
  836. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  837. <!-- <div class="check" @click="
  838. addTools(52, itemTaskIndex, toolIndex)
  839. ">
  840. <img src="../../../assets/icon/checkNo.png" alt
  841. v-if="itemTool.tool.indexOf(52) == -1" />
  842. <div class="checkDiv" v-else>
  843. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  844. </div>
  845. </div> -->
  846. </div>
  847. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(3) != -1 }"
  848. @click="addTools(3, itemTaskIndex, toolIndex)">
  849. <div class="whiteBIcon" @click.stop="
  850. openTools(itemTaskIndex, 3, toolIndex)
  851. ">
  852. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  853. <div style="margin: 5px 0">思维导图</div>
  854. </div>
  855. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  856. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1"><img
  857. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  858. <!-- <div class="check" @click="
  859. addTools(3, itemTaskIndex, toolIndex)
  860. ">
  861. <img src="../../../assets/icon/checkNo.png" alt
  862. v-if="itemTool.tool.indexOf(3) == -1" />
  863. <div class="checkDiv" v-else>
  864. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  865. </div>
  866. </div> -->
  867. </div>
  868. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(48) != -1 }"
  869. @click="addTools(48, itemTaskIndex, toolIndex)">
  870. <div class="whiteBIcon" @click.stop="
  871. openTools(itemTaskIndex, 48, toolIndex)
  872. ">
  873. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  874. <div style="margin: 5px 0">表格</div>
  875. </div>
  876. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  877. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1"><img
  878. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  879. <!-- <div class="check" @click="
  880. addTools(48, itemTaskIndex, toolIndex)
  881. ">
  882. <img src="../../../assets/icon/checkNo.png" alt
  883. v-if="itemTool.tool.indexOf(48) == -1" />
  884. <div class="checkDiv" v-else>
  885. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  886. </div>
  887. </div> -->
  888. </div>
  889. </div>
  890. <div class="toolSort" v-if="itemTool.toolType == 6">
  891. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(49) != -1 }"
  892. @click="addTools(49, itemTaskIndex, toolIndex)">
  893. <div class="whiteBIcon" @click.stop="
  894. openTools(itemTaskIndex, 49, toolIndex)
  895. ">
  896. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  897. <div style="margin: 5px 0">学生分组</div>
  898. </div>
  899. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  900. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1"><img
  901. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  902. <!-- <div class="check" @click="
  903. addTools(49, itemTaskIndex, toolIndex)
  904. ">
  905. <img src="../../../assets/icon/checkNo.png" alt
  906. v-if="itemTool.tool.indexOf(49) == -1" />
  907. <div class="checkDiv" v-else>
  908. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  909. </div>
  910. </div> -->
  911. </div>
  912. </div>
  913. <div class="toolSort" v-if="itemTool.toolType == 2">
  914. <!-- <div class="tool">
  915. <div
  916. class="whiteBIcon"
  917. @click="addTools(5, itemTaskIndex, toolIndex)"
  918. >
  919. <img
  920. src="../../../assets/icon/thirdToolList/score.png"
  921. alt
  922. />
  923. <div style="margin: 5px 0">量规评分</div>
  924. </div>
  925. <div
  926. class="check"
  927. @click="addTools(5, itemTaskIndex, toolIndex)"
  928. >
  929. <img
  930. src="../../../assets/icon/checkNo.png"
  931. alt
  932. v-if="itemTool.tool.indexOf(5) == -1"
  933. />
  934. <img
  935. src="../../../assets/icon/checkedIs.png"
  936. alt
  937. v-else
  938. />
  939. </div>
  940. </div>-->
  941. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(4) != -1 }"
  942. @click="addTools(4, itemTaskIndex, toolIndex)">
  943. <div class="whiteBIcon" @click.stop="
  944. openTools(itemTaskIndex, 4, toolIndex)
  945. ">
  946. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  947. <div style="margin: 5px 0">问卷调查</div>
  948. </div>
  949. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  950. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1"><img
  951. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  952. <!-- <div class="check" @click="
  953. addTools(4, itemTaskIndex, toolIndex)
  954. ">
  955. <img src="../../../assets/icon/checkNo.png" alt
  956. v-if="itemTool.tool.indexOf(4) == -1" />
  957. <div class="checkDiv" v-else>
  958. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  959. </div>
  960. </div> -->
  961. </div>
  962. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(45) != -1 }"
  963. @click="addTools(45, itemTaskIndex, toolIndex)">
  964. <div class="whiteBIcon" @click.stop="
  965. openTools(itemTaskIndex, 45, toolIndex)
  966. ">
  967. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  968. <div style="margin: 5px 0">选择题</div>
  969. </div>
  970. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  971. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1"><img
  972. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  973. <!-- <div class="check" @click="
  974. addTools(45, itemTaskIndex, toolIndex)
  975. ">
  976. <img src="../../../assets/icon/checkNo.png" alt
  977. v-if="itemTool.tool.indexOf(45) == -1" />
  978. <div class="checkDiv" v-else>
  979. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  980. </div>
  981. </div> -->
  982. </div>
  983. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(15) != -1 }"
  984. @click="addTools(15, itemTaskIndex, toolIndex)">
  985. <div class="whiteBIcon" @click.stop="
  986. openTools(itemTaskIndex, 15, toolIndex)
  987. ">
  988. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  989. <div style="margin: 5px 0">问答</div>
  990. </div>
  991. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  992. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1"><img
  993. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  994. <!-- <div class="check" @click="
  995. addTools(15, itemTaskIndex, toolIndex)
  996. ">
  997. <img src="../../../assets/icon/checkNo.png" alt
  998. v-if="itemTool.tool.indexOf(15) == -1" />
  999. <div class="checkDiv" v-else>
  1000. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1001. </div>
  1002. </div> -->
  1003. </div>
  1004. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(16) != -1 }"
  1005. @click="addTools(16, itemTaskIndex, toolIndex)">
  1006. <div class="whiteBIcon" @click.stop="
  1007. addTools(16, itemTaskIndex, toolIndex)
  1008. ">
  1009. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1010. <div style="margin: 5px 0">作业提交</div>
  1011. </div>
  1012. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1013. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1"><img
  1014. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1015. <!-- <div class="check" @click="
  1016. addTools(16, itemTaskIndex, toolIndex)
  1017. ">
  1018. <img src="../../../assets/icon/checkNo.png" alt
  1019. v-if="itemTool.tool.indexOf(16) == -1" />
  1020. <div class="checkDiv" v-else>
  1021. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1022. </div>
  1023. </div> -->
  1024. </div>
  1025. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(50) != -1 }"
  1026. @click="addTools(50, itemTaskIndex, toolIndex)">
  1027. <div class="whiteBIcon" @click.stop="
  1028. addTools(50, itemTaskIndex, toolIndex)
  1029. ">
  1030. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1031. <div style="margin: 5px 0">批量上传</div>
  1032. </div>
  1033. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1034. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1"><img
  1035. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1036. <!-- <div class="check" @click="
  1037. addTools(50, itemTaskIndex, toolIndex)
  1038. ">
  1039. <img src="../../../assets/icon/checkNo.png" alt
  1040. v-if="itemTool.tool.indexOf(50) == -1" />
  1041. <div class="checkDiv" v-else>
  1042. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1043. </div>
  1044. </div> -->
  1045. </div>
  1046. <!-- <div class="tool">
  1047. <div
  1048. class="whiteBIcon"
  1049. @click="
  1050. openTools(itemTaskIndex, 40, toolIndex)
  1051. "
  1052. >
  1053. <img
  1054. src="../../../assets/icon/thirdToolList/eval.png"
  1055. alt
  1056. />
  1057. <div style="margin: 5px 0">个人评价</div>
  1058. </div>
  1059. <div
  1060. class="check"
  1061. @click="
  1062. addTools(40, itemTaskIndex, toolIndex)
  1063. "
  1064. >
  1065. <img
  1066. src="../../../assets/icon/checkNo.png"
  1067. alt
  1068. v-if="itemTool.tool.indexOf(40) == -1"
  1069. />
  1070. <div class="checkDiv" v-else>
  1071. <img
  1072. src="../../../assets/icon/checkedIs.png"
  1073. alt
  1074. /><span>已选择</span>
  1075. </div>
  1076. </div>
  1077. </div> -->
  1078. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(41) != -1 }"
  1079. @click="addTools(41, itemTaskIndex, toolIndex)">
  1080. <div class="whiteBIcon" @click.stop="
  1081. openTools(itemTaskIndex, 41, toolIndex)
  1082. ">
  1083. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1084. <div style="margin: 5px 0">选择匹配</div>
  1085. </div>
  1086. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1087. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1"><img
  1088. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1089. <!-- <div class="check" @click="
  1090. addTools(41, itemTaskIndex, toolIndex)
  1091. ">
  1092. <img src="../../../assets/icon/checkNo.png" alt
  1093. v-if="itemTool.tool.indexOf(41) == -1" />
  1094. <div class="checkDiv" v-else>
  1095. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1096. </div>
  1097. </div> -->
  1098. </div>
  1099. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(47) != -1 }"
  1100. @click="addTools(47, itemTaskIndex, toolIndex)">
  1101. <div class="whiteBIcon" @click.stop="
  1102. openTools(itemTaskIndex, 47, toolIndex)
  1103. ">
  1104. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1105. <div style="margin: 5px 0">排序</div>
  1106. </div>
  1107. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1108. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1"><img
  1109. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1110. <!-- <div class="check" @click="
  1111. addTools(47, itemTaskIndex, toolIndex)
  1112. ">
  1113. <img src="../../../assets/icon/checkNo.png" alt
  1114. v-if="itemTool.tool.indexOf(47) == -1" />
  1115. <div class="checkDiv" v-else>
  1116. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1117. </div>
  1118. </div> -->
  1119. </div>
  1120. <!-- <div class="tool">
  1121. <div
  1122. class="whiteBIcon"
  1123. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1124. >
  1125. <img
  1126. src="../../../assets/icon/thirdToolList/mp3.png"
  1127. alt
  1128. />
  1129. <div style="margin: 5px 0">上传音频</div>
  1130. </div>
  1131. <div
  1132. class="check"
  1133. @click="addTools(42, itemTaskIndex, toolIndex)"
  1134. >
  1135. <img
  1136. src="../../../assets/icon/checkNo.png"
  1137. alt
  1138. v-if="itemTool.tool.indexOf(42) == -1"
  1139. />
  1140. <img
  1141. src="../../../assets/icon/checkedIs.png"
  1142. alt
  1143. v-else
  1144. />
  1145. </div>
  1146. </div> -->
  1147. </div>
  1148. <div class="toolSort" v-if="itemTool.toolType == 3">
  1149. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(18) != -1 }"
  1150. @click="addTools(18, itemTaskIndex, toolIndex)">
  1151. <div class="whiteBIcon" @click.stop="
  1152. addTools(18, itemTaskIndex, toolIndex)
  1153. ">
  1154. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1155. <div style="margin: 5px 0">训练平台</div>
  1156. </div>
  1157. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1158. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1"><img
  1159. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1160. <!-- <div class="check" @click="
  1161. addTools(18, itemTaskIndex, toolIndex)
  1162. ">
  1163. <img src="../../../assets/icon/checkNo.png" alt
  1164. v-if="itemTool.tool.indexOf(18) == -1" />
  1165. <div class="checkDiv" v-else>
  1166. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1167. </div>
  1168. </div> -->
  1169. </div>
  1170. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(21) != -1 }"
  1171. @click="addTools(21, itemTaskIndex, toolIndex)">
  1172. <div class="whiteBIcon" @click.stop="
  1173. addTools(21, itemTaskIndex, toolIndex)
  1174. ">
  1175. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  1176. <div style="margin: 5px 0">AIoT Blockly</div>
  1177. </div>
  1178. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1179. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1"><img
  1180. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1181. <!-- <div class="check" @click="
  1182. addTools(21, itemTaskIndex, toolIndex)
  1183. ">
  1184. <img src="../../../assets/icon/checkNo.png" alt
  1185. v-if="itemTool.tool.indexOf(21) == -1" />
  1186. <div class="checkDiv" v-else>
  1187. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1188. </div>
  1189. </div> -->
  1190. </div>
  1191. <!-- <div class="tool">
  1192. <div class="whiteBIcon" @click="
  1193. addTools(22, itemTaskIndex, toolIndex)
  1194. ">
  1195. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1196. <div style="margin: 5px 0">AI体验</div>
  1197. </div>
  1198. <div class="check" @click="
  1199. addTools(22, itemTaskIndex, toolIndex)
  1200. ">
  1201. <img src="../../../assets/icon/checkNo.png" alt
  1202. v-if="itemTool.tool.indexOf(22) == -1" />
  1203. <div class="checkDiv" v-else>
  1204. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1205. </div>
  1206. </div>
  1207. </div> -->
  1208. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(23) != -1 }"
  1209. @click="addTools(23, itemTaskIndex, toolIndex)">
  1210. <div class="whiteBIcon" @click.stop="
  1211. addTools(23, itemTaskIndex, toolIndex)
  1212. ">
  1213. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1214. <div style="margin: 5px 0">AI Python</div>
  1215. </div>
  1216. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1217. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1"><img
  1218. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1219. <!-- <div class="check" @click="
  1220. addTools(23, itemTaskIndex, toolIndex)
  1221. ">
  1222. <img src="../../../assets/icon/checkNo.png" alt
  1223. v-if="itemTool.tool.indexOf(23) == -1" />
  1224. <div class="checkDiv" v-else>
  1225. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1226. </div>
  1227. </div> -->
  1228. </div>
  1229. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(24) != -1 }"
  1230. @click="addTools(24, itemTaskIndex, toolIndex)">
  1231. <div class="whiteBIcon" @click.stop="
  1232. addTools(24, itemTaskIndex, toolIndex)
  1233. ">
  1234. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1235. <div style="margin: 5px 0">AI Blockly</div>
  1236. </div>
  1237. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1238. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1"><img
  1239. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1240. <!-- <div class="check" @click="
  1241. addTools(24, itemTaskIndex, toolIndex)
  1242. ">
  1243. <img src="../../../assets/icon/checkNo.png" alt
  1244. v-if="itemTool.tool.indexOf(24) == -1" />
  1245. <div class="checkDiv" v-else>
  1246. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1247. </div>
  1248. </div> -->
  1249. </div>
  1250. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(32) != -1 }"
  1251. @click="addTools(32, itemTaskIndex, toolIndex)">
  1252. <div class="whiteBIcon" @click.stop="
  1253. addTools(32, itemTaskIndex, toolIndex)
  1254. ">
  1255. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1256. <div style="margin: 5px 0">源码编辑</div>
  1257. </div>
  1258. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1259. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1"><img
  1260. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1261. <!-- <div class="check" @click="
  1262. addTools(32, itemTaskIndex, toolIndex)
  1263. ">
  1264. <img src="../../../assets/icon/checkNo.png" alt
  1265. v-if="itemTool.tool.indexOf(32) == -1" />
  1266. <div class="checkDiv" v-else>
  1267. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1268. </div>
  1269. </div> -->
  1270. </div>
  1271. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(57) != -1 }"
  1272. @click="addTools(57, itemTaskIndex, toolIndex)">
  1273. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 57, toolIndex)">
  1274. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1275. <div style="margin: 5px 0">CocoPi</div>
  1276. </div>
  1277. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1278. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1"><img
  1279. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1280. <!-- <div class="check" @click="
  1281. addTools(57, itemTaskIndex, toolIndex)
  1282. ">
  1283. <img src="../../../assets/icon/checkNo.png" alt
  1284. v-if="itemTool.tool.indexOf(57) == -1" />
  1285. <div class="checkDiv" v-else>
  1286. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1287. </div>
  1288. </div> -->
  1289. </div>
  1290. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(63) != -1 }"
  1291. @click="addTools(63, itemTaskIndex, toolIndex)">
  1292. <div class="whiteBIcon" @click.stop="
  1293. addTools(63, itemTaskIndex, toolIndex)
  1294. ">
  1295. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1296. <div style="margin: 5px 0">海龟编程</div>
  1297. </div>
  1298. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1299. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1"><img
  1300. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1301. <!-- <div class="check" @click="
  1302. addTools(63, itemTaskIndex, toolIndex)
  1303. ">
  1304. <img src="../../../assets/icon/checkNo.png" alt
  1305. v-if="itemTool.tool.indexOf(63) == -1" />
  1306. <div class="checkDiv" v-else>
  1307. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1308. </div>
  1309. </div> -->
  1310. </div>
  1311. </div>
  1312. <div class="toolSort" v-if="itemTool.toolType == 5">
  1313. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(28) != -1 }"
  1314. @click="addTools(28, itemTaskIndex, toolIndex)">
  1315. <div class="whiteBIcon" @click.stop="
  1316. addTools(28, itemTaskIndex, toolIndex)
  1317. ">
  1318. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1319. <div style="margin: 5px 0">翻译</div>
  1320. </div>
  1321. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1322. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1"><img
  1323. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1324. <!-- <div class="check" @click="
  1325. addTools(28, itemTaskIndex, toolIndex)
  1326. ">
  1327. <img src="../../../assets/icon/checkNo.png" alt
  1328. v-if="itemTool.tool.indexOf(28) == -1" />
  1329. <div class="checkDiv" v-else>
  1330. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1331. </div>
  1332. </div> -->
  1333. </div>
  1334. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(31) != -1 }"
  1335. @click="addTools(31, itemTaskIndex, toolIndex)">
  1336. <div class="whiteBIcon" @click.stop="
  1337. addTools(31, itemTaskIndex, toolIndex)
  1338. ">
  1339. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1340. <div style="margin: 5px 0">数字画板</div>
  1341. </div>
  1342. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1343. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1"><img
  1344. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1345. <!-- <div class="check" @click="
  1346. addTools(31, itemTaskIndex, toolIndex)
  1347. ">
  1348. <img src="../../../assets/icon/checkNo.png" alt
  1349. v-if="itemTool.tool.indexOf(31) == -1" />
  1350. <div class="checkDiv" v-else>
  1351. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1352. </div>
  1353. </div> -->
  1354. </div>
  1355. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(39) != -1 }"
  1356. @click="addTools(39, itemTaskIndex, toolIndex)">
  1357. <div class="whiteBIcon" @click.stop="
  1358. addTools(39, itemTaskIndex, toolIndex)
  1359. ">
  1360. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1361. <div style="margin: 5px 0">GeoGebra</div>
  1362. </div>
  1363. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1364. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1"><img
  1365. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1366. <!-- <div class="check" @click="
  1367. addTools(39, itemTaskIndex, toolIndex)
  1368. ">
  1369. <img src="../../../assets/icon/checkNo.png" alt
  1370. v-if="itemTool.tool.indexOf(39) == -1" />
  1371. <div class="checkDiv" v-else>
  1372. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1373. </div>
  1374. </div> -->
  1375. </div>
  1376. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(66) != -1 }"
  1377. @click="addTools(66, itemTaskIndex, toolIndex)">
  1378. <div class="whiteBIcon" @click.stop="
  1379. addTools(66, itemTaskIndex, toolIndex)
  1380. ">
  1381. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  1382. <div style="margin: 5px 0">公式编辑</div>
  1383. </div>
  1384. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1385. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1"><img
  1386. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1387. <!-- <div class="check" @click="
  1388. addTools(66, itemTaskIndex, toolIndex)
  1389. ">
  1390. <img src="../../../assets/icon/checkNo.png" alt
  1391. v-if="itemTool.tool.indexOf(66) == -1" />
  1392. <div class="checkDiv" v-else>
  1393. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1394. </div>
  1395. </div> -->
  1396. </div>
  1397. <!-- <div class="tool">
  1398. <div class="whiteBIcon" @click="
  1399. addTools(67, itemTaskIndex, toolIndex)
  1400. ">
  1401. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  1402. <div style="margin: 5px 0">分子结构</div>
  1403. </div>
  1404. <div class="check" @click="
  1405. addTools(67, itemTaskIndex, toolIndex)
  1406. ">
  1407. <img src="../../../assets/icon/checkNo.png" alt
  1408. v-if="itemTool.tool.indexOf(67) == -1" />
  1409. <div class="checkDiv" v-else>
  1410. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1411. </div>
  1412. </div>
  1413. </div> -->
  1414. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(68) != -1 }"
  1415. @click="addTools(68, itemTaskIndex, toolIndex)">
  1416. <div class="whiteBIcon" @click.stop="
  1417. addTools(68, itemTaskIndex, toolIndex)
  1418. ">
  1419. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  1420. <div style="margin: 5px 0">时间轴</div>
  1421. </div>
  1422. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1423. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1"><img
  1424. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1425. <!-- <div class="check" @click="
  1426. addTools(68, itemTaskIndex, toolIndex)
  1427. ">
  1428. <img src="../../../assets/icon/checkNo.png" alt
  1429. v-if="itemTool.tool.indexOf(68) == -1" />
  1430. <div class="checkDiv" v-else>
  1431. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1432. </div>
  1433. </div> -->
  1434. </div>
  1435. <!-- <div class="tool">
  1436. <div class="whiteBIcon" @click="
  1437. addTools(28, itemTaskIndex, toolIndex)
  1438. ">
  1439. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1440. <div style="margin: 5px 0">翻译</div>
  1441. </div>
  1442. <div class="check" @click="
  1443. addTools(28, itemTaskIndex, toolIndex)
  1444. ">
  1445. <img src="../../../assets/icon/checkNo.png" alt
  1446. v-if="itemTool.tool.indexOf(28) == -1" />
  1447. <div class="checkDiv" v-else>
  1448. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1449. </div>
  1450. </div>
  1451. </div>
  1452. <div class="tool">
  1453. <div class="whiteBIcon" @click="
  1454. addTools(37, itemTaskIndex, toolIndex)
  1455. ">
  1456. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  1457. <div style="margin: 5px 0">魔盒识字</div>
  1458. </div>
  1459. <div class="check" @click="
  1460. addTools(37, itemTaskIndex, toolIndex)
  1461. ">
  1462. <img src="../../../assets/icon/checkNo.png" alt
  1463. v-if="itemTool.tool.indexOf(37) == -1" />
  1464. <div class="checkDiv" v-else>
  1465. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1466. </div>
  1467. </div>
  1468. </div>
  1469. <div class="tool">
  1470. <div class="whiteBIcon" @click="
  1471. addTools(38, itemTaskIndex, toolIndex)
  1472. ">
  1473. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  1474. <div style="margin: 5px 0">24点</div>
  1475. </div>
  1476. <div class="check" @click="
  1477. addTools(38, itemTaskIndex, toolIndex)
  1478. ">
  1479. <img src="../../../assets/icon/checkNo.png" alt
  1480. v-if="itemTool.tool.indexOf(38) == -1" />
  1481. <div class="checkDiv" v-else>
  1482. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1483. </div>
  1484. </div>
  1485. </div>
  1486. <div class="tool">
  1487. <div class="whiteBIcon" @click="
  1488. addTools(31, itemTaskIndex, toolIndex)
  1489. ">
  1490. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1491. <div style="margin: 5px 0">数学画板</div>
  1492. </div>
  1493. <div class="check" @click="
  1494. addTools(31, itemTaskIndex, toolIndex)
  1495. ">
  1496. <img src="../../../assets/icon/checkNo.png" alt
  1497. v-if="itemTool.tool.indexOf(31) == -1" />
  1498. <div class="checkDiv" v-else>
  1499. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1500. </div>
  1501. </div>
  1502. </div>
  1503. <div class="tool">
  1504. <div class="whiteBIcon" @click="
  1505. addTools(39, itemTaskIndex, toolIndex)
  1506. ">
  1507. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1508. <div style="margin: 5px 0">GeoGebra</div>
  1509. </div>
  1510. <div class="check" @click="
  1511. addTools(39, itemTaskIndex, toolIndex)
  1512. ">
  1513. <img src="../../../assets/icon/checkNo.png" alt
  1514. v-if="itemTool.tool.indexOf(39) == -1" />
  1515. <div class="checkDiv" v-else>
  1516. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1517. </div>
  1518. </div>
  1519. </div>
  1520. <div class="tool">
  1521. <div class="whiteBIcon" @click="
  1522. addTools(58, itemTaskIndex, toolIndex)
  1523. ">
  1524. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  1525. <div style="margin: 5px 0">模拟驾驶</div>
  1526. </div>
  1527. <div class="check" @click="
  1528. addTools(58, itemTaskIndex, toolIndex)
  1529. ">
  1530. <img src="../../../assets/icon/checkNo.png" alt
  1531. v-if="itemTool.tool.indexOf(58) == -1" />
  1532. <div class="checkDiv" v-else>
  1533. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1534. </div>
  1535. </div>
  1536. </div>
  1537. <div class="tool">
  1538. <div class="whiteBIcon" @click="
  1539. addTools(59, itemTaskIndex, toolIndex)
  1540. ">
  1541. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  1542. <div style="margin: 5px 0">路径搜索</div>
  1543. </div>
  1544. <div class="check" @click="
  1545. addTools(59, itemTaskIndex, toolIndex)
  1546. ">
  1547. <img src="../../../assets/icon/checkNo.png" alt
  1548. v-if="itemTool.tool.indexOf(59) == -1" />
  1549. <div class="checkDiv" v-else>
  1550. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1551. </div>
  1552. </div>
  1553. </div>
  1554. <div class="tool">
  1555. <div class="whiteBIcon" @click="
  1556. addTools(60, itemTaskIndex, toolIndex)
  1557. ">
  1558. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  1559. <div style="margin: 5px 0">深度学习</div>
  1560. </div>
  1561. <div class="check" @click="
  1562. addTools(60, itemTaskIndex, toolIndex)
  1563. ">
  1564. <img src="../../../assets/icon/checkNo.png" alt
  1565. v-if="itemTool.tool.indexOf(60) == -1" />
  1566. <div class="checkDiv" v-else>
  1567. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1568. </div>
  1569. </div>
  1570. </div>
  1571. <div class="tool">
  1572. <div class="whiteBIcon" @click="
  1573. addTools(61, itemTaskIndex, toolIndex)
  1574. ">
  1575. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  1576. <div style="margin: 5px 0">全历史</div>
  1577. </div>
  1578. <div class="check" @click="
  1579. addTools(61, itemTaskIndex, toolIndex)
  1580. ">
  1581. <img src="../../../assets/icon/checkNo.png" alt
  1582. v-if="itemTool.tool.indexOf(61) == -1" />
  1583. <div class="checkDiv" v-else>
  1584. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1585. </div>
  1586. </div>
  1587. </div> -->
  1588. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(69) != -1 }"
  1589. @click="addTools(69, itemTaskIndex, toolIndex)">
  1590. <div class="whiteBIcon" @click.stop="
  1591. openTools(itemTaskIndex, 69, toolIndex)
  1592. ">
  1593. <img src="../../../assets/icon/thirdToolList/english.png" alt />
  1594. <div style="margin: 5px 0">英语写作</div>
  1595. </div>
  1596. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1597. <div class="isCTool" v-if="itemTool.tool.indexOf(69) != -1"><img
  1598. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1599. <!-- <div class="check" @click="
  1600. addTools(4, itemTaskIndex, toolIndex)
  1601. ">
  1602. <img src="../../../assets/icon/checkNo.png" alt
  1603. v-if="itemTool.tool.indexOf(4) == -1" />
  1604. <div class="checkDiv" v-else>
  1605. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1606. </div>
  1607. </div> -->
  1608. </div>
  1609. </div>
  1610. <div class="toolSort" v-if="itemTool.toolType == 7">
  1611. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(40) != -1 }"
  1612. @click.stop="addTools(40, itemTaskIndex, toolIndex)">
  1613. <div class="whiteBIcon" @click="
  1614. openTools(itemTaskIndex, 40, toolIndex)
  1615. ">
  1616. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1617. <div style="margin: 5px 0">个人评价</div>
  1618. </div>
  1619. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1620. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1"><img
  1621. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1622. <!-- <div class="check" @click="
  1623. addTools(40, itemTaskIndex, toolIndex)
  1624. ">
  1625. <img src="../../../assets/icon/checkNo.png" alt
  1626. v-if="itemTool.tool.indexOf(40) == -1" />
  1627. <div class="checkDiv" v-else>
  1628. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1629. </div>
  1630. </div> -->
  1631. </div>
  1632. </div>
  1633. <div class="toolSort" v-if="itemTool.toolType == 4">
  1634. <div class="tool">
  1635. <div class="whiteBIcon" @click="
  1636. addTools(26, itemTaskIndex, toolIndex)
  1637. ">
  1638. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1639. <div style="margin: 5px 0">课程设计</div>
  1640. </div>
  1641. <div class="check" @click="
  1642. addTools(26, itemTaskIndex, toolIndex)
  1643. ">
  1644. <img src="../../../assets/icon/checkNo.png" alt
  1645. v-if="itemTool.tool.indexOf(26) == -1" />
  1646. <div class="checkDiv" v-else>
  1647. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1648. </div>
  1649. </div>
  1650. </div>
  1651. <div class="tool">
  1652. <div class="whiteBIcon" @click="
  1653. addTools(25, itemTaskIndex, toolIndex)
  1654. ">
  1655. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  1656. <div style="margin: 5px 0">目标管理</div>
  1657. </div>
  1658. <div class="check" @click="
  1659. addTools(25, itemTaskIndex, toolIndex)
  1660. ">
  1661. <img src="../../../assets/icon/checkNo.png" alt
  1662. v-if="itemTool.tool.indexOf(25) == -1" />
  1663. <div class="checkDiv" v-else>
  1664. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1665. </div>
  1666. </div>
  1667. </div>
  1668. <!-- <div class="tool">
  1669. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1670. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  1671. <div style="margin: 5px 0">汉字宫</div>
  1672. </div>
  1673. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1674. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1675. <div class="checkDiv" v-else>
  1676. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1677. </div>
  1678. </div>
  1679. </div> -->
  1680. </div>
  1681. </div>
  1682. <div v-show="!itemTool.isFold3">
  1683. <textarea rows="3" type="text" v-autoHeight="87" placeholder="添加工具描述" class="binfo_input"
  1684. style="
  1685. margin: 0 0 20px 0;
  1686. " v-model="itemTool.toolDetail"></textarea>
  1687. </div>
  1688. </div>
  1689. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  1690. <div class="addToolImg">
  1691. <img src="../../../assets/icon/add.png" alt />
  1692. </div>
  1693. <div>添加工具</div>
  1694. </div> -->
  1695. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)"
  1696. style="margin: 0 auto;padding: 0 30px;height: 45px;">
  1697. 添加工具
  1698. </button>
  1699. </div>
  1700. </div>
  1701. </div>
  1702. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  1703. <!-- <div>
  1704. <img src="../../../assets/icon/new/addStage.png" alt />
  1705. <span>添加任务</span>
  1706. </div> -->
  1707. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  1708. 添加任务
  1709. </button>
  1710. </div>
  1711. </div>
  1712. </div>
  1713. </div>
  1714. </div>
  1715. <div class="info_btnBox3">
  1716. <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps">
  1717. 返回课程
  1718. </button>
  1719. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps">
  1720. 确认上传
  1721. </button>
  1722. </div>
  1723. </div>
  1724. <div class="rightBox" v-if="this.steps == 2">
  1725. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  1726. <div class="right_title" style="border: none; margin: 0; padding: 0">
  1727. 请选择合适的课程模板
  1728. </div>
  1729. <div class="wordbox">
  1730. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  1731. <div class="wordPic">
  1732. <img src="../../../assets/icon/wordMub.png" alt />
  1733. </div>
  1734. <div style="
  1735. margin-top: 10px;
  1736. line-height: 19px;
  1737. overflow: hidden;
  1738. text-overflow: ellipsis;
  1739. white-space: nowrap;
  1740. padding: 0 20px;
  1741. ">
  1742. {{ aa.title }}
  1743. </div>
  1744. </div>
  1745. <div class="wordTeacher" @click="checkTemplate2()">
  1746. <div class="wordPic">
  1747. <img src="../../../assets/icon/wordMub.png" alt />
  1748. </div>
  1749. <div style="
  1750. margin-top: 10px;
  1751. line-height: 19px;
  1752. overflow: hidden;
  1753. text-overflow: ellipsis;
  1754. white-space: nowrap;
  1755. padding: 0 20px;
  1756. ">
  1757. 任务模式
  1758. </div>
  1759. </div>
  1760. <div class="wordTeacher" @click="checkTemplate3()">
  1761. <div class="wordPic">
  1762. <img src="../../../assets/icon/wordMub.png" alt />
  1763. </div>
  1764. <div style="
  1765. margin-top: 10px;
  1766. line-height: 19px;
  1767. overflow: hidden;
  1768. text-overflow: ellipsis;
  1769. white-space: nowrap;
  1770. padding: 0 20px;
  1771. ">
  1772. 简易模式
  1773. </div>
  1774. </div>
  1775. <div class="wordTeacher" @click="pasteStage()">
  1776. <div class="wordPic">
  1777. <img src="../../../assets/icon/wordMub.png" alt />
  1778. </div>
  1779. <div style="
  1780. margin-top: 10px;
  1781. line-height: 19px;
  1782. overflow: hidden;
  1783. text-overflow: ellipsis;
  1784. white-space: nowrap;
  1785. padding: 0 20px;
  1786. ">
  1787. 智能粘贴模式
  1788. </div>
  1789. </div>
  1790. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  1791. <div class="wordPic">
  1792. <img src="../../../assets/icon/wordMub.png" alt />
  1793. </div>
  1794. <div style="
  1795. margin-top: 10px;
  1796. line-height: 19px;
  1797. overflow: hidden;
  1798. text-overflow: ellipsis;
  1799. white-space: nowrap;
  1800. padding: 0 20px;
  1801. ">
  1802. 未来小学课程设计
  1803. </div>
  1804. </div> -->
  1805. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  1806. <div class="wordPic">
  1807. <img src="../../../assets/icon/wordMub.png" alt />
  1808. </div>
  1809. <div style="
  1810. margin-top: 10px;
  1811. line-height: 19px;
  1812. overflow: hidden;
  1813. text-overflow: ellipsis;
  1814. white-space: nowrap;
  1815. padding: 0 20px;
  1816. ">
  1817. 我的课程
  1818. </div>
  1819. </div> -->
  1820. </div>
  1821. </div>
  1822. </div>
  1823. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  1824. <div class="basic_box">
  1825. <div style="
  1826. display: flex;
  1827. flex-direction: row;
  1828. align-items: center;
  1829. position: sticky;
  1830. top: 0;
  1831. background: #fff;
  1832. z-index: 99;
  1833. width: 100%;
  1834. padding: 0 20px 0 20px;
  1835. box-sizing: border-box;
  1836. ">
  1837. <div class="cru_selectBox">
  1838. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  1839. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  1840. <!-- item.dyName ? item.dyName : -->
  1841. {{ "第" + (index + 1) + "阶段" }}
  1842. </div>
  1843. <img src="../../../assets/line.png" class="cru_line" :style="{
  1844. left: offsetLetfPx + 'px',
  1845. }" />
  1846. </div>
  1847. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  1848. !(unitJson[unitJson.length - 1].easy == 6)
  1849. ">
  1850. <img src="../../../assets/icon/add.png" alt />
  1851. </div>
  1852. </div>
  1853. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  1854. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  1855. <div>
  1856. <div class="chapter_contentbox">
  1857. <div>第{{ unitIndex + 1 }}阶段</div>
  1858. <div>
  1859. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  1860. </div>
  1861. <div v-if="unitJson.length > 1 &&
  1862. !(unitJson[unitJson.length - 1].easy == 4) &&
  1863. !(unitJson[unitJson.length - 1].easy == 6)
  1864. " @click="deleteUnit(unitIndex)"></div>
  1865. </div>
  1866. </div>
  1867. <div v-if="!unitJson[unitIndex].easy" style="
  1868. margin: 50px 0px 10px;
  1869. font-size: 1.5em;
  1870. font-weight: 700;
  1871. color: #0f7eff;
  1872. ">
  1873. 添加任务
  1874. </div>
  1875. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  1876. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  1877. <div v-if="unitJson[unitIndex].easy != 1">
  1878. <div :style="{
  1879. marginBottom:
  1880. unitJson[unitIndex].easy == 3 ||
  1881. (unitJson[unitIndex].easy == 5 &&
  1882. itemTask.taskType == 1)
  1883. ? '75px'
  1884. : '0',
  1885. }">
  1886. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  1887. 任务{{ itemTaskIndex + 1 }}
  1888. </div>
  1889. <div class="chapter_contentbox" style="
  1890. flex-direction: row;
  1891. justify-content: flex-start;
  1892. align-items: center;
  1893. ">
  1894. <div style="
  1895. border-left: 6px solid #5699e8;
  1896. height: 20px;
  1897. padding-left: 10px;
  1898. line-height: 22px;
  1899. ">
  1900. 任务名称
  1901. </div>
  1902. <div>
  1903. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1904. itemTaskIndex
  1905. ].task
  1906. " />
  1907. </div>
  1908. <div class="remove" v-if="item.taskJson.length > 1 &&
  1909. (!unitJson[unitIndex].easy ||
  1910. unitJson[unitIndex].easy == 6)
  1911. " @click="deleteTask(itemTaskIndex)" style="position: absolute; right: 55px"></div>
  1912. </div>
  1913. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" style="
  1914. display: flex;
  1915. margin: 0 0 20px 0;
  1916. flex-direction: row;
  1917. justify-content: flex-start;
  1918. align-items: center;
  1919. width: 70.5% !important;
  1920. padding-top: 30px;
  1921. ">
  1922. <div class="lineTitle">任务描述</div>
  1923. </div>
  1924. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1">
  1925. <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1926. itemTaskIndex
  1927. ].taskDetail
  1928. " @change="change"></editor-bar>
  1929. <!-- <textarea
  1930. rows="6"
  1931. class="binfo_input"
  1932. placeholder="请输入任务描述"
  1933. cols
  1934. style="width: 70.5% !important; height: 120px"
  1935. v-model="
  1936. unitJson[unitIndex].chapterInfo[0].taskJson[
  1937. itemTaskIndex
  1938. ].taskDetail
  1939. "
  1940. ></textarea>-->
  1941. </div>
  1942. </div>
  1943. </div>
  1944. <div v-if="!unitJson[unitIndex].easy ||
  1945. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1946. " class="basic_box" style="
  1947. padding: 0 !important;
  1948. ">
  1949. <div style="
  1950. display: flex;
  1951. margin: 0 0 20px 0;
  1952. flex-direction: row;
  1953. justify-content: flex-start;
  1954. align-items: center;
  1955. ">
  1956. <div class="lineTitle">学习内容</div>
  1957. </div>
  1958. <div>
  1959. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  1960. itemTask.chapterData.length == 0
  1961. " style="height: 185px"></div>
  1962. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1963. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  1964. @click="
  1965. getChapterData(
  1966. $event,
  1967. unitIndex,
  1968. index,
  1969. index1,
  1970. item1.type
  1971. )
  1972. ">
  1973. <div class="chapter_upload_t" style="width: 100%"></div>
  1974. <div class="chapter_upload_o" style="
  1975. position: relative;
  1976. display: flex;
  1977. align-items: center;
  1978. ">
  1979. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1980. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  1981. <div v-if="item1.type == 3 ||
  1982. item1.type == 12 ||
  1983. item1.type == 13 ||
  1984. item1.type == 6 ||
  1985. item1.type == 7
  1986. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  1987. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  1988. </div>
  1989. <div class="chapter_upload_ic" style="
  1990. cursor: pointer;
  1991. position: absolute;
  1992. width: 45px;
  1993. right: 0;
  1994. top: 0;
  1995. ">
  1996. <div class="chapter_upload_ic_l"></div>
  1997. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  1998. deleteChapterData(
  1999. $event,
  2000. unitIndex,
  2001. index,
  2002. index1,
  2003. itemTaskIndex
  2004. )
  2005. ">
  2006. <div></div>
  2007. </div>
  2008. </div>
  2009. <div class="chapter_upload_n">
  2010. <input v-if="item1.type == 2 ||
  2011. item1.type == 3 ||
  2012. item1.type == 12 ||
  2013. item1.type == 13 ||
  2014. item1.type == 7
  2015. " :placeholder="item1.name" @change="
  2016. updataVideoT(
  2017. $event,
  2018. unitIndex,
  2019. chapterIndex,
  2020. index1
  2021. )
  2022. " style="
  2023. border: none;
  2024. outline: none;
  2025. width: 80%;
  2026. minwidth: 215px;
  2027. z-index: 99;
  2028. font-size: 14px;
  2029. white-space: nowrap;
  2030. overflow: hidden;
  2031. text-overflow: ellipsis;
  2032. " />
  2033. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  2034. border: none;
  2035. outline: none;
  2036. width: 80%;
  2037. white-space: nowrap;
  2038. overflow: hidden;
  2039. text-overflow: ellipsis;
  2040. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  2041. <input :placeholder="item1.title ? item1.title : '链接'
  2042. " v-if="item1.type == 8" style="
  2043. border: none;
  2044. outline: none;
  2045. width: 80%;
  2046. white-space: nowrap;
  2047. overflow: hidden;
  2048. text-overflow: ellipsis;
  2049. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  2050. <div class="chapter_upload_ud" style="z-index: 99">
  2051. <div class="chapter_upload_up" @click="
  2052. upCd(
  2053. $event,
  2054. unitIndex,
  2055. index,
  2056. itemTaskIndex,
  2057. index1
  2058. )
  2059. "></div>
  2060. <div class="chapter_upload_down" @click="
  2061. downCd(
  2062. $event,
  2063. unitIndex,
  2064. index,
  2065. itemTaskIndex,
  2066. index1
  2067. )
  2068. "></div>
  2069. </div>
  2070. </div>
  2071. </div>
  2072. </div>
  2073. </div>
  2074. </div>
  2075. <div class="add_info_box">
  2076. <button class="info_btn" @click="addImg($event)">
  2077. 添加文件
  2078. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  2079. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  2080. " />
  2081. </button>
  2082. <!-- <button class="info_btn" @click="addImg($event)">
  2083. 添加视频
  2084. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2085. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  2086. " />
  2087. </button>
  2088. <button class="info_btn" @click="addImg($event)">
  2089. 添加文档
  2090. <input type="file"
  2091. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2092. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  2093. " />
  2094. </button> -->
  2095. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  2096. 添加图文
  2097. </button>
  2098. <button class="info_btn" @click="openLine(itemTaskIndex)">
  2099. 添加链接
  2100. </button>
  2101. <button class="info_btn" @click="openSource(itemTaskIndex)">
  2102. 添加资源
  2103. </button>
  2104. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  2105. 嵌入代码
  2106. </button>
  2107. <!-- <button class="info_btn" @click="addImg($event)">
  2108. 其他附件
  2109. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  2110. " />
  2111. </button> -->
  2112. </div>
  2113. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  2114. itemTaskIndex
  2115. ].proVisible
  2116. " class="mask">
  2117. <div class="progressBox">
  2118. <!-- <div id="closePro" class="closeCss">
  2119. <img src="../../../../assets/icon/close.png" alt />
  2120. </div> -->
  2121. <div class="lbox">
  2122. <img src="../../../assets/loading.gif" />上传中,请稍后
  2123. </div>
  2124. <div style="margin-bottom: 10px">
  2125. <span>{{
  2126. unitJson[unitIndex].chapterInfo[0].taskJson[
  2127. itemTaskIndex
  2128. ].isFinishSize
  2129. }}M</span>
  2130. /
  2131. <span>{{
  2132. unitJson[unitIndex].chapterInfo[0].taskJson[
  2133. itemTaskIndex
  2134. ].isAllSize
  2135. }}M</span>
  2136. </div>
  2137. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  2138. itemTaskIndex
  2139. ].progress
  2140. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2141. itemTaskIndex
  2142. ].progress
  2143. : 0
  2144. " style="width: 80%"></el-progress>
  2145. </div>
  2146. </div>
  2147. </div>
  2148. <div v-if="unitJson[unitIndex].easy == 1 ||
  2149. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2150. " class="basic_box" style="
  2151. margin: 0 auto;
  2152. min-height: 0;
  2153. width: 95% !important;
  2154. padding: 20px 10px 10px;
  2155. ">
  2156. <div>
  2157. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  2158. itemTask.chapterData.length == 0
  2159. " style="height: 185px"></div>
  2160. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  2161. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  2162. <div class="chapter_upload" @click="
  2163. getChapterData(
  2164. $event,
  2165. unitIndex,
  2166. index,
  2167. index1,
  2168. item1.type
  2169. )
  2170. ">
  2171. <div class="chapter_upload_t" style="width: 100%"></div>
  2172. <div class="chapter_upload_o" style="
  2173. position: relative;
  2174. display: flex;
  2175. align-items: center;
  2176. ">
  2177. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  2178. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  2179. <div v-if="item1.type == 3 ||
  2180. item1.type == 6 ||
  2181. item1.type == 7
  2182. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  2183. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  2184. </div>
  2185. <div class="chapter_upload_ic" style="
  2186. cursor: pointer;
  2187. position: absolute;
  2188. width: 45px;
  2189. right: 0;
  2190. top: 0;
  2191. ">
  2192. <div class="chapter_upload_ic_l"></div>
  2193. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  2194. deleteChapterData(
  2195. $event,
  2196. unitIndex,
  2197. index,
  2198. index1,
  2199. itemTaskIndex
  2200. )
  2201. ">
  2202. <div></div>
  2203. </div>
  2204. </div>
  2205. <div class="chapter_upload_n">
  2206. <span style="
  2207. font-size: 14px;
  2208. color: rgb(109, 109, 109);
  2209. height: 14px;
  2210. line-height: 12px;
  2211. " v-if="item1.type == 2 ||
  2212. item1.type == 3 ||
  2213. item1.type == 7
  2214. ">{{ item1.text }}-</span>
  2215. <input v-if="item1.type == 2 ||
  2216. item1.type == 3 ||
  2217. item1.type == 7
  2218. " :placeholder="item1.name" @change="
  2219. updataVideoT(
  2220. $event,
  2221. unitIndex,
  2222. chapterIndex,
  2223. index1
  2224. )
  2225. " style="
  2226. border: none;
  2227. outline: none;
  2228. width: 80%;
  2229. minwidth: 215px;
  2230. z-index: 99;
  2231. font-size: 14px;
  2232. white-space: nowrap;
  2233. overflow: hidden;
  2234. text-overflow: ellipsis;
  2235. " />
  2236. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  2237. border: none;
  2238. outline: none;
  2239. width: 80%;
  2240. white-space: nowrap;
  2241. overflow: hidden;
  2242. text-overflow: ellipsis;
  2243. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  2244. <input :placeholder="item1.title ? item1.title : '链接'
  2245. " v-if="item1.type == 8" style="
  2246. border: none;
  2247. outline: none;
  2248. width: 80%;
  2249. white-space: nowrap;
  2250. overflow: hidden;
  2251. text-overflow: ellipsis;
  2252. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  2253. <div class="chapter_upload_ud" style="z-index: 99">
  2254. <div class="chapter_upload_up" @click="
  2255. upCd(
  2256. $event,
  2257. unitIndex,
  2258. index,
  2259. itemTaskIndex,
  2260. index1
  2261. )
  2262. "></div>
  2263. <div class="chapter_upload_down" @click="
  2264. downCd(
  2265. $event,
  2266. unitIndex,
  2267. index,
  2268. itemTaskIndex,
  2269. index1
  2270. )
  2271. "></div>
  2272. </div>
  2273. </div>
  2274. </div>
  2275. </div>
  2276. </div>
  2277. </div>
  2278. </div>
  2279. <div class="add_info_box" style="margin: 10px 0 0">
  2280. <button class="info_btn" @click="addImg($event)">
  2281. <span style="color: red">*</span>
  2282. 教学设计
  2283. <input type="file"
  2284. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2285. style="display: none" v-if="inputShow" @change="
  2286. beforeUpload3(
  2287. $event,
  2288. unitIndex,
  2289. 3,
  2290. itemTaskIndex,
  2291. '教学设计'
  2292. )
  2293. " />
  2294. </button>
  2295. <button class="info_btn" @click="addImg($event)">
  2296. <span style="color: red">*</span>
  2297. 教学课件
  2298. <input type="file"
  2299. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2300. style="display: none" v-if="inputShow" @change="
  2301. beforeUpload3(
  2302. $event,
  2303. unitIndex,
  2304. 3,
  2305. itemTaskIndex,
  2306. '教学课件'
  2307. )
  2308. " />
  2309. </button>
  2310. <button class="info_btn" @click="addImg($event)">
  2311. 教学视频
  2312. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2313. v-if="inputShow" @change="
  2314. beforeUpload3(
  2315. $event,
  2316. unitIndex,
  2317. 2,
  2318. itemTaskIndex,
  2319. '教学视频'
  2320. )
  2321. " />
  2322. </button>
  2323. <button class="info_btn" @click="addImg($event)">
  2324. 教学音频
  2325. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  2326. beforeUpload3(
  2327. $event,
  2328. unitIndex,
  2329. 2,
  2330. itemTaskIndex,
  2331. '教学音频'
  2332. )
  2333. " />
  2334. </button>
  2335. <button class="info_btn" @click="addImg($event)">
  2336. 学习单
  2337. <input type="file"
  2338. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2339. style="display: none" v-if="inputShow" @change="
  2340. beforeUpload3(
  2341. $event,
  2342. unitIndex,
  2343. 3,
  2344. itemTaskIndex,
  2345. '学习单'
  2346. )
  2347. " />
  2348. </button>
  2349. </div>
  2350. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  2351. itemTaskIndex
  2352. ].proVisible
  2353. " class="mask">
  2354. <div class="progressBox">
  2355. <!-- <div id="closePro" class="closeCss">
  2356. <img src="../../../../assets/icon/close.png" alt />
  2357. </div> -->
  2358. <div class="lbox">
  2359. <img src="../../../assets/loading.gif" />上传中,请稍后
  2360. </div>
  2361. <div style="margin-bottom: 10px">
  2362. <span>{{
  2363. unitJson[unitIndex].chapterInfo[0].taskJson[
  2364. itemTaskIndex
  2365. ].isFinishSize
  2366. }}M</span>
  2367. /
  2368. <span>{{
  2369. unitJson[unitIndex].chapterInfo[0].taskJson[
  2370. itemTaskIndex
  2371. ].isAllSize
  2372. }}M</span>
  2373. </div>
  2374. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  2375. itemTaskIndex
  2376. ].progress
  2377. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2378. itemTaskIndex
  2379. ].progress
  2380. : 0
  2381. " style="width: 80%"></el-progress>
  2382. </div>
  2383. </div>
  2384. </div>
  2385. <div v-if="unitJson[unitIndex].easy != 3 &&
  2386. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  2387. " style="
  2388. flex-direction: row;
  2389. justify-content: flex-start;
  2390. align-items: center;
  2391. padding: 0 0 0 30px;
  2392. paddint-top: 10px !important;
  2393. ">
  2394. <div style="
  2395. display: flex;
  2396. flex-direction: row;
  2397. align-items: center;
  2398. margin-bottom: 20px;
  2399. ">
  2400. <div class="lineTitle">
  2401. {{
  2402. !unitJson[unitIndex].easy ||
  2403. unitJson[unitIndex].easy == 6 ||
  2404. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2405. ? "练习内容"
  2406. : "评价内容"
  2407. }}
  2408. </div>
  2409. </div>
  2410. </div>
  2411. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  2412. " class="toolChoose" style="padding: 0 0 0 30px">
  2413. <div class="tools">
  2414. <div class="leftTools" style="
  2415. width: 95%;
  2416. padding: 0 0 15px 0;
  2417. margin: 15px 0;
  2418. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2419. <div>
  2420. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2421. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  2422. </div>
  2423. <div style="
  2424. display: flex;
  2425. flex-direction: row;
  2426. align-items: baseline;
  2427. flex-wrap: nowrap;
  2428. justify-content: flex-start;
  2429. position: relative;
  2430. ">
  2431. <div style="margin-right: 20px; font-weight: bold">
  2432. 步骤 {{ toolIndex + 1 }} :
  2433. </div>
  2434. <div class="chooseWho">
  2435. <!-- <div
  2436. :class="
  2437. itemTool.toolType == 0 ? 'isChooseActive' : ''
  2438. "
  2439. @click="(itemTool.toolType = 0), $forceUpdate()"
  2440. >
  2441. 互动类
  2442. </div> -->
  2443. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  2444. " @click="(itemTool.toolType = 1), $forceUpdate()">
  2445. 思维类
  2446. </div>
  2447. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  2448. " @click="(itemTool.toolType = 6), $forceUpdate()">
  2449. 协作类
  2450. </div>
  2451. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  2452. " @click="(itemTool.toolType = 2), $forceUpdate()">
  2453. 测评类
  2454. </div>
  2455. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  2456. " @click="(itemTool.toolType = 7), $forceUpdate()">
  2457. 评价类
  2458. </div>
  2459. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  2460. " @click="(itemTool.toolType = 3), $forceUpdate()">
  2461. 学科类
  2462. </div>
  2463. <!-- <div
  2464. :class="
  2465. itemTool.toolType == 5 ? 'isChooseActive' : ''
  2466. "
  2467. @click="(itemTool.toolType = 5), $forceUpdate()"
  2468. >
  2469. 学科类
  2470. </div>
  2471. <div
  2472. :class="
  2473. itemTool.toolType == 4 ? 'isChooseActive' : ''
  2474. "
  2475. @click="(itemTool.toolType = 4), $forceUpdate()"
  2476. >
  2477. 其他
  2478. </div> -->
  2479. </div>
  2480. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2481. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  2482. </div>
  2483. <div style="min-height: 163px">
  2484. <div class="toolSort" v-if="itemTool.toolType == 0">
  2485. <!-- <div class="tool">
  2486. <div
  2487. class="whiteBIcon"
  2488. @click="addTools(8, itemTaskIndex, toolIndex)"
  2489. >
  2490. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2491. <div style="margin: 5px 0">素材库</div>
  2492. </div>
  2493. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2494. <img
  2495. src="../../../assets/icon/checkNo.png"
  2496. alt
  2497. v-if="itemTool.tool.indexOf(8) == -1"
  2498. />
  2499. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2500. alt /><span>已选择</span></div>
  2501. </div>
  2502. </div>-->
  2503. <!-- <div class="tool">
  2504. <div
  2505. class="whiteBIcon"
  2506. @click="addTools(17, itemTaskIndex, toolIndex)"
  2507. >
  2508. <img
  2509. src="../../../assets/icon/secondToolList/library.png"
  2510. alt
  2511. />
  2512. <div style="margin: 5px 0">学习资料</div>
  2513. </div>
  2514. <div
  2515. class="check"
  2516. @click="addTools(17, itemTaskIndex, toolIndex)"
  2517. >
  2518. <img
  2519. src="../../../assets/icon/checkNo.png"
  2520. alt
  2521. v-if="itemTool.tool.indexOf(17) == -1"
  2522. />
  2523. <img
  2524. src="../../../assets/icon/checkedIs.png"
  2525. alt
  2526. v-else
  2527. />
  2528. </div>10
  2529. </div> -->
  2530. <div class="tool">
  2531. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  2532. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  2533. <div style="margin: 5px 0">倒计时</div>
  2534. </div>
  2535. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2536. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  2537. <div class="checkDiv" v-else>
  2538. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2539. </div>
  2540. </div>
  2541. </div>
  2542. <!-- <div class="tool">
  2543. <div
  2544. class="whiteBIcon"
  2545. @click="openTools(itemTaskIndex, 49, toolIndex)"
  2546. >
  2547. <img
  2548. src="../../../assets/icon/fourthToolList/group.png"
  2549. alt
  2550. />
  2551. <div style="margin: 5px 0">学生分组</div>
  2552. </div>
  2553. <div
  2554. class="check"
  2555. @click="addTools(49, itemTaskIndex, toolIndex)"
  2556. >
  2557. <img
  2558. src="../../../assets/icon/checkNo.png"
  2559. alt
  2560. v-if="itemTool.tool.indexOf(49) == -1"
  2561. />
  2562. <div class="checkDiv" v-else>
  2563. <img
  2564. src="../../../assets/icon/checkedIs.png"
  2565. alt
  2566. /><span>已选择</span>
  2567. </div>
  2568. </div>
  2569. </div> -->
  2570. <div class="tool">
  2571. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2572. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2573. <div style="margin: 5px 0">交互视频</div>
  2574. </div>
  2575. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2576. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2577. <div class="checkDiv" v-else>
  2578. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2579. </div>
  2580. </div>
  2581. </div>
  2582. </div>
  2583. <div class="toolSort" v-if="itemTool.toolType == 1">
  2584. <div class="tool">
  2585. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  2586. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2587. <div style="margin: 5px 0">思维网格</div>
  2588. </div>
  2589. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2590. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  2591. <div class="checkDiv" v-else>
  2592. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2593. </div>
  2594. </div>
  2595. </div>
  2596. <div class="tool">
  2597. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2598. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2599. <div style="margin: 5px 0">电子白板</div>
  2600. </div>
  2601. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2602. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  2603. <div class="checkDiv" v-else>
  2604. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2605. </div>
  2606. </div>
  2607. </div>
  2608. <!-- <div class="tool">
  2609. <div
  2610. class="whiteBIcon"
  2611. @click="addTools(2, itemTaskIndex, toolIndex)"
  2612. >
  2613. <img
  2614. src="../../../assets/icon/secondToolList/note.png"
  2615. alt
  2616. />
  2617. <div style="margin: 5px 0">便签</div>
  2618. </div>
  2619. <div
  2620. class="check"
  2621. @click="addTools(2, itemTaskIndex, toolIndex)"
  2622. >
  2623. <img
  2624. src="../../../assets/icon/checkNo.png"
  2625. alt
  2626. v-if="itemTool.tool.indexOf(2) == -1"
  2627. />
  2628. <div class="checkDiv" v-else>
  2629. <img
  2630. src="../../../assets/icon/checkedIs.png"
  2631. alt
  2632. /><span>已选择</span>
  2633. </div>
  2634. </div>
  2635. </div> -->
  2636. <!-- <div class="tool">
  2637. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2638. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2639. <div style="margin: 5px 0">协同文档</div>
  2640. </div>
  2641. <div
  2642. class="check"
  2643. @click="addTools(6, itemTaskIndex, toolIndex)"
  2644. >
  2645. <img
  2646. src="../../../assets/icon/checkNo.png"
  2647. alt
  2648. v-if="itemTool.tool.indexOf(6) == -1"
  2649. />
  2650. <div class="checkDiv" v-else>
  2651. <img
  2652. src="../../../assets/icon/checkedIs.png"
  2653. alt
  2654. /><span>已选择</span>
  2655. </div>
  2656. </div>
  2657. </div> -->
  2658. <div class="tool">
  2659. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2660. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2661. <div style="margin: 5px 0">文档</div>
  2662. </div>
  2663. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2664. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  2665. <div class="checkDiv" v-else>
  2666. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2667. </div>
  2668. </div>
  2669. </div>
  2670. <div class="tool">
  2671. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2672. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2673. <div style="margin: 5px 0">思维导图</div>
  2674. </div>
  2675. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2676. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  2677. <div class="checkDiv" v-else>
  2678. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2679. </div>
  2680. </div>
  2681. </div>
  2682. <div class="tool">
  2683. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2684. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2685. <div style="margin: 5px 0">表格</div>
  2686. </div>
  2687. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2688. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  2689. <div class="checkDiv" v-else>
  2690. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2691. </div>
  2692. </div>
  2693. </div>
  2694. </div>
  2695. <div class="toolSort" v-if="itemTool.toolType == 6">
  2696. <div class="tool">
  2697. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2698. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2699. <div style="margin: 5px 0">学生分组</div>
  2700. </div>
  2701. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2702. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2703. <div class="checkDiv" v-else>
  2704. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2705. </div>
  2706. </div>
  2707. </div>
  2708. </div>
  2709. <div class="toolSort" v-if="itemTool.toolType == 2">
  2710. <!-- <div class="tool">
  2711. <div
  2712. class="whiteBIcon"
  2713. @click="addTools(5, itemTaskIndex, toolIndex)"
  2714. >
  2715. <img
  2716. src="../../../assets/icon/thirdToolList/score.png"
  2717. alt
  2718. />
  2719. <div style="margin: 5px 0">量规评分</div>
  2720. </div>
  2721. <div
  2722. class="check"
  2723. @click="addTools(5, itemTaskIndex, toolIndex)"
  2724. >
  2725. <img
  2726. src="../../../assets/icon/checkNo.png"
  2727. alt
  2728. v-if="itemTool.tool.indexOf(5) == -1"
  2729. />
  2730. <img
  2731. src="../../../assets/icon/checkedIs.png"
  2732. alt
  2733. v-else
  2734. />
  2735. </div>
  2736. </div>-->
  2737. <div class="tool">
  2738. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2739. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2740. <div style="margin: 5px 0">问卷调查</div>
  2741. </div>
  2742. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2743. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  2744. <div class="checkDiv" v-else>
  2745. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2746. </div>
  2747. </div>
  2748. </div>
  2749. <div class="tool">
  2750. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2751. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  2752. <div style="margin: 5px 0">选择题</div>
  2753. </div>
  2754. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2755. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  2756. <div class="checkDiv" v-else>
  2757. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2758. </div>
  2759. </div>
  2760. </div>
  2761. <div class="tool">
  2762. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2763. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  2764. <div style="margin: 5px 0">问答</div>
  2765. </div>
  2766. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2767. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  2768. <div class="checkDiv" v-else>
  2769. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2770. </div>
  2771. </div>
  2772. </div>
  2773. <div class="tool">
  2774. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2775. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  2776. <div style="margin: 5px 0">作业提交</div>
  2777. </div>
  2778. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2779. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  2780. <div class="checkDiv" v-else>
  2781. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2782. </div>
  2783. </div>
  2784. </div>
  2785. <div class="tool">
  2786. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  2787. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2788. <div style="margin: 5px 0">批量上传</div>
  2789. </div>
  2790. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2791. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  2792. <div class="checkDiv" v-else>
  2793. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2794. </div>
  2795. </div>
  2796. </div>
  2797. <!-- <div class="tool">
  2798. <div
  2799. class="whiteBIcon"
  2800. @click="openTools(itemTaskIndex, 40, toolIndex)"
  2801. >
  2802. <img
  2803. src="../../../assets/icon/thirdToolList/eval.png"
  2804. alt
  2805. />
  2806. <div style="margin: 5px 0">个人评价</div>
  2807. </div>
  2808. <div
  2809. class="check"
  2810. @click="addTools(40, itemTaskIndex, toolIndex)"
  2811. >
  2812. <img
  2813. src="../../../assets/icon/checkNo.png"
  2814. alt
  2815. v-if="itemTool.tool.indexOf(40) == -1"
  2816. />
  2817. <div class="checkDiv" v-else>
  2818. <img
  2819. src="../../../assets/icon/checkedIs.png"
  2820. alt
  2821. /><span>已选择</span>
  2822. </div>
  2823. </div>
  2824. </div> -->
  2825. <div class="tool">
  2826. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2827. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  2828. <div style="margin: 5px 0">选择匹配</div>
  2829. </div>
  2830. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2831. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  2832. <div class="checkDiv" v-else>
  2833. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2834. </div>
  2835. </div>
  2836. </div>
  2837. <div class="tool">
  2838. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2839. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  2840. <div style="margin: 5px 0">排序</div>
  2841. </div>
  2842. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2843. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  2844. <div class="checkDiv" v-else>
  2845. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2846. </div>
  2847. </div>
  2848. </div>
  2849. <!-- <div class="tool">
  2850. <div
  2851. class="whiteBIcon"
  2852. @click="openTools(itemTaskIndex, 42, toolIndex)"
  2853. >
  2854. <img
  2855. src="../../../assets/icon/thirdToolList/mp3.png"
  2856. alt
  2857. />
  2858. <div style="margin: 5px 0">上传音频</div>
  2859. </div>
  2860. <div
  2861. class="check"
  2862. @click="addTools(42, itemTaskIndex, toolIndex)"
  2863. >
  2864. <img
  2865. src="../../../assets/icon/checkNo.png"
  2866. alt
  2867. v-if="itemTool.tool.indexOf(42) == -1"
  2868. />
  2869. <img
  2870. src="../../../assets/icon/checkedIs.png"
  2871. alt
  2872. v-else
  2873. />
  2874. </div>
  2875. </div> -->
  2876. </div>
  2877. <div class="toolSort" v-if="itemTool.toolType == 3">
  2878. <div class="tool">
  2879. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  2880. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  2881. <div style="margin: 5px 0">训练平台</div>
  2882. </div>
  2883. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  2884. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  2885. <div class="checkDiv" v-else>
  2886. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2887. </div>
  2888. </div>
  2889. </div>
  2890. <div class="tool">
  2891. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  2892. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  2893. <div style="margin: 5px 0">AIoT Blockly</div>
  2894. </div>
  2895. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  2896. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  2897. <div class="checkDiv" v-else>
  2898. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2899. </div>
  2900. </div>
  2901. </div>
  2902. <div class="tool">
  2903. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  2904. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  2905. <div style="margin: 5px 0">AI体验</div>
  2906. </div>
  2907. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  2908. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  2909. <div class="checkDiv" v-else>
  2910. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2911. </div>
  2912. </div>
  2913. </div>
  2914. <div class="tool">
  2915. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  2916. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  2917. <div style="margin: 5px 0">AI Python</div>
  2918. </div>
  2919. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  2920. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  2921. <div class="checkDiv" v-else>
  2922. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2923. </div>
  2924. </div>
  2925. </div>
  2926. <div class="tool">
  2927. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  2928. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  2929. <div style="margin: 5px 0">AI Blockly</div>
  2930. </div>
  2931. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  2932. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  2933. <div class="checkDiv" v-else>
  2934. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2935. </div>
  2936. </div>
  2937. </div>
  2938. <!-- <div class="tool">
  2939. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  2940. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  2941. <div style="margin: 5px 0">源码编辑</div>
  2942. </div>
  2943. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  2944. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(32) == -1" />
  2945. <div class="checkDiv" v-else>
  2946. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2947. </div>
  2948. </div>
  2949. </div> -->
  2950. <div class="tool">
  2951. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  2952. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  2953. <div style="margin: 5px 0">CocoPi</div>
  2954. </div>
  2955. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  2956. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(57) == -1" />
  2957. <div class="checkDiv" v-else>
  2958. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2959. </div>
  2960. </div>
  2961. </div>
  2962. <div class="tool">
  2963. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  2964. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  2965. <div style="margin: 5px 0">海龟编程</div>
  2966. </div>
  2967. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  2968. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(63) == -1" />
  2969. <div class="checkDiv" v-else>
  2970. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2971. </div>
  2972. </div>
  2973. </div>
  2974. </div>
  2975. <div class="toolSort" v-if="itemTool.toolType == 7">
  2976. <div class="tool">
  2977. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  2978. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  2979. <div style="margin: 5px 0">个人评价</div>
  2980. </div>
  2981. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  2982. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  2983. <div class="checkDiv" v-else>
  2984. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2985. </div>
  2986. </div>
  2987. </div>
  2988. </div>
  2989. <div class="toolSort" v-if="itemTool.toolType == 5">
  2990. <div class="tool">
  2991. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  2992. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  2993. <div style="margin: 5px 0">翻译</div>
  2994. </div>
  2995. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  2996. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  2997. <div class="checkDiv" v-else>
  2998. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2999. </div>
  3000. </div>
  3001. </div>
  3002. <div class="tool">
  3003. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  3004. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  3005. <div style="margin: 5px 0">魔盒识字</div>
  3006. </div>
  3007. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  3008. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  3009. <div class="checkDiv" v-else>
  3010. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3011. </div>
  3012. </div>
  3013. </div>
  3014. <div class="tool">
  3015. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  3016. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  3017. <div style="margin: 5px 0">24点</div>
  3018. </div>
  3019. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  3020. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  3021. <div class="checkDiv" v-else>
  3022. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3023. </div>
  3024. </div>
  3025. </div>
  3026. <div class="tool">
  3027. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  3028. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3029. <div style="margin: 5px 0">数学画板</div>
  3030. </div>
  3031. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3032. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  3033. <div class="checkDiv" v-else>
  3034. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3035. </div>
  3036. </div>
  3037. </div>
  3038. <div class="tool">
  3039. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  3040. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  3041. <div style="margin: 5px 0">GeoGebra</div>
  3042. </div>
  3043. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3044. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  3045. <div class="checkDiv" v-else>
  3046. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3047. </div>
  3048. </div>
  3049. </div>
  3050. <div class="tool">
  3051. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  3052. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  3053. <div style="margin: 5px 0">模拟驾驶</div>
  3054. </div>
  3055. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  3056. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  3057. <div class="checkDiv" v-else>
  3058. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3059. </div>
  3060. </div>
  3061. </div>
  3062. <div class="tool">
  3063. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  3064. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  3065. <div style="margin: 5px 0">路径搜索</div>
  3066. </div>
  3067. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  3068. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  3069. <div class="checkDiv" v-else>
  3070. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3071. </div>
  3072. </div>
  3073. </div>
  3074. <div class="tool">
  3075. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  3076. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  3077. <div style="margin: 5px 0">深度学习</div>
  3078. </div>
  3079. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  3080. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  3081. <div class="checkDiv" v-else>
  3082. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3083. </div>
  3084. </div>
  3085. </div>
  3086. <div class="tool">
  3087. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  3088. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  3089. <div style="margin: 5px 0">全历史</div>
  3090. </div>
  3091. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  3092. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  3093. <div class="checkDiv" v-else>
  3094. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3095. </div>
  3096. </div>
  3097. </div>
  3098. </div>
  3099. <div class="toolSort" v-if="itemTool.toolType == 4">
  3100. <div class="tool">
  3101. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  3102. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  3103. <div style="margin: 5px 0">课程设计</div>
  3104. </div>
  3105. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  3106. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  3107. <div class="checkDiv" v-else>
  3108. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3109. </div>
  3110. </div>
  3111. </div>
  3112. <div class="tool">
  3113. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  3114. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  3115. <div style="margin: 5px 0">目标管理</div>
  3116. </div>
  3117. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  3118. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  3119. <div class="checkDiv" v-else>
  3120. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3121. </div>
  3122. </div>
  3123. </div>
  3124. <!-- <div class="tool">
  3125. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  3126. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  3127. <div style="margin: 5px 0">汉字宫</div>
  3128. </div>
  3129. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  3130. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  3131. <div class="checkDiv" v-else>
  3132. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3133. </div>
  3134. </div>
  3135. </div> -->
  3136. </div>
  3137. </div>
  3138. </div>
  3139. <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
  3140. <div class="addToolImg">
  3141. <img src="../../../assets/icon/add.png" alt />
  3142. </div>
  3143. <div>添加工具</div>
  3144. </div>
  3145. </div>
  3146. </div>
  3147. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  3148. unitJson[unitIndex].easy == 4
  3149. " class="toolChoose" style="padding: 0 0 0 30px">
  3150. <div class="tools">
  3151. <div class="leftTools" style="width: 95%" v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  3152. :key="toolIndex">
  3153. <div>
  3154. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  3155. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  3156. </div>
  3157. <div style="
  3158. display: flex;
  3159. flex-direction: row;
  3160. align-items: baseline;
  3161. flex-wrap: nowrap;
  3162. justify-content: flex-start;
  3163. position: relative;
  3164. ">
  3165. <div style="margin-right: 20px; font-weight: bold">
  3166. 步骤 {{ toolIndex + 1 }} :
  3167. </div>
  3168. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  3169. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  3170. </div>
  3171. <div style="min-height: 163px">
  3172. <div class="toolSort">
  3173. <div class="tool">
  3174. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  3175. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  3176. <div style="margin: 5px 0">电子白板</div>
  3177. </div>
  3178. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  3179. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  3180. <div class="checkDiv" v-else>
  3181. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3182. </div>
  3183. </div>
  3184. </div>
  3185. <div class="tool">
  3186. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  3187. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  3188. <div style="margin: 5px 0">文档</div>
  3189. </div>
  3190. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  3191. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  3192. <div class="checkDiv" v-else>
  3193. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3194. </div>
  3195. </div>
  3196. </div>
  3197. <div class="tool">
  3198. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  3199. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  3200. <div style="margin: 5px 0">思维导图</div>
  3201. </div>
  3202. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  3203. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  3204. <div class="checkDiv" v-else>
  3205. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3206. </div>
  3207. </div>
  3208. </div>
  3209. <div class="tool">
  3210. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  3211. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3212. <div style="margin: 5px 0">问卷调查</div>
  3213. </div>
  3214. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  3215. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  3216. <div class="checkDiv" v-else>
  3217. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3218. </div>
  3219. </div>
  3220. </div>
  3221. <div class="tool">
  3222. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  3223. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  3224. <div style="margin: 5px 0">选择题</div>
  3225. </div>
  3226. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  3227. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  3228. <div class="checkDiv" v-else>
  3229. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3230. </div>
  3231. </div>
  3232. </div>
  3233. <div class="tool">
  3234. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  3235. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3236. <div style="margin: 5px 0">问答</div>
  3237. </div>
  3238. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  3239. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  3240. <div class="checkDiv" v-else>
  3241. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3242. </div>
  3243. </div>
  3244. </div>
  3245. <div class="tool">
  3246. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  3247. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  3248. <div style="margin: 5px 0">作业提交</div>
  3249. </div>
  3250. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  3251. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  3252. <div class="checkDiv" v-else>
  3253. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3254. </div>
  3255. </div>
  3256. </div>
  3257. <div class="tool">
  3258. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  3259. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3260. <div style="margin: 5px 0">批量上传</div>
  3261. </div>
  3262. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3263. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  3264. <div class="checkDiv" v-else>
  3265. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3266. </div>
  3267. </div>
  3268. </div>
  3269. <div class="tool">
  3270. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  3271. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  3272. <div style="margin: 5px 0">选择匹配</div>
  3273. </div>
  3274. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  3275. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  3276. <div class="checkDiv" v-else>
  3277. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3278. </div>
  3279. </div>
  3280. </div>
  3281. <div class="tool">
  3282. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  3283. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  3284. <div style="margin: 5px 0">排序</div>
  3285. </div>
  3286. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  3287. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  3288. <div class="checkDiv" v-else>
  3289. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3290. </div>
  3291. </div>
  3292. </div>
  3293. <div class="tool">
  3294. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  3295. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  3296. <div style="margin: 5px 0">表格</div>
  3297. </div>
  3298. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  3299. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  3300. <div class="checkDiv" v-else>
  3301. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3302. </div>
  3303. </div>
  3304. </div>
  3305. </div>
  3306. </div>
  3307. </div>
  3308. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  3309. <div class="addToolImg">
  3310. <img src="../../../assets/icon/add.png" alt />
  3311. </div>
  3312. <div>添加工具</div>
  3313. </div>
  3314. </div>
  3315. </div>
  3316. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  3317. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  3318. " class="toolChoose" style="padding: 0 0 0 30px">
  3319. <div class="tools">
  3320. <div class="leftTools" style="
  3321. width: 95%;
  3322. padding: 0 0 15px 0;
  3323. margin-bottom: 15px;
  3324. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  3325. <div style="min-height: 163px">
  3326. <div class="toolSort">
  3327. <div class="tool">
  3328. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  3329. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3330. <div style="margin: 5px 0">批量上传</div>
  3331. </div>
  3332. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3333. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  3334. <div class="checkDiv" v-else>
  3335. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3336. </div>
  3337. </div>
  3338. </div>
  3339. </div>
  3340. </div>
  3341. </div>
  3342. </div>
  3343. </div>
  3344. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  3345. <div class="elist_title">
  3346. <div style="
  3347. display: flex;
  3348. flex-direction: row;
  3349. align-items: center;
  3350. margin-bottom: 20px;
  3351. ">
  3352. <div class="lineTitle">评价设置</div>
  3353. </div>
  3354. </div>
  3355. <div class="mbCss">
  3356. <div class="pjCss">
  3357. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  3358. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  3359. <span>评价名称:</span>
  3360. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  3361. <span>评星等级:</span>
  3362. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()" disabled></el-rate>
  3363. <div class="remove" @click="
  3364. deletEList(unitIndex, itemTaskIndex, eIndex)
  3365. "></div>
  3366. <div class="elist_inptu_text">
  3367. <span>评价描述:</span>
  3368. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  3369. </div>
  3370. <div class="elist_inptu_text" v-if="evalua">
  3371. <span>目标:</span>
  3372. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  3373. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  3374. @change="forceUpdate()">
  3375. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  3376. :value="e.name">
  3377. </el-option>
  3378. </el-select> -->
  3379. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  3380. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  3381. </div>
  3382. </div>
  3383. </div>
  3384. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 35px 35px 0 0">
  3385. <div class="addToolImg">
  3386. <img src="../../../assets/icon/add.png" alt />
  3387. </div>
  3388. <div>添加</div>
  3389. </div>
  3390. </div>
  3391. <div v-if="evalua" style="
  3392. border: 1px solid #e5e5e5;
  3393. width: 55%;
  3394. margin-top: 20px;
  3395. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3396. " class="evaCss">
  3397. <div class="e_add_top">
  3398. <div class="e_add_title">
  3399. <span>当前使用目标管理</span>
  3400. <span>{{ eTitle }}</span>
  3401. <img src="../../../assets/line.png" class="cru_line" style="
  3402. width: 125px;
  3403. height: 20px;
  3404. bottom: -10px;
  3405. left: 155px;
  3406. " />
  3407. </div>
  3408. </div>
  3409. <div class="e_add_content" style="width: 100%">
  3410. <div class="e_add_list_pbox" style="width: 100%">
  3411. <div class="e_add_list_pbox_title">
  3412. <span class="type_title">切换模式</span>
  3413. <div class="type_content">
  3414. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  3415. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  3416. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  3417. </div>
  3418. </div>
  3419. <div class="e_add_list_pbox_content">
  3420. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  3421. " v-if="typeMode == 1"></Mind>
  3422. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  3423. </Sunburst>
  3424. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  3425. v-if="typeMode == 3"></SeeBoard>
  3426. </div>
  3427. </div>
  3428. </div>
  3429. </div>
  3430. </div>
  3431. </div>
  3432. <div class="funBlock" style="padding: 0">
  3433. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  3434. <div>折叠</div>
  3435. <div class="arrow">
  3436. <img src="../../../assets/icon/fold.png" alt />
  3437. </div>
  3438. </div>
  3439. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  3440. <div>展开</div>
  3441. <div class="arrow">
  3442. <img src="../../../assets/icon/expand.png" alt />
  3443. </div>
  3444. </div>
  3445. </div>
  3446. </div>
  3447. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  3448. <div>
  3449. <img src="../../../assets/icon/new/addStage.png" alt />
  3450. <span>添加任务</span>
  3451. </div>
  3452. </div>
  3453. </div>
  3454. </div>
  3455. </div>
  3456. <div class="rightBox" v-if="this.steps == 4">
  3457. <div class="basic_box_success">
  3458. <div class="right_img">
  3459. <img src="../../../assets/icon/right.png" alt />
  3460. </div>
  3461. <div style="font-weight: bold">成功</div>
  3462. <!-- <div>您的课程编号</div>
  3463. <div class="number">{{ number }}</div>-->
  3464. <!-- <div class="success_button">
  3465. <div class="look_course" @click="isNoFinsh">
  3466. 邀请老师协同编辑
  3467. </div>
  3468. <div class="attend_others" @click="goCourse">预览课程</div>
  3469. </div> -->
  3470. </div>
  3471. </div>
  3472. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  3473. @mouseleave="btnDisplay(false)" v-if="false">
  3474. <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps" v-if="isBtnDisplay">
  3475. 返回课程
  3476. </button>
  3477. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps" v-if="isBtnDisplay">
  3478. 确认上传
  3479. </button>
  3480. </div>
  3481. </div>
  3482. </div>
  3483. </div>
  3484. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  3485. class="dialog_diy2 customWidth">
  3486. <div>请复制该链接邀请协同编辑</div>
  3487. <div>http://www.boomyon.com/index-zhang.com</div>
  3488. <span slot="footer" class="dialog-footer">
  3489. <el-button type="primary">复制链接分享</el-button>
  3490. <el-button @click="dialogVisible = false">取消</el-button>
  3491. </span>
  3492. </el-dialog>
  3493. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  3494. :before-close="handleClose" class="dialog_diy2 customWidth">
  3495. <el-form>
  3496. <el-form-item label="文档标题">
  3497. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3498. </el-form-item>
  3499. <div>文档简介</div>
  3500. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  3501. </el-form>
  3502. <span slot="footer" class="dialog-footer">
  3503. <el-button @click="dialogVisible1 = false">取 消</el-button>
  3504. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  3505. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  3506. </span>
  3507. </el-dialog>
  3508. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  3509. :before-close="handleClose" class="dialog_diy">
  3510. <el-form>
  3511. <el-form-item label="文档标题">
  3512. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3513. </el-form-item>
  3514. <div>文档内容</div>
  3515. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  3516. </el-form>
  3517. <span slot="footer" class="dialog-footer">
  3518. <el-button @click="clearChoose">取 消</el-button>
  3519. <el-button type="primary" @click="wordNext()">确定</el-button>
  3520. </span>
  3521. </el-dialog>
  3522. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  3523. :before-close="handleClose" class="dialog_diy">
  3524. <el-form>
  3525. <el-form-item label="文本标题">
  3526. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  3527. placeholder="请输入文本标题..."></el-input>
  3528. </el-form-item>
  3529. <!-- <div>富文本内容</div> -->
  3530. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  3531. </el-form>
  3532. <span slot="footer" class="dialog-footer">
  3533. <el-button @click="clearAttText">取 消</el-button>
  3534. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  3535. </span>
  3536. </el-dialog>
  3537. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  3538. :before-close="handleClose" class="dialog_diy lineCss">
  3539. <el-form>
  3540. <el-form-item label="标题" :label-width="formLabelWidth">
  3541. <span>
  3542. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  3543. </span>
  3544. </el-form-item>
  3545. <el-form-item label="链接" :label-width="formLabelWidth">
  3546. <span>
  3547. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  3548. </span>
  3549. </el-form-item>
  3550. </el-form>
  3551. <span slot="footer" class="dialog-footer">
  3552. <el-button @click="clearLine">取 消</el-button>
  3553. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  3554. </span>
  3555. </el-dialog>
  3556. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  3557. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  3558. <div>
  3559. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  3560. </div>
  3561. <span slot="footer" class="dialog-footer">
  3562. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3563. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  3564. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  3565. </span>
  3566. </el-dialog>
  3567. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  3568. :before-close="handleClose" class="addNewPP customWidth">
  3569. <div class="people">
  3570. <div class="people_top">
  3571. <div class="people_nav">选择成员</div>
  3572. <div class="people_top_right">
  3573. <div class="people_search">
  3574. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  3575. <div class="search_img" @click="searchStudent">
  3576. <img src="../../../assets/icon/search.png" alt />
  3577. </div>
  3578. </div>
  3579. </div>
  3580. </div>
  3581. <el-checkbox-group v-model="checkboxList" class="people_name">
  3582. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  3583. "暂无学生可选" }}</el-checkbox>
  3584. </el-checkbox-group>
  3585. </div>
  3586. <span slot="footer" class="dialog-footer">
  3587. <el-button @click="dialogVisible3 = false">取 消</el-button>
  3588. <el-button type="primary" @click="isAddPP">确定</el-button>
  3589. </span>
  3590. </el-dialog>
  3591. <!-- <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  3592. :before-close="handleClose" class="addNewPP">
  3593. <div class="people" style="height: 300px">
  3594. <div class="people_top">
  3595. <div class="people_top_right">
  3596. <div class="people_search">
  3597. <el-select v-model="gradeId" placeholder="请选择年级" class="student_input" clearable @change="getClass()">
  3598. <el-option label="全部" value=""></el-option>
  3599. <el-option v-for="(item, index) in gradeList" :key="index" :label="item.name"
  3600. :value="item.id"></el-option>
  3601. </el-select>
  3602. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  3603. <div class="search_img">
  3604. <img src="../../../assets/icon/search.png" alt />
  3605. </div>
  3606. </div>
  3607. </div>
  3608. <div class="people_nav">选择班级</div>
  3609. </div>
  3610. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange"
  3611. v-if="grade2.length">
  3612. <div v-for="item in grade2" :key="item.id" class="p_box">
  3613. <el-checkbox :label="item.id">
  3614. {{ item.name }}
  3615. </el-checkbox>
  3616. </div>
  3617. </el-checkbox-group>
  3618. <div v-if="!grade2.length" style="padding:20px 10px">暂无数据</div>
  3619. </div>
  3620. <span slot="footer" class="dialog-footer">
  3621. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3622. <el-button type="primary" @click="isAddClass">确定</el-button>
  3623. </span>
  3624. </el-dialog> -->
  3625. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  3626. :before-close="handleClose" class="addNewPP2">
  3627. <div class="check_classBox">
  3628. <div class="check_class_right">
  3629. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  3630. 全部
  3631. </div>
  3632. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  3633. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  3634. {{ item.name }}
  3635. </div>
  3636. </el-tooltip>
  3637. </div>
  3638. <div class="check_class_left">
  3639. <div class="check_class_all_box">
  3640. <div class="check_class_left_title">选择班级</div>
  3641. <div style="display:flex;align-items:center;margin-left:auto;"><el-checkbox v-model="checkAll"
  3642. @change="handleCheckAllChange" class="all_check">全选</el-checkbox></div>
  3643. </div>
  3644. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  3645. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  3646. </div> -->
  3647. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  3648. <div v-for="item in grade2" :key="item.id" class="class_item">
  3649. <el-checkbox :label="item.id">
  3650. {{ item.name }}
  3651. </el-checkbox>
  3652. </div>
  3653. </el-checkbox-group>
  3654. <div v-if="!grade2.length">暂无数据</div>
  3655. </div>
  3656. </div>
  3657. <span slot="footer" class="dialog-footer">
  3658. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3659. <el-button type="primary" @click="isAddClass">确定</el-button>
  3660. </span>
  3661. </el-dialog>
  3662. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  3663. :before-close="handleClose" class="addNewPP customWidth">
  3664. <div class="people">
  3665. <div class="people_top">
  3666. <div class="people_top_right">
  3667. <div class="people_search">
  3668. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  3669. <div class="search_img" @click="getTeacher">
  3670. <img src="../../../assets/icon/search.png" alt />
  3671. </div>
  3672. </div>
  3673. </div>
  3674. <div class="people_nav">选择成员</div>
  3675. </div>
  3676. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  3677. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  3678. <div class="t_j_box">
  3679. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  3680. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  3681. </el-tooltip>
  3682. <el-tooltip placement="top" :content="item.username">
  3683. <span>{{ item.username }}</span>
  3684. </el-tooltip>
  3685. <el-tooltip placement="top" :content="item.school">
  3686. <span>{{ item.school }}</span>
  3687. </el-tooltip>
  3688. </div>
  3689. </el-checkbox>
  3690. </el-checkbox-group>
  3691. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  3692. </div>
  3693. <span slot="footer" class="dialog-footer">
  3694. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  3695. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  3696. </span>
  3697. </el-dialog>
  3698. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  3699. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  3700. <div style="height:100%">
  3701. <div class="a_add_title" style="
  3702. display: flex;
  3703. flex-direction: row;
  3704. align-items: center;
  3705. justify-content: center;
  3706. ">
  3707. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  3708. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3709. </div>
  3710. <div class="a_addBox" style="height:calc(100% - 50px)">
  3711. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  3712. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3713. <div class="a_add_checkType">
  3714. <span :class="{
  3715. active:
  3716. askJson.askJson[index1].type == '1' ||
  3717. !askJson.askJson[index1].type,
  3718. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  3719. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  3720. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  3721. </div>
  3722. <div class="a_add_head">
  3723. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  3724. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  3725. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  3726. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  3727. </div>
  3728. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  3729. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  3730. </div>
  3731. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  3732. </div>
  3733. <div class="a_add_head_div">
  3734. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  3735. </el-button>
  3736. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  3737. </div>
  3738. </div>
  3739. <div class="a_add_body">
  3740. <div class="a_add_input" style="flex-direction: column;">
  3741. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  3742. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  3743. <div style="margin-right: 10px">
  3744. 选项{{ checkIndex + 1 }}
  3745. </div>
  3746. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  3747. " placeholder="请输入选项" style="width: 300px" @change="() => { $forceUpdate() }"></textarea>
  3748. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  3749. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  3750. </div>
  3751. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  3752. </div>
  3753. <div class="a_add_body_div">
  3754. <el-button type="primary" size="small"
  3755. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  3756. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  3757. v-if="askJson.askJson[index1].askItem != 1">删除
  3758. </el-button>
  3759. </div>
  3760. </div>
  3761. </div>
  3762. <!-- <div class="a_add_body_div">
  3763. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  3764. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  3765. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  3766. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  3767. </el-button>
  3768. </div> -->
  3769. </div>
  3770. </div>
  3771. </div>
  3772. </div>
  3773. <span slot="footer" class="dialog-footer">
  3774. <el-button @click="closePan(4)">取 消</el-button>
  3775. <el-button type="primary" @click="addAsk">确 定</el-button>
  3776. </span>
  3777. </el-dialog>
  3778. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  3779. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  3780. <div style="height:100%">
  3781. <!-- <div class="a_add_title" style="
  3782. display: flex;
  3783. flex-direction: row;
  3784. align-items: center;
  3785. justify-content: center;
  3786. ">
  3787. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3788. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3789. </div> -->
  3790. <div class="a_addBox" style="height:100%">
  3791. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  3792. <!-- 请输入题目内容 -->
  3793. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  3794. v-if="isPasteChoice">智能粘贴</button>
  3795. </div>
  3796. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3797. <div class="a_add_checkType">
  3798. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  3799. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  3800. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  3801. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  3802. </div>
  3803. <div class="a_add_head">
  3804. <div class="timuUpImg">
  3805. <div style="display: flex;align-items: center;">
  3806. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  3807. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  3808. placeholder="请输入题目">
  3809. </el-input> -->
  3810. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  3811. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  3812. @change="() => { $forceUpdate() }"></textarea>
  3813. </div>
  3814. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  3815. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  3816. </div>
  3817. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  3818. </div>
  3819. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  3820. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3821. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  3822. </div>
  3823. </div>
  3824. <div class="a_add_head_div">
  3825. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  3826. </el-button>
  3827. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  3828. </div>
  3829. </div>
  3830. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  3831. testJson.testJson[index1].timuList.length
  3832. ">
  3833. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3834. @click.stop="previewImg(timg.src)">
  3835. <img :src="timg.src" alt="" />
  3836. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  3837. <img src="../../../assets/icon/delete.png" alt="" />
  3838. </div>
  3839. </div>
  3840. </div>
  3841. <div class="a_add_body">
  3842. <div class="a_add_input a_add_input_choice">
  3843. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  3844. @change="() => { $forceUpdate() }">
  3845. <div class="radioBox">
  3846. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3847. .testItem" :key="checkIndex" :label="checkIndex">
  3848. <div style="margin-right: 10px">
  3849. 选项{{ checkIndex + 1 }}
  3850. </div>
  3851. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  3852. testJson.testJson[index1].checkList[checkIndex]
  3853. .imgType &&
  3854. testJson.testJson[index1].checkList[checkIndex]
  3855. .imgType == 1
  3856. ">
  3857. <div class="inImg" @click.stop="
  3858. previewImg(
  3859. testJson.testJson[index1].checkList[checkIndex]
  3860. .src
  3861. )
  3862. ">
  3863. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  3864. .src
  3865. " lazy />
  3866. <!-- <img :src="
  3867. testJson.testJson[index1].checkList[checkIndex]
  3868. .src
  3869. " alt="" /> -->
  3870. </div>
  3871. </div>
  3872. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  3873. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3874. @change="() => { $forceUpdate() }"></textarea>
  3875. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3876. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  3877. </div>
  3878. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  3879. </div>
  3880. <div class="xzUpImg" @click.stop="addImg($event)">
  3881. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3882. <input type="file" accept="image/*" style="display: none"
  3883. @change="beforeUploadTi($event, index1, checkIndex)" />
  3884. </div>
  3885. <div class="a_add_body_div">
  3886. <el-button type="primary" size="small"
  3887. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  3888. <el-button type="primary" size="small"
  3889. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  3890. v-if="testJson.testJson[index1].testItem != 1">删除
  3891. </el-button>
  3892. </div>
  3893. </el-radio>
  3894. </div>
  3895. </el-radio-group>
  3896. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  3897. @change="() => { $forceUpdate() }">
  3898. <div class="radioBox">
  3899. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  3900. .testItem" :key="checkIndex1" :label="checkIndex1">
  3901. <div style="margin-right: 10px">
  3902. 选项{{ checkIndex1 + 1 }}
  3903. </div>
  3904. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  3905. testJson.testJson[index1].checkList[checkIndex1]
  3906. .imgType &&
  3907. testJson.testJson[index1].checkList[checkIndex1]
  3908. .imgType == 1
  3909. ">
  3910. <div class="inImg" @click.stop="
  3911. previewImg(
  3912. testJson.testJson[index1].checkList[checkIndex1]
  3913. .src
  3914. )
  3915. ">
  3916. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  3917. .src
  3918. " lazy />
  3919. <!-- <img :src="
  3920. testJson.testJson[index1].checkList[checkIndex1]
  3921. .src
  3922. " alt="" /> -->
  3923. </div>
  3924. </div>
  3925. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  3926. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3927. @change="() => { $forceUpdate() }"></textarea>
  3928. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3929. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  3930. </div>
  3931. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  3932. </div>
  3933. <div class="xzUpImg" @click.stop="addImg($event)">
  3934. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3935. <input type="file" accept="image/*" style="display: none"
  3936. @change="beforeUploadTi($event, index1, checkIndex1)" />
  3937. </div>
  3938. <div class="a_add_body_div">
  3939. <el-button type="primary" size="small"
  3940. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  3941. <el-button type="primary" size="small"
  3942. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  3943. v-if="testJson.testJson[index1].testItem != 1">删除
  3944. </el-button>
  3945. </div>
  3946. </el-checkbox>
  3947. </div>
  3948. </el-checkbox-group>
  3949. </div>
  3950. <!-- <div class="a_add_body_div">
  3951. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  3952. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  3953. v-if="testJson.testJson[index1].testItem != 1">删除
  3954. </el-button>
  3955. </div> -->
  3956. </div>
  3957. </div>
  3958. </div>
  3959. </div>
  3960. <span slot="footer" class="dialog-footer">
  3961. <el-button @click="closePan(45)">取 消</el-button>
  3962. <el-button type="primary" @click="addTest">确 定</el-button>
  3963. </span>
  3964. </el-dialog>
  3965. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  3966. :before-close="handleClose" class="dialog_diy addToolsDia">
  3967. <div class="toolChoose" style="padding: 0 0 0 30px">
  3968. <div class="tools">
  3969. <div class="leftTools" style="
  3970. width: 95%;
  3971. padding: 0 0 15px 0;
  3972. margin: 15px 0;
  3973. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  3974. <div style="
  3975. display: flex;
  3976. flex-direction: row;
  3977. align-items: baseline;
  3978. flex-wrap: nowrap;
  3979. justify-content: flex-start;
  3980. position: relative;
  3981. ">
  3982. <div class="chooseWho">
  3983. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  3984. 互动类
  3985. </div>
  3986. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  3987. 思维类
  3988. </div>
  3989. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3990. 评价类
  3991. </div>
  3992. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3993. 其他
  3994. </div>
  3995. </div>
  3996. </div>
  3997. <div style="min-height: 163px">
  3998. <div class="toolSort" v-if="chapToolsType == 0">
  3999. <div class="tool">
  4000. <div class="whiteBIcon" @click="chapAddTools(8)">
  4001. <img src="../../../assets/icon/secondToolList/library.png" alt />
  4002. <div style="margin: 5px 0">素材库</div>
  4003. </div>
  4004. <div class="check" @click="chapAddTools(8)">
  4005. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  4006. <div class="checkDiv" v-else>
  4007. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4008. </div>
  4009. </div>
  4010. </div>
  4011. </div>
  4012. <div class="toolSort" v-if="chapToolsType == 1">
  4013. <div class="tool">
  4014. <div class="whiteBIcon" @click="chapAddTools(7)">
  4015. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  4016. <div style="margin: 5px 0">思维网格</div>
  4017. </div>
  4018. <div class="check" @click="chapAddTools(7)">
  4019. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  4020. <div class="checkDiv" v-else>
  4021. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4022. </div>
  4023. </div>
  4024. </div>
  4025. <div class="tool">
  4026. <div class="whiteBIcon" @click="chapAddTools(1)">
  4027. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  4028. <div style="margin: 5px 0">电子白板</div>
  4029. </div>
  4030. <div class="check" @click="chapAddTools(1)">
  4031. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  4032. <div class="checkDiv" v-else>
  4033. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4034. </div>
  4035. </div>
  4036. </div>
  4037. <div class="tool">
  4038. <div class="whiteBIcon" @click="chapAddTools(2)">
  4039. <img src="../../../assets/icon/secondToolList/note.png" alt />
  4040. <div style="margin: 5px 0">便签</div>
  4041. </div>
  4042. <div class="check" @click="chapAddTools(2)">
  4043. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  4044. <div class="checkDiv" v-else>
  4045. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4046. </div>
  4047. </div>
  4048. </div>
  4049. <div class="tool">
  4050. <div class="whiteBIcon" @click="chapAddTools(6)">
  4051. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  4052. <div style="margin: 5px 0">协同文档</div>
  4053. </div>
  4054. <div class="check" @click="chapAddTools(6)">
  4055. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  4056. <div class="checkDiv" v-else>
  4057. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4058. </div>
  4059. </div>
  4060. </div>
  4061. <div class="tool">
  4062. <div class="whiteBIcon" @click="chapAddTools(3)">
  4063. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  4064. <div style="margin: 5px 0">思维导图</div>
  4065. </div>
  4066. <div class="check" @click="chapAddTools(3)">
  4067. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  4068. <div class="checkDiv" v-else>
  4069. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4070. </div>
  4071. </div>
  4072. </div>
  4073. <div class="tool">
  4074. <div class="whiteBIcon" @click="chapAddTools(31)">
  4075. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  4076. <div style="margin: 5px 0">数学画板</div>
  4077. </div>
  4078. <div class="check" @click="chapAddTools(31)">
  4079. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  4080. <div class="checkDiv" v-else>
  4081. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4082. </div>
  4083. </div>
  4084. </div>
  4085. </div>
  4086. <div class="toolSort" v-if="chapToolsType == 2">
  4087. <div class="tool">
  4088. <div class="whiteBIcon" @click="chapAddTools(5)">
  4089. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  4090. <div style="margin: 5px 0">量规评分</div>
  4091. </div>
  4092. <div class="check" @click="chapAddTools(5)">
  4093. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  4094. <div class="checkDiv" v-else>
  4095. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4096. </div>
  4097. </div>
  4098. </div>
  4099. <div class="tool">
  4100. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  4101. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  4102. <div style="margin: 5px 0">问卷调查</div>
  4103. </div>
  4104. <div class="check" @click="chapAddTools(4)">
  4105. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  4106. <div class="checkDiv" v-else>
  4107. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4108. </div>
  4109. </div>
  4110. </div>
  4111. </div>
  4112. </div>
  4113. <div>
  4114. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  4115. v-model="itemTools.toolDetail" />
  4116. </div>
  4117. </div>
  4118. </div>
  4119. </div>
  4120. <span slot="footer" class="dialog-footer">
  4121. <el-button @click="dialogVisible4 = false">取 消</el-button>
  4122. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  4123. </span>
  4124. </el-dialog>
  4125. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  4126. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  4127. <div>
  4128. <div class="a_add_title" style="
  4129. display: flex;
  4130. flex-direction: column;
  4131. align-items: flex-start;
  4132. justify-content: center;
  4133. ">
  4134. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4135. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  4136. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  4137. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  4138. </div>
  4139. </div>
  4140. <span slot="footer" class="dialog-footer">
  4141. <el-button @click="closePan(15)">取 消</el-button>
  4142. <el-button type="primary" @click="addAnswer">确 定</el-button>
  4143. </span>
  4144. </el-dialog>
  4145. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  4146. :before-close="handleClose" class="dialog_diy">
  4147. <div>
  4148. <div class="a_add_title" style="
  4149. display: flex;
  4150. flex-direction: column;
  4151. align-items: flex-start;
  4152. justify-content: center;
  4153. ">
  4154. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4155. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  4156. </div>
  4157. </div>
  4158. <span slot="footer" class="dialog-footer">
  4159. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  4160. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  4161. </span>
  4162. </el-dialog>
  4163. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  4164. :before-close="handleClose" class="dialog_diy">
  4165. <div>
  4166. <div class="fileCss" style="padding-top: 20px">
  4167. <div>
  4168. <button class="info_btn" @click="addImg($event)">
  4169. 选择本地文件
  4170. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  4171. </button>
  4172. <div class="spanName">选择本地文件</div>
  4173. </div>
  4174. <div>
  4175. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  4176. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  4177. <img :src="cover[0].url" alt="" />
  4178. <div class="deletePic" @click="deleteSysPic">
  4179. <img src="../../../assets/icon/delete.png" alt="" />
  4180. </div>
  4181. </div>
  4182. <div class="spanName">选择系统文件</div>
  4183. </div>
  4184. <div>
  4185. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  4186. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  4187. <img :src="cover[0].url" alt="" />
  4188. <div class="deletePic" @click="deleteSysPic">
  4189. <img src="../../../assets/icon/delete.png" alt="" />
  4190. </div>
  4191. </div>
  4192. <div class="spanName">选择网络文件</div>
  4193. </div>
  4194. </div>
  4195. <!-- <div class="fileCss">
  4196. <div>选择本地文件</div>
  4197. <div>选择系统文件</div>
  4198. </div> -->
  4199. </div>
  4200. <span slot="footer" class="dialog-footer">
  4201. <el-button @click="choosePicVisible = false">取 消</el-button>
  4202. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  4203. </span>
  4204. </el-dialog>
  4205. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  4206. :before-close="handleClose" class="dialog_diy">
  4207. <div class="cru_selectBox" style="margin: 0">
  4208. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  4209. 绘画
  4210. </div>
  4211. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  4212. 科技
  4213. </div>
  4214. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  4215. 人文
  4216. </div>
  4217. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  4218. 艺术
  4219. </div>
  4220. </div>
  4221. <div class="sysPicBox">
  4222. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  4223. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  4224. </div>
  4225. </div>
  4226. </el-dialog>
  4227. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  4228. :before-close="handleClose" class="dialog_diy">
  4229. <div>
  4230. <div class="people_top_right" style="display: flex;align-items: center;">
  4231. <div style="position: relative; width: 100%;">
  4232. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  4233. @keyup.enter.native="resetImage()"></el-input>
  4234. <div class="search_img" @click="resetImage" style="right: 10px;">
  4235. <img src="../../../assets/icon/search.png" alt />
  4236. </div>
  4237. </div>
  4238. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  4239. </div>
  4240. <div class="sysPicBox" v-loading="imageloading">
  4241. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  4242. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  4243. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  4244. </div>
  4245. </div>
  4246. </div>
  4247. </el-dialog>
  4248. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  4249. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  4250. <div v-if="selectJson" style="height:100%">
  4251. <div class="select_box1" v-if="selectSteps == 1">
  4252. <div class="select_box1_img">
  4253. <div class="select_box1_title">
  4254. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  4255. </div>
  4256. <div class="select_box1_add_img">
  4257. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  4258. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  4259. <img src="../../../assets/icon/addPoster.png" alt="" />
  4260. </div>
  4261. <div class="isSysPic" v-else>
  4262. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4263. <div class="deletePic" @click="deleteSelectPic">
  4264. <img src="../../../assets/icon/delete.png" alt="" />
  4265. </div>
  4266. </div>
  4267. </div>
  4268. </div>
  4269. <div class="select_box1_select">
  4270. <div class="select_box1_title">
  4271. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  4272. </div>
  4273. <div class="select_box1_select_box">
  4274. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  4275. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  4276. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  4277. <div class="select_box1_select_box_add">
  4278. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  4279. 添加</el-button>
  4280. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  4281. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  4282. </div>
  4283. </div>
  4284. </div>
  4285. </div>
  4286. <div v-if="selectSteps == 2" style="height:100%">
  4287. <div class="select_box2">
  4288. <div class="select_box2_title">设置每道题目的正确选项</div>
  4289. <div class="select_box2_box">
  4290. <div class="select_box2_img">
  4291. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4292. </div>
  4293. <div class="select_box2_answer">
  4294. <div class="select_answer_title">根据题目选择对应答案</div>
  4295. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4296. <span>{{ checkIndex + 1 }}、</span>
  4297. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  4298. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4299. </el-option>
  4300. </el-select>
  4301. </div>
  4302. </div>
  4303. </div>
  4304. </div>
  4305. </div>
  4306. </div>
  4307. <span slot="footer" class="dialog-footer">
  4308. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  4309. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  4310. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  4311. </span>
  4312. </el-dialog>
  4313. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  4314. :before-close="handleClose" class="dialog_diy">
  4315. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  4316. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  4317. <div class="pjCss" style="width: 100%">
  4318. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  4319. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  4320. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  4321. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  4322. <div class="remove" @click="deletRateList(eIndex)"></div>
  4323. <div style="width: 100%; display: flex">
  4324. <span style="min-width: 100px; text-align: right">评星等级:</span>
  4325. <el-rate v-model="eItem.score" disabled></el-rate>
  4326. </div>
  4327. <div class="elist_inptu_text" style="align-items: flex-start">
  4328. <span style="min-width: 100px; text-align: right">描述:</span>
  4329. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  4330. </div>
  4331. </div>
  4332. </div>
  4333. <div class="addToolFun" @click="addRateList()">
  4334. <div class="addToolImg">
  4335. <img src="../../../assets/icon/add.png" alt />
  4336. </div>
  4337. <div>添加</div>
  4338. </div>
  4339. </div>
  4340. </div>
  4341. <span slot="footer" class="dialog-footer">
  4342. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  4343. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  4344. </span>
  4345. </el-dialog>
  4346. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  4347. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  4348. <div style="height: 100%;">
  4349. <div class="sentenBox" style="height: 100%;">
  4350. <div class="addSen" @click="addSt">添加题目</div>
  4351. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  4352. <div class="sentenTopBox">
  4353. <div class="sentenTop" :index="stIndex + 1">
  4354. <div>题目设置</div>
  4355. <div>
  4356. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  4357. </div>
  4358. <div @click="addSen(stIndex)">添加</div>
  4359. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  4360. </div>
  4361. </div>
  4362. <div class="cardList">
  4363. <div v-if="st.addSentence.length > 0" class="cardBox">
  4364. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  4365. @click="setRightAnswer(s, stIndex, sIndex)">
  4366. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4367. <div>{{ s }}</div>
  4368. </el-tooltip>
  4369. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  4370. <img src="../../../assets/icon/delete.png" alt="" />
  4371. </div>
  4372. </div>
  4373. </div>
  4374. <div class="card">
  4375. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  4376. </div>
  4377. </div>
  4378. <div class="rightCardBox">
  4379. <div>正确顺序</div>
  4380. <div class="rightCardList">
  4381. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  4382. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  4383. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  4384. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4385. <div>{{ r }}</div>
  4386. </el-tooltip>
  4387. </div>
  4388. <div>{{ rIndex + 1 }}</div>
  4389. </div>
  4390. </div>
  4391. <div class="card" v-if="st.rightAnswer.length == 0">
  4392. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  4393. </div>
  4394. <div class="card" v-else>
  4395. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  4396. </div>
  4397. </div>
  4398. </div>
  4399. </div>
  4400. </div>
  4401. </div>
  4402. <span slot="footer" class="dialog-footer">
  4403. <el-button @click="closePan(47)">取 消</el-button>
  4404. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  4405. </span>
  4406. </el-dialog>
  4407. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4408. :before-close="handleClose" class="dialog_diy">
  4409. <el-form>
  4410. <!-- <el-form-item label="文本标题">
  4411. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4412. </el-form-item> -->
  4413. <div>表格内容</div>
  4414. <Table v-model="tableJson.text" @change="change"></Table>
  4415. </el-form>
  4416. <span slot="footer" class="dialog-footer">
  4417. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4418. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  4419. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  4420. </span>
  4421. </el-dialog>
  4422. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  4423. :before-close="handleClose" class="dialog_diy">
  4424. <el-form>
  4425. <!-- <el-form-item label="文本标题">
  4426. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4427. </el-form-item> -->
  4428. <div>文档内容</div>
  4429. <editor-bar v-model="wordJson.text"></editor-bar>
  4430. </el-form>
  4431. <span slot="footer" class="dialog-footer">
  4432. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  4433. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  4434. </span>
  4435. </el-dialog>
  4436. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  4437. :before-close="handleClose" class="dialog_diy">
  4438. <div style="
  4439. width: 100%;
  4440. display: flex;
  4441. flex-direction: row;
  4442. flex-wrap: nowrap;
  4443. align-items: center;
  4444. justify-content: center;
  4445. ">
  4446. <div>班级:</div>
  4447. <el-select multiple v-model="uploadJson" placeholder="请选择">
  4448. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  4449. </el-option>
  4450. </el-select>
  4451. </div>
  4452. <span slot="footer" class="dialog-footer">
  4453. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  4454. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  4455. </span>
  4456. </el-dialog>
  4457. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  4458. :before-close="handleClose" class="dialog_diy">
  4459. <div style="
  4460. width: 100%;
  4461. display: flex;
  4462. flex-direction: row;
  4463. flex-wrap: nowrap;
  4464. align-items: center;
  4465. justify-content: center;
  4466. ">
  4467. <div>随机码:</div>
  4468. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  4469. </div>
  4470. <span slot="footer" class="dialog-footer">
  4471. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  4472. <el-button type="primary" @click="addInvite">确定</el-button>
  4473. </span>
  4474. </el-dialog>
  4475. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  4476. :before-close="handleClose" class="dialog_diy">
  4477. <div>
  4478. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  4479. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  4480. </div>
  4481. <span slot="footer" class="dialog-footer">
  4482. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  4483. <el-button type="primary" @click="addPreTime">确定</el-button>
  4484. </span>
  4485. </el-dialog>
  4486. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  4487. class="dialog_diy">
  4488. <div>
  4489. <div style="
  4490. width: 100%;
  4491. display: flex;
  4492. flex-direction: row;
  4493. flex-wrap: nowrap;
  4494. align-content: center;
  4495. align-items: center;
  4496. justify-content: space-between;
  4497. ">
  4498. <div style="
  4499. display: flex;
  4500. flex-flow: row nowrap;
  4501. align-items: flex-start;
  4502. width: 100%;
  4503. flex-direction: column;
  4504. flex-wrap: nowrap;
  4505. position: relative;
  4506. ">
  4507. <div class="e_box">
  4508. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  4509. <div class="e_card_picture">
  4510. <img src="../../../assets/e_picture.png" />
  4511. </div>
  4512. <div class="e_card_name">
  4513. <span>{{ item.title }}</span>
  4514. </div>
  4515. <div class="e_card_btn">
  4516. <span @click="checkEva(item.id, 2)">导入</span>
  4517. </div>
  4518. </div>
  4519. <div class="addEva" @click="openT">
  4520. <img src="../../../assets/icon/addEva.png" alt="" />
  4521. </div>
  4522. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  4523. 暂无数据
  4524. </div>
  4525. </div>
  4526. </div>
  4527. </div>
  4528. </div>
  4529. <span slot="footer" class="dialog-footer">
  4530. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  4531. </span>
  4532. </el-dialog>
  4533. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  4534. :before-close="handleClose" class="dialog_diy">
  4535. <div class="groupBox">
  4536. <div v-if="groupJson.group" class="groupContent">
  4537. <div class="groupTitle">请设置小组数量及名称</div>
  4538. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  4539. <span class="groupn">第{{ index + 1 }}组名称:</span>
  4540. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4541. <div class="groupBtn">
  4542. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  4543. 添加</el-button>
  4544. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4545. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  4546. </div>
  4547. </div>
  4548. </div>
  4549. <div class="groupContent">
  4550. <div class="groupTitle">请设置每组人数</div>
  4551. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4552. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4553. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  4554. @change="numberPan"></el-input>
  4555. </div>
  4556. </div>
  4557. <span slot="footer" class="dialog-footer">
  4558. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  4559. <el-button type="primary" @click="addGroupJson">确定</el-button>
  4560. </span>
  4561. </el-dialog>
  4562. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  4563. :before-close="handleClose" class="dialog_diy">
  4564. <div style="
  4565. width: 100%;
  4566. display: flex;
  4567. flex-direction: row;
  4568. flex-wrap: nowrap;
  4569. align-items: center;
  4570. justify-content: center;
  4571. ">
  4572. <div style="min-width: fit-content;">文件名称:</div>
  4573. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  4574. </div>
  4575. <span slot="footer" class="dialog-footer">
  4576. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  4577. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  4578. </span>
  4579. </el-dialog>
  4580. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px"
  4581. :before-close="(done) => { closePan(69) }" class="dialog_diy fullStyle">
  4582. <englishRight @setEngList="setEnglishList" :englishList="englishList"></englishRight>
  4583. <span slot="footer" class="dialog-footer">
  4584. <el-button @click="englishDialogVisible = false">取 消</el-button>
  4585. <el-button type="primary" @click="addEnglish">确 定</el-button>
  4586. </span>
  4587. </el-dialog>
  4588. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  4589. </div>
  4590. </template>
  4591. <script>
  4592. import "../../../common/aws-sdk-2.235.1.min.js";
  4593. import { tools as toolsData } from "../../../common/tools.js";
  4594. import $ from "jquery";
  4595. import EditorBar from "../../../components/tools/wangEnduit";
  4596. import Table from "../../../components/tools/table";
  4597. import Mind from "../../tools/jsmind2";
  4598. import Time from "../../tools/time.vue";
  4599. import Sunburst from "../../tools/sunburst";
  4600. import SeeBoard from "../../tools/seeBoard";
  4601. import weilaiData from "../components/weilai.js";
  4602. import sourceDialog from "../teacherSource/dialog.vue";
  4603. import interVideo from "../interVideo/index.vue";
  4604. import englishRight from "./commpont/englishRight.vue";
  4605. export default {
  4606. components: {
  4607. EditorBar,
  4608. Mind,
  4609. Time,
  4610. Sunburst,
  4611. SeeBoard,
  4612. Table,
  4613. sourceDialog,
  4614. interVideo,
  4615. englishRight,
  4616. },
  4617. data() {
  4618. return {
  4619. checkAll: false,
  4620. chooseType: 1,
  4621. checkedCities: [],
  4622. isIndeterminate: true,
  4623. isSysPic: false,
  4624. isSysPic2: false,
  4625. steps: 1,
  4626. nbOrder: 0,
  4627. courseId: "",
  4628. chapToolsType: 0,
  4629. chapTools: [
  4630. {
  4631. tools: [],
  4632. toolDetail: "",
  4633. },
  4634. ],
  4635. line: "",
  4636. lineTitle: "",
  4637. sysPic: [],
  4638. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  4639. sentenceList2: [],
  4640. isPushTitleList: [],
  4641. lineCount: 0,
  4642. lineType: 0,
  4643. chapCount: 0,
  4644. courseName: "",
  4645. isTeacherSee: false,
  4646. courseText: "",
  4647. preTime: 0,
  4648. formLabelWidth: "100px",
  4649. choosePicVisible: false,
  4650. sysPicVisible: false,
  4651. uploadLoading1: false,
  4652. noneBtnImg: false,
  4653. updateBoolean2: false,
  4654. unitIndex: 0,
  4655. taskCount: 0,
  4656. dialogVisible: false,
  4657. dialogVisible1: false,
  4658. dialogVisible2: false,
  4659. dialogVisible3: false,
  4660. dialogVisible4: false,
  4661. dialogVisible5: false,
  4662. dialogVisible6: false,
  4663. dialogVisible7: false,
  4664. dialogVisible8: false,
  4665. dialogVisible9: false,
  4666. dialogVisibleClass: false,
  4667. dialogVisibleMember: false,
  4668. dialogVisibleMp3: false,
  4669. dialogVisibleSelect: false,
  4670. dialogVisibleSentence: false,
  4671. dialogVisibleRate: false,
  4672. dialogVisibleChoice: false,
  4673. dialogVisiblemb: false,
  4674. dialogVisibleInvite: false,
  4675. dialogVisibleSource: false,
  4676. dialogVisibleVideo: false,
  4677. dialogVisibleupdataVideoT: false,
  4678. isClickColor: 1,
  4679. toolIndexType: "",
  4680. publicTool: 0,
  4681. searchPeople: "",
  4682. searchTN: "",
  4683. userid: this.$route.query.userid,
  4684. oid: this.$route.query.oid,
  4685. org: this.$route.query.org,
  4686. role: this.$route.query.role,
  4687. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  4688. dialogVisibleTable: false,
  4689. dialogVisibleWord: false,
  4690. tableJson: { text: "" },
  4691. wordJson: { text: "" },
  4692. dialogVisibleMoreUpload: false,
  4693. dialogVisiblePreTime: false,
  4694. englishDialogVisible: false,
  4695. uploadJson: [],
  4696. classJuri: [],
  4697. gradeList: [],
  4698. cover: [], //课程封面
  4699. myWord: [],
  4700. evaJuri: [],
  4701. evalua: "",
  4702. targetArray: [],
  4703. eTitle: "",
  4704. eJson: {},
  4705. fid: "", //一级
  4706. sid: "", //二级
  4707. tid: "", //二级
  4708. typeMode: 1,
  4709. eJSONNum: 0,
  4710. data: {
  4711. meta: {
  4712. name: "example",
  4713. author: "dd@163.com",
  4714. version: "0.2",
  4715. },
  4716. format: "node_array",
  4717. data: [{ id: "root", isroot: true, topic: "" }],
  4718. },
  4719. askJson: {
  4720. askCount: 1,
  4721. askTitle: "",
  4722. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4723. },
  4724. askJson2: {},
  4725. testJson: {},
  4726. testJson2: {},
  4727. selectJson: {},
  4728. selectJson2: {},
  4729. englishList:{},
  4730. rateJson: [],
  4731. unitJson2: [],
  4732. unitJson: [
  4733. {
  4734. dyName: "", //单元标题
  4735. chapterInfo: [
  4736. {
  4737. isread: false,
  4738. chapterid: this.guid(),
  4739. title: "",
  4740. courseName: "",
  4741. taskJson: [
  4742. {
  4743. task: "",
  4744. taskDetail: "",
  4745. chapterData: [],
  4746. toolChoose: [
  4747. {
  4748. tool: [],
  4749. toolDetail: "",
  4750. toolType: 0,
  4751. askCount: 1,
  4752. askTitle: "",
  4753. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4754. },
  4755. ],
  4756. toolText: "",
  4757. isShowTools: false,
  4758. askCount: 1,
  4759. isFold: 0,
  4760. askTitle: "",
  4761. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4762. checkJson: [{ checkCount: [], checkPerent: [] }],
  4763. homeworkList: [],
  4764. },
  4765. ],
  4766. itemCount: 1,
  4767. fileList1: [],
  4768. video: [],
  4769. testData: [],
  4770. pData: [],
  4771. templateArray: [],
  4772. },
  4773. ],
  4774. },
  4775. ],
  4776. studentJuri: [],
  4777. teacherJuri: [],
  4778. checkboxList: [],
  4779. checkboxList2: [],
  4780. checkboxList3: [],
  4781. classSearch: "",
  4782. gradeId: "",
  4783. number: "",
  4784. tTitle: "",
  4785. tdetail: "",
  4786. templateC: {},
  4787. AttText: {},
  4788. AttTextType: 0,
  4789. AttTextIndex: 0,
  4790. cTemplate: "",
  4791. CourseType: [],
  4792. CourseType2: [],
  4793. CourseTypeJson: {},
  4794. courseTypeId: [],
  4795. courseTypeSon: [],
  4796. clearArray: [],
  4797. pTypeCheck: [],
  4798. pTypeCheckName: [],
  4799. loading: false,
  4800. toolType: 0,
  4801. inputShow: true,
  4802. inputShow2: true,
  4803. toolIndex: 0,
  4804. cidType: 0,
  4805. answerQ: "",
  4806. answerQ2: "",
  4807. grade: [],
  4808. grade2: [],
  4809. courseUserid: "",
  4810. timer: null,
  4811. timer2: null,
  4812. pasteTimer: null,
  4813. checkId: "",
  4814. isDelete: 1,
  4815. addindex: 0,
  4816. selectSteps: 1,
  4817. groupJson: {},
  4818. dialogVisibleGroup: false,
  4819. rightBoxHeight: 0,
  4820. ManAarray: [],
  4821. checkBoolean: false,
  4822. inviteCode: [],
  4823. inviteId: "",
  4824. icode: "",
  4825. easyArray: [2, 4],
  4826. sourceData: {},
  4827. updateSourcePan: false,
  4828. videoJson: {},
  4829. isBtnDisplay: false,
  4830. isPasteTask: false,
  4831. isPasteChoice: false,
  4832. sysPicVisible2: false,
  4833. imageloading: false,
  4834. searchImageValue: "",
  4835. ppage: 1,
  4836. imageList: [],
  4837. heightPx: '100%',
  4838. toolsData: toolsData,
  4839. oldIndex: 0,
  4840. oldData: null,
  4841. newIndex: "",
  4842. typeIndex: "",
  4843. };
  4844. },
  4845. directives: {
  4846. autoHeight: {
  4847. update(el, binding) {
  4848. const { value } = binding
  4849. if (value && typeof value === 'number') {
  4850. el.style.height = `${value}px`
  4851. } else {
  4852. el.style.height = 'auto'
  4853. }
  4854. },
  4855. componentUpdated(el) {
  4856. el.style.height = `${el.scrollHeight + 5}px`
  4857. },
  4858. },
  4859. },
  4860. computed: {
  4861. // rightBoxHeight: function () {
  4862. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  4863. // },
  4864. offsetLetfPx: function () {
  4865. //addnum可以直接在模板语法里面用,相当于data内的值
  4866. return (
  4867. $(".cru_select")[this.unitIndex] &&
  4868. $(".cru_select")[this.unitIndex].offsetLeft
  4869. );
  4870. },
  4871. getMan2() {
  4872. return function (people) {
  4873. let _people = people;
  4874. let _people2 = "";
  4875. if (this.ManAarray.length) {
  4876. for (var i = 0; i < this.ManAarray.length; i++) {
  4877. if (this.ManAarray[i].userid == people) {
  4878. _people2 = this.ManAarray[i].name;
  4879. break;
  4880. }
  4881. }
  4882. }
  4883. if (people == this.courseUserid) {
  4884. return "";
  4885. }
  4886. return this.ManAarray.length ? _people2 : "";
  4887. };
  4888. },
  4889. isInvite() {
  4890. return function (cid) {
  4891. let array = [];
  4892. for (var i = 0; i < this.inviteCode.length; i++) {
  4893. array.push(this.inviteCode[i].cid);
  4894. }
  4895. return array.indexOf(cid) != -1;
  4896. };
  4897. },
  4898. getInviteCodeC() {
  4899. return function (cid) {
  4900. let array = [];
  4901. for (var i = 0; i < this.inviteCode.length; i++) {
  4902. array.push(this.inviteCode[i].cid);
  4903. }
  4904. return this.inviteCode[array.indexOf(cid)].ic;
  4905. };
  4906. },
  4907. getClassC() {
  4908. return function (c) {
  4909. let _c2 = "";
  4910. if (this.grade.length) {
  4911. for (var i = 0; i < this.grade.length; i++) {
  4912. if (this.grade[i].id == c) {
  4913. _c2 = this.grade[i].name;
  4914. break;
  4915. }
  4916. }
  4917. }
  4918. return this.grade.length ? _c2 : "";
  4919. };
  4920. },
  4921. getListClassC() {
  4922. return function (list) {
  4923. let _c2 = [];
  4924. if (this.grade.length) {
  4925. for (var j = 0; j < list.length; j++) {
  4926. let c = list[j]
  4927. for (var i = 0; i < this.grade.length; i++) {
  4928. if (this.grade[i].id == c) {
  4929. _c2.push(this.grade[i].name);
  4930. break;
  4931. }
  4932. }
  4933. }
  4934. }
  4935. return this.grade.length ? _c2.join('、') : "";
  4936. };
  4937. },
  4938. },
  4939. watch: {
  4940. unitIndex(newValue, oldValue) {
  4941. if (this.isDelete == 2) {
  4942. this.isDelete = 1;
  4943. return;
  4944. }
  4945. if (this.cid != "") {
  4946. let _unitIndex = oldValue;
  4947. if (
  4948. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4949. JSON.stringify(this.unitJson[_unitIndex])
  4950. ) {
  4951. this.$refs.rightboxR.scrollTop = 0;
  4952. return;
  4953. }
  4954. let cPan = 1;
  4955. for (
  4956. var j = 0;
  4957. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4958. j++
  4959. ) {
  4960. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4961. j
  4962. ].proVisible = false;
  4963. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4964. j
  4965. ].proVisible2 = false;
  4966. if (
  4967. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4968. .length > 1
  4969. ) {
  4970. for (
  4971. var z = 0;
  4972. z <
  4973. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4974. .length;
  4975. z++
  4976. ) {
  4977. if (
  4978. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4979. .toolChoose[z].tool.length
  4980. ) {
  4981. this.$message.error("请把工具添加完整");
  4982. cPan = 2;
  4983. break;
  4984. }
  4985. }
  4986. }
  4987. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4988. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4989. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4990. (ele) => {
  4991. return ele.value != "";
  4992. }
  4993. );
  4994. }
  4995. }
  4996. if (cPan == 2) {
  4997. this.unitIndex = oldValue;
  4998. return;
  4999. }
  5000. for (var i = 0; i < this.unitJson.length; i++) {
  5001. if (this.addindex != i) {
  5002. delete this.unitJson[i].isUpdate;
  5003. }
  5004. }
  5005. this.$refs.rightboxR.scrollTop = 0;
  5006. this.addindex = -1;
  5007. let params = [
  5008. {
  5009. cid: this.cid,
  5010. chapters: JSON.stringify(this.unitJson),
  5011. uid: this.userid,
  5012. unitIndex: _unitIndex,
  5013. },
  5014. ];
  5015. this.ajax
  5016. .post(this.$store.state.api + "updateWorkNew4", params)
  5017. .then((res) => {
  5018. // this.$message({
  5019. // message: "修改成功",
  5020. // type: "success",
  5021. // });
  5022. // this.courseId = this.cid;
  5023. })
  5024. .catch((err) => {
  5025. this.$message.error("网络不佳");
  5026. console.error(err);
  5027. });
  5028. }
  5029. },
  5030. steps(newValue) {
  5031. if (newValue == 4) {
  5032. this.goTo(
  5033. "/course?userid=" +
  5034. this.userid +
  5035. "&oid=" +
  5036. this.oid +
  5037. "&org=" +
  5038. this.org +
  5039. "&role=" +
  5040. this.role
  5041. );
  5042. }
  5043. },
  5044. },
  5045. methods: {
  5046. openAI() {
  5047. window.parent.postMessage({ tools: "64" }, "*");
  5048. },
  5049. setMan() {
  5050. // let teacherJuri = this.teacherJuri2;
  5051. this.ManAarray = [];
  5052. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  5053. if (_user.indexOf(this.userid) == -1) {
  5054. _user.push(this.userid);
  5055. }
  5056. if (_user.indexOf(this.courseUserid) == -1) {
  5057. _user.push(this.courseUserid);
  5058. }
  5059. let params = {
  5060. uid: _user.join(","),
  5061. };
  5062. this.ajax
  5063. .get(this.$store.state.api + "getAllUserById", params)
  5064. .then((res) => {
  5065. let teacherJuri = res.data[0];
  5066. this.ManAarray = teacherJuri;
  5067. })
  5068. .catch((err) => {
  5069. console.error(err);
  5070. });
  5071. },
  5072. previewImg(url) {
  5073. this.$hevueImgPreview(url);
  5074. },
  5075. btnDisplay(bool) {
  5076. this.isBtnDisplay = bool
  5077. },
  5078. scrollChange() {
  5079. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  5080. // document.querySelector('.course_left').scrollHeight
  5081. // document.querySelector('.stepsBottom2').scrollHeight
  5082. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  5083. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  5084. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  5085. let maxheight = $('.whiteBg')[0].offsetHeight + $('.whiteBg')[1].offsetHeight + 120
  5086. let top = $(".rightBox")[0].scrollTop - maxheight;
  5087. // if (top < client) {
  5088. // $('.stepsBottom2')[0].style.position = 'absolute'
  5089. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  5090. // // $('.stepsBottom2')[0].style.top = client + 'px'
  5091. // } else
  5092. if (top > 0) {
  5093. let top = $(".rightBox")[0].offsetTop;
  5094. $(".stepsBottom2")[0].style.position = "fixed";
  5095. $(".stepsBottom2")[0].style.top = top + "px";
  5096. this.heightPx = $(".rightBox")[0].offsetHeight - 40 + 'px'
  5097. // $('.stepsBottom2')[0].style.top = top + 'px'
  5098. } else {
  5099. $(".stepsBottom2")[0].style.position = "absolute";
  5100. $(".stepsBottom2")[0].style.top = "0px";
  5101. this.heightPx = $(".basic_box2")[0].offsetHeight - 50 + 'px'
  5102. }
  5103. const clientHeight = $(".rightBox")[0].clientHeight;
  5104. const scrollTop = $(".rightBox")[0].scrollTop;
  5105. const scrollHeight = $(".rightBox")[0].scrollHeight;
  5106. if ((clientHeight + scrollTop > (scrollHeight - 10)) && (top > 0)) {
  5107. this.heightPx = $(".rightBox")[0].offsetHeight - 130 + 'px'
  5108. }
  5109. },
  5110. addHw(e) {
  5111. var el = e.currentTarget;
  5112. el.getElementsByTagName("input")[0].click();
  5113. },
  5114. change(val) {
  5115. if (this.dialogVisible1) {
  5116. this.tdetail = val
  5117. } else if (this.dialogVisible6) {
  5118. this.AttText.text = val
  5119. } else if (this.dialogVisible2) {
  5120. this.cTemplate = val
  5121. } else if (this.dialogVisibleTable) {
  5122. this.tableJson.text = val
  5123. }
  5124. this.$forceUpdate();
  5125. console.log(val);
  5126. },
  5127. change2(val) {
  5128. console.log(val);
  5129. this.$forceUpdate();
  5130. },
  5131. handleClose(done) {
  5132. done();
  5133. },
  5134. closePan(tool) {
  5135. if (tool == 15) {
  5136. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  5137. this.dialogVisible8 = false
  5138. } else {
  5139. this.closeConfirm(tool);
  5140. }
  5141. } else if (tool == 4) {
  5142. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  5143. this.dialogVisible5 = false
  5144. } else {
  5145. this.closeConfirm(tool);
  5146. }
  5147. } else if (tool == 45) {
  5148. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  5149. this.dialogVisibleChoice = false
  5150. } else {
  5151. this.closeConfirm(tool);
  5152. }
  5153. } else if (tool == 41) {
  5154. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  5155. this.dialogVisibleSelect = false
  5156. } else {
  5157. this.closeConfirm(tool);
  5158. }
  5159. } else if (tool == 47) {
  5160. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  5161. this.dialogVisibleSentence = false
  5162. } else {
  5163. this.closeConfirm(tool);
  5164. }
  5165. }else if (tool == 69){
  5166. if (JSON.stringify(this.englishList) == JSON.stringify(this.englishList)) {
  5167. this.englishDialogVisible = false
  5168. } else {
  5169. this.closeConfirm(tool);
  5170. }
  5171. }
  5172. },
  5173. closeConfirm(tool) {
  5174. this
  5175. .$confirm("是否保存已编辑内容?", "提示", {
  5176. confirmButtonText: "保存",
  5177. cancelButtonText: "不保存",
  5178. type: "warning",
  5179. })
  5180. .then(() => {
  5181. if (tool == 15) {
  5182. this.addAnswer();
  5183. } else if (tool == 4) {
  5184. this.addAsk();
  5185. } else if (tool == 45) {
  5186. this.addTest();
  5187. } else if (tool == 41) {
  5188. this.addSelectAnswer();
  5189. } else if (tool == 47) {
  5190. this.addSentenceTool();
  5191. }else if(tool == 69){
  5192. this.addEnglish();
  5193. }
  5194. })
  5195. .catch(() => {
  5196. if (tool == 15) {
  5197. this.dialogVisible8 = false;
  5198. } else if (tool == 4) {
  5199. this.dialogVisible5 = false;
  5200. } else if (tool == 45) {
  5201. this.dialogVisibleChoice = false;
  5202. } else if (tool == 41) {
  5203. this.dialogVisibleSelect = false;
  5204. } else if (tool == 47) {
  5205. this.dialogVisibleSentence = false;
  5206. } else if (tool == 69) {
  5207. this.englishDialogVisible = false;
  5208. }
  5209. });
  5210. },
  5211. addEnglish(){
  5212. if(this.englishList.engTitle == "" || this.englishList.englishText == ""){
  5213. this.$message.error("请将内容填写完整!");
  5214. return;
  5215. }
  5216. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5217. this.taskCount
  5218. ].toolChoose[this.toolIndex].englishList = this.englishList;
  5219. this.englishList = {};
  5220. this.englishDialogVisible = false;
  5221. if (
  5222. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5223. .toolChoose[this.toolIndex].tool != 69
  5224. ) {
  5225. this.addTools(69, this.taskCount, this.toolIndex);
  5226. }
  5227. },
  5228. setEnglishList(engList){
  5229. this.englishList = engList;
  5230. },
  5231. imgChange2(i, j) {
  5232. var _tmp = this.testJson.testJson[i].checkList[j];
  5233. this.noneBtnImg = _tmp.length >= 1;
  5234. },
  5235. imgChange3(i) {
  5236. var _tmp = this.testJson.testJson[i];
  5237. this.noneBtnImg = _tmp.length >= 1;
  5238. },
  5239. imgChange1(file, fileList, type, itemTaskIndex) {
  5240. if (type == 1) {
  5241. var _tmp = this.cover;
  5242. } else if (
  5243. type == 2 ||
  5244. type == 3 ||
  5245. type == 6 ||
  5246. type == 7 ||
  5247. type == 8
  5248. ) {
  5249. var _tmp =
  5250. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5251. .chapterData;
  5252. } else if (type == 4) {
  5253. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  5254. } else {
  5255. var _tmp =
  5256. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5257. .homeworkList;
  5258. }
  5259. this.noneBtnImg = _tmp.length >= 1;
  5260. },
  5261. goTo(path) {
  5262. this.$router.push(path);
  5263. },
  5264. guid() {
  5265. var _num,
  5266. i,
  5267. _guid = "";
  5268. for (i = 0; i < 32; i++) {
  5269. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5270. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5271. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5272. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5273. _guid += "-";
  5274. }
  5275. }
  5276. return _guid;
  5277. },
  5278. lastSteps() {
  5279. this
  5280. .$confirm("是否保存已编辑内容?", "提示", {
  5281. confirmButtonText: "保存",
  5282. cancelButtonText: "不保存",
  5283. distinguishCancelAndClose: true,
  5284. type: "warning",
  5285. })
  5286. .then(() => {
  5287. if (this.cid == "" || this.cid == undefined) {
  5288. if (this.courseName == "") {
  5289. this.$message.error("请补充填写课程名称");
  5290. return;
  5291. } else {
  5292. this.addWork();
  5293. }
  5294. } else {
  5295. if (this.courseName == "") {
  5296. this.$message.error("请补充填写课程名称");
  5297. return;
  5298. } else {
  5299. if (this.userid != this.courseUserid && this.role != "1") {
  5300. this.updateWork2();
  5301. } else {
  5302. this.updateWork();
  5303. }
  5304. }
  5305. }
  5306. })
  5307. .catch((v) => {
  5308. console.log(v)
  5309. if(v == "cancel"){
  5310. this.goTo(
  5311. "/course?userid=" +
  5312. this.userid +
  5313. "&oid=" +
  5314. this.oid +
  5315. "&org=" +
  5316. this.org +
  5317. "&role=" +
  5318. this.role
  5319. );
  5320. }
  5321. });
  5322. },
  5323. nextSteps() {
  5324. if (this.cid == "" || this.cid == undefined) {
  5325. if (this.courseName == "") {
  5326. this.$message.error("请补充填写课程名称");
  5327. return;
  5328. } else {
  5329. this.addWork();
  5330. }
  5331. } else {
  5332. if (this.courseName == "") {
  5333. this.$message.error("请补充填写课程名称");
  5334. return;
  5335. } else {
  5336. if (this.userid != this.courseUserid && this.role != "1") {
  5337. this.updateWork2();
  5338. } else {
  5339. this.updateWork();
  5340. }
  5341. }
  5342. }
  5343. this.$refs.stepBox.scrollTop = 0;
  5344. },
  5345. unitSet(i) {
  5346. this.unitIndex = i;
  5347. // this.$refs.rightboxR.scrollTop = 0;
  5348. },
  5349. time() {
  5350. if (!this.now) {
  5351. this.now = new Date().getTime();
  5352. return true;
  5353. } else {
  5354. let time = new Date().getTime();
  5355. if (time - this.now > 3000) {
  5356. this.now = time;
  5357. return true;
  5358. } else {
  5359. return false;
  5360. }
  5361. }
  5362. },
  5363. deleteUnit(i) {
  5364. var _this = this;
  5365. if (_this.time()) {
  5366. _this
  5367. .$confirm("确定删除此单元吗?", "提示", {
  5368. confirmButtonText: "确定",
  5369. cancelButtonText: "取消",
  5370. type: "warning",
  5371. })
  5372. .then(() => {
  5373. _this.isDelete = 2;
  5374. // _this.unitIndex = _this.unitIndex - 1;
  5375. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  5376. // _this.$message.success("删除成功");
  5377. })
  5378. .catch(() => {
  5379. return;
  5380. });
  5381. }
  5382. },
  5383. deleteWork(chapid) {
  5384. let params = [
  5385. {
  5386. cid: this.cid,
  5387. chapters: JSON.stringify(this.unitJson),
  5388. uid: this.userid,
  5389. chapid: chapid,
  5390. },
  5391. ];
  5392. this.ajax
  5393. .post(this.$store.state.api + "deleteWork", params)
  5394. .then((res) => {
  5395. this.$message({
  5396. message: "删除成功",
  5397. type: "success",
  5398. });
  5399. this.unitJson.splice(this.unitIndex, 1);
  5400. this.unitIndex = this.unitIndex - 1;
  5401. })
  5402. .catch((err) => {
  5403. this.$message.error("网络不佳");
  5404. console.error(err);
  5405. });
  5406. },
  5407. deleteTool(itemTaskIndex, i) {
  5408. var _this = this;
  5409. if (_this.time()) {
  5410. _this
  5411. .$confirm("确定删除此工具吗?", "提示", {
  5412. confirmButtonText: "确定",
  5413. cancelButtonText: "取消",
  5414. type: "warning",
  5415. })
  5416. .then(() => {
  5417. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5418. itemTaskIndex
  5419. ].toolChoose.splice(i, 1);
  5420. _this.$message.success("删除成功");
  5421. })
  5422. .catch(() => {
  5423. return;
  5424. });
  5425. }
  5426. },
  5427. deleteSentence(i) {
  5428. var _this = this;
  5429. _this
  5430. .$confirm("确定删除此题目吗?", "提示", {
  5431. confirmButtonText: "确定",
  5432. cancelButtonText: "取消",
  5433. type: "warning",
  5434. })
  5435. .then(() => {
  5436. _this.sentenceList.splice(i, 1);
  5437. _this.$message.success("删除成功");
  5438. })
  5439. .catch(() => {
  5440. return;
  5441. });
  5442. },
  5443. deleteS(s, i, j) {
  5444. this.sentenceList[i].addSentence.splice(j, 1);
  5445. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  5446. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  5447. this.sentenceList[i].rightAnswer.splice(a, 1);
  5448. }
  5449. },
  5450. openT() {
  5451. window.parent.postMessage({ tools: "25" }, "*");
  5452. },
  5453. deleteTask(i) {
  5454. var _this = this;
  5455. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  5456. _this
  5457. .$confirm("确定删除此任务吗?", "提示", {
  5458. confirmButtonText: "确定",
  5459. cancelButtonText: "取消",
  5460. type: "warning",
  5461. })
  5462. .then(() => {
  5463. if (i == 0) {
  5464. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5465. i + 1
  5466. ].chapterData = JSON.parse(
  5467. JSON.stringify(
  5468. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  5469. .chapterData
  5470. )
  5471. );
  5472. }
  5473. _this.$forceUpdate();
  5474. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  5475. _this.$message.success("删除成功");
  5476. // this.$nextTick(() => {
  5477. // $('.stepsBottom2')[0].style.transition = 'unset'
  5478. // setTimeout(() => {
  5479. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  5480. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  5481. // let top = $('.stepsBottom2')[0].offsetTop - 20
  5482. // if (top > client) {
  5483. // $('.stepsBottom2')[0].style.top = client + 'px'
  5484. // }
  5485. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  5486. // this.$forceUpdate()
  5487. // }, 500)
  5488. // })
  5489. })
  5490. .catch(() => {
  5491. return;
  5492. });
  5493. },
  5494. handlePictureCardPreview(file) {
  5495. this.dialogImageUrl = file.url;
  5496. },
  5497. clean(i, c) {
  5498. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  5499. },
  5500. handle_remove1(file, fileList, type) {
  5501. var _tmp = this.cover;
  5502. // for (var i = 0, len = _tmp.length; i < len; i++) {
  5503. // if (_tmp[i].uid == file.uid) {
  5504. // _tmp.splice(i, 1);
  5505. // break;
  5506. // }
  5507. // this.cover = _tmp;
  5508. // }
  5509. this.cover = [];
  5510. this.noneBtnImg = this.cover.length >= 1;
  5511. this.isSysPic = false;
  5512. this.isSysPic2 = false;
  5513. this.$forceUpdate();
  5514. },
  5515. addImg(e) {
  5516. var el = e.currentTarget;
  5517. el.getElementsByTagName("input")[0].click();
  5518. e.target.value = "";
  5519. },
  5520. addChaptersTools(i) {
  5521. this.chapTools = [
  5522. {
  5523. tools: [],
  5524. toolDetail: "",
  5525. },
  5526. ];
  5527. this.chapCount = i;
  5528. this.dialogVisible4 = true;
  5529. },
  5530. isNoFinsh() {
  5531. this.$message.warning("功能正在开发中");
  5532. },
  5533. addAttText(i) {
  5534. this.AttText = {
  5535. title: "",
  5536. text: "",
  5537. };
  5538. this.taskCount = i;
  5539. this.AttTextType = 0;
  5540. this.$forceUpdate();
  5541. this.dialogVisible6 = true;
  5542. setTimeout(() => {
  5543. this.$refs['fuInput'].focus();
  5544. }, 100);
  5545. },
  5546. openLine(i) {
  5547. this.line = "";
  5548. this.lineCount = i;
  5549. this.lineType = 0;
  5550. this.$forceUpdate();
  5551. this.dialogVisible7 = true;
  5552. },
  5553. pasteLine(i) {
  5554. navigator.clipboard
  5555. .readText()
  5556. .then((v) => {
  5557. console.log("获取剪贴板成功:", v);
  5558. const html = v;
  5559. const regex = /src="(.*?)"/g;
  5560. const match = regex.exec(html);
  5561. if (match && match[1]) {
  5562. console.log(match[1]);
  5563. this.$message.success("粘贴成功");
  5564. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5565. i
  5566. ].chapterData.push({
  5567. name: "链接",
  5568. title: "嵌入代码",
  5569. url: match[1],
  5570. type: 8,
  5571. });
  5572. } else {
  5573. // console.log("未找到包含 src 属性的 iframe");
  5574. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  5575. }
  5576. })
  5577. .catch((v) => {
  5578. console.log("获取剪贴板失败: ", v);
  5579. });
  5580. },
  5581. openSource(i) {
  5582. this.lineCount = i;
  5583. this.sourceData = {};
  5584. this.dialogVisibleSource = true;
  5585. this.updateSourcePan = false;
  5586. },
  5587. addSource() {
  5588. if (!Object.keys(this.sourceData).length) {
  5589. this.$message.error("请选择要上传的资源");
  5590. return;
  5591. }
  5592. let keys = Object.keys(this.sourceData);
  5593. for (var i = 0; i < keys.length; i++) {
  5594. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5595. this.lineCount
  5596. ].chapterData.push({
  5597. name: "链接",
  5598. title: this.sourceData[keys[i]].name,
  5599. url: this.sourceData[keys[i]].url,
  5600. type: 14,
  5601. id: keys[i]
  5602. });
  5603. }
  5604. this.$forceUpdate();
  5605. this.dialogVisibleSource = false;
  5606. },
  5607. updateSource() {
  5608. if (!Object.keys(this.sourceData).length) {
  5609. this.$message.error("请选择要上传的资源");
  5610. return;
  5611. }
  5612. let keys = Object.keys(this.sourceData);
  5613. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5614. this.taskCount
  5615. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  5616. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5617. this.taskCount
  5618. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  5619. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5620. this.taskCount
  5621. ].chapterData[this.lineCount].id = keys[0];
  5622. this.updateSourcePan = false;
  5623. this.$forceUpdate();
  5624. this.dialogVisibleSource = false;
  5625. },
  5626. deleteM(i, j) {
  5627. this.testJson.testJson[i].timuList.splice(j, 1);
  5628. },
  5629. beforeUploadTiMu(event, i) {
  5630. const loading = this.openLoading();
  5631. var file = event.target.files[0];
  5632. var credentials = {
  5633. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5634. secretAccessKey: "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",
  5635. }; //秘钥形式的登录上传
  5636. window.AWS.config.update(credentials);
  5637. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5638. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5639. var _this = this;
  5640. if (file) {
  5641. var params = {
  5642. Key:
  5643. file.name.split(".")[0] +
  5644. new Date().getTime() +
  5645. "." +
  5646. file.name.split(".")[file.name.split(".").length - 1],
  5647. ContentType: file.type,
  5648. Body: file,
  5649. "Access-Control-Allow-Credentials": "*",
  5650. ACL: "public-read",
  5651. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5652. var options = {
  5653. partSize: 2048 * 1024 * 1024,
  5654. queueSize: 2,
  5655. leavePartsOnError: true,
  5656. };
  5657. bucket
  5658. .upload(params, options)
  5659. .on("httpUploadProgress", function (evt) {
  5660. //这里可以写进度条
  5661. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5662. })
  5663. .send(function (err, data) {
  5664. loading.close();
  5665. if (err) {
  5666. _this.$message.error("上传失败");
  5667. } else {
  5668. if (_this.testJson.testJson[i].timuList) {
  5669. _this.testJson.testJson[i].timuList.push({
  5670. src: data.Location,
  5671. });
  5672. } else {
  5673. _this.testJson.testJson[i].timuList = [];
  5674. _this.testJson.testJson[i].timuList.push({
  5675. src: data.Location,
  5676. });
  5677. }
  5678. _this.imgChange3(i);
  5679. _this.$forceUpdate();
  5680. }
  5681. });
  5682. }
  5683. },
  5684. beforeUploadTi(event, i, j) {
  5685. const loading = this.openLoading();
  5686. var file = event.target.files[0];
  5687. var credentials = {
  5688. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5689. secretAccessKey: "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",
  5690. }; //秘钥形式的登录上传
  5691. window.AWS.config.update(credentials);
  5692. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5693. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5694. var _this = this;
  5695. if (file) {
  5696. var params = {
  5697. Key:
  5698. file.name.split(".")[0] +
  5699. new Date().getTime() +
  5700. "." +
  5701. file.name.split(".")[file.name.split(".").length - 1],
  5702. ContentType: file.type,
  5703. Body: file,
  5704. "Access-Control-Allow-Credentials": "*",
  5705. ACL: "public-read",
  5706. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5707. var options = {
  5708. partSize: 2048 * 1024 * 1024,
  5709. queueSize: 2,
  5710. leavePartsOnError: true,
  5711. };
  5712. bucket
  5713. .upload(params, options)
  5714. .on("httpUploadProgress", function (evt) {
  5715. //这里可以写进度条
  5716. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5717. })
  5718. .send(function (err, data) {
  5719. loading.close();
  5720. if (err) {
  5721. _this.$message.error("上传失败");
  5722. } else {
  5723. _this.testJson.testJson[i].checkList[j] = {};
  5724. _this.testJson.testJson[i].checkList[j].src = data.Location;
  5725. _this.testJson.testJson[i].checkList[j].imgType = 1;
  5726. _this.imgChange2(i, j);
  5727. _this.$forceUpdate();
  5728. }
  5729. });
  5730. }
  5731. },
  5732. beforeUpload1(event, type) {
  5733. // const loading = this.openLoading();
  5734. var file = event.target.files[0];
  5735. var credentials = {
  5736. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5737. secretAccessKey: "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",
  5738. }; //秘钥形式的登录上传
  5739. window.AWS.config.update(credentials);
  5740. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5741. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5742. var _this = this;
  5743. if (file) {
  5744. var params = {
  5745. Key:
  5746. file.name.split(".")[0] +
  5747. new Date().getTime() +
  5748. "." +
  5749. file.name.split(".")[file.name.split(".").length - 1],
  5750. ContentType: file.type,
  5751. Body: file,
  5752. "Access-Control-Allow-Credentials": "*",
  5753. ACL: "public-read",
  5754. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5755. var options = {
  5756. partSize: 2048 * 1024 * 1024,
  5757. queueSize: 2,
  5758. leavePartsOnError: true,
  5759. };
  5760. bucket
  5761. .upload(params, options)
  5762. .on("httpUploadProgress", function (evt) {
  5763. //这里可以写进度条
  5764. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5765. })
  5766. .send(function (err, data) {
  5767. // loading.close();
  5768. if (err) {
  5769. // var a = _this.$refs.upload1.uploadFiles;
  5770. // a.splice(a.length - 1, a.length);
  5771. _this.$message.error("上传失败");
  5772. } else {
  5773. _this.cover.push({
  5774. name: file.name,
  5775. url: data.Location,
  5776. uid: file.uid,
  5777. });
  5778. _this.imgChange1(null, null, 1, null);
  5779. _this.choosePicVisible = false;
  5780. console.log(data.Location);
  5781. }
  5782. });
  5783. }
  5784. },
  5785. beforeUploadSelect(event, type) {
  5786. // const loading = this.openLoading();
  5787. var file = event.target.files[0];
  5788. var credentials = {
  5789. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5790. secretAccessKey: "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",
  5791. }; //秘钥形式的登录上传
  5792. window.AWS.config.update(credentials);
  5793. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5794. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5795. var _this = this;
  5796. if (file) {
  5797. var params = {
  5798. Key:
  5799. file.name.split(".")[0] +
  5800. new Date().getTime() +
  5801. "." +
  5802. file.name.split(".")[file.name.split(".").length - 1],
  5803. ContentType: file.type,
  5804. Body: file,
  5805. "Access-Control-Allow-Credentials": "*",
  5806. ACL: "public-read",
  5807. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5808. var options = {
  5809. partSize: 2048 * 1024 * 1024,
  5810. queueSize: 2,
  5811. leavePartsOnError: true,
  5812. };
  5813. bucket
  5814. .upload(params, options)
  5815. .on("httpUploadProgress", function (evt) {
  5816. //这里可以写进度条
  5817. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5818. })
  5819. .send(function (err, data) {
  5820. // loading.close();
  5821. if (err) {
  5822. _this.$message.error("上传失败");
  5823. } else {
  5824. _this.selectJson.url = data.Location;
  5825. console.log(data.Location);
  5826. }
  5827. });
  5828. }
  5829. },
  5830. chooseSysPic(p) {
  5831. this.cover = []
  5832. setTimeout(() => {
  5833. this.cover[0] = {
  5834. name: "系统图片.png",
  5835. url: p,
  5836. };
  5837. this.imgChange1(null, null, 1, null);
  5838. this.$forceUpdate();
  5839. }, 0);
  5840. this.isSysPic = true;
  5841. this.isSysPic2 = false;
  5842. this.sysPicVisible = false;
  5843. this.$forceUpdate();
  5844. },
  5845. chooseSysPic2(p) {
  5846. this.cover = []
  5847. setTimeout(() => {
  5848. this.cover[0] = {
  5849. name: "网络图片.png",
  5850. url: p,
  5851. };
  5852. this.imgChange1(null, null, 1, null);
  5853. this.$forceUpdate();
  5854. }, 0);
  5855. this.isSysPic2 = true;
  5856. this.isSysPic = false;
  5857. this.sysPicVisible2 = false;
  5858. this.$forceUpdate();
  5859. },
  5860. beforeUpload(data) {
  5861. this.$refs.upload1.uploadFiles;
  5862. this.uploadLoading1 = true;
  5863. var file = data.file;
  5864. var credentials = {
  5865. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5866. secretAccessKey: "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",
  5867. }; //秘钥形式的登录上传
  5868. window.AWS.config.update(credentials);
  5869. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5870. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5871. var _this = this;
  5872. if (file) {
  5873. var params = {
  5874. Key:
  5875. file.name.split(".")[0] +
  5876. new Date().getTime() +
  5877. "." +
  5878. file.name.split(".")[file.name.split(".").length - 1],
  5879. ContentType: file.type,
  5880. Body: file,
  5881. "Access-Control-Allow-Credentials": "*",
  5882. ACL: "public-read",
  5883. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5884. var options = {
  5885. partSize: 2048 * 1024 * 1024,
  5886. queueSize: 2,
  5887. leavePartsOnError: true,
  5888. };
  5889. bucket
  5890. .upload(params, options)
  5891. .on("httpUploadProgress", function (evt) {
  5892. //这里可以写进度条
  5893. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5894. })
  5895. .send(function (err, data) {
  5896. _this.uploadLoading1 = false;
  5897. if (err) {
  5898. // var a = _this.$refs.upload1.uploadFiles;
  5899. // a.splice(a.length - 1, a.length);
  5900. _this.$message.error("上传失败");
  5901. } else {
  5902. //上传成功处理
  5903. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5904. name: file.name,
  5905. url: data.Location,
  5906. uid: file.uid,
  5907. });
  5908. _this.imgChange();
  5909. console.log(data.Location);
  5910. }
  5911. });
  5912. }
  5913. },
  5914. onExceed() {
  5915. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  5916. },
  5917. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5918. // const loading = this.openLoading();
  5919. var file = event.target.files[0];
  5920. var credentials = {
  5921. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5922. secretAccessKey: "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",
  5923. }; //秘钥形式的登录上传
  5924. window.AWS.config.update(credentials);
  5925. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5926. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5927. var _this = this;
  5928. if (type == 3) {
  5929. var b = [
  5930. "DOC",
  5931. "DOCX",
  5932. "DOCM",
  5933. "DOTM",
  5934. "DOTX",
  5935. "PPTX",
  5936. "PPSX",
  5937. "PPT",
  5938. "PPS",
  5939. "PPTM",
  5940. "POTM",
  5941. "PPAM",
  5942. "POTX",
  5943. "PPSM",
  5944. "XLSX",
  5945. "XLS",
  5946. ];
  5947. if (
  5948. b.indexOf(
  5949. file.name
  5950. .split(".")
  5951. [file.name.split(".").length - 1].toLocaleUpperCase()
  5952. ) != -1
  5953. ) {
  5954. if (file.size / 1024 / 1024 > 80) {
  5955. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5956. this.inputShow = true;
  5957. // var a = _this.$refs.upload1.uploadFiles;
  5958. // a.splice(a.length - 1, a.length);
  5959. // loading.close();
  5960. return;
  5961. }
  5962. } else if (
  5963. file.name
  5964. .split(".")
  5965. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5966. ) {
  5967. if (file.size / 1024 / 1024 > 80) {
  5968. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5969. this.inputShow = true;
  5970. // var a = _this.$refs.upload1.uploadFiles;
  5971. // a.splice(a.length - 1, a.length);
  5972. // loading.close();
  5973. return;
  5974. }
  5975. }
  5976. }
  5977. this.inputShow = false;
  5978. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5979. itemTaskIndex
  5980. ].progress = 0;
  5981. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5982. itemTaskIndex
  5983. ].proVisible = true;
  5984. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5985. itemTaskIndex
  5986. ].isFinishSize = 0;
  5987. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5988. itemTaskIndex
  5989. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5990. _this.$forceUpdate();
  5991. if (file) {
  5992. var params = {
  5993. Key:
  5994. file.name.split(".")[0] +
  5995. new Date().getTime() +
  5996. "." +
  5997. file.name.split(".")[file.name.split(".").length - 1],
  5998. ContentType: file.type,
  5999. Body: file,
  6000. "Access-Control-Allow-Credentials": "*",
  6001. ACL: "public-read",
  6002. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6003. var options = {
  6004. partSize: 2048 * 1024 * 1024,
  6005. queueSize: 2,
  6006. leavePartsOnError: true,
  6007. };
  6008. bucket
  6009. .upload(params, options)
  6010. .on("httpUploadProgress", function (evt) {
  6011. //这里可以写进度条
  6012. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6013. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6014. itemTaskIndex
  6015. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6016. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6017. itemTaskIndex
  6018. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6019. _this.$forceUpdate();
  6020. })
  6021. .send(function (err, data) {
  6022. // loading.close();
  6023. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6024. itemTaskIndex
  6025. ].progress = 100;
  6026. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6027. itemTaskIndex
  6028. ].isFinishSize =
  6029. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6030. itemTaskIndex
  6031. ].isAllSize;
  6032. _this.$forceUpdate();
  6033. setTimeout(() => {
  6034. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6035. itemTaskIndex
  6036. ].proVisible = false;
  6037. _this.$forceUpdate();
  6038. }, 1000);
  6039. _this.inputShow = true;
  6040. if (err) {
  6041. // var a = _this.$refs.upload1.uploadFiles;
  6042. // a.splice(a.length - 1, a.length);
  6043. _this.$message.error("上传失败");
  6044. } else {
  6045. if (type == 13) {
  6046. let _type = 2;
  6047. var imgA = [
  6048. "png",
  6049. "jpg",
  6050. "jpeg",
  6051. "bmp",
  6052. "gif",
  6053. "webp",
  6054. "psd",
  6055. "svg",
  6056. "tiff",
  6057. ];
  6058. var fileA = [
  6059. "PDF",
  6060. "DOC",
  6061. "DOCX",
  6062. "DOCM",
  6063. "DOTM",
  6064. "DOTX",
  6065. "PPTX",
  6066. "PPSX",
  6067. "PPT",
  6068. "PPS",
  6069. "PPTM",
  6070. "POTM",
  6071. "PPAM",
  6072. "POTX",
  6073. "PPSM",
  6074. "XLSX",
  6075. "XLS",
  6076. ];
  6077. var videoA = [
  6078. "AVI",
  6079. "NAVI",
  6080. "MPEG",
  6081. "ASF",
  6082. "MOV",
  6083. "WMV",
  6084. "3GP",
  6085. "RM",
  6086. "RMVB",
  6087. "FLV",
  6088. "F4V",
  6089. "H.264",
  6090. "H.265",
  6091. "REAL VIDEO",
  6092. "MKV",
  6093. "WebM",
  6094. "HDDVD",
  6095. "MP4",
  6096. "MPG",
  6097. "M4V",
  6098. "MGV",
  6099. "OGV",
  6100. "QTM",
  6101. "STR",
  6102. "AMC",
  6103. "DVX",
  6104. "EVO",
  6105. "DAT",
  6106. "OGG",
  6107. "OGM",
  6108. ];
  6109. if (
  6110. fileA.indexOf(
  6111. data.Location.split(".")[
  6112. data.Location.split(".").length - 1
  6113. ].toLocaleUpperCase()
  6114. ) != -1
  6115. ) {
  6116. _type = 3;
  6117. } else if (
  6118. videoA.indexOf(
  6119. data.Location.split(".")[
  6120. data.Location.split(".").length - 1
  6121. ].toLocaleUpperCase()
  6122. ) != -1
  6123. ) {
  6124. _type = 2;
  6125. } else if (
  6126. imgA.indexOf(
  6127. data.Location.split(".")[
  6128. data.Location.split(".").length - 1
  6129. ].toLocaleLowerCase()
  6130. ) != -1
  6131. ) {
  6132. _type = 13;
  6133. } else {
  6134. _type = 12;
  6135. }
  6136. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6137. itemTaskIndex
  6138. ].chapterData.push({
  6139. name: file.name,
  6140. url: data.Location,
  6141. uid: file.uid,
  6142. type: _type,
  6143. });
  6144. _this.imgChange1(null, null, _type, itemTaskIndex);
  6145. } else if (type == 2 || type == 3 || type == 12) {
  6146. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6147. itemTaskIndex
  6148. ].chapterData.push({
  6149. name: file.name,
  6150. url: data.Location,
  6151. uid: file.uid,
  6152. type: type,
  6153. });
  6154. _this.imgChange1(null, null, type, itemTaskIndex);
  6155. } else if (type == 4) {
  6156. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6157. itemTaskIndex
  6158. ].fileList1.push({
  6159. name: file.name,
  6160. url: data.Location,
  6161. uid: file.uid,
  6162. });
  6163. _this.imgChange1(null, null, type, itemTaskIndex);
  6164. } else if (type == 5) {
  6165. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6166. itemTaskIndex
  6167. ].homeworkList.push({
  6168. name: file.name,
  6169. url: data.Location,
  6170. uid: file.uid,
  6171. });
  6172. _this.imgChange1(null, null, type, itemTaskIndex);
  6173. }
  6174. console.log(data.Location);
  6175. }
  6176. });
  6177. }
  6178. },
  6179. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  6180. // const loading = this.openLoading();
  6181. var file = event.target.files[0];
  6182. var credentials = {
  6183. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6184. secretAccessKey: "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",
  6185. }; //秘钥形式的登录上传
  6186. window.AWS.config.update(credentials);
  6187. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6188. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6189. var _this = this;
  6190. if (type == 3) {
  6191. var b = [
  6192. "DOC",
  6193. "DOCX",
  6194. "DOCM",
  6195. "DOTM",
  6196. "DOTX",
  6197. "PPTX",
  6198. "PPSX",
  6199. "PPT",
  6200. "PPS",
  6201. "PPTM",
  6202. "POTM",
  6203. "PPAM",
  6204. "POTX",
  6205. "PPSM",
  6206. ];
  6207. if (
  6208. b.indexOf(
  6209. file.name
  6210. .split(".")
  6211. [file.name.split(".").length - 1].toLocaleUpperCase()
  6212. ) != -1
  6213. ) {
  6214. if (file.size / 1024 / 1024 > 80) {
  6215. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6216. this.inputShow = true;
  6217. // var a = _this.$refs.upload1.uploadFiles;
  6218. // a.splice(a.length - 1, a.length);
  6219. // loading.close();
  6220. return;
  6221. }
  6222. } else if (
  6223. file.name
  6224. .split(".")
  6225. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6226. ) {
  6227. if (file.size / 1024 / 1024 > 80) {
  6228. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6229. this.inputShow = true;
  6230. // var a = _this.$refs.upload1.uploadFiles;
  6231. // a.splice(a.length - 1, a.length);
  6232. // loading.close();
  6233. return;
  6234. }
  6235. }
  6236. }
  6237. this.inputShow = false;
  6238. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6239. itemTaskIndex
  6240. ].progress = 0;
  6241. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6242. itemTaskIndex
  6243. ].proVisible = true;
  6244. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6245. itemTaskIndex
  6246. ].isFinishSize = 0;
  6247. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6248. itemTaskIndex
  6249. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6250. _this.$forceUpdate();
  6251. if (file) {
  6252. var params = {
  6253. Key:
  6254. file.name.split(".")[0] +
  6255. new Date().getTime() +
  6256. "." +
  6257. file.name.split(".")[file.name.split(".").length - 1],
  6258. ContentType: file.type,
  6259. Body: file,
  6260. "Access-Control-Allow-Credentials": "*",
  6261. ACL: "public-read",
  6262. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6263. var options = {
  6264. partSize: 2048 * 1024 * 1024,
  6265. queueSize: 2,
  6266. leavePartsOnError: true,
  6267. };
  6268. bucket
  6269. .upload(params, options)
  6270. .on("httpUploadProgress", function (evt) {
  6271. //这里可以写进度条
  6272. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6273. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6274. itemTaskIndex
  6275. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6276. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6277. itemTaskIndex
  6278. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6279. _this.$forceUpdate();
  6280. })
  6281. .send(function (err, data) {
  6282. // loading.close();
  6283. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6284. itemTaskIndex
  6285. ].progress = 100;
  6286. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6287. itemTaskIndex
  6288. ].isFinishSize =
  6289. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6290. itemTaskIndex
  6291. ].isAllSize;
  6292. _this.$forceUpdate();
  6293. setTimeout(() => {
  6294. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6295. itemTaskIndex
  6296. ].proVisible = false;
  6297. _this.$forceUpdate();
  6298. }, 1000);
  6299. _this.inputShow = true;
  6300. if (err) {
  6301. // var a = _this.$refs.upload1.uploadFiles;
  6302. // a.splice(a.length - 1, a.length);
  6303. _this.$message.error("上传失败");
  6304. } else {
  6305. if (type == 2 || type == 3) {
  6306. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6307. itemTaskIndex
  6308. ].chapterData.push({
  6309. name: file.name,
  6310. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6311. // itemTaskIndex
  6312. // ].chapterData.length+1),
  6313. url: data.Location,
  6314. uid: file.uid,
  6315. type: type,
  6316. text: string,
  6317. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6318. // itemTaskIndex
  6319. // ].chapterData.length + 1),
  6320. });
  6321. _this.imgChange1(null, null, type, itemTaskIndex);
  6322. } else if (type == 4) {
  6323. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6324. itemTaskIndex
  6325. ].fileList1.push({
  6326. name: file.name,
  6327. url: data.Location,
  6328. uid: file.uid,
  6329. });
  6330. _this.imgChange1(null, null, type, itemTaskIndex);
  6331. } else if (type == 5) {
  6332. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6333. itemTaskIndex
  6334. ].homeworkList.push({
  6335. name: file.name,
  6336. url: data.Location,
  6337. uid: file.uid,
  6338. });
  6339. _this.imgChange1(null, null, type, itemTaskIndex);
  6340. }
  6341. console.log(data.Location);
  6342. }
  6343. });
  6344. }
  6345. },
  6346. addunit() {
  6347. this.unitJson.push({
  6348. dyName: "", //单元标题
  6349. isUpdate: 1,
  6350. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  6351. chapterInfo: [
  6352. {
  6353. isread: false,
  6354. chapterid: this.guid(),
  6355. title: "",
  6356. courseName: "",
  6357. taskJson: [
  6358. {
  6359. task: "",
  6360. taskDetail: "",
  6361. chapterData: [],
  6362. toolText: "",
  6363. toolChoose: [
  6364. {
  6365. tool: [],
  6366. toolDetail: "",
  6367. toolType: 0,
  6368. askCount: 1,
  6369. askTitle: "",
  6370. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6371. },
  6372. ],
  6373. isShowTools: false,
  6374. askCount: 1,
  6375. isFold: 0,
  6376. askTitle: "",
  6377. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6378. checkJson: [{ checkCount: [], checkPerent: [] }],
  6379. homeworkList: [],
  6380. },
  6381. ],
  6382. itemCount: 1,
  6383. fileList1: [],
  6384. video: [],
  6385. testData: [],
  6386. pData: [],
  6387. templateArray: [],
  6388. },
  6389. ],
  6390. });
  6391. this.addindex = this.unitJson.length - 1;
  6392. setTimeout(() => {
  6393. this.unitIndex = this.unitJson.length - 1;
  6394. this.unitSet(this.unitIndex);
  6395. }, 0);
  6396. },
  6397. addToolFun(itemTaskIndex) {
  6398. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6399. itemTaskIndex
  6400. ].toolChoose.push({
  6401. tool: [],
  6402. toolDetail: "",
  6403. toolType: 0,
  6404. askCount: 1,
  6405. askTitle: "",
  6406. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6407. });
  6408. },
  6409. addTaskBorder() {
  6410. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  6411. task: "",
  6412. taskDetail: "",
  6413. chapterData: [],
  6414. toolChoose: [
  6415. {
  6416. tool: [],
  6417. toolDetail: "",
  6418. toolType: 0,
  6419. askCount: 1,
  6420. askTitle: "",
  6421. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6422. },
  6423. ],
  6424. toolText: "",
  6425. isShowTools: false,
  6426. askCount: 1,
  6427. isFold: 0,
  6428. askTitle: "",
  6429. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6430. checkJson: [{ checkCount: [], checkPerent: [] }],
  6431. homeworkList: [],
  6432. });
  6433. },
  6434. add(e, i) {
  6435. var el = e.currentTarget;
  6436. el.getElementsByTagName("input")[0].click();
  6437. },
  6438. fold(i, e, type) {
  6439. var a = e.currentTarget.parentElement.parentElement;
  6440. var b = e.currentTarget.parentElement;
  6441. if (type == 1) {
  6442. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  6443. a.className += " smallTaskBorder";
  6444. b.className += " funBlockTop";
  6445. } else {
  6446. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  6447. a.className = "taskBorder";
  6448. b.className = "funBlock";
  6449. }
  6450. console.log(e);
  6451. },
  6452. fold2(i) {
  6453. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  6454. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  6455. } else {
  6456. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  6457. }
  6458. setTimeout(() => {
  6459. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail += '*0*%*'
  6460. setTimeout(() => {
  6461. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail.replaceAll('*0*%*', '')
  6462. }, 0);
  6463. }, 0);
  6464. this.$forceUpdate();
  6465. },
  6466. foldC(i) {
  6467. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  6468. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  6469. } else {
  6470. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  6471. }
  6472. this.$forceUpdate();
  6473. },
  6474. fold3(i, ti) {
  6475. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  6476. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  6477. } else {
  6478. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  6479. }
  6480. this.$forceUpdate();
  6481. },
  6482. deleteHomeworkBox(unitIndex, index, i) {
  6483. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  6484. this.taskCount
  6485. ].homeworkList.splice(i, 1);
  6486. },
  6487. getStudent() {
  6488. let params = {
  6489. oid: this.oid,
  6490. cu: "",
  6491. cn: this.searchPeople,
  6492. };
  6493. this.ajax
  6494. .get(this.$store.state.api + "selectStudentAdd", params)
  6495. .then((res) => {
  6496. this.studentJuri = res.data[0];
  6497. })
  6498. .catch((err) => {
  6499. this.isLoading = false;
  6500. console.error(err);
  6501. });
  6502. },
  6503. getTeacher() {
  6504. let params = {
  6505. oid:
  6506. this.org && this.org != "undefined" && this.org != "null"
  6507. ? this.org
  6508. : this.oid,
  6509. cu: "",
  6510. cn: this.searchTN,
  6511. };
  6512. this.ajax
  6513. .get(
  6514. this.$store.state.api +
  6515. (this.org && this.org != "undefined" && this.org != "null"
  6516. ? "selectTeacherAddOrg"
  6517. : "selectTeacherAdd"),
  6518. params
  6519. )
  6520. .then((res) => {
  6521. let teacherJuri = res.data[0];
  6522. for (var i = 0; i < teacherJuri.length; i++) {
  6523. if (teacherJuri[i].userid == this.userid) {
  6524. teacherJuri.splice(i, 1);
  6525. break;
  6526. }
  6527. }
  6528. this.teacherJuri = teacherJuri;
  6529. })
  6530. .catch((err) => {
  6531. console.error(err);
  6532. });
  6533. },
  6534. searchStudent() {
  6535. this.getStudent();
  6536. },
  6537. selectGrage() {
  6538. let params = {
  6539. oid: this.oid,
  6540. };
  6541. this.ajax
  6542. .get(this.$store.state.api + "selectGrageBySchool", params)
  6543. .then((res) => {
  6544. this.gradeList = res.data[0];
  6545. })
  6546. .catch((err) => {
  6547. this.isLoading = false;
  6548. console.error(err);
  6549. });
  6550. },
  6551. //获取班级列表
  6552. getClass() {
  6553. let params = {
  6554. oid: this.oid,
  6555. gid: this.gradeId,
  6556. cn: this.classSearch,
  6557. };
  6558. this.ajax
  6559. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  6560. .then((res) => {
  6561. if (!this.grade.length) {
  6562. this.grade = res.data[0];
  6563. }
  6564. this.grade2 = res.data[0];
  6565. this.classJuri = res.data[0];
  6566. let _check = []
  6567. let _check2 = []
  6568. for (var i = 0; i < this.grade2.length; i++) {
  6569. var gid = this.grade2[i].id
  6570. _check.push(gid)
  6571. }
  6572. for (var i = 0; i < this.checkboxList2.length; i++) {
  6573. var _id = this.checkboxList2[i]
  6574. if (_check.indexOf(_id) !== -1) {
  6575. _check2.push(_id)
  6576. }
  6577. }
  6578. this.checkAll = _check2.length === _check.length;
  6579. })
  6580. .catch((err) => {
  6581. this.isLoading = false;
  6582. console.error(err);
  6583. });
  6584. },
  6585. CourseType2Change(val) {
  6586. this.pTypeCheck = [];
  6587. for (var i = 0; i < this.CourseType2.length; i++) {
  6588. let typeA = this.CourseType2[i];
  6589. if (val.indexOf(typeA.name) != -1) {
  6590. this.pTypeCheck.push(...typeA.id);
  6591. }
  6592. }
  6593. },
  6594. getChapterData(e, i, j, ic, type) {
  6595. e.stopPropagation();
  6596. this.updataC = true;
  6597. this.icc = ic;
  6598. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6599. console.log("还不能下载图片喔");
  6600. }
  6601. },
  6602. deleteChapterData(e, i, j, ic, taskI) {
  6603. e.stopPropagation();
  6604. let _this = this;
  6605. _this
  6606. .$confirm("确定删除此项?", "提示", {
  6607. confirmButtonText: "确定",
  6608. cancelButtonText: "取消",
  6609. type: "warning",
  6610. })
  6611. .then(() => {
  6612. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  6613. })
  6614. .catch(() => {
  6615. return;
  6616. });
  6617. },
  6618. updataVideoT(e, i, j, ic) {
  6619. // e.stopPropagation();
  6620. // this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6621. // ic
  6622. // ].name = JSON.parse(JSON.stringify(e.target.value));
  6623. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6624. ic
  6625. ].name;
  6626. this.taskCount = j;
  6627. this.lineCount = ic;
  6628. this.dialogVisibleupdataVideoT = true;
  6629. this.$forceUpdate();
  6630. },
  6631. updataVideoC() {
  6632. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  6633. this.dialogVisibleupdataVideoT = false;
  6634. this.$forceUpdate();
  6635. },
  6636. upCd(e, i, j, taskCount, ic) {
  6637. e.stopPropagation();
  6638. if (ic == 0) {
  6639. return;
  6640. }
  6641. var a =
  6642. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  6643. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  6644. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6645. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6646. this.$forceUpdate();
  6647. },
  6648. downCd(e, i, j, taskCount, ic) {
  6649. e.stopPropagation();
  6650. if (
  6651. ic ==
  6652. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  6653. 1
  6654. ) {
  6655. return;
  6656. }
  6657. var a =
  6658. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  6659. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  6660. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6661. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6662. this.$forceUpdate();
  6663. },
  6664. upTool(e, i, j, tooli){
  6665. e.stopPropagation();
  6666. if (tooli == 0) {
  6667. return;
  6668. }
  6669. this.$confirm(
  6670. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6671. "提示",
  6672. {
  6673. confirmButtonText: "确定",
  6674. cancelButtonText: "取消",
  6675. type: "warning",
  6676. }
  6677. )
  6678. .then(() => {
  6679. var a =
  6680. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6681. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6682. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6683. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6684. this.$forceUpdate()
  6685. })
  6686. .catch(() => {
  6687. return;
  6688. });
  6689. },
  6690. downTool(e, i, j, tooli){
  6691. e.stopPropagation();
  6692. if ( tooli ==
  6693. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length -
  6694. 1) {
  6695. return;
  6696. }
  6697. this.$confirm(
  6698. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6699. "提示",
  6700. {
  6701. confirmButtonText: "确定",
  6702. cancelButtonText: "取消",
  6703. type: "warning",
  6704. }
  6705. )
  6706. .then(() => {
  6707. var a =
  6708. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6709. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6710. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6711. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6712. this.$forceUpdate()
  6713. })
  6714. .catch(() => {
  6715. return;
  6716. });
  6717. },
  6718. addWork() {
  6719. let cPan = 1;
  6720. for (var i = 0; i < this.unitJson.length; i++) {
  6721. for (
  6722. var j = 0;
  6723. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6724. j++
  6725. ) {
  6726. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6727. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6728. if (
  6729. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6730. ) {
  6731. for (
  6732. var z = 0;
  6733. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6734. z++
  6735. ) {
  6736. if (
  6737. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6738. .length
  6739. ) {
  6740. this.$message.error("请把工具添加完整");
  6741. cPan = 2;
  6742. break;
  6743. }
  6744. }
  6745. }
  6746. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6747. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6748. i
  6749. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6750. return ele.value != "";
  6751. });
  6752. }
  6753. }
  6754. }
  6755. this.inputShow = true;
  6756. if (cPan == 2) {
  6757. return;
  6758. }
  6759. for (var i = 0; i < this.unitJson.length; i++) {
  6760. delete this.unitJson[i].isUpdate;
  6761. }
  6762. let params = [
  6763. {
  6764. uid: this.userid,
  6765. title: this.courseName.replace(/%/g, "%25"),
  6766. brief: this.courseText.replace(/%/g, "%25"),
  6767. cover:
  6768. this.cover.length > 0
  6769. ? JSON.stringify(this.cover)
  6770. : JSON.stringify([
  6771. {
  6772. name: "noBanner.jpg",
  6773. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6774. uid: 1656409780264,
  6775. status: "success",
  6776. },
  6777. ]),
  6778. evaId: this.evalua,
  6779. astudent:
  6780. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6781. see: this.isTeacherSee == true ? 1 : 0,
  6782. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6783. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  6784. courseType: JSON.stringify(this.courseTypeId),
  6785. ateacher:
  6786. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6787. inviteCode: JSON.stringify(this.inviteCode),
  6788. },
  6789. ];
  6790. this.ajax
  6791. .post(this.$store.state.api + "addWorkNew2T", params)
  6792. .then((res) => {
  6793. console.log(this.steps);
  6794. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6795. this.$message({
  6796. message: "新增成功",
  6797. type: "success",
  6798. });
  6799. // }
  6800. this.number = res.data.ordernumber;
  6801. this.courseId = res.data.courseId;
  6802. this.cid = res.data.courseId;
  6803. this.courseUserid = this.userid;
  6804. this.islogin = true;
  6805. this.steps = 4;
  6806. })
  6807. .catch((err) => {
  6808. this.$message.error("网络不佳");
  6809. console.error(err);
  6810. });
  6811. },
  6812. goCourse() {
  6813. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  6814. },
  6815. updateWork2() {
  6816. let _unitIndex = this.unitIndex;
  6817. let cPan = 1;
  6818. for (
  6819. var j = 0;
  6820. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6821. j++
  6822. ) {
  6823. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6824. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6825. j
  6826. ].proVisible2 = false;
  6827. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6828. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6829. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6830. (ele) => {
  6831. return ele.value != "";
  6832. }
  6833. );
  6834. }
  6835. }
  6836. this.inputShow = true;
  6837. if (cPan == 2) {
  6838. return;
  6839. }
  6840. let params = [
  6841. {
  6842. cid: this.cid,
  6843. chapters: JSON.stringify(this.unitJson),
  6844. uid: this.userid,
  6845. unitIndex: _unitIndex,
  6846. },
  6847. ];
  6848. this.ajax
  6849. .post(this.$store.state.api + "updateWorkNew4", params)
  6850. .then((res) => {
  6851. this.$message({
  6852. message: "修改成功",
  6853. type: "success",
  6854. });
  6855. this.courseId = this.cid;
  6856. })
  6857. .catch((err) => {
  6858. this.$message.error("网络不佳");
  6859. console.error(err);
  6860. });
  6861. },
  6862. updateWork() {
  6863. let cPan = 1;
  6864. for (var i = 0; i < this.unitJson.length; i++) {
  6865. for (
  6866. var j = 0;
  6867. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6868. j++
  6869. ) {
  6870. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6871. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6872. if (
  6873. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6874. ) {
  6875. for (
  6876. var z = 0;
  6877. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6878. z++
  6879. ) {
  6880. if (
  6881. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6882. .length
  6883. ) {
  6884. this.$message.error("请把工具添加完整");
  6885. cPan = 2;
  6886. break;
  6887. }
  6888. }
  6889. }
  6890. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6891. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6892. i
  6893. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6894. return ele.value != "";
  6895. });
  6896. }
  6897. }
  6898. }
  6899. this.inputShow = true;
  6900. if (cPan == 2) {
  6901. return;
  6902. }
  6903. for (var i = 0; i < this.unitJson.length; i++) {
  6904. delete this.unitJson[i].isUpdate;
  6905. }
  6906. let params = [
  6907. {
  6908. cid: this.cid,
  6909. title: this.courseName.replace(/%/g, "%25"),
  6910. brief: this.courseText.replace(/%/g, "%25"),
  6911. cover:
  6912. this.cover.length > 0
  6913. ? JSON.stringify(this.cover)
  6914. : JSON.stringify([
  6915. {
  6916. name: "noBanner.jpg",
  6917. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6918. uid: 1656409780264,
  6919. status: "success",
  6920. },
  6921. ]),
  6922. evaId: this.evalua,
  6923. astudent:
  6924. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6925. see: this.isTeacherSee == true ? 1 : 0,
  6926. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6927. template: this.myWord != "undefined" ? this.myWord : [],
  6928. uid: this.userid,
  6929. courseType: JSON.stringify(this.courseTypeId),
  6930. ateacher:
  6931. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6932. inviteCode: JSON.stringify(this.inviteCode),
  6933. },
  6934. ];
  6935. this.ajax
  6936. .post(this.$store.state.api + "updateWorkNew2", params)
  6937. .then((res) => {
  6938. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6939. if (this.cidType == 1) {
  6940. this.$message({
  6941. message: "修改成功",
  6942. type: "success",
  6943. });
  6944. } else {
  6945. this.$message({
  6946. message: "新增成功",
  6947. type: "success",
  6948. });
  6949. }
  6950. // }
  6951. this.number = this.nbOrder;
  6952. this.courseId = this.cid;
  6953. this.steps = 4;
  6954. })
  6955. .catch((err) => {
  6956. this.$message.error("网络不佳");
  6957. console.error(err);
  6958. });
  6959. },
  6960. guid() {
  6961. var _num,
  6962. i,
  6963. _guid = "";
  6964. for (i = 0; i < 32; i++) {
  6965. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6966. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6967. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6968. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6969. _guid += "-";
  6970. }
  6971. }
  6972. return _guid;
  6973. },
  6974. insertWord() {
  6975. this.dialogVisible1 = true;
  6976. this.updateBoolean2 = false;
  6977. this.tTitle = "";
  6978. this.tdetail = "";
  6979. },
  6980. addWord() {
  6981. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6982. name: this.tTitle,
  6983. content: this.tdetail,
  6984. uid: this.guid(),
  6985. });
  6986. this.dialogVisible1 = false;
  6987. },
  6988. upWord() { },
  6989. selectWord(uid, i, c) {
  6990. this.dialogVisible1 = true;
  6991. this.updateBoolean2 = true;
  6992. if (
  6993. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6994. ) {
  6995. this.tTitle =
  6996. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6997. this.tdetail =
  6998. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6999. }
  7000. },
  7001. isAddPP() {
  7002. if (this.checkboxList.length > 0) {
  7003. this.$message({
  7004. message: "添加成功",
  7005. type: "success",
  7006. });
  7007. this.dialogVisible3 = false;
  7008. } else {
  7009. this.$message({
  7010. message: "请添加课程成员",
  7011. type: "error",
  7012. });
  7013. }
  7014. },
  7015. isAddClass() {
  7016. this.dialogVisibleClass = false;
  7017. },
  7018. isAddPPTeacher() {
  7019. this.dialogVisibleMember = false;
  7020. this.setMan();
  7021. },
  7022. getTemplate() {
  7023. this.ajax
  7024. .get(this.$store.state.api + "getCourseTemplateT", "")
  7025. .then((res) => {
  7026. this.templateArray = res.data[0];
  7027. this.getTemplateOid();
  7028. this.$forceUpdate();
  7029. })
  7030. .catch((err) => { });
  7031. },
  7032. getTemplateOid() {
  7033. let params = {
  7034. oid: this.oid,
  7035. };
  7036. this.ajax
  7037. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  7038. .then((res) => {
  7039. if (res.data[0].length) {
  7040. this.templateArray = [...res.data[0], ...this.templateArray];
  7041. }
  7042. this.getTemplateOrg();
  7043. this.$forceUpdate();
  7044. })
  7045. .catch((err) => { });
  7046. },
  7047. getTemplateOrg() {
  7048. let params = {
  7049. oid: this.org,
  7050. };
  7051. this.ajax
  7052. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  7053. .then((res) => {
  7054. if (res.data[0].length) {
  7055. this.templateArray = [...res.data[0], ...this.templateArray];
  7056. }
  7057. this.$forceUpdate();
  7058. })
  7059. .catch((err) => { });
  7060. },
  7061. clearChoose() {
  7062. this.clearArray.splice(this.templateC.id, 1);
  7063. this.dialogVisible2 = false;
  7064. },
  7065. clearAttText() {
  7066. this.AttText = {
  7067. title: "",
  7068. text: "",
  7069. };
  7070. this.dialogVisible6 = false;
  7071. },
  7072. clearLine() {
  7073. this.line = "";
  7074. this.dialogVisible7 = false;
  7075. },
  7076. checkTemplate(res) {
  7077. let _this = this;
  7078. _this
  7079. .$confirm("确定选择此模板吗?", "提示", {
  7080. confirmButtonText: "确定",
  7081. cancelButtonText: "取消",
  7082. type: "warning",
  7083. })
  7084. .then(() => {
  7085. _this.unitJson = JSON.parse(res.chapters);
  7086. _this.steps++;
  7087. setTimeout(() => {
  7088. this.checkEva(this.checkId);
  7089. }, 1000);
  7090. })
  7091. .catch(() => {
  7092. return;
  7093. });
  7094. },
  7095. checkTemplate1(w) {
  7096. this.steps++;
  7097. },
  7098. checkTemplate2() {
  7099. let _this = this;
  7100. _this
  7101. .$confirm("确定选择空模板吗?", "提示", {
  7102. confirmButtonText: "确定",
  7103. cancelButtonText: "取消",
  7104. type: "warning",
  7105. })
  7106. .then(() => {
  7107. _this.unitIndex = 0;
  7108. _this.unitJson = [
  7109. {
  7110. dyName: "", //单元标题
  7111. chapterInfo: [
  7112. {
  7113. isread: false,
  7114. chapterid: this.guid(),
  7115. title: "",
  7116. courseName: "",
  7117. taskJson: [
  7118. {
  7119. task: "",
  7120. taskDetail: "",
  7121. chapterData: [],
  7122. toolText: "",
  7123. toolChoose: [
  7124. {
  7125. tool: [],
  7126. toolDetail: "",
  7127. toolType: 0,
  7128. askCount: 1,
  7129. askTitle: "",
  7130. askJson: [
  7131. { askstitle: "", askItem: 1, checkList: [] },
  7132. ],
  7133. },
  7134. ],
  7135. isShowTools: false,
  7136. askCount: 1,
  7137. isFold: 0,
  7138. askTitle: "",
  7139. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7140. checkJson: [{ checkCount: [], checkPerent: [] }],
  7141. homeworkList: [],
  7142. },
  7143. ],
  7144. itemCount: 1,
  7145. fileList1: [],
  7146. video: [],
  7147. testData: [],
  7148. pData: [],
  7149. templateArray: [],
  7150. },
  7151. ],
  7152. },
  7153. ];
  7154. this.steps++;
  7155. this.updateWork();
  7156. })
  7157. .catch(() => {
  7158. return;
  7159. });
  7160. },
  7161. checkTemplate3() {
  7162. let _this = this;
  7163. _this
  7164. .$confirm("确定选择简易模式吗?", "提示", {
  7165. confirmButtonText: "确定",
  7166. cancelButtonText: "取消",
  7167. type: "warning",
  7168. })
  7169. .then(() => {
  7170. _this.unitIndex = 0;
  7171. _this.unitJson = [
  7172. {
  7173. dyName: "", //单元标题
  7174. easy: 1,
  7175. chapterInfo: [
  7176. {
  7177. isread: false,
  7178. chapterid: this.guid(),
  7179. title: "",
  7180. courseName: "",
  7181. taskJson: [
  7182. {
  7183. task: "",
  7184. taskDetail: "",
  7185. chapterData: [],
  7186. toolText: "",
  7187. toolChoose: [
  7188. {
  7189. tool: [],
  7190. toolDetail: "",
  7191. toolType: 0,
  7192. askCount: 1,
  7193. askTitle: "",
  7194. askJson: [
  7195. { askstitle: "", askItem: 1, checkList: [] },
  7196. ],
  7197. },
  7198. ],
  7199. isShowTools: false,
  7200. askCount: 1,
  7201. isFold: 0,
  7202. askTitle: "",
  7203. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7204. checkJson: [{ checkCount: [], checkPerent: [] }],
  7205. homeworkList: [],
  7206. },
  7207. ],
  7208. itemCount: 1,
  7209. fileList1: [],
  7210. video: [],
  7211. testData: [],
  7212. pData: [],
  7213. templateArray: [],
  7214. },
  7215. ],
  7216. },
  7217. ];
  7218. this.steps++;
  7219. this.updateWork();
  7220. })
  7221. .catch(() => {
  7222. return;
  7223. });
  7224. },
  7225. checkTemplate4() {
  7226. let _this = this;
  7227. _this
  7228. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  7229. confirmButtonText: "确定",
  7230. cancelButtonText: "取消",
  7231. type: "warning",
  7232. })
  7233. .then(() => {
  7234. _this.unitIndex = 0;
  7235. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  7236. this.steps++;
  7237. this.updateWork();
  7238. })
  7239. .catch(() => {
  7240. return;
  7241. });
  7242. },
  7243. wordNext() {
  7244. this.dialogVisible2 = false;
  7245. },
  7246. isAddOrUpdateAttText() {
  7247. if (this.AttTextType == 0) {
  7248. this.addAttTextMessage();
  7249. } else {
  7250. this.updateAttText();
  7251. }
  7252. },
  7253. isAddOrUpdateLine() {
  7254. if (!this.lineTitle) {
  7255. this.$message.error("请填写链接标题");
  7256. return;
  7257. }
  7258. if (this.lineType == 0) {
  7259. this.addLine();
  7260. } else {
  7261. this.updateLine();
  7262. }
  7263. },
  7264. addAttTextMessage() {
  7265. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7266. this.taskCount
  7267. ].chapterData.push({
  7268. name: this.AttText.title,
  7269. url: this.AttText.text,
  7270. type: 6,
  7271. });
  7272. this.imgChange1(null, null, 6, this.taskCount);
  7273. this.dialogVisible6 = false;
  7274. },
  7275. selectAttText(itemTaskIndex, i) {
  7276. this.AttText.title =
  7277. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7278. itemTaskIndex
  7279. ].chapterData[i].name;
  7280. this.AttText.text =
  7281. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7282. itemTaskIndex
  7283. ].chapterData[i].url;
  7284. this.taskCount = itemTaskIndex;
  7285. this.AttTextIndex = i;
  7286. this.AttTextType = 1;
  7287. this.dialogVisible6 = true;
  7288. },
  7289. updateAttText() {
  7290. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7291. this.taskCount
  7292. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  7293. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7294. this.taskCount
  7295. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  7296. this.dialogVisible6 = false;
  7297. },
  7298. addLine() {
  7299. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7300. this.lineCount
  7301. ].chapterData.push({
  7302. name: "链接",
  7303. title: this.lineTitle,
  7304. url: this.line,
  7305. type: 8,
  7306. });
  7307. this.imgChange1(null, null, 8, this.lineCount);
  7308. this.dialogVisible7 = false;
  7309. },
  7310. selectLine(itemTaskIndex, i) {
  7311. this.line =
  7312. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7313. itemTaskIndex
  7314. ].chapterData[i].url;
  7315. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7316. itemTaskIndex
  7317. ].chapterData[i].title
  7318. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7319. .chapterData[i].title
  7320. : "";
  7321. this.taskCount = itemTaskIndex;
  7322. this.lineCount = i;
  7323. this.lineType = 1;
  7324. this.dialogVisible7 = true;
  7325. },
  7326. openUpdateSource(itemTaskIndex, i) {
  7327. this.sourceData = {}
  7328. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  7329. this.sourceData[source.id] = {}
  7330. this.sourceData[source.id].name = source.title
  7331. this.sourceData[source.id].url = source.url
  7332. this.dialogVisibleSource = true;
  7333. this.updateSourcePan = true;
  7334. this.taskCount = itemTaskIndex;
  7335. this.lineCount = i;
  7336. },
  7337. updateLine() {
  7338. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7339. this.taskCount
  7340. ].chapterData[this.lineCount].url = this.line;
  7341. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7342. this.taskCount
  7343. ].chapterData[this.lineCount].title = this.lineTitle;
  7344. this.dialogVisible7 = false;
  7345. },
  7346. addPP() {
  7347. this.dialogVisible3 = true;
  7348. },
  7349. goTo(path) {
  7350. this.$router.push(path);
  7351. },
  7352. openTools(itemTaskIndex, i, toolIndex) {
  7353. this.toolIndex = toolIndex;
  7354. this.taskCount = itemTaskIndex;
  7355. if (i == 4) {
  7356. if (toolIndex == null) {
  7357. var a =
  7358. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7359. .chapterData;
  7360. for (var i = 0; i < a.length; i++) {
  7361. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  7362. this.askJson =
  7363. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7364. itemTaskIndex
  7365. ].chapterData[i].askJson;
  7366. }
  7367. }
  7368. } else {
  7369. this.askJson = JSON.parse(
  7370. JSON.stringify(
  7371. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7372. itemTaskIndex
  7373. ].toolChoose[toolIndex]
  7374. )
  7375. );
  7376. }
  7377. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  7378. this.dialogVisible5 = true;
  7379. } else if (i == 45) {
  7380. if (
  7381. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7382. .toolChoose[toolIndex].testJson
  7383. ) {
  7384. this.testJson = JSON.parse(
  7385. JSON.stringify(
  7386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7387. itemTaskIndex
  7388. ].toolChoose[toolIndex].testJson
  7389. )
  7390. );
  7391. } else {
  7392. var testJson = {
  7393. testCount: 1,
  7394. testTitle: "",
  7395. testJson: [
  7396. {
  7397. teststitle: "",
  7398. testItem: 1,
  7399. checkList: [],
  7400. timuList: [],
  7401. answer: [],
  7402. type: "1",
  7403. },
  7404. ],
  7405. };
  7406. this.testJson = testJson;
  7407. }
  7408. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  7409. this.dialogVisibleChoice = true;
  7410. } else if (i == 47) {
  7411. if (
  7412. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7413. .toolChoose[toolIndex].sentenceList
  7414. ) {
  7415. this.sentenceList = JSON.parse(
  7416. JSON.stringify(
  7417. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7418. itemTaskIndex
  7419. ].toolChoose[toolIndex].sentenceList
  7420. )
  7421. );
  7422. } else {
  7423. var sentenceList = [
  7424. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7425. ];
  7426. this.sentenceList = sentenceList;
  7427. }
  7428. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  7429. this.dialogVisibleSentence = true;
  7430. } else if (i == 48) {
  7431. if (
  7432. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7433. .toolChoose[toolIndex].tableJson
  7434. ) {
  7435. this.tableJson = JSON.parse(
  7436. JSON.stringify(
  7437. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7438. itemTaskIndex
  7439. ].toolChoose[toolIndex].tableJson
  7440. )
  7441. );
  7442. } else {
  7443. var tableJson = { text: "" };
  7444. this.tableJson = tableJson;
  7445. }
  7446. this.dialogVisibleTable = true;
  7447. } else if (i == 52) {
  7448. if (
  7449. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7450. .toolChoose[toolIndex].wordJson
  7451. ) {
  7452. this.wordJson = JSON.parse(
  7453. JSON.stringify(
  7454. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7455. itemTaskIndex
  7456. ].toolChoose[toolIndex].wordJson
  7457. )
  7458. );
  7459. } else {
  7460. var wordJson = { text: "" };
  7461. this.wordJson = wordJson;
  7462. }
  7463. this.dialogVisibleWord = true;
  7464. // else if (i == 50) {
  7465. // if (
  7466. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7467. // .toolChoose[toolIndex].uploadJson
  7468. // ) {
  7469. // this.uploadJson = JSON.parse(
  7470. // JSON.stringify(
  7471. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7472. // itemTaskIndex
  7473. // ].toolChoose[toolIndex].uploadJson
  7474. // )
  7475. // );
  7476. // } else {
  7477. // var uploadJson = [];
  7478. // this.uploadJson = uploadJson;
  7479. // }
  7480. // this.dialogVisibleMoreUpload = true;
  7481. // }
  7482. } else if (i == 10) {
  7483. if (
  7484. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7485. .toolChoose[toolIndex].preTime
  7486. ) {
  7487. this.preTime = JSON.parse(
  7488. JSON.stringify(
  7489. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7490. itemTaskIndex
  7491. ].toolChoose[toolIndex].preTime
  7492. )
  7493. );
  7494. } else {
  7495. var preTime = 0;
  7496. this.preTime = preTime;
  7497. }
  7498. this.dialogVisiblePreTime = true;
  7499. } else if (i == 49) {
  7500. if (
  7501. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7502. .toolChoose[toolIndex].groupJson
  7503. ) {
  7504. this.groupJson = JSON.parse(
  7505. JSON.stringify(
  7506. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7507. itemTaskIndex
  7508. ].toolChoose[toolIndex].groupJson
  7509. )
  7510. );
  7511. } else {
  7512. var groupJson = {
  7513. group: [{ name: "第1组" }],
  7514. number: undefined,
  7515. islock: 1,
  7516. };
  7517. this.groupJson = groupJson;
  7518. }
  7519. this.dialogVisibleGroup = true;
  7520. } else if (i == 62) {
  7521. if (
  7522. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7523. .toolChoose[toolIndex].videoJson
  7524. ) {
  7525. this.videoJson = JSON.parse(
  7526. JSON.stringify(
  7527. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7528. itemTaskIndex
  7529. ].toolChoose[toolIndex].videoJson
  7530. )
  7531. );
  7532. } else {
  7533. var videoJson = {
  7534. video: "",
  7535. setting: [],
  7536. };
  7537. this.videoJson = videoJson;
  7538. }
  7539. this.dialogVisibleVideo = true;
  7540. } else if (i == 15) {
  7541. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7542. itemTaskIndex
  7543. ].toolChoose[toolIndex].answerQ
  7544. ? JSON.parse(
  7545. JSON.stringify(
  7546. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7547. itemTaskIndex
  7548. ].toolChoose[toolIndex].answerQ
  7549. )
  7550. )
  7551. : "";
  7552. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  7553. this.dialogVisible8 = true;
  7554. } else if (i == 40) {
  7555. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7556. itemTaskIndex
  7557. ].toolChoose[toolIndex].rateJson
  7558. ? JSON.parse(
  7559. JSON.stringify(
  7560. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7561. itemTaskIndex
  7562. ].toolChoose[toolIndex].rateJson
  7563. )
  7564. )
  7565. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  7566. this.selectSteps = 1;
  7567. this.dialogVisibleRate = true;
  7568. } else if (i == 42) {
  7569. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7570. itemTaskIndex
  7571. ].toolChoose[toolIndex].answerQ
  7572. ? JSON.parse(
  7573. JSON.stringify(
  7574. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7575. itemTaskIndex
  7576. ].toolChoose[toolIndex].answerQ
  7577. )
  7578. )
  7579. : "";
  7580. this.dialogVisibleMp3 = true;
  7581. } else if (i == 41) {
  7582. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7583. itemTaskIndex
  7584. ].toolChoose[toolIndex].selectJson
  7585. ? JSON.parse(
  7586. JSON.stringify(
  7587. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7588. itemTaskIndex
  7589. ].toolChoose[toolIndex].selectJson
  7590. )
  7591. )
  7592. : { url: "", select: [], answer: [] };
  7593. this.selectSteps = 1;
  7594. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  7595. this.dialogVisibleSelect = true;
  7596. } else if (i == 3) {
  7597. if (!this.cid) {
  7598. this.$message.error(
  7599. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  7600. );
  7601. return;
  7602. }
  7603. window.parent.postMessage(
  7604. {
  7605. tools: "3y",
  7606. cid: this.cid,
  7607. stage: this.unitIndex,
  7608. task: itemTaskIndex,
  7609. tool: toolIndex,
  7610. },
  7611. "*"
  7612. );
  7613. } else if (i == 1) {
  7614. if (!this.cid) {
  7615. this.$message.error(
  7616. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  7617. );
  7618. return;
  7619. }
  7620. window.parent.postMessage(
  7621. {
  7622. tools: "1y",
  7623. cid: this.cid,
  7624. stage: this.unitIndex,
  7625. task: itemTaskIndex,
  7626. tool: toolIndex,
  7627. },
  7628. "*"
  7629. );
  7630. } else if (i == 57) {
  7631. if (!this.cid) {
  7632. this.$message.error(
  7633. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  7634. );
  7635. return;
  7636. }
  7637. window.parent.postMessage(
  7638. {
  7639. tools: "57y",
  7640. cid: this.cid,
  7641. stage: this.unitIndex,
  7642. task: itemTaskIndex,
  7643. tool: toolIndex,
  7644. },
  7645. "*"
  7646. );
  7647. }else if(i == 69){
  7648. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7649. itemTaskIndex
  7650. ].toolChoose[toolIndex].englishList
  7651. ? JSON.parse(
  7652. JSON.stringify(
  7653. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7654. itemTaskIndex
  7655. ].toolChoose[toolIndex].englishList
  7656. )
  7657. )
  7658. : { };
  7659. this.englishDialogVisible = true;
  7660. }
  7661. },
  7662. chapAddTools(i) {
  7663. if (this.chapTools[0].tools.length == 0) {
  7664. this.chapTools[0].tools.push(i);
  7665. } else {
  7666. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7667. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7668. } else {
  7669. this.chapTools[0].tools.push(i);
  7670. }
  7671. }
  7672. this.$forceUpdate();
  7673. },
  7674. addChaptersDataTools() {
  7675. if (this.chapTools[0].tools.indexOf(4) != -1) {
  7676. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7677. this.chapCount
  7678. ].chapterData.push({
  7679. name: this.chapTools[0].toolDetail,
  7680. url: this.chapTools[0].tools,
  7681. type: 7,
  7682. askJson: this.askJson,
  7683. });
  7684. } else {
  7685. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7686. this.chapCount
  7687. ].chapterData.push({
  7688. name: this.chapTools[0].toolDetail,
  7689. url: this.chapTools[0].tools,
  7690. type: 7,
  7691. });
  7692. }
  7693. this.imgChange1(null, null, 7, this.chapCount);
  7694. this.dialogVisible4 = false;
  7695. },
  7696. addTools(i, itemTaskIndex, toolIndex) {
  7697. // if (
  7698. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7699. // .toolChoose[toolIndex].tool.length == 0
  7700. // ) {
  7701. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7702. // itemTaskIndex
  7703. // ].toolChoose[toolIndex].tool.push(i);
  7704. // } else {
  7705. // if (
  7706. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7707. // itemTaskIndex
  7708. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7709. // ) {
  7710. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7711. // itemTaskIndex
  7712. // ].toolChoose[toolIndex].tool.splice(
  7713. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7714. // itemTaskIndex
  7715. // ].toolChoose[toolIndex].tool.indexOf(i),
  7716. // 1
  7717. // );
  7718. // } else {
  7719. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7720. // itemTaskIndex
  7721. // ].toolChoose[toolIndex].tool.push(i);
  7722. // }
  7723. // console.log(
  7724. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7725. // .toolChoose[toolIndex].tool
  7726. // );
  7727. // }
  7728. if (i == 4) {
  7729. if (
  7730. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7731. .toolChoose[toolIndex].askJson.askTitle == "" ||
  7732. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7733. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  7734. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7735. .toolChoose[toolIndex].askJson[0].checkList < 2
  7736. ) {
  7737. this.openTools(itemTaskIndex, 4, toolIndex);
  7738. // this.$message({
  7739. // message: "请填写完整问卷内容",
  7740. // type: "error",
  7741. // });
  7742. return;
  7743. }
  7744. }
  7745. if (i == 45) {
  7746. if (
  7747. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7748. .toolChoose[toolIndex].testJson ||
  7749. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7750. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  7751. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7752. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  7753. ) {
  7754. this.openTools(itemTaskIndex, 45, toolIndex);
  7755. // this.$message({
  7756. // message: "请填写完整问卷内容",
  7757. // type: "error",
  7758. // });
  7759. return;
  7760. }
  7761. }
  7762. if (i == 47) {
  7763. if (
  7764. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7765. .toolChoose[toolIndex].sentenceList ||
  7766. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7767. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  7768. ) {
  7769. this.openTools(itemTaskIndex, 47, toolIndex);
  7770. return;
  7771. }
  7772. }
  7773. if(i == 69){
  7774. if (
  7775. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7776. .toolChoose[toolIndex].englishList.engTitle == "" ||
  7777. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7778. .toolChoose[toolIndex].englishList.englishText == ""
  7779. ) {
  7780. this.openTools(itemTaskIndex, 69, toolIndex);
  7781. return;
  7782. }
  7783. }
  7784. // if (i == 48) {
  7785. // if (
  7786. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7787. // .toolChoose[toolIndex].tableJson
  7788. // ) {
  7789. // this.openTools(itemTaskIndex, 48, toolIndex);
  7790. // return;
  7791. // }
  7792. // }
  7793. // if (i == 50) {
  7794. // if (
  7795. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7796. // .toolChoose[toolIndex].uploadJson
  7797. // ) {
  7798. // this.openTools(itemTaskIndex, 50, toolIndex);
  7799. // return;
  7800. // }
  7801. // }
  7802. if (i == 49) {
  7803. if (
  7804. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7805. .toolChoose[toolIndex].groupJson
  7806. ) {
  7807. this.openTools(itemTaskIndex, 49, toolIndex);
  7808. return;
  7809. }
  7810. }
  7811. if (i == 62) {
  7812. if (
  7813. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7814. .toolChoose[toolIndex].videoJson
  7815. ) {
  7816. this.openTools(itemTaskIndex, 62, toolIndex);
  7817. return;
  7818. }
  7819. }
  7820. if (i == 15) {
  7821. if (
  7822. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7823. .toolChoose[toolIndex].answerQ ||
  7824. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7825. .toolChoose[toolIndex].answerQ == ""
  7826. ) {
  7827. this.openTools(itemTaskIndex, 15, toolIndex);
  7828. // this.$message({
  7829. // message: "请填写问答内容",
  7830. // type: "error",
  7831. // });
  7832. return;
  7833. }
  7834. }
  7835. if (i == 40) {
  7836. if (
  7837. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7838. .toolChoose[toolIndex].rateJson ||
  7839. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7840. .toolChoose[toolIndex].rateJson.length
  7841. ) {
  7842. this.openTools(itemTaskIndex, 40, toolIndex);
  7843. return;
  7844. }
  7845. }
  7846. if (i == 41) {
  7847. if (
  7848. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7849. .toolChoose[toolIndex].selectJson ||
  7850. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7851. .toolChoose[toolIndex].selectJson.url == "" ||
  7852. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7853. .toolChoose[toolIndex].selectJson.select.length ||
  7854. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7855. .toolChoose[toolIndex].selectJson.answer.length
  7856. ) {
  7857. this.openTools(itemTaskIndex, 41, toolIndex);
  7858. return;
  7859. }
  7860. }
  7861. if (i == 42) {
  7862. if (
  7863. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7864. .toolChoose[toolIndex].answerQ ||
  7865. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7866. .toolChoose[toolIndex].answerQ == ""
  7867. ) {
  7868. this.openTools(itemTaskIndex, 42, toolIndex);
  7869. return;
  7870. }
  7871. }
  7872. if (
  7873. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7874. .toolChoose[toolIndex].tool.length > 0
  7875. ) {
  7876. if (
  7877. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7878. itemTaskIndex
  7879. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7880. ) {
  7881. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7882. itemTaskIndex
  7883. ].toolChoose[toolIndex].tool.splice(
  7884. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7885. itemTaskIndex
  7886. ].toolChoose[toolIndex].tool.indexOf(i),
  7887. 1
  7888. );
  7889. } else {
  7890. // this.$message({
  7891. // message: "每个工具只能添加一个",
  7892. // type: "error",
  7893. // });
  7894. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7895. itemTaskIndex
  7896. ].toolChoose[toolIndex].tool = [];
  7897. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7898. itemTaskIndex
  7899. ].toolChoose[toolIndex].tool.push(i);
  7900. }
  7901. } else {
  7902. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7903. itemTaskIndex
  7904. ].toolChoose[toolIndex].tool.push(i);
  7905. }
  7906. this.$forceUpdate();
  7907. },
  7908. addAskList(index) {
  7909. this.askJson.askJson.splice(index + 1, 0, {
  7910. askstitle: "",
  7911. askItem: 1,
  7912. checkList: [],
  7913. })
  7914. this.askJson.askCount++;
  7915. },
  7916. addTestList(index) {
  7917. this.testJson.testJson.splice(index + 1, 0, {
  7918. teststitle: "",
  7919. testItem: 1,
  7920. checkList: [],
  7921. timuList: [],
  7922. answer: [],
  7923. type: "1",
  7924. })
  7925. this.testJson.testCount++;
  7926. },
  7927. deleteAskList(index) {
  7928. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  7929. this.askJson.askJson.splice(index, 1);
  7930. this.askJson.askCount--;
  7931. } else {
  7932. let _this = this;
  7933. _this
  7934. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7935. confirmButtonText: "确定",
  7936. cancelButtonText: "取消",
  7937. type: "warning",
  7938. })
  7939. .then(() => {
  7940. _this.askJson.askJson.splice(index, 1);
  7941. _this.askJson.askCount--;
  7942. })
  7943. .catch(() => {
  7944. return;
  7945. });
  7946. }
  7947. },
  7948. deleteTestList(index) {
  7949. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  7950. this.testJson.testJson.splice(index, 1);
  7951. this.testJson.testCount--;
  7952. } else {
  7953. let _this = this;
  7954. _this
  7955. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7956. confirmButtonText: "确定",
  7957. cancelButtonText: "取消",
  7958. type: "warning",
  7959. })
  7960. .then(() => {
  7961. _this.testJson.testJson.splice(index, 1);
  7962. _this.testJson.testCount--;
  7963. })
  7964. .catch(() => {
  7965. return;
  7966. });
  7967. }
  7968. },
  7969. askMove(type, index) {
  7970. if (type == 1) {
  7971. if (index > 0) {
  7972. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  7973. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7974. this.askJson.askJson[index - 1] = b;
  7975. this.askJson.askJson[index] = a;
  7976. }
  7977. } else {
  7978. if (
  7979. index < this.askJson.askJson.length - 1
  7980. ) {
  7981. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  7982. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7983. this.askJson.askJson[index + 1] = b;
  7984. this.askJson.askJson[index] = a;
  7985. }
  7986. }
  7987. this.$forceUpdate();
  7988. },
  7989. checkMove(type, index, checkIndex) {
  7990. if (type == 1) {
  7991. if (checkIndex > 0) {
  7992. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  7993. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7994. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  7995. this.askJson.askJson[index].checkList[checkIndex] = a;
  7996. }
  7997. } else {
  7998. if (
  7999. checkIndex < this.askJson.askJson[index].checkList.length - 1
  8000. ) {
  8001. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  8002. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  8003. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  8004. this.askJson.askJson[index].checkList[checkIndex] = a;
  8005. }
  8006. }
  8007. this.$forceUpdate();
  8008. },
  8009. testMove(type, index) {
  8010. if (type == 1) {
  8011. if (index > 0) {
  8012. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  8013. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  8014. this.testJson.testJson[index - 1] = b;
  8015. this.testJson.testJson[index] = a;
  8016. }
  8017. } else {
  8018. if (
  8019. index < this.testJson.testJson.length - 1
  8020. ) {
  8021. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  8022. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  8023. this.testJson.testJson[index + 1] = b;
  8024. this.testJson.testJson[index] = a;
  8025. }
  8026. }
  8027. this.$forceUpdate();
  8028. },
  8029. tcheckMove(type, index, checkIndex) {
  8030. if (type == 1) {
  8031. if (checkIndex > 0) {
  8032. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  8033. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8034. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  8035. this.testJson.testJson[index].checkList[checkIndex] = a;
  8036. }
  8037. } else {
  8038. if (
  8039. checkIndex < this.testJson.testJson[index].checkList.length - 1
  8040. ) {
  8041. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  8042. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8043. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  8044. this.testJson.testJson[index].checkList[checkIndex] = a;
  8045. }
  8046. }
  8047. this.$forceUpdate();
  8048. },
  8049. addcheckList(json, index) {
  8050. // json.checkList.length++;
  8051. json.checkList.splice(index + 1, 0, '')
  8052. json.askItem++;
  8053. this.$forceUpdate();
  8054. },
  8055. deletecheckList(json, index) {
  8056. // json.checkList.length--;
  8057. json.checkList.splice(index, 1)
  8058. json.askItem--;
  8059. this.$forceUpdate();
  8060. },
  8061. addTcheckList(json, index) {
  8062. // json.checkList.length++;
  8063. json.checkList.splice(index + 1, 0, '')
  8064. json.testItem++;
  8065. this.$forceUpdate();
  8066. },
  8067. deleteTcheckList(json, index) {
  8068. // json.checkList.length--;
  8069. json.checkList.splice(index, 1)
  8070. json.testItem--;
  8071. this.$forceUpdate();
  8072. },
  8073. checkTestType(type, json) {
  8074. json.type = type;
  8075. setTimeout(() => {
  8076. json.answer = [];
  8077. }, 100)
  8078. this.$forceUpdate();
  8079. },
  8080. checkAskType(type, json) {
  8081. json.type = type;
  8082. // json.checkList = [];
  8083. this.$forceUpdate();
  8084. },
  8085. addSelectList(json) {
  8086. json.select.push("");
  8087. json.answer.push("");
  8088. },
  8089. deleteSelectList(json) {
  8090. // json.select.length--;
  8091. // json.answer.length--;
  8092. json.select.splice(json.select.length - 1, 1);
  8093. json.answer.splice(json.answer.length - 1, 1);
  8094. },
  8095. addAsk() {
  8096. if (this.askJson.askTitle === "") {
  8097. this.$message.error("标题不能为空!");
  8098. return;
  8099. }
  8100. var aj = this.askJson.askJson;
  8101. var b = 1;
  8102. for (var i = 0; i < aj.length; i++) {
  8103. if (aj[i].askstitle === "") {
  8104. var a = 1;
  8105. for (let index = 0; index < aj[i].askItem; index++) {
  8106. const element = aj[i].checkList[index]
  8107. ? aj[i].checkList[index]
  8108. : "";
  8109. if (element != "") {
  8110. b++;
  8111. this.$message.error(`请将题目${i + 1}填写完整。`);
  8112. return;
  8113. } else {
  8114. a++;
  8115. }
  8116. }
  8117. if (b == 1) {
  8118. this.$message.error("至少填写一个问题");
  8119. return;
  8120. }
  8121. } else if (aj[i].askstitle != "") {
  8122. for (let index = 0; index < aj[i].askItem; index++) {
  8123. const element = aj[i].checkList[index]
  8124. ? aj[i].checkList[index]
  8125. : "";
  8126. var index = 0;
  8127. for (var z = 0; z < aj[i].checkList.length; z++) {
  8128. let checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8129. if (checkC != "") {
  8130. index++;
  8131. } else {
  8132. this.$message.error(`题目${i + 1}选项不能为空!`);
  8133. return;
  8134. }
  8135. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8136. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8137. if (checkC == checkC2) {
  8138. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8139. return;
  8140. }
  8141. }
  8142. }
  8143. b++;
  8144. if (index < 2) {
  8145. this.$message.error("每道题目至少需要设置2个选项。");
  8146. return;
  8147. }
  8148. }
  8149. }
  8150. }
  8151. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  8152. var elc = el.checkList.filter((element) => {
  8153. return element != "";
  8154. });
  8155. return el.askstitle != "" && elc.length != 0;
  8156. });
  8157. if (!this.dialogVisible4) {
  8158. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8159. this.taskCount
  8160. ].toolChoose[this.toolIndex] = this.askJson;
  8161. }
  8162. this.dialogVisible5 = false;
  8163. if (
  8164. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8165. .toolChoose[this.toolIndex].tool != 4
  8166. ) {
  8167. this.addTools(4, this.taskCount, this.toolIndex);
  8168. }
  8169. },
  8170. addTest() {
  8171. // if (this.testJson.testTitle === "") {
  8172. // this.$message.error("标题不能为空!");
  8173. // return;
  8174. // }
  8175. var aj = this.testJson.testJson;
  8176. var b = 1;
  8177. for (var i = 0; i < aj.length; i++) {
  8178. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  8179. var a = 1;
  8180. for (let index = 0; index < aj[i].testItem; index++) {
  8181. const element = aj[i].checkList[index]
  8182. ? aj[i].checkList[index]
  8183. : "";
  8184. if (element != "") {
  8185. b++;
  8186. this.$message.error(`请将题目${i + 1}填写完整。`);
  8187. return;
  8188. } else {
  8189. a++;
  8190. }
  8191. }
  8192. if (b == 1) {
  8193. this.$message.error("至少填写一个问题");
  8194. return;
  8195. }
  8196. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  8197. for (let index = 0; index < aj[i].testItem; index++) {
  8198. const element = aj[i].checkList[index]
  8199. ? aj[i].checkList[index]
  8200. : "";
  8201. var index = 0;
  8202. for (var z = 0; z < aj[i].checkList.length; z++) {
  8203. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8204. if (checkC != "") {
  8205. index++;
  8206. } else {
  8207. this.$message.error(`题目${i + 1}选项不能为空!`);
  8208. return;
  8209. }
  8210. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8211. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8212. if (checkC == checkC2) {
  8213. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8214. return;
  8215. }
  8216. }
  8217. }
  8218. b++;
  8219. if (index < 2) {
  8220. this.$message.error("每道题目至少需要设置2个选项。");
  8221. return;
  8222. }
  8223. if (
  8224. (aj[i].type == "2" && !aj[i].answer.length) ||
  8225. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  8226. ) {
  8227. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  8228. return;
  8229. }
  8230. }
  8231. }
  8232. }
  8233. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8234. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8235. var elc = el.checkList.filter((element) => {
  8236. return element != "";
  8237. });
  8238. return (
  8239. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8240. );
  8241. });
  8242. isTestJson.testCount = isTestJson.testJson.length;
  8243. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8244. this.taskCount
  8245. ].toolChoose[this.toolIndex].testJson = isTestJson;
  8246. this.dialogVisibleChoice = false;
  8247. if (
  8248. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8249. .toolChoose[this.toolIndex].tool != 45
  8250. ) {
  8251. this.addTools(45, this.taskCount, this.toolIndex);
  8252. }
  8253. },
  8254. addVideoJson(videoJson) {
  8255. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8256. this.taskCount
  8257. ].toolChoose[this.toolIndex].videoJson = videoJson;
  8258. this.dialogVisibleVideo = false;
  8259. if (
  8260. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8261. .toolChoose[this.toolIndex].tool != 62
  8262. ) {
  8263. this.addTools(62, this.taskCount, this.toolIndex);
  8264. }
  8265. },
  8266. //自动获取剪贴板
  8267. pasteOption() {
  8268. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8269. if (!iframe) {
  8270. this.$message.error("请使用AI共创生成题目");
  8271. return;
  8272. }
  8273. let copyData = iframe.contentWindow.copyData;
  8274. if (!copyData || !copyData.selectData.length) {
  8275. this.$message.error("请使用AI共创生成题目");
  8276. return;
  8277. }
  8278. let selectData = copyData.selectData;
  8279. for (var i = 0; i < selectData.length; i++) {
  8280. let answer = 0;
  8281. switch (selectData[i].answer[0]) {
  8282. case "A":
  8283. answer = 0;
  8284. break;
  8285. case "B":
  8286. answer = 1;
  8287. break;
  8288. case "C":
  8289. answer = 2;
  8290. break;
  8291. case "D":
  8292. answer = 3;
  8293. break;
  8294. case "E":
  8295. answer = 4;
  8296. break;
  8297. default:
  8298. break;
  8299. }
  8300. this.testJson.testJson.push({
  8301. teststitle: selectData[i].subject,
  8302. testItem: selectData[i].options.length,
  8303. checkList: selectData[i].options,
  8304. timuList: [],
  8305. answer: answer,
  8306. type: "1",
  8307. });
  8308. this.testJson.testCount++;
  8309. }
  8310. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8311. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8312. var elc = el.checkList.filter((element) => {
  8313. return element != "";
  8314. });
  8315. return (
  8316. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8317. );
  8318. });
  8319. isTestJson.testCount = isTestJson.testJson.length;
  8320. this.testJson = isTestJson;
  8321. this.$forceUpdate();
  8322. },
  8323. pasteTask() {
  8324. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8325. if (!iframe) {
  8326. this.$message.error("请使用AI共创生成");
  8327. return;
  8328. }
  8329. let copyData = iframe.contentWindow.copyData;
  8330. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  8331. this.$message.error("请使用AI共创生成");
  8332. return;
  8333. }
  8334. let stageTasksData = copyData.tasksData;
  8335. let taskA = [];
  8336. let tasks = stageTasksData;
  8337. for (var j = 0; j < tasks.length; j++) {
  8338. taskA.push({
  8339. task: tasks[j].taskName,
  8340. taskDetail: tasks[j].taskDecs,
  8341. chapterData: [],
  8342. toolText: "",
  8343. toolChoose: [
  8344. {
  8345. tool: [],
  8346. toolDetail: "",
  8347. toolType: 0,
  8348. askCount: 1,
  8349. askTitle: "",
  8350. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8351. },
  8352. ],
  8353. isShowTools: false,
  8354. askCount: 1,
  8355. isFold: 0,
  8356. askTitle: "",
  8357. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8358. checkJson: [{ checkCount: [], checkPerent: [] }],
  8359. homeworkList: [],
  8360. });
  8361. }
  8362. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  8363. this.$forceUpdate();
  8364. },
  8365. pasteStage() {
  8366. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8367. if (!iframe) {
  8368. this.$message.error("请使用AI共创生成");
  8369. return;
  8370. }
  8371. let copyData = iframe.contentWindow.copyData;
  8372. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  8373. this.$message.error("请使用AI共创生成");
  8374. return;
  8375. }
  8376. let stageData = copyData.stageData;
  8377. let stage = [];
  8378. for (var i = 0; i < stageData.length; i++) {
  8379. stage.push({
  8380. dyName: stageData[i], //单元标题
  8381. chapterInfo: [
  8382. {
  8383. isread: false,
  8384. chapterid: this.guid(),
  8385. title: "",
  8386. courseName: "",
  8387. taskJson: [
  8388. {
  8389. task: "",
  8390. taskDetail: "",
  8391. chapterData: [],
  8392. toolText: "",
  8393. toolChoose: [
  8394. {
  8395. tool: [],
  8396. toolDetail: "",
  8397. toolType: 0,
  8398. askCount: 1,
  8399. askTitle: "",
  8400. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8401. },
  8402. ],
  8403. isShowTools: false,
  8404. askCount: 1,
  8405. isFold: 0,
  8406. askTitle: "",
  8407. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8408. checkJson: [{ checkCount: [], checkPerent: [] }],
  8409. homeworkList: [],
  8410. },
  8411. ],
  8412. itemCount: 1,
  8413. fileList1: [],
  8414. video: [],
  8415. testData: [],
  8416. pData: [],
  8417. templateArray: [],
  8418. },
  8419. ],
  8420. });
  8421. }
  8422. let _this = this;
  8423. _this
  8424. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  8425. confirmButtonText: "确定",
  8426. cancelButtonText: "取消",
  8427. type: "warning",
  8428. })
  8429. .then(() => {
  8430. _this.unitIndex = 0;
  8431. _this.unitJson = stage;
  8432. _this.steps++;
  8433. _this.updateWork();
  8434. })
  8435. .catch(() => {
  8436. return;
  8437. });
  8438. },
  8439. addAnswer() {
  8440. if (this.answerQ == "") {
  8441. this.$message.error("请输入您想要问的问题");
  8442. return;
  8443. }
  8444. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8445. this.taskCount
  8446. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8447. this.dialogVisible8 = false;
  8448. if (
  8449. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8450. .toolChoose[this.toolIndex].tool != 15
  8451. ) {
  8452. this.addTools(15, this.taskCount, this.toolIndex);
  8453. }
  8454. },
  8455. addMp3Answer() {
  8456. if (this.answerQ == "") {
  8457. this.$message.error("请输入您想要回答的问题");
  8458. return;
  8459. }
  8460. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8461. this.taskCount
  8462. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8463. this.dialogVisibleMp3 = false;
  8464. },
  8465. addRateAnswer() {
  8466. var a = 1;
  8467. for (var i = 0; i < this.rateJson.length; i++) {
  8468. if (this.rateJson[i].value == "") {
  8469. a = 2;
  8470. break;
  8471. }
  8472. }
  8473. if (a == 2) {
  8474. this.$message.error("请把评价信息填写完整");
  8475. return;
  8476. }
  8477. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8478. this.taskCount
  8479. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  8480. this.dialogVisibleRate = false;
  8481. if (
  8482. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8483. .toolChoose[this.toolIndex].tool != 40
  8484. ) {
  8485. this.addTools(40, this.taskCount, this.toolIndex);
  8486. }
  8487. },
  8488. addSelectAnswer() {
  8489. if (this.selectJson.url == "") {
  8490. this.$message.error("请上传题目");
  8491. return;
  8492. }
  8493. if (!this.selectJson.select.length) {
  8494. this.$message.error("请添加选项");
  8495. return;
  8496. }
  8497. if (!this.selectJson.answer.length) {
  8498. this.$message.error("请设置答案");
  8499. return;
  8500. }
  8501. var a = 1;
  8502. for (var i = 0; i < this.selectJson.answer.length; i++) {
  8503. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  8504. a = 2;
  8505. }
  8506. }
  8507. if (a == 2) {
  8508. this.$message.error("请设置答案");
  8509. return;
  8510. }
  8511. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8512. this.taskCount
  8513. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  8514. this.dialogVisibleSelect = false;
  8515. if (
  8516. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8517. .toolChoose[this.toolIndex].tool != 41
  8518. ) {
  8519. this.addTools(41, this.taskCount, this.toolIndex);
  8520. }
  8521. },
  8522. nextSelectSteps() {
  8523. if (this.selectJson.url == "") {
  8524. this.$message.error("请上传题目");
  8525. return;
  8526. }
  8527. if (!this.selectJson.select.length) {
  8528. this.$message.error("请添加选项");
  8529. return;
  8530. } else {
  8531. for (var z = 0; z < this.selectJson.select.length; z++) {
  8532. let checkC = this.selectJson.select[z];
  8533. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  8534. let checkC2 = this.selectJson.select[z2];
  8535. if (checkC == checkC2) {
  8536. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8537. return;
  8538. }
  8539. }
  8540. }
  8541. }
  8542. var a = 1;
  8543. for (var i = 0; i < this.selectJson.select.length; i++) {
  8544. if (!this.selectJson.select[i]) {
  8545. a = 2;
  8546. }
  8547. }
  8548. if (a == 2) {
  8549. this.$message.error("添加的选项不能为空");
  8550. return;
  8551. }
  8552. this.selectSteps++;
  8553. },
  8554. selectCourseDetail() {
  8555. if (this.cid == "" || this.cid == undefined) {
  8556. console.log("这是新增课程");
  8557. this.selectAllType();
  8558. } else {
  8559. this.cidType = 1;
  8560. let params = {
  8561. cid: this.cid,
  8562. };
  8563. this.ajax
  8564. .get(this.$store.state.api + "select_course_detail", params)
  8565. .then((res) => {
  8566. this.loading = true;
  8567. this.unitJson = JSON.parse(res.data[0][0].chapters);
  8568. for (var j = 0; j < this.unitJson.length; j++) {
  8569. for (
  8570. var k = 0;
  8571. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  8572. k++
  8573. ) {
  8574. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  8575. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8576. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8577. : [];
  8578. let _chapterData = [];
  8579. for (
  8580. var c = 0;
  8581. c <
  8582. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  8583. .length;
  8584. c++
  8585. ) {
  8586. if (
  8587. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8588. ) {
  8589. _chapterData.push(
  8590. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8591. );
  8592. }
  8593. }
  8594. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  8595. _chapterData;
  8596. }
  8597. }
  8598. this.$forceUpdate();
  8599. this.courseName = res.data[0][0].title;
  8600. this.courseText = res.data[0][0].brief;
  8601. this.evalua = res.data[0][0].evaId;
  8602. this.cover = JSON.parse(res.data[0][0].cover);
  8603. this.noneBtnImg = this.cover.length >= 1;
  8604. // this.checkboxList =
  8605. // res.data[0][0].course_student.length > 0
  8606. // ? JSON.parse(res.data[0][0].course_student)
  8607. // : [];
  8608. this.checkboxList2 = res.data[0][0].juri
  8609. ? res.data[0][0].juri.split(",")
  8610. : [];
  8611. this.inviteCode = [];
  8612. for (var i = 0; i < res.data[2].length; i++) {
  8613. this.inviteCode.push({
  8614. cid: res.data[2][i].classid,
  8615. ic: res.data[2][i].code,
  8616. });
  8617. }
  8618. this.checkboxList3 = res.data[0][0].course_teacher
  8619. ? res.data[0][0].course_teacher.split(",")
  8620. : [];
  8621. // this.isTeacherSee =
  8622. // res.data[0][0].is_teacher_look == 0 ? true : false;
  8623. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  8624. this.myWord = res.data[0][0].template;
  8625. this.templateC.id = "123";
  8626. this.courseUserid = res.data[0][0].userid;
  8627. // if(this.courseUserid == this.userid){
  8628. // this.InviteChange(this.checkboxList2)
  8629. // }
  8630. this.nbOrder = res.data[0][0].ordernumber;
  8631. this.courseTypeId = [];
  8632. for (var i = 0; i < res.data[1].length; i++) {
  8633. this.courseTypeId.push(res.data[1][i].typeid);
  8634. }
  8635. console.log(this.courseTypeId);
  8636. // if (this.timer) clearInterval(this.timer);
  8637. if (this.timer) clearTimeout(this.timer);
  8638. this.timer = null;
  8639. // this.timer = setInterval(() => {
  8640. // this.seleteCourseUpdate();
  8641. this.setMan();
  8642. this.selectAllType();
  8643. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  8644. // }, 5000);
  8645. this.$forceUpdate();
  8646. setTimeout(() => {
  8647. this.checkEva(this.evalua);
  8648. }, 0);
  8649. })
  8650. .catch((err) => {
  8651. console.error(err);
  8652. });
  8653. }
  8654. },
  8655. seleteCourseUpdate() {
  8656. let params = {
  8657. cid: this.cid,
  8658. };
  8659. this.ajax
  8660. .get(this.$store.state.api + "select_course_detail", params)
  8661. .then((res) => {
  8662. // console.log(this.unitJson);
  8663. let unitJson = JSON.parse(res.data[0][0].chapters);
  8664. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  8665. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  8666. let _unitJson = [];
  8667. let _chapAarry = [];
  8668. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  8669. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  8670. let index = 1;
  8671. let chapindex;
  8672. if (_unitJson2.length > unitJson.length) {
  8673. for (let c = 0; c < _unitJson2.length; c++) {
  8674. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  8675. }
  8676. for (let j = 0; j < unitJson.length; j++) {
  8677. let count = 0;
  8678. for (let k = 0; k < _unitJson2.length; k++) {
  8679. if (
  8680. unitJson[j].chapterInfo[0].chapterid ==
  8681. _unitJson2[k].chapterInfo[0].chapterid
  8682. ) {
  8683. count++;
  8684. _chapAarry.splice(
  8685. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8686. 1
  8687. );
  8688. _unitJson.push(unitJson[j]);
  8689. break;
  8690. }
  8691. }
  8692. // if(count === 0){
  8693. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8694. // }
  8695. }
  8696. for (let k = 0; k < _unitJson2.length; k++) {
  8697. if (_unitJson2[k].isUpdate == 1) {
  8698. _chapAarry.splice(
  8699. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8700. 1
  8701. );
  8702. _unitJson.push(_unitJson2[k]);
  8703. }
  8704. }
  8705. console.log(_chapAarry);
  8706. for (let d = 0; d < _unitJson2.length; d++) {
  8707. if (
  8708. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  8709. ) {
  8710. if (_unitIndex == d) {
  8711. index = 2;
  8712. }
  8713. chapindex = d;
  8714. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8715. }
  8716. }
  8717. } else {
  8718. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  8719. }
  8720. for (let i = 0; i < unitJson.length; i++) {
  8721. if (
  8722. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  8723. _unitJson[i].chapterInfo[0].chapterid !=
  8724. unitJson[i].chapterInfo[0].chapterid
  8725. ) {
  8726. if (i == _unitJson.length - 1) {
  8727. // this.unitIndex++
  8728. _unitIndex2++;
  8729. }
  8730. _unitJson.splice(i, 0, unitJson[i]);
  8731. } else if (i > _unitJson.length - 1) {
  8732. _unitJson.push(unitJson[i]);
  8733. } else if (
  8734. _unitJson[i].chapterInfo[0].chapterid ==
  8735. unitJson[i].chapterInfo[0].chapterid
  8736. ) {
  8737. _unitJson[i] = unitJson[i];
  8738. }
  8739. // if (i == _unitIndex) {
  8740. // continue;
  8741. // } else
  8742. }
  8743. if (_chapAarry.length && index != 2) {
  8744. if (chapindex < _unitIndex) {
  8745. this.isDelete = 2;
  8746. // this.unitIndex--;
  8747. _unitIndex2--;
  8748. } else if (
  8749. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  8750. _unitJson[_unitIndex].chapterInfo[0].chapterid
  8751. ) {
  8752. this.isDelete = 2;
  8753. for (let n = 0; n < _unitJson.length; n++) {
  8754. if (
  8755. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  8756. _unitJson[n].chapterInfo[0].chapterid
  8757. ) {
  8758. // this.unitIndex = n;
  8759. _unitIndex2 = n;
  8760. _unitJson[n] = _unitJson2[_unitIndex];
  8761. break;
  8762. }
  8763. }
  8764. }
  8765. } else if (index != 2) {
  8766. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  8767. _unitJson2[_unitIndex];
  8768. for (
  8769. var ci = 0;
  8770. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  8771. ci++
  8772. ) {
  8773. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  8774. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  8775. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8776. .toolChoose
  8777. : [];
  8778. let _chapterData = [];
  8779. for (
  8780. var c = 0;
  8781. c <
  8782. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  8783. .length;
  8784. c++
  8785. ) {
  8786. if (
  8787. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8788. .chapterData[c]
  8789. ) {
  8790. _chapterData.push(
  8791. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8792. .chapterData[c]
  8793. );
  8794. }
  8795. }
  8796. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  8797. _chapterData;
  8798. }
  8799. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  8800. }
  8801. if (index == 1) {
  8802. this.unitJson = _unitJson;
  8803. this.$forceUpdate();
  8804. setTimeout(() => {
  8805. if (this.unitIndex != _unitIndex2) {
  8806. this.isDelete = 2;
  8807. this.unitIndex = _unitIndex2;
  8808. }
  8809. }, 0);
  8810. this.timer = setTimeout(() => {
  8811. this.seleteCourseUpdate();
  8812. }, 1000);
  8813. } else if (index == 2) {
  8814. let _this = this;
  8815. _this
  8816. .$confirm(
  8817. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  8818. "提示",
  8819. {
  8820. confirmButtonText: "需要",
  8821. cancelButtonText: "取消",
  8822. type: "warning",
  8823. }
  8824. )
  8825. .then(() => {
  8826. if (_this.time()) {
  8827. _this.restoreWork(
  8828. _chapAarry[0],
  8829. _unitJson,
  8830. chapindex,
  8831. _unitJson2,
  8832. _unitIndex2
  8833. );
  8834. }
  8835. })
  8836. .catch(() => {
  8837. _this.unitJson = _unitJson;
  8838. _this.$forceUpdate();
  8839. setTimeout(() => {
  8840. if (this.unitIndex != _unitIndex2) {
  8841. this.isDelete = 2;
  8842. this.unitIndex = _unitIndex2;
  8843. }
  8844. }, 0);
  8845. _this.timer = setTimeout(() => {
  8846. _this.seleteCourseUpdate();
  8847. }, 1000);
  8848. });
  8849. }
  8850. })
  8851. .catch((err) => {
  8852. console.error(err);
  8853. });
  8854. },
  8855. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  8856. let params = [
  8857. {
  8858. cid: this.cid,
  8859. chapters: JSON.stringify(this.unitJson),
  8860. uid: this.userid,
  8861. chapid: chapid,
  8862. },
  8863. ];
  8864. this.ajax
  8865. .post(this.$store.state.api + "restoreWork", params)
  8866. .then((res) => {
  8867. this.$message({
  8868. message: "恢复成功",
  8869. type: "success",
  8870. });
  8871. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  8872. this.unitJson = unitJson;
  8873. this.$forceUpdate();
  8874. setTimeout(() => {
  8875. if (this.unitIndex != unitIndex2) {
  8876. this.isDelete = 2;
  8877. this.unitIndex = unitIndex2;
  8878. }
  8879. }, 0);
  8880. this.timer = setTimeout(() => {
  8881. this.seleteCourseUpdate();
  8882. }, 1000);
  8883. })
  8884. .catch((err) => {
  8885. this.$message.error("网络不佳");
  8886. console.error(err);
  8887. });
  8888. },
  8889. getTypeName() {
  8890. console.log(this.courseTypeId);
  8891. this.$forceUpdate();
  8892. },
  8893. selectAllType() {
  8894. let params = {
  8895. org: this.org && this.org != "" ? this.org : "",
  8896. oid: this.oid && this.oid != "" ? this.oid : "",
  8897. };
  8898. this.ajax
  8899. .get(this.$store.state.api + "selectAllType", params)
  8900. .then((res) => {
  8901. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8902. res.data[0] = [...res.data[0], ...res.data[4]]
  8903. }
  8904. this.CourseType = res.data;
  8905. this.CourseType2 = [
  8906. { name: "智见课程", id: [] },
  8907. { name: "智行课程", id: [] },
  8908. { name: "智创课程", id: [] },
  8909. ];
  8910. for (var cti = 0; cti < res.data[0].length; cti++) {
  8911. if (
  8912. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  8913. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  8914. ) {
  8915. this.CourseType2[0].id.push(res.data[0][cti].id);
  8916. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  8917. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8918. this.CourseType2[1].id.push(res.data[0][cti].id);
  8919. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8920. this.CourseType2[2].id.push(res.data[0][cti].id);
  8921. }
  8922. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  8923. res.data[0][cti].name = "年级";
  8924. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8925. res.data[0][cti].name = "学科";
  8926. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8927. res.data[0][cti].name = "主题";
  8928. }
  8929. }
  8930. let _courseTypeId = [];
  8931. for (var i = 0; i < res.data[0].length; i++) {
  8932. if (!this.cid) {
  8933. this.courseTypeId[res.data[0][i].id] = [];
  8934. }
  8935. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  8936. // }
  8937. this.CourseTypeJson[res.data[0][i].id] = [];
  8938. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8939. if (res.data[0][i].name == "栏目") {
  8940. this.CourseType[0][i].name = "主题";
  8941. }
  8942. }
  8943. if (res.data[2].length == 0 && res.data[3].length == 0) {
  8944. for (var j = 0; j < res.data[1].length; j++) {
  8945. if (
  8946. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  8947. _courseTypeId.indexOf(res.data[1][j].id) == -1
  8948. ) {
  8949. _courseTypeId.push(res.data[1][j].id);
  8950. }
  8951. if (res.data[0][i].id == res.data[1][j].pid) {
  8952. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8953. }
  8954. }
  8955. } else {
  8956. if (res.data[2].length > 0) {
  8957. for (var j = 0; j < res.data[2].length; j++) {
  8958. if (
  8959. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  8960. _courseTypeId.indexOf(res.data[2][j].id) == -1
  8961. ) {
  8962. _courseTypeId.push(res.data[2][j].id);
  8963. }
  8964. if (res.data[0][i].id == res.data[2][j].pid) {
  8965. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  8966. }
  8967. }
  8968. }
  8969. if (res.data[3].length > 0) {
  8970. for (var j = 0; j < res.data[3].length; j++) {
  8971. if (
  8972. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  8973. _courseTypeId.indexOf(res.data[3][j].id) == -1
  8974. ) {
  8975. _courseTypeId.push(res.data[3][j].id);
  8976. }
  8977. if (res.data[0][i].id == res.data[3][j].pid) {
  8978. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  8979. }
  8980. }
  8981. }
  8982. }
  8983. }
  8984. this.courseTypeId = _courseTypeId;
  8985. })
  8986. .catch((err) => {
  8987. console.error(err);
  8988. });
  8989. },
  8990. selectType() {
  8991. this.ajax
  8992. .get(this.$store.state.api + "selectType")
  8993. .then((res) => {
  8994. this.CourseType = res.data;
  8995. for (var i = 0; i < res.data[0].length; i++) {
  8996. if (!this.cid) {
  8997. this.courseTypeId[res.data[0][i].id] = "";
  8998. }
  8999. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9000. if (res.data[0][i].name == "栏目") {
  9001. this.CourseType[0][i].name = "主题";
  9002. }
  9003. }
  9004. for (var j = 0; j < res.data[1].length; j++) {
  9005. if (res.data[0][i].id == res.data[1][j].pid) {
  9006. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9007. this.CourseTypeJson[res.data[0][i].id] = [];
  9008. }
  9009. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9010. }
  9011. }
  9012. }
  9013. this.selectTypeByOid();
  9014. this.selectTypeByOrg();
  9015. })
  9016. .catch((err) => {
  9017. console.error(err);
  9018. });
  9019. },
  9020. selectTypeByOid() {
  9021. let params = {
  9022. oid: this.oid,
  9023. };
  9024. this.ajax
  9025. .get(this.$store.state.api + "selectTypeByOid", params)
  9026. .then((res) => {
  9027. for (var i = 0; i < res.data[0].length; i++) {
  9028. for (var j = 0; j < res.data[1].length; j++) {
  9029. if (res.data[0][i].id == res.data[1][j].pid) {
  9030. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9031. this.CourseTypeJson[res.data[0][i].id] = [];
  9032. }
  9033. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9034. }
  9035. }
  9036. }
  9037. })
  9038. .catch((err) => {
  9039. console.error(err);
  9040. });
  9041. },
  9042. selectTypeByOrg() {
  9043. let params = {
  9044. oid: this.org,
  9045. };
  9046. this.ajax
  9047. .get(this.$store.state.api + "selectTypeByOrg", params)
  9048. .then((res) => {
  9049. for (var i = 0; i < res.data[0].length; i++) {
  9050. for (var j = 0; j < res.data[1].length; j++) {
  9051. if (res.data[0][i].id == res.data[1][j].pid) {
  9052. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9053. this.CourseTypeJson[res.data[0][i].id] = [];
  9054. }
  9055. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9056. }
  9057. }
  9058. }
  9059. this.$forceUpdate();
  9060. })
  9061. .catch((err) => {
  9062. console.error(err);
  9063. });
  9064. },
  9065. OtherMb(type) {
  9066. this.typeMode = type;
  9067. setTimeout(() => {
  9068. this.checkEva(this.checkId);
  9069. }, 0);
  9070. },
  9071. openMember() {
  9072. this.searchTN = "";
  9073. this.getTeacher();
  9074. this.dialogVisibleMember = true;
  9075. },
  9076. checkEva(id, type) {
  9077. this.dialogVisiblemb = false;
  9078. this.selectEva();
  9079. if (this.evalua != id && type == 2) {
  9080. this.$message.success("导入成功");
  9081. }
  9082. this.evalua = id;
  9083. this.checkId = id;
  9084. if (this.evalua != "") {
  9085. for (var i = 0; i < this.evaJuri.length; i++) {
  9086. if (this.evalua == this.evaJuri[i].id) {
  9087. this.eTitle = this.evaJuri[i].title;
  9088. this.eJson = JSON.parse(this.evaJuri[i].content);
  9089. }
  9090. }
  9091. this.data.data = [];
  9092. this.$forceUpdate();
  9093. setTimeout(() => {
  9094. this.setMindData();
  9095. }, 500);
  9096. }
  9097. },
  9098. deleteEva() {
  9099. let _this = this;
  9100. if (_this.evalua == "") {
  9101. this.$message.warning("内容已经清空了,请勿重复清空");
  9102. return;
  9103. }
  9104. _this
  9105. .$confirm("确定删除此目标吗?", "提示", {
  9106. confirmButtonText: "确定",
  9107. cancelButtonText: "取消",
  9108. type: "warning",
  9109. })
  9110. .then(() => {
  9111. _this.evalua = "";
  9112. _this.checkId = "";
  9113. _this.eTitle = "";
  9114. let _unitJson = _this.unitJson;
  9115. for (var i = 0; i < _unitJson.length; i++) {
  9116. let _task = _unitJson[i].chapterInfo[0].taskJson;
  9117. for (var j = 0; j < _task.length; j++) {
  9118. let _eList = _task[j].eList;
  9119. for (var k = 0; k < _eList.length; k++) {
  9120. delete _eList[k].target;
  9121. }
  9122. }
  9123. }
  9124. _this.$forceUpdate();
  9125. if (_this.cid) {
  9126. _this.updateWork();
  9127. }
  9128. })
  9129. .catch(() => {
  9130. return;
  9131. });
  9132. },
  9133. selectEva() {
  9134. let params = {
  9135. oid: this.oid,
  9136. };
  9137. this.ajax
  9138. .get(this.$store.state.api + "selectAllEvaluation", params)
  9139. .then((res) => {
  9140. this.evaJuri = res.data[0];
  9141. })
  9142. .catch((err) => {
  9143. console.error(err);
  9144. });
  9145. },
  9146. setMindData() {
  9147. let targetArray = [];
  9148. this.data.data = [];
  9149. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  9150. let _eJson = Object.keys(this.eJson);
  9151. let _e = this.eJson;
  9152. for (let i = 0; i < _eJson.length; i++) {
  9153. let element = _e[_eJson[i]];
  9154. this.data.data.push({
  9155. id: element.id,
  9156. parentid: "root",
  9157. topic: element.name,
  9158. });
  9159. // targetArray.push({
  9160. // id: element.id,
  9161. // parentid: "root",
  9162. // name: element.name,
  9163. // });
  9164. targetArray.push({
  9165. value: element.name,
  9166. label: element.name,
  9167. children: [],
  9168. });
  9169. let _eJsonc = Object.keys(element.child);
  9170. let _e2 = element.child;
  9171. for (let j = 0; j < _eJsonc.length; j++) {
  9172. let _ec = _e2[_eJsonc[j]];
  9173. this.data.data.push({
  9174. id: _ec.id,
  9175. parentid: element.id,
  9176. topic: _ec.name,
  9177. });
  9178. // targetArray.push({
  9179. // id: _ec.id,
  9180. // parentid: element.id,
  9181. // name: _ec.name,
  9182. // });
  9183. targetArray[i].children.push({
  9184. value: _ec.name,
  9185. label: _ec.name,
  9186. children: [],
  9187. });
  9188. let _eJsonz = Object.keys(_ec.child);
  9189. let _e3 = _ec.child;
  9190. for (let z = 0; z < _eJsonz.length; z++) {
  9191. let _ez = _e3[_eJsonz[z]];
  9192. this.data.data.push({
  9193. id: _ez.id,
  9194. parentid: _ec.id,
  9195. topic: _ez.name,
  9196. });
  9197. // targetArray.push({
  9198. // id: _ez.id,
  9199. // parentid: _ec.id,
  9200. // name: _ez.name,
  9201. // });
  9202. targetArray[i].children[j].children.push({
  9203. value: _ez.name,
  9204. label: _ez.name,
  9205. });
  9206. }
  9207. }
  9208. }
  9209. this.targetArray = targetArray;
  9210. this.$forceUpdate();
  9211. },
  9212. /*添加评价 */
  9213. addEList(index, tIndex) {
  9214. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  9215. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  9216. value: "",
  9217. detail: "",
  9218. score: 5,
  9219. })
  9220. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  9221. { value: "", detail: "", score: 5 },
  9222. ]);
  9223. this.$forceUpdate();
  9224. },
  9225. forceUpdate() {
  9226. this.$forceUpdate();
  9227. },
  9228. deletEList(index, tIndex, eIndex) {
  9229. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  9230. eIndex,
  9231. 1
  9232. );
  9233. this.$forceUpdate();
  9234. },
  9235. getChoosePic(t) {
  9236. this.chooseType = t;
  9237. this.getAllBanner();
  9238. },
  9239. getAllBanner() {
  9240. this.sysPicVisible = true;
  9241. let params = {
  9242. t: this.chooseType,
  9243. };
  9244. this.ajax
  9245. .get(this.$store.state.api + "selectAllBanner", params)
  9246. .then((res) => {
  9247. this.sysPic = res.data[0];
  9248. })
  9249. .catch((err) => {
  9250. console.error(err);
  9251. });
  9252. },
  9253. // getClass() {
  9254. // let params = {
  9255. // oid: this.oid,
  9256. // };
  9257. // this.ajax
  9258. // .get(this.$store.state.api + "selectClassBySchool", params)
  9259. // .then((res) => {
  9260. // this.classJuri = res.data[0];
  9261. // })
  9262. // .catch((err) => {
  9263. // console.error(err);
  9264. // });
  9265. // },
  9266. deleteSysPic() {
  9267. this.cover = [];
  9268. this.isSysPic = false;
  9269. this.isSysPic2 = false;
  9270. },
  9271. deleteSelectPic() {
  9272. this.selectJson.url = "";
  9273. },
  9274. setEListStar() {
  9275. this.$forceUpdate();
  9276. },
  9277. deletRateList(i) {
  9278. this.rateJson.splice(i, 1);
  9279. },
  9280. addRateList() {
  9281. this.rateJson.push({ detail: "", score: 5, value: "" });
  9282. },
  9283. addSt() {
  9284. this.sentenceList.push({
  9285. sentenceTitle: "",
  9286. addSentence: [],
  9287. rightAnswer: [],
  9288. });
  9289. },
  9290. addSen(i) {
  9291. if (!this.sentenceList[i].sentenceTitle) {
  9292. this.$message.error("请填写卡片内容!");
  9293. return;
  9294. }
  9295. if (this.sentenceList[i].sentenceTitle.length > 10) {
  9296. this.$message.error("卡片内容字数不能超过10位");
  9297. return;
  9298. }
  9299. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  9300. this.$message.error("不能添加重复的卡片内容!");
  9301. return;
  9302. }
  9303. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  9304. // this.isPushTitleList.push(this.sentenceTitle);
  9305. this.sentenceList[i].sentenceTitle = "";
  9306. },
  9307. setRightAnswer(s, i, j) {
  9308. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  9309. this.sentenceList[i].rightAnswer.push(s);
  9310. }
  9311. },
  9312. returnCard(r, i, j) {
  9313. this.sentenceList[i].rightAnswer.splice(j, 1);
  9314. },
  9315. addSentenceTool() {
  9316. for (var i = 0; i < this.sentenceList.length; i++) {
  9317. if (this.sentenceList[i].rightAnswer.length == 0) {
  9318. this.$message.error(`请将题目${i + 1}设置完整。`);
  9319. return;
  9320. }
  9321. if (
  9322. this.sentenceList[i].addSentence.length !=
  9323. this.sentenceList[i].rightAnswer.length
  9324. ) {
  9325. this.$message.error(`请将题目${i + 1}设置完整。`);
  9326. return;
  9327. }
  9328. }
  9329. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9330. this.taskCount
  9331. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  9332. this.sentenceList = [
  9333. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9334. ];
  9335. this.dialogVisibleSentence = false;
  9336. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9337. // itemTaskIndex
  9338. // ].toolChoose[toolIndex].tool = [];
  9339. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9340. // itemTaskIndex
  9341. // ].toolChoose[toolIndex].tool.push(i);
  9342. if (
  9343. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9344. .toolChoose[this.toolIndex].tool != 47
  9345. ) {
  9346. this.addTools(47, this.taskCount, this.toolIndex);
  9347. }
  9348. },
  9349. addTableJson() {
  9350. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  9351. // this.$message.error("请将信息填写完整!");
  9352. // return;
  9353. // }
  9354. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9355. this.taskCount
  9356. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  9357. // this.tableJson = [{ text: "" }];
  9358. // this.dialogVisibleTable = false;
  9359. this.$message.success("上传成功");
  9360. if (
  9361. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9362. .toolChoose[this.toolIndex].tool != 48
  9363. ) {
  9364. this.addTools(48, this.taskCount, this.toolIndex);
  9365. }
  9366. },
  9367. addWordJson() {
  9368. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9369. this.taskCount
  9370. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  9371. // this.wordJson = [{ text: "" }];
  9372. // this.dialogVisibleWord = false;
  9373. this.$message.success("上传成功");
  9374. if (
  9375. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9376. .toolChoose[this.toolIndex].tool != 52
  9377. ) {
  9378. this.addTools(52, this.taskCount, this.toolIndex);
  9379. }
  9380. },
  9381. addMoreUpload() {
  9382. if (this.uploadJson.length == 0) {
  9383. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9384. this.taskCount
  9385. ].toolChoose[this.toolIndex].uploadJson = [];
  9386. } else {
  9387. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9388. this.taskCount
  9389. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  9390. }
  9391. this.uploadJson = [];
  9392. this.dialogVisibleMoreUpload = false;
  9393. if (
  9394. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9395. .toolChoose[this.toolIndex].tool != 50
  9396. ) {
  9397. this.addTools(50, this.taskCount, this.toolIndex);
  9398. }
  9399. },
  9400. addPreTime() {
  9401. if (this.preTime == 0) {
  9402. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9403. this.taskCount
  9404. ].toolChoose[this.toolIndex].preTime = 0;
  9405. } else {
  9406. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9407. this.taskCount
  9408. ].toolChoose[this.toolIndex].preTime = this.preTime;
  9409. }
  9410. this.preTime = 0;
  9411. this.dialogVisiblePreTime = false;
  9412. if (
  9413. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9414. .toolChoose[this.toolIndex].tool != 10
  9415. ) {
  9416. this.addTools(10, this.taskCount, this.toolIndex);
  9417. }
  9418. },
  9419. goToTask(i) {
  9420. this.toolIndexType = ''
  9421. if (this.isClickColor == (i + 1)) {
  9422. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9423. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9424. } else {
  9425. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9426. }
  9427. this.$forceUpdate();
  9428. return;
  9429. }
  9430. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9431. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9432. } else {
  9433. document.querySelectorAll(".rightBox")[0].scrollTop =
  9434. document.querySelectorAll(".taskBorder")[i + 1].offsetTop +
  9435. document.querySelectorAll(".taskBorder")[i + 1].parentElement.parentElement.offsetTop;
  9436. this.isClickColor = i + 1;
  9437. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9438. }
  9439. this.$forceUpdate();
  9440. },
  9441. taskMove(type, index) {
  9442. // this
  9443. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  9444. // confirmButtonText: "确定",
  9445. // cancelButtonText: "取消",
  9446. // type: "warning",
  9447. // })
  9448. // .then(() => {
  9449. if (type == 1) {
  9450. if (index > 0) {
  9451. let a = JSON.parse(
  9452. JSON.stringify(
  9453. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  9454. )
  9455. );
  9456. let b = JSON.parse(
  9457. JSON.stringify(
  9458. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  9459. )
  9460. );
  9461. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  9462. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9463. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9464. if (index - 1 == 0) {
  9465. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9466. index - 1
  9467. ].chapterData = a.chapterData;
  9468. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9469. index
  9470. ].chapterData = b.chapterData;
  9471. }
  9472. }
  9473. } else {
  9474. if (
  9475. index <
  9476. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  9477. ) {
  9478. let a = JSON.parse(
  9479. JSON.stringify(
  9480. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  9481. )
  9482. );
  9483. let b = JSON.parse(
  9484. JSON.stringify(
  9485. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  9486. )
  9487. );
  9488. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  9489. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9490. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9491. if (index == 0) {
  9492. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9493. index + 1
  9494. ].chapterData = a.chapterData;
  9495. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9496. index
  9497. ].chapterData = b.chapterData;
  9498. }
  9499. }
  9500. }
  9501. this.$forceUpdate();
  9502. // })
  9503. // .catch(() => {
  9504. // return;
  9505. // })
  9506. },
  9507. addGroup(i) {
  9508. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  9509. this.groupJson.group.push({
  9510. name: "第" + (this.groupJson.group.length + 1) + "组",
  9511. });
  9512. },
  9513. deleteGroup(i) {
  9514. this.groupJson.group.splice(i, 1);
  9515. },
  9516. numberPan() {
  9517. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  9518. this.$message.error('请输入2-10的数字')
  9519. this.groupJson.number = ''
  9520. }
  9521. },
  9522. addGroupJson() {
  9523. for (var i = 0; i < this.groupJson.group.length; i++) {
  9524. if (!this.groupJson.group[i].name) {
  9525. this.$message.error("请将信息填写完整!");
  9526. return;
  9527. }
  9528. }
  9529. if (!this.groupJson.number) {
  9530. this.$message.error("请将信息填写完整!");
  9531. return;
  9532. }
  9533. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9534. this.taskCount
  9535. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  9536. JSON.stringify(this.groupJson)
  9537. );
  9538. this.dialogVisibleGroup = false;
  9539. this.groupJson = {};
  9540. if (
  9541. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9542. .toolChoose[this.toolIndex].tool != 49
  9543. ) {
  9544. this.addTools(49, this.taskCount, this.toolIndex);
  9545. }
  9546. },
  9547. updateTime(preTime) {
  9548. this.preTime = preTime;
  9549. },
  9550. InviteChange(val) {
  9551. console.log(val);
  9552. let _check = []
  9553. let _check2 = []
  9554. for (var i = 0; i < this.grade2.length; i++) {
  9555. var gid = this.grade2[i].id
  9556. _check.push(gid)
  9557. }
  9558. for (var i = 0; i < this.checkboxList2.length; i++) {
  9559. var _id = this.checkboxList2[i]
  9560. if (_check.indexOf(_id) !== -1) {
  9561. _check2.push(_id)
  9562. }
  9563. }
  9564. this.checkAll = _check2.length === _check.length;
  9565. return;
  9566. let array = JSON.parse(JSON.stringify(val));
  9567. this.inviteCode = this.inviteCode.filter((el) => {
  9568. if (val.indexOf(el.cid) != -1) {
  9569. array.splice(array.indexOf(el.cid), 1);
  9570. return el;
  9571. }
  9572. });
  9573. for (var i = 0; i < array.length; i++) {
  9574. this.getInviteCode(array[i]);
  9575. }
  9576. },
  9577. handleCheckAllChange(val) {
  9578. if (val) {
  9579. for (var i = 0; i < this.grade2.length; i++) {
  9580. var gid = this.grade2[i].id
  9581. if (this.checkboxList2.indexOf(gid) === -1) {
  9582. this.checkboxList2.push(gid)
  9583. }
  9584. }
  9585. } else {
  9586. let _check = []
  9587. let _check2 = []
  9588. for (var i = 0; i < this.grade2.length; i++) {
  9589. var gid = this.grade2[i].id
  9590. _check.push(gid)
  9591. }
  9592. for (var i = 0; i < this.checkboxList2.length; i++) {
  9593. var _id = this.checkboxList2[i]
  9594. if (_check.indexOf(_id) === -1) {
  9595. _check2.push(_id)
  9596. }
  9597. }
  9598. this.checkboxList2 = _check2
  9599. }
  9600. this.isIndeterminate = false;
  9601. },
  9602. async getInviteCode(cid) {
  9603. let code = this.randomNumber();
  9604. let params = {
  9605. code: code,
  9606. oid: this.oid,
  9607. };
  9608. let type = 1;
  9609. for (var i = 0; i < this.inviteCode.length; i++) {
  9610. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  9611. type = 2;
  9612. }
  9613. }
  9614. if (type == 2) {
  9615. this.getInviteCode(cid);
  9616. return;
  9617. }
  9618. const res = await this.ajax.get(
  9619. this.$store.state.api + "selectInviteCode2",
  9620. params
  9621. );
  9622. if (
  9623. res.data.length &&
  9624. res.data[0].length &&
  9625. res.data[0][0].courseId != this.cid
  9626. ) {
  9627. this.getInviteCode(cid);
  9628. return;
  9629. }
  9630. let array = [];
  9631. for (var i = 0; i < this.inviteCode.length; i++) {
  9632. array.push(this.inviteCode[i].cid);
  9633. }
  9634. if (array.indexOf(cid) != -1) {
  9635. this.inviteCode[array.indexOf(cid)].ic = code;
  9636. } else {
  9637. this.inviteCode.push({ cid: cid, ic: code });
  9638. }
  9639. },
  9640. OpenInviteD(cid) {
  9641. let array = [];
  9642. this.icode = "";
  9643. for (var i = 0; i < this.inviteCode.length; i++) {
  9644. array.push(this.inviteCode[i].cid);
  9645. }
  9646. if (array.indexOf(cid) != -1) {
  9647. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  9648. }
  9649. this.inviteId = cid;
  9650. this.dialogVisibleInvite = true;
  9651. },
  9652. addInvite() {
  9653. let reg = /^[A-Za-z0-9]{4,}$/;
  9654. if (!reg.test(this.icode)) {
  9655. this.$message.error("请输入至少四位数字或英文组合的随机码");
  9656. return;
  9657. }
  9658. let type = 1;
  9659. for (var i = 0; i < this.inviteCode.length; i++) {
  9660. if (
  9661. this.inviteCode[i].cid != this.inviteId &&
  9662. this.icode == this.inviteCode[i].ic
  9663. ) {
  9664. type = 2;
  9665. }
  9666. }
  9667. if (type == 2) {
  9668. this.$message.error("已有此随机码,不能重复");
  9669. return;
  9670. }
  9671. let params = {
  9672. code: this.icode,
  9673. oid: this.oid,
  9674. };
  9675. this.ajax
  9676. .get(this.$store.state.api + "selectInviteCode", params)
  9677. .then((res) => {
  9678. if (
  9679. res.data.length &&
  9680. res.data[0].length &&
  9681. res.data[0][0].courseId != this.cid
  9682. ) {
  9683. this.$message.error("已有此随机码,不能重复");
  9684. return;
  9685. }
  9686. let array = [];
  9687. for (var i = 0; i < this.inviteCode.length; i++) {
  9688. array.push(this.inviteCode[i].cid);
  9689. }
  9690. if (array.indexOf(this.inviteId) != -1) {
  9691. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  9692. } else {
  9693. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  9694. }
  9695. this.icode = "";
  9696. this.dialogVisibleInvite = false;
  9697. })
  9698. .catch((err) => {
  9699. console.error(err);
  9700. });
  9701. },
  9702. randomNumber() {
  9703. // 随机生成两位数
  9704. // let num = Math.floor(Math.random() * 900) + 100;
  9705. // 生成 0 到 99 之间的随机整数
  9706. const randomNumber = Math.floor(Math.random() * 100);
  9707. // 如果随机数小于 10,补上前导零
  9708. const num =
  9709. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  9710. // 随机生成两个大写字母
  9711. let letters = "";
  9712. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  9713. for (let i = 0; i < 3; i++) {
  9714. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  9715. }
  9716. // 随机生成两位数字和字母的组合
  9717. let mix = "";
  9718. let chars =
  9719. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  9720. for (let i = 0; i < 3; i++) {
  9721. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  9722. mix += char;
  9723. }
  9724. // 随机选择一种类型
  9725. let type = Math.floor(Math.random() * 3);
  9726. return num;
  9727. // 根据类型输出结果
  9728. switch (type) {
  9729. case 0:
  9730. console.log(num); // 输出两位数
  9731. return num;
  9732. case 1:
  9733. console.log(letters); // 输出两个大写字母
  9734. return letters;
  9735. case 2:
  9736. console.log(mix); // 输出两位数字和字母的组合
  9737. return mix;
  9738. }
  9739. },
  9740. getPaste() {
  9741. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9742. if (!iframe) {
  9743. return;
  9744. }
  9745. let copyData = iframe.contentWindow.copyData;
  9746. // if (copyData && copyData.stageData && copyData.stageData.length) {
  9747. // this.isPasteStage = true
  9748. // }
  9749. if (copyData && copyData.selectData.length) {
  9750. this.isPasteChoice = true
  9751. }
  9752. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  9753. this.isPasteTask = true
  9754. }
  9755. },
  9756. searchImage() {
  9757. var _this = this;
  9758. _this.imageList = []
  9759. if (!_this.searchImageValue) {
  9760. _this.sysPicVisible2 = true
  9761. return
  9762. }
  9763. _this.imageloading = true
  9764. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  9765. page: _this.ppage,
  9766. pagesize: 9,
  9767. query: _this.searchImageValue
  9768. }).then(function (response) {
  9769. // console.log(response.data.data);
  9770. var data = response.data.FunctionResponse.result;
  9771. for (var i = 0; i < data.length; i++) {
  9772. _this.imageList.push({ url: data[i].thumbnail })
  9773. }
  9774. _this.imageloading = false
  9775. }).catch(function (error) {
  9776. console.log(error);
  9777. });
  9778. _this.sysPicVisible2 = true
  9779. },
  9780. changePicture() {
  9781. this.ppage++
  9782. this.searchImage()
  9783. },
  9784. resetImage() {
  9785. this.ppage = 1
  9786. this.searchImage()
  9787. },
  9788. jumpGj(i, j) {
  9789. if ((i + 1) != this.isClickColor) {
  9790. this.isClickColor = (i + 1)
  9791. }
  9792. var a = document.scrollingElement;
  9793. this.toolIndexType = `gj${i}${j}`
  9794. let target = document.querySelector(`#gj${i}${j}`);
  9795. if (target) {
  9796. target.scrollIntoView(true);
  9797. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = true
  9798. // setTimeout(() => {
  9799. // this.$refs.rightboxR.scrollTop = this.$refs.rightboxR.scrollTop - 100;
  9800. // }, 0);
  9801. }
  9802. },
  9803. dragStart(val, i, j) {
  9804. this.taskCount = j
  9805. this.oldIndex = i;
  9806. this.oldData = val;
  9807. },
  9808. dragOver(i, j) {
  9809. this.typeIndex = "chapter-" + j + '-' + i
  9810. this.newIndex = i;
  9811. },
  9812. dragEnd() {
  9813. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData];
  9814. // 删除老的节点
  9815. newItems.splice(this.oldIndex, 1);
  9816. // 在列表中目标位置增加新的节点
  9817. newItems.splice(this.newIndex, 0, this.oldData);
  9818. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData = [...newItems];
  9819. this.newIndex = "";
  9820. this.typeIndex = "";
  9821. this.$forceUpdate()
  9822. },
  9823. dragTaskStart(val, i) {
  9824. this.oldIndex = i;
  9825. this.oldData = val;
  9826. },
  9827. dragTaskOver(i) {
  9828. this.typeIndex = "task-" + i
  9829. this.newIndex = i;
  9830. },
  9831. dragTaskEnd() {
  9832. if (this.newIndex == this.oldIndex) {
  9833. this.typeIndex = "";
  9834. this.newIndex = "";
  9835. return;
  9836. }
  9837. this.$confirm(
  9838. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  9839. "提示",
  9840. {
  9841. confirmButtonText: "确定",
  9842. cancelButtonText: "取消",
  9843. type: "warning",
  9844. }
  9845. )
  9846. .then(() => {
  9847. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson];
  9848. let chapterData = []
  9849. if (this.oldIndex == 0) {
  9850. chapterData = newItems[this.oldIndex].chapterData
  9851. newItems[this.oldIndex].chapterData = []
  9852. }
  9853. // 删除老的节点
  9854. newItems.splice(this.oldIndex, 1);
  9855. // 在列表中目标位置增加新的节点
  9856. newItems.splice(this.newIndex, 0, this.oldData);
  9857. if (this.oldIndex == 0) {
  9858. newItems[0].chapterData = chapterData
  9859. }
  9860. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...newItems];
  9861. this.typeIndex = "";
  9862. this.newIndex = "";
  9863. this.$forceUpdate()
  9864. })
  9865. .catch(() => {
  9866. this.typeIndex = "";
  9867. this.newIndex = "";
  9868. return;
  9869. });
  9870. },
  9871. },
  9872. beforeDestroy() {
  9873. clearTimeout(this.timer);
  9874. this.timer = null;
  9875. clearInterval(this.timer2);
  9876. this.timer2 = null;
  9877. clearInterval(this.pasteTimer);
  9878. this.pasteTimer = null;
  9879. },
  9880. beforeRouteLeave(to, from, next) {
  9881. clearTimeout(this.timer);
  9882. this.timer = null;
  9883. clearInterval(this.timer2);
  9884. this.timer2 = null;
  9885. clearInterval(this.pasteTimer);
  9886. this.pasteTimer = null;
  9887. next();
  9888. },
  9889. created() {
  9890. this.getStudent();
  9891. this.getTeacher();
  9892. this.getClass();
  9893. this.selectGrage();
  9894. this.getTemplate();
  9895. // this.selectType();
  9896. this.selectEva();
  9897. this.loading = false;
  9898. this.timer2 = setInterval(() => {
  9899. this.selectEva();
  9900. }, 5000);
  9901. this.pasteTimer = setInterval(() => {
  9902. this.getPaste();
  9903. }, 1000);
  9904. setTimeout(() => {
  9905. this.selectCourseDetail();
  9906. }, 500);
  9907. },
  9908. mounted() {
  9909. this.$nextTick(() => {
  9910. //监听这个dom的scroll事件
  9911. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  9912. this.heightPx = $(".rightBox")[0].offsetHeight + 'px'
  9913. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  9914. this.$forceUpdate();
  9915. });
  9916. },
  9917. };
  9918. </script>
  9919. <style scoped>
  9920. @media screen and (max-width: 1280px) {
  9921. .mbCss {
  9922. flex-direction: column !important;
  9923. }
  9924. .pjCss {
  9925. width: 100% !important;
  9926. }
  9927. .evaCss {
  9928. width: 100% !important;
  9929. }
  9930. }
  9931. .dialog_diy>>>.el-dialog__header {
  9932. background: #3c3c3c !important;
  9933. padding: 15px 20px;
  9934. }
  9935. .dialog_diy>>>.el-dialog__title {
  9936. color: #fff;
  9937. }
  9938. .dialog_diy>>>.el-dialog__headerbtn {
  9939. top: 19px;
  9940. }
  9941. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  9942. color: #fff;
  9943. }
  9944. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  9945. color: #fff;
  9946. }
  9947. .dialog_diy>>>.el-dialog__body,
  9948. .dialog_diy>>>.el-dialog__footer {
  9949. background: #fafafa;
  9950. }
  9951. .dialog_diy3>>>.el-dialog__body,
  9952. .dialog_diy3>>>.el-dialog__footer {
  9953. background: #eee !important;
  9954. }
  9955. .dialog_diy3>>>.el-dialog__body {
  9956. padding: 20px 20px;
  9957. }
  9958. .source_diy>>>.el-dialog {
  9959. height: 100% !important;
  9960. margin: 0 auto !important;
  9961. }
  9962. .source_diy>>>.el-dialog__body {
  9963. height: calc(100% - 185px);
  9964. overflow: auto;
  9965. background: #e6eaf0;
  9966. }
  9967. .source_diy>>>.el-dialog__footer {
  9968. background: #e6eaf0 !important;
  9969. }
  9970. .left {
  9971. border-right: 1px solid rgb(60, 94, 143);
  9972. display: flex;
  9973. flex-direction: column;
  9974. align-items: center;
  9975. min-height: 600px;
  9976. width: 385px;
  9977. height: 80%;
  9978. }
  9979. .tips {
  9980. color: rgb(128, 128, 128);
  9981. font-size: 12px;
  9982. width: 270px;
  9983. margin: 40px;
  9984. }
  9985. .pb_content {
  9986. height: 100% !important;
  9987. /* margin: 0 20px 0 20px; */
  9988. }
  9989. .pb_content_body {
  9990. width: 100% !important;
  9991. height: 100%;
  9992. }
  9993. .info_solid {
  9994. width: 270px;
  9995. height: 30px;
  9996. border-left: 1px solid #bdbdbd;
  9997. margin: 10px 0px 10px 30px;
  9998. }
  9999. .info_steps {
  10000. width: 270px;
  10001. font-size: 0.875rem;
  10002. display: flex;
  10003. align-items: center;
  10004. }
  10005. .info_steps span:nth-child(1) {
  10006. width: 30px;
  10007. height: 30px;
  10008. background: rgba(0, 0, 0, 0.38);
  10009. display: block;
  10010. color: #fff;
  10011. border-radius: 40px;
  10012. text-align: center;
  10013. line-height: 30px;
  10014. }
  10015. .steps_active {
  10016. background: #3d67bc !important;
  10017. }
  10018. .info_steps span:nth-child(2) {
  10019. margin-left: 5px;
  10020. }
  10021. .right {
  10022. height: 100%;
  10023. width: calc(100% - 40px);
  10024. display: flex;
  10025. overflow: hidden;
  10026. margin: 0 auto;
  10027. }
  10028. .basic_box {
  10029. margin: 0 auto;
  10030. position: relative;
  10031. padding: 0 20px 0 20px;
  10032. }
  10033. .basic_box2 {
  10034. position: relative;
  10035. width: calc(100% - 300px);
  10036. }
  10037. .basic_box_success {
  10038. width: 100%;
  10039. height: 100%;
  10040. padding: 50px 0;
  10041. position: relative;
  10042. text-align: center;
  10043. /* border-bottom: 1px solid #bfbfbf; */
  10044. box-sizing: border-box;
  10045. display: flex;
  10046. align-items: center;
  10047. flex-direction: column;
  10048. justify-content: center;
  10049. }
  10050. .info_title {
  10051. font-size: 1.5em;
  10052. margin-right: 25px;
  10053. /* margin: 20px 30px 20px 30px; */
  10054. }
  10055. .bInfo_title {
  10056. text-align: left;
  10057. margin: 10px 0;
  10058. }
  10059. .small_title {
  10060. font-size: 14px;
  10061. line-height: 40px;
  10062. }
  10063. .chapter_beizhu {
  10064. font-size: 12px;
  10065. font-weight: bold;
  10066. float: right;
  10067. color: rgb(128, 128, 128);
  10068. margin-top: 5px;
  10069. }
  10070. .chapter_uploadBox1 {
  10071. text-align: left;
  10072. background-color: rgb(242, 242, 242);
  10073. width: 100%;
  10074. height: 67px;
  10075. padding: 0px 15px;
  10076. border-radius: 8px;
  10077. overflow: hidden;
  10078. font-size: 16px;
  10079. box-sizing: border-box;
  10080. position: relative;
  10081. }
  10082. .chapter_add {
  10083. width: 100%;
  10084. height: 32px;
  10085. margin-top: 15px;
  10086. cursor: pointer;
  10087. }
  10088. .chapter_add_l {
  10089. margin-left: 5px;
  10090. width: 30px;
  10091. height: 30px;
  10092. float: left;
  10093. border: 1px solid #aaa;
  10094. color: #aaa;
  10095. border-radius: 50%;
  10096. font-size: 25px;
  10097. text-align: center;
  10098. }
  10099. .chapter_add_r {
  10100. font-size: 18px;
  10101. height: 40px;
  10102. line-height: 30px;
  10103. text-indent: 10px;
  10104. color: #aaa;
  10105. }
  10106. .chapter_add_r span {
  10107. font-size: 12px;
  10108. color: rgb(204, 204, 204);
  10109. }
  10110. .chapter_add_input {
  10111. display: none;
  10112. }
  10113. .line {
  10114. width: 85%;
  10115. margin: 0 auto;
  10116. border-top: 1px solid #e5e5e5;
  10117. margin-top: 20px;
  10118. }
  10119. .info_btnBox {
  10120. width: calc(100%);
  10121. display: flex;
  10122. justify-content: center;
  10123. height: 70px;
  10124. align-items: center;
  10125. background: #fff;
  10126. margin: 0 auto;
  10127. border-top: 2px solid rgb(228, 232, 237);
  10128. box-sizing: border-box;
  10129. border-radius: 0px 0 5px 5px;
  10130. }
  10131. .info_btnBox2 {
  10132. width: calc(100%);
  10133. display: flex;
  10134. justify-content: center;
  10135. height: 20px;
  10136. align-items: center;
  10137. background: #fff;
  10138. margin: 0 auto;
  10139. border-top: 2px solid rgb(228, 232, 237);
  10140. box-sizing: border-box;
  10141. overflow: hidden;
  10142. cursor: pointer;
  10143. }
  10144. .info_btnBox3 {
  10145. width: calc(100%);
  10146. display: flex;
  10147. justify-content: flex-end;
  10148. padding: 0 20px;
  10149. height: 60px;
  10150. align-items: center;
  10151. background: unset;
  10152. margin: 0 auto;
  10153. /* border-top: 1px solid rgb(228, 232, 237); */
  10154. box-sizing: border-box;
  10155. overflow: hidden;
  10156. cursor: pointer;
  10157. background: #fff;
  10158. border-radius: 10px;
  10159. }
  10160. .info_btn+.info_btn {
  10161. margin-left: 15px;
  10162. }
  10163. .info_btn,
  10164. .teacherWord {
  10165. color: #fff;
  10166. background-color: #0f7eff;
  10167. padding: 8px 24px;
  10168. font-size: 0.9375rem;
  10169. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  10170. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  10171. min-width: 64px;
  10172. font-weight: 500;
  10173. border-radius: 4px;
  10174. box-sizing: border-box;
  10175. border: none;
  10176. cursor: pointer;
  10177. }
  10178. .teacherWord {
  10179. width: 105px !important;
  10180. text-align: center !important;
  10181. line-height: 36px !important;
  10182. padding: 0 !important;
  10183. font-size: 14px !important;
  10184. margin: 10px 0 !important;
  10185. }
  10186. .wordTeacher {
  10187. display: flex;
  10188. flex-direction: column;
  10189. width: 20%;
  10190. text-align: center;
  10191. font-size: 14px;
  10192. margin: 30px 30px 0 10px;
  10193. background: #fff;
  10194. position: relative;
  10195. border-radius: 5px;
  10196. padding: 25px 0px;
  10197. }
  10198. .wordPic {
  10199. margin: 0 auto;
  10200. width: 60px;
  10201. height: 60px;
  10202. cursor: pointer;
  10203. }
  10204. .deleteWord {
  10205. width: 22px;
  10206. height: 22px;
  10207. position: absolute;
  10208. right: 5px;
  10209. top: -15px;
  10210. cursor: pointer;
  10211. display: none;
  10212. z-index: 999;
  10213. }
  10214. .wordPic>img,
  10215. .deleteWord>img,
  10216. .addToolImg>img {
  10217. width: 100%;
  10218. height: 100%;
  10219. }
  10220. .info_btn:hover {
  10221. background-color: #4f7cd5 !important;
  10222. }
  10223. .cru_selectBox {
  10224. display: flex;
  10225. margin: 24px 0 10px;
  10226. flex-wrap: nowrap;
  10227. white-space: nowrap;
  10228. overflow: auto;
  10229. position: relative;
  10230. height: 47px;
  10231. }
  10232. .cru_selectBox::-webkit-scrollbar {
  10233. /*滚动条整体样式*/
  10234. width: 6px;
  10235. /*高宽分别对应横竖滚动条的尺寸*/
  10236. height: 6px;
  10237. }
  10238. /*定义滚动条轨道 内阴影+圆角*/
  10239. .cru_selectBox::-webkit-scrollbar-track {
  10240. border-radius: 10px;
  10241. background-color: #eee;
  10242. }
  10243. /*定义滑块 内阴影+圆角*/
  10244. .cru_selectBox::-webkit-scrollbar-thumb {
  10245. border-radius: 10px;
  10246. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  10247. background-color: rgba(0, 0, 0, 0.1);
  10248. }
  10249. .cru_line {
  10250. position: absolute;
  10251. bottom: 0px;
  10252. transition: all 0.5s;
  10253. left: 0px;
  10254. width: 125px;
  10255. margin-left: -25px;
  10256. }
  10257. .cru_select {
  10258. font-size: 21px;
  10259. margin-right: 37px;
  10260. margin-left: 5px;
  10261. cursor: pointer;
  10262. color: #a6a6a6;
  10263. }
  10264. .cru_selected {
  10265. color: #0b7fc2 !important;
  10266. }
  10267. .chapter_contentbox {
  10268. display: flex;
  10269. align-items: center;
  10270. margin-top: 15px;
  10271. }
  10272. .chapter_contentbox .cc_title {
  10273. margin: 0px;
  10274. color: black;
  10275. display: block;
  10276. white-space: nowrap;
  10277. overflow: hidden;
  10278. text-overflow: ellipsis;
  10279. margin-right: 20px;
  10280. font-size: 18px;
  10281. height: 20px;
  10282. line-height: 22px;
  10283. min-width: fit-content;
  10284. display: flex;
  10285. }
  10286. .chapter_contentbox .cc_title::before {
  10287. content: '';
  10288. height: 100%;
  10289. width: 3px;
  10290. background: #3681FC;
  10291. border-radius: 3px;
  10292. opacity: 1;
  10293. display: block;
  10294. margin-right: 10px;
  10295. }
  10296. .chapter_contentbox .cc_input {
  10297. width: 100%;
  10298. display: flex;
  10299. }
  10300. .show_taskD {
  10301. min-width: fit-content;
  10302. margin-left: 10px;
  10303. display: flex;
  10304. align-items: center;
  10305. font-size: 14px;
  10306. cursor: pointer;
  10307. color: #717C8D;
  10308. }
  10309. .show_taskD>img {
  10310. width: 15px;
  10311. margin-right: 5px;
  10312. transition: .2s all;
  10313. transform: rotate(-90deg);
  10314. }
  10315. .show_taskD.show>img {
  10316. transform: rotate(0deg);
  10317. }
  10318. .show_toolD {
  10319. min-width: fit-content;
  10320. margin-left: 10px;
  10321. display: flex;
  10322. align-items: center;
  10323. font-size: 14px;
  10324. cursor: pointer;
  10325. color: #717C8D;
  10326. /* position: absolute;
  10327. right: 45px;
  10328. top: 5px; */
  10329. }
  10330. .show_toolD>img {
  10331. width: 15px;
  10332. margin-right: 5px;
  10333. transition: .2s all;
  10334. transform: rotate(-90deg);
  10335. }
  10336. .show_toolD.show>img {
  10337. transform: rotate(0deg);
  10338. }
  10339. .remove {
  10340. background-image: url("../../../assets/icon/new/delete_u.png");
  10341. cursor: pointer;
  10342. opacity: 0.5;
  10343. width: 30px;
  10344. min-width: 30px;
  10345. height: 30px;
  10346. background-size: 100% 100%;
  10347. background-repeat: no-repeat;
  10348. margin-left: 10px;
  10349. }
  10350. .remove1 {
  10351. background-image: url("../../../assets/remove1.png");
  10352. background-repeat: no-repeat;
  10353. background-position: 5px 10px;
  10354. width: 40px;
  10355. height: 50px;
  10356. cursor: pointer;
  10357. margin-left: 10px;
  10358. }
  10359. .binfo_input {
  10360. width: 100%;
  10361. margin: 0;
  10362. padding: 12px 14px;
  10363. display: block;
  10364. min-width: 0;
  10365. outline: none;
  10366. box-sizing: border-box;
  10367. background: none;
  10368. border: none;
  10369. border-radius: 4px;
  10370. background: #fff;
  10371. font-size: 16px;
  10372. resize: none;
  10373. font-family: 'Microsoft YaHei';
  10374. min-height: 48px;
  10375. border: 1.5px solid #CAD1DC;
  10376. }
  10377. .binfo_textarea {
  10378. border: 1.5px solid #CAD1DC;
  10379. font-size: 16px;
  10380. resize: none;
  10381. background: #f6f6f6;
  10382. font-family: 'Microsoft YaHei';
  10383. }
  10384. .binfo_input:focus-visible {
  10385. border: 1.5px solid #3681FC !important;
  10386. }
  10387. .time {
  10388. display: flex;
  10389. margin: 35px 0 80px 0;
  10390. }
  10391. .chapter_btnbox {
  10392. width: 160px;
  10393. border-radius: 5px;
  10394. border: 2px dashed gray;
  10395. display: flex;
  10396. padding: 8px 50px;
  10397. align-items: center;
  10398. justify-content: center;
  10399. margin: 30px auto 0;
  10400. cursor: pointer;
  10401. }
  10402. .icon_add {
  10403. position: relative;
  10404. width: 24px;
  10405. padding-top: 20px;
  10406. border-radius: 100%;
  10407. border-width: 2px;
  10408. border-style: solid;
  10409. border-color: gray;
  10410. }
  10411. .icon_add i:nth-child(1) {
  10412. position: absolute;
  10413. left: 50%;
  10414. top: 50%;
  10415. height: 60%;
  10416. transform: translate(-50%, -50%);
  10417. border-width: 1px;
  10418. border-style: solid;
  10419. border-color: inherit;
  10420. }
  10421. .icon_add i:nth-child(2) {
  10422. position: absolute;
  10423. top: 50%;
  10424. left: 50%;
  10425. width: 60%;
  10426. transform: translate(-50%, -50%);
  10427. border-width: 1px;
  10428. border-style: solid;
  10429. border-color: inherit;
  10430. }
  10431. .chapter_btn_w {
  10432. font-size: 0.9375rem;
  10433. font-weight: bold;
  10434. color: gray;
  10435. margin-left: 20px;
  10436. }
  10437. .disUoloadSty>>>.el-icon-plus {
  10438. display: none !important;
  10439. /* 上传按钮隐藏 */
  10440. }
  10441. .imgLeft {
  10442. margin: 15px 0;
  10443. }
  10444. .add_info_box {
  10445. margin: 0 0 0 auto;
  10446. display: flex;
  10447. flex-wrap: wrap;
  10448. }
  10449. .add_info_box button {
  10450. margin: 0 5px 10px 0;
  10451. }
  10452. .add_info_box2 {
  10453. display: flex;
  10454. align-items: center;
  10455. flex-wrap: wrap;
  10456. }
  10457. .add_info_box2::after {
  10458. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  10459. color: red;
  10460. font-size: 14px;
  10461. margin-bottom: 10px;
  10462. }
  10463. .add_chapters_box {
  10464. text-align: left;
  10465. background-color: #fff;
  10466. width: 100%;
  10467. border-radius: 4px;
  10468. font-size: 16px;
  10469. box-sizing: border-box;
  10470. position: relative;
  10471. padding: 0 15px;
  10472. height: auto;
  10473. overflow-y: auto;
  10474. overflow-x: hidden;
  10475. border: 1px solid #CAD1DC;
  10476. }
  10477. .add_chapters_box.add_c_none {
  10478. display: flex;
  10479. justify-content: center;
  10480. align-items: center;
  10481. padding: 15px;
  10482. }
  10483. .add_c_none>img {
  10484. width: 25px;
  10485. }
  10486. .add_chapters_box.add_c_none>span {
  10487. font-size: 14px;
  10488. font-weight: 400;
  10489. margin: 0 0 5px 5px;
  10490. }
  10491. .homework_box {
  10492. display: flex;
  10493. align-items: flex-start;
  10494. flex-wrap: wrap;
  10495. margin: 15px 0 0 0;
  10496. flex-direction: column;
  10497. align-content: flex-start;
  10498. }
  10499. .course_homework {
  10500. display: flex;
  10501. justify-content: center;
  10502. flex-direction: row;
  10503. align-items: center;
  10504. margin: 0 10px 0 0;
  10505. }
  10506. .course_homework>>>.el-input__inner {
  10507. width: 140px;
  10508. margin-left: 15px;
  10509. }
  10510. .chapter_upload_move {
  10511. position: relative;
  10512. background-color: #fff;
  10513. position: absolute;
  10514. width: 100%;
  10515. top: 0px;
  10516. left: 0px;
  10517. border: 1px solid #eee;
  10518. border-radius: 5px;
  10519. transition: width 2s;
  10520. -moz-transition: width 2s;
  10521. -webkit-transition: width 2s;
  10522. -o-transition: width 2s;
  10523. }
  10524. .chapter_upload_l_i {
  10525. background-image: url("../../../assets/icon.png");
  10526. background-position: 3px -165px;
  10527. width: 30px;
  10528. height: 30px;
  10529. margin: 10px auto 0 auto;
  10530. }
  10531. .course_input_box {
  10532. display: flex;
  10533. margin-right: 20px;
  10534. width: 100%;
  10535. align-items: center;
  10536. position: relative;
  10537. }
  10538. .course_input_box>.binfo_input {
  10539. width: calc(100% - 0 - 200px - 20px);
  10540. margin: 0 10px;
  10541. }
  10542. .bb_courseIcon {
  10543. width: 57px;
  10544. height: 45px;
  10545. background: #F0F4FA;
  10546. border-radius: 5px 0px 0px 5px;
  10547. display: flex;
  10548. align-items: center;
  10549. justify-content: center;
  10550. border-right: 1.5px solid rgb(202, 209, 220);
  10551. box-sizing: border-box;
  10552. position: absolute;
  10553. left: 1.5px
  10554. }
  10555. .bb_courseIcon>img {
  10556. width: 25px;
  10557. height: auto
  10558. }
  10559. .big_box {
  10560. /* margin-top: 20px; */
  10561. display: flex;
  10562. justify-content: space-between;
  10563. /* border-bottom: 1px solid #E0E2ED; */
  10564. }
  10565. .left_first {
  10566. display: flex;
  10567. flex-direction: column;
  10568. flex-wrap: nowrap;
  10569. width: calc(100% - 310px);
  10570. padding: 20px;
  10571. box-sizing: border-box;
  10572. background: #fff;
  10573. border-radius: 5px;
  10574. }
  10575. .right_first {
  10576. width: 300px;
  10577. display: flex;
  10578. align-items: center;
  10579. justify-content: center;
  10580. /* border-left: 1px solid #E0E2ED; */
  10581. box-sizing: border-box;
  10582. padding: 20px;
  10583. flex-direction: column;
  10584. background: #fff;
  10585. border-radius: 5px;
  10586. }
  10587. .ai_box {
  10588. width: 204px;
  10589. display: flex;
  10590. justify-content: flex-end;
  10591. margin-bottom: 15px;
  10592. }
  10593. .ai_content {
  10594. display: flex;
  10595. align-items: center;
  10596. font-size: 14px;
  10597. padding: 7px 20px;
  10598. box-sizing: border-box;
  10599. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  10600. border-radius: 12px;
  10601. font-weight: 700;
  10602. cursor: pointer;
  10603. }
  10604. .ai_content>img {
  10605. width: 40px;
  10606. margin-right: 5px;
  10607. }
  10608. .c_info_title {
  10609. padding: 15px 0 15px 0;
  10610. font-size: 16px;
  10611. font-weight: bold;
  10612. margin: 0 0 0 20px;
  10613. box-sizing: border-box;
  10614. display: flex;
  10615. align-items: center;
  10616. line-height: 20px;
  10617. }
  10618. .c_info_title::before {
  10619. content: '';
  10620. display: block;
  10621. width: 3px;
  10622. height: 20px;
  10623. background: #0061FF;
  10624. border-radius: 3px;
  10625. margin: 0 5px 0 0;
  10626. }
  10627. .right_title {
  10628. /* height: 30px; */
  10629. padding: 0 20px;
  10630. font-size: 18px;
  10631. font-weight: bold;
  10632. /* color: #0f7eff; */
  10633. margin: 20px auto 0;
  10634. display: flex;
  10635. /* justify-content: space-between; */
  10636. align-items: center;
  10637. }
  10638. .people {
  10639. border: 1px solid rgb(229 229 229);
  10640. height: 495px;
  10641. border-radius: 5px;
  10642. width: 100%;
  10643. overflow: auto;
  10644. }
  10645. .people_top {
  10646. display: flex;
  10647. width: 100%;
  10648. /* justify-content: space-between; */
  10649. /* align-items: center; */
  10650. flex-direction: column;
  10651. padding: 10px 10px 0;
  10652. box-sizing: border-box;
  10653. }
  10654. .people_nav,
  10655. .people_top_right {
  10656. /* padding: 20px 0 0 20px; */
  10657. }
  10658. .people_top_right {
  10659. height: 40px;
  10660. margin-bottom: 10px;
  10661. }
  10662. .people_search {
  10663. display: flex;
  10664. position: relative;
  10665. }
  10666. .people_search>>>.el-input__inner {
  10667. /* height: 25px; */
  10668. width: 95%;
  10669. }
  10670. .search_img {
  10671. width: 20px;
  10672. height: 20px;
  10673. position: absolute;
  10674. right: 30px;
  10675. top: 50%;
  10676. transform: translateY(-50%);
  10677. }
  10678. .search_img>img {
  10679. width: 100%;
  10680. height: 100%;
  10681. }
  10682. .people_name {
  10683. display: flex;
  10684. justify-content: flex-start;
  10685. padding: 20px 10px;
  10686. flex-direction: column;
  10687. flex-wrap: wrap;
  10688. }
  10689. .p_box {
  10690. position: relative;
  10691. }
  10692. .people_name>>>.el-checkbox {
  10693. width: 100%;
  10694. display: flex;
  10695. align-items: center;
  10696. margin-bottom: 10px;
  10697. }
  10698. .people_name>>>.el-checkbox__label {
  10699. text-overflow: ellipsis;
  10700. overflow: hidden;
  10701. width: calc(100%);
  10702. }
  10703. .people_name2>>>.el-checkbox__label {
  10704. width: calc(100% - 130px);
  10705. }
  10706. .inviteCode {
  10707. position: absolute;
  10708. right: 30px;
  10709. color: #237ade;
  10710. top: 0;
  10711. cursor: pointer;
  10712. font-size: 13px;
  10713. }
  10714. .noneInvite {
  10715. color: #a8a8a8;
  10716. }
  10717. .inviteImg {
  10718. position: absolute;
  10719. right: 5px;
  10720. top: 0;
  10721. width: 20px;
  10722. }
  10723. .right_img {
  10724. width: 150px;
  10725. height: 150px;
  10726. margin: 20px auto;
  10727. }
  10728. .right_img>img {
  10729. width: 100%;
  10730. height: 100%;
  10731. }
  10732. .number {
  10733. margin-top: 20px;
  10734. color: #4aa6ff;
  10735. text-decoration: underline;
  10736. }
  10737. .success_button {
  10738. display: flex;
  10739. text-align: center;
  10740. margin: 5% 0 auto;
  10741. flex-direction: row;
  10742. justify-content: center;
  10743. }
  10744. .look_course {
  10745. margin-right: 40px;
  10746. background: #3d67bc;
  10747. width: 200px;
  10748. height: 35px;
  10749. line-height: 35px;
  10750. color: #fff;
  10751. text-align: center;
  10752. font-size: 14px;
  10753. border-radius: 5px;
  10754. cursor: pointer;
  10755. }
  10756. .attend_others {
  10757. width: 250px;
  10758. background: #4fb13c;
  10759. height: 35px;
  10760. line-height: 35px;
  10761. color: #fff;
  10762. text-align: center;
  10763. font-size: 14px;
  10764. border-radius: 5px;
  10765. cursor: pointer;
  10766. }
  10767. .dialog_diy2>>>.el-dialog__body {
  10768. text-align: center;
  10769. }
  10770. .write_togother {
  10771. position: absolute;
  10772. right: 45px;
  10773. display: flex;
  10774. top: 5%;
  10775. }
  10776. .write_people {
  10777. font-size: 14px;
  10778. line-height: 50px;
  10779. padding-right: 10px;
  10780. }
  10781. .end_write {
  10782. background: #3d67bc;
  10783. color: #fff;
  10784. width: 100px;
  10785. height: 35px;
  10786. line-height: 35px;
  10787. text-align: center;
  10788. font-size: 14px;
  10789. border-radius: 5px;
  10790. cursor: pointer;
  10791. }
  10792. .chapter_upload+.chapter_upload {
  10793. /* margin-top: 15px; */
  10794. border-top: 1px solid #E7EBF1;
  10795. }
  10796. .chapter_upload {
  10797. height: 45px;
  10798. position: relative;
  10799. display: flex;
  10800. align-items: center;
  10801. width: 100%;
  10802. min-height: 45px;
  10803. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  10804. /* border-radius: 4px; */
  10805. /* overflow: hidden; */
  10806. box-sizing: border-box;
  10807. }
  10808. .chapter_upload_drag {
  10809. position: absolute;
  10810. cursor: pointer;
  10811. width: 16px;
  10812. height: 16px;
  10813. left: -9px;
  10814. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  10815. background-size: 100% 100%;
  10816. z-index: 10;
  10817. }
  10818. .chapter_upload_t {
  10819. background-color: #fff;
  10820. position: absolute;
  10821. height: 100%;
  10822. top: 0px;
  10823. left: 0px;
  10824. box-sizing: border-box;
  10825. }
  10826. .chapter_upload_o {
  10827. width: 100%;
  10828. height: 100%;
  10829. position: relative;
  10830. z-index: 1;
  10831. }
  10832. .chapter_upload_ic {
  10833. margin: 0 15px 0px auto;
  10834. display: flex;
  10835. align-items: center;
  10836. }
  10837. .chapter_upload_ic_l {
  10838. width: 50px;
  10839. height: 50px;
  10840. float: left;
  10841. }
  10842. .chapter_upload_ic_l div {
  10843. width: 30px;
  10844. height: 35px;
  10845. background: url("../../../assets/icon/icon.png");
  10846. }
  10847. .chapter_upload_ic_edit {
  10848. height: 100%;
  10849. display: flex;
  10850. align-items: center;
  10851. cursor: pointer;
  10852. margin: 0 10px 0 0;
  10853. }
  10854. .chapter_upload_ic_edit div {
  10855. width: 18px;
  10856. height: 18px;
  10857. background-image: url("../../../assets/icon/new/edit_u.png");
  10858. background-size: 100% 100%;
  10859. }
  10860. .chapter_upload_ic_r {
  10861. height: 100%;
  10862. display: flex;
  10863. align-items: center;
  10864. cursor: pointer;
  10865. }
  10866. .chapter_upload_ic_r div {
  10867. width: 18px;
  10868. height: 18px;
  10869. background-image: url("../../../assets/icon/new/delete_u.png");
  10870. background-size: 100% 100%;
  10871. }
  10872. .chapter_upload_n {
  10873. display: flex;
  10874. text-indent: 10px;
  10875. text-decoration: none;
  10876. text-overflow: ellipsis;
  10877. white-space: nowrap;
  10878. overflow: hidden;
  10879. width: 55%;
  10880. margin-left: 10px;
  10881. cursor: pointer;
  10882. margin-top: 2px;
  10883. align-items: center;
  10884. }
  10885. .chapter_upload_l_i2,
  10886. .chapter_upload_l_i3,
  10887. .chapter_upload_l_i8,
  10888. .chapter_upload_l_i6,
  10889. .chapter_upload_l_i12,
  10890. .chapter_upload_l_i14,
  10891. .chapter_upload_l_i13 {
  10892. width: 15px;
  10893. height: 15px;
  10894. background-size: 100% 100%;
  10895. }
  10896. .chapter_upload_l_i2 {
  10897. background-image: url("../../../assets/icon/new/u_word.png");
  10898. }
  10899. .chapter_upload_l_i3 {
  10900. background-image: url("../../../assets/icon/new/u_video.png");
  10901. }
  10902. .chapter_upload_l_i8 {
  10903. background-image: url("../../../assets/icon/new/u_url.png");
  10904. }
  10905. .chapter_upload_l_i14 {
  10906. background-image: url("../../../assets/icon/new/u_source.png");
  10907. }
  10908. .chapter_upload_l_i6 {
  10909. background-image: url("../../../assets/icon/new/u_picture.png");
  10910. }
  10911. .chapter_upload_l_i12 {
  10912. background-image: url("../../../assets/icon/new/u_word.png");
  10913. }
  10914. .chapter_upload_l_i13 {
  10915. background-image: url("../../../assets/icon/new/u_img.png");
  10916. }
  10917. .chapter_upload_noSee {
  10918. background-image: url("../../../assets/icon/new/u_noUpload.png");
  10919. width: 18px;
  10920. height: 18px;
  10921. background-size: 100% 100%;
  10922. display: block;
  10923. margin-right: 10px;
  10924. }
  10925. .chapter_upload_ud {
  10926. display: flex;
  10927. flex-direction: row;
  10928. justify-content: center;
  10929. margin: 0 10px 0 0;
  10930. }
  10931. .chapter_upload_ud>.chapter_upload_up {
  10932. margin-bottom: 0;
  10933. margin-right: 10px;
  10934. }
  10935. .chapter_upload_down,
  10936. .chapter_upload_up {
  10937. width: 20px;
  10938. height: 20px;
  10939. background: #e4eaf2;
  10940. cursor: pointer;
  10941. margin: 0 auto;
  10942. border-radius: 5px;
  10943. display: flex;
  10944. justify-content: center;
  10945. align-items: center;
  10946. }
  10947. .chapter_upload_up::after,
  10948. .chapter_upload_down::after {
  10949. content: '';
  10950. background-image: url('../../../assets/icon/new/downBtn.png');
  10951. width: 13px;
  10952. height: 13px;
  10953. background-size: 100% 100%;
  10954. display: block;
  10955. }
  10956. .chapter_upload_up::after {
  10957. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  10958. }
  10959. .chapter_upload_up {
  10960. margin-bottom: 5px;
  10961. }
  10962. .chapter_upload_ud2 {
  10963. display: flex;
  10964. flex-direction: row;
  10965. justify-content: center;
  10966. margin: 0 10px 0 0;
  10967. }
  10968. .chapter_upload_ud2>.chapter_upload_up2 {
  10969. margin-bottom: 0;
  10970. margin-right: 10px;
  10971. }
  10972. .chapter_upload_down2,
  10973. .chapter_upload_up2 {
  10974. cursor: pointer;
  10975. margin: 0 auto;
  10976. border-radius: 5px;
  10977. display: flex;
  10978. justify-content: center;
  10979. align-items: center;
  10980. color: #717C8D;
  10981. font-size: 14px;
  10982. }
  10983. .chapter_upload_up2{
  10984. margin-right:10px;
  10985. }
  10986. .chapter_upload_up2::before,
  10987. .chapter_upload_down2::before {
  10988. content: '';
  10989. background-image: url('../../../assets/icon/new/c_up.png');
  10990. width: 14px;
  10991. height: 14px;
  10992. background-size: 100% 100%;
  10993. display: block;
  10994. margin-right: 5px;
  10995. }
  10996. .chapter_upload_up2::before {
  10997. background-image: url('../../../assets/icon/new/c_down.png') !important;
  10998. }
  10999. .addWordStyle {
  11000. display: flex;
  11001. flex-direction: row;
  11002. justify-content: flex-start;
  11003. overflow-x: auto;
  11004. white-space: nowrap;
  11005. flex-wrap: wrap;
  11006. }
  11007. /* table 样式 */
  11008. .cont>>>table {
  11009. border-top: 1px solid #ccc;
  11010. border-left: 1px solid #ccc;
  11011. }
  11012. .cont>>>table td,
  11013. .cont>>>table th {
  11014. border-bottom: 1px solid #ccc;
  11015. border-right: 1px solid #ccc;
  11016. /* padding: 20px 5px; */
  11017. padding: 5px 10px;
  11018. max-width: 0px;
  11019. height: 30px;
  11020. vertical-align: baseline;
  11021. }
  11022. .cont>>>table th {
  11023. border-bottom: 2px solid #ccc;
  11024. text-align: center;
  11025. }
  11026. /* blockquote 样式 */
  11027. .cont>>>blockquote {
  11028. display: block;
  11029. border-left: 8px solid #d0e5f2;
  11030. padding: 5px 10px;
  11031. margin: 10px 0;
  11032. line-height: 1.4;
  11033. font-size: 100%;
  11034. background-color: #f1f1f1;
  11035. }
  11036. /* code 样式 */
  11037. .cont>>>code {
  11038. display: inline-block;
  11039. /* *display: inline; */
  11040. zoom: 1;
  11041. background-color: #f1f1f1;
  11042. border-radius: 3px;
  11043. padding: 3px 5px;
  11044. margin: 0 3px;
  11045. }
  11046. .cont>>>pre code {
  11047. display: block;
  11048. }
  11049. /* ul ol 样式 */
  11050. .cont>>>ul,
  11051. ol {
  11052. margin: 10px 0 10px 20px;
  11053. }
  11054. .wordbox {
  11055. display: flex;
  11056. flex-wrap: wrap;
  11057. cursor: pointer;
  11058. width: 100%;
  11059. }
  11060. .checkword {
  11061. width: 22px;
  11062. height: 22px;
  11063. margin: 10px auto 0;
  11064. cursor: pointer;
  11065. }
  11066. .checkword img {
  11067. width: 100%;
  11068. }
  11069. .stepBg {
  11070. display: flex;
  11071. flex-direction: column;
  11072. justify-content: space-between;
  11073. align-items: center;
  11074. background: #fff;
  11075. width: 300px;
  11076. margin: 0 25px 0 0;
  11077. }
  11078. .stepTop {
  11079. min-width: 300px;
  11080. width: 300px;
  11081. /* border-radius: 10px; */
  11082. display: flex;
  11083. flex-direction: column;
  11084. justify-content: flex-start;
  11085. align-items: center;
  11086. flex-wrap: nowrap;
  11087. background: #fff;
  11088. /* top: 18%; */
  11089. }
  11090. .stepTop>div {
  11091. height: 80px;
  11092. width: 85%;
  11093. cursor: pointer;
  11094. margin: 10px 0;
  11095. border-radius: 10px;
  11096. }
  11097. .first,
  11098. .second,
  11099. .third,
  11100. .four {
  11101. background: #4a83d0;
  11102. height: 90px;
  11103. color: #fff;
  11104. display: flex;
  11105. flex-direction: row;
  11106. align-items: center;
  11107. justify-content: center;
  11108. }
  11109. .first>div:nth-child(1),
  11110. .second>div:nth-child(1),
  11111. .third>div:nth-child(1),
  11112. .four>div:nth-child(1) {
  11113. margin: 5px 10px 0 0;
  11114. width: 2rem;
  11115. }
  11116. .firstNo,
  11117. .secondNo,
  11118. .thirdNo,
  11119. .fourNo {
  11120. background: #e7e7e7;
  11121. color: #adadad;
  11122. display: flex;
  11123. flex-direction: row;
  11124. align-items: center;
  11125. justify-content: center;
  11126. }
  11127. .firstNo>div:nth-child(1),
  11128. .secondNo>div:nth-child(1),
  11129. .thirdNo>div:nth-child(1),
  11130. .fourNo>div:nth-child(1) {
  11131. margin: 5px 10px 0 0;
  11132. width: 2rem;
  11133. }
  11134. .uploadWidth>>>.el-upload {
  11135. width: 60px;
  11136. height: 60px;
  11137. position: relative;
  11138. }
  11139. .addPeople {
  11140. background: #fa6060;
  11141. width: 150px;
  11142. height: 40px;
  11143. color: #fff;
  11144. border-radius: 5px;
  11145. text-align: center;
  11146. line-height: 40px;
  11147. font-size: 14px;
  11148. cursor: pointer;
  11149. }
  11150. .kcImg {
  11151. width: 60px;
  11152. margin-left: 10px;
  11153. }
  11154. .zyImg {
  11155. width: 55px;
  11156. margin: 0 10px;
  11157. }
  11158. .deleteZy {
  11159. width: 20px;
  11160. position: absolute;
  11161. top: 5px;
  11162. right: 5px;
  11163. cursor: pointer;
  11164. }
  11165. .kcImg>img,
  11166. .zyImg>img,
  11167. .deleteZy>img {
  11168. width: 100%;
  11169. height: 100%;
  11170. }
  11171. .zyBox {
  11172. display: flex;
  11173. flex-direction: row;
  11174. align-items: center;
  11175. background: #67d37d;
  11176. color: #fff;
  11177. width: 210px;
  11178. margin: 20px 20px 0 0;
  11179. border-radius: 10px;
  11180. height: 70px;
  11181. position: relative;
  11182. }
  11183. .upCss {
  11184. display: flex;
  11185. flex-direction: row;
  11186. justify-content: flex-start;
  11187. }
  11188. .upCss>>>.el-icon-plus {
  11189. position: none !important;
  11190. width: 200px;
  11191. height: 100px;
  11192. display: flex;
  11193. flex-wrap: nowrap;
  11194. flex-direction: column;
  11195. align-items: center;
  11196. justify-content: center;
  11197. border: 1px dashed #ccc;
  11198. min-width: 78px;
  11199. min-height: 100px;
  11200. z-index: 999;
  11201. }
  11202. .upCss>>>.el-upload-list__item-name {
  11203. width: 100px;
  11204. white-space: nowrap;
  11205. overflow: hidden;
  11206. text-overflow: ellipsis;
  11207. }
  11208. .upCss>>>.el-upload-list__item .el-icon-close {
  11209. font-size: 20px;
  11210. z-index: 9999;
  11211. }
  11212. .addStageImg {
  11213. min-width: 25px;
  11214. min-height: 25px;
  11215. width: 25px;
  11216. height: 25px;
  11217. cursor: pointer;
  11218. }
  11219. .addHW {
  11220. width: 28px;
  11221. height: 28px;
  11222. cursor: pointer;
  11223. }
  11224. .addStageImg>img,
  11225. .addHW>img {
  11226. width: 100%;
  11227. height: 100%;
  11228. }
  11229. .addNewPP>>>.el-dialog__body {
  11230. padding: 5px 20px;
  11231. }
  11232. .addNewPP>>>.el-dialog {
  11233. margin-top: 5vh !important;
  11234. }
  11235. .addNewPP2>>>.el-dialog__body {
  11236. padding: 5px 0;
  11237. }
  11238. .addNewPP2>>>.el-dialog {
  11239. margin-top: 5vh !important;
  11240. }
  11241. .isHeight {
  11242. height: 680px;
  11243. }
  11244. .toolChoose {
  11245. display: flex;
  11246. /* width: 100%; */
  11247. flex-direction: row;
  11248. flex-wrap: wrap;
  11249. }
  11250. .tool,
  11251. .isToolChoose {
  11252. display: flex;
  11253. flex-direction: column;
  11254. flex-wrap: nowrap;
  11255. width: fit-content;
  11256. margin: 10px 0 10px 0;
  11257. align-items: center;
  11258. border: 2px solid #dbdbdb00;
  11259. padding: 10px 20px;
  11260. border-radius: 5px;
  11261. cursor: pointer;
  11262. /* box-shadow: 0 0 2px 0px #dedede; */
  11263. position: relative;
  11264. box-sizing: border-box;
  11265. }
  11266. .tool:hover {
  11267. border: 2px solid #a5c7ff;
  11268. }
  11269. .tool:hover>.noCTool {
  11270. display: block;
  11271. opacity: 0.5;
  11272. }
  11273. .isToolChoose {
  11274. border: 2px solid #438aff !important;
  11275. box-shadow: 0 0 2px 0px #438aff;
  11276. opacity: 1 !important;
  11277. }
  11278. .isCTool,
  11279. .noCTool {
  11280. width: 30px;
  11281. height: 30px;
  11282. position: absolute;
  11283. top: -4px;
  11284. right: -4px;
  11285. }
  11286. .noCTool {
  11287. display: none;
  11288. }
  11289. .isCTool>img,
  11290. .noCTool>img {
  11291. width: 100%;
  11292. height: 100%;
  11293. }
  11294. .tool+.tool {
  11295. margin-right: 10px;
  11296. }
  11297. .whiteBIcon {
  11298. width: 80px;
  11299. cursor: pointer;
  11300. display: flex;
  11301. flex-direction: column;
  11302. flex-wrap: nowrap;
  11303. align-items: center;
  11304. font-size: 14px;
  11305. }
  11306. .whiteBIcon>img,
  11307. .toolIcon>img,
  11308. .arrow>img {
  11309. width: 100%;
  11310. height: 100%;
  11311. }
  11312. .check img {
  11313. width: 20px;
  11314. height: 20px;
  11315. }
  11316. .whiteBIcon>img {
  11317. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  11318. border-radius: 15px;
  11319. }
  11320. .whiteBIcon>div:nth-child(2) {
  11321. height: 20px;
  11322. line-height: 20px;
  11323. }
  11324. .check {
  11325. /* width: 20px;
  11326. height: 20px; */
  11327. cursor: pointer;
  11328. margin: 10px 0 0;
  11329. }
  11330. .checkDiv {
  11331. display: flex;
  11332. align-items: center;
  11333. }
  11334. .checkDiv span {
  11335. margin-left: 5px;
  11336. color: #858585;
  11337. }
  11338. .customWidth>>>.el-dialog {
  11339. min-width: 500px !important;
  11340. }
  11341. .a_addBox {
  11342. margin: 10px 0;
  11343. background: #fff;
  11344. padding: 15px;
  11345. /* max-height: 600px; */
  11346. overflow: auto;
  11347. }
  11348. .a_add_box {
  11349. border-bottom: 2px solid #eee;
  11350. padding-bottom: 25px;
  11351. }
  11352. .a_add_head {
  11353. display: flex;
  11354. align-items: center;
  11355. justify-content: space-between;
  11356. margin: 10px 0 0 0;
  11357. font-size: 18px;
  11358. }
  11359. .a_add_checkType {
  11360. margin-top: 10px;
  11361. display: flex;
  11362. font-size: 14px;
  11363. align-items: center;
  11364. }
  11365. .a_add_checkType span {
  11366. box-sizing: border-box;
  11367. padding: 0 0 5px 0;
  11368. cursor: pointer;
  11369. }
  11370. .a_add_checkType span+span {
  11371. margin-left: 10px;
  11372. }
  11373. .a_add_checkType .active {
  11374. border-bottom: 2px solid #409eff;
  11375. color: #409eff;
  11376. }
  11377. .a_add_head .a_add_head_input {
  11378. width: 100%;
  11379. }
  11380. .a_add_head .a_add_head_div {
  11381. display: flex;
  11382. align-items: center;
  11383. justify-content: space-between;
  11384. }
  11385. .a_add_body {
  11386. display: flex;
  11387. /* align-items: center; */
  11388. align-items: flex-end;
  11389. }
  11390. .a_add_input {
  11391. display: flex;
  11392. align-items: center;
  11393. flex-wrap: wrap;
  11394. }
  11395. .a_add_input_choice {
  11396. flex-direction: column;
  11397. margin-right: 10px;
  11398. }
  11399. .a_add_input_choice>>>.el-radio {
  11400. display: flex;
  11401. align-items: center;
  11402. flex-direction: row-reverse;
  11403. margin: 30px 0 0 0;
  11404. position: relative;
  11405. }
  11406. .a_add_input_choice>>>.el-checkbox {
  11407. display: flex;
  11408. align-items: center;
  11409. flex-direction: row-reverse;
  11410. margin: 30px 0 0 0;
  11411. position: relative;
  11412. }
  11413. .width100 {
  11414. width: 100%;
  11415. }
  11416. .a_add_input .a_add_persent {
  11417. width: 100%;
  11418. }
  11419. .a_add_persent_div {
  11420. width: 100%;
  11421. display: flex;
  11422. align-items: center;
  11423. }
  11424. .a_add_persent_div span {
  11425. margin: 5px 0;
  11426. }
  11427. .a_add_persent_div span:nth-child(1) {
  11428. width: 30%;
  11429. }
  11430. .a_add_persent_div span:nth-child(2) {
  11431. width: 7%;
  11432. }
  11433. .a_add_persent_div span:nth-child(3) {
  11434. width: 40%;
  11435. }
  11436. .a_add_body_div {
  11437. display: flex;
  11438. align-items: center;
  11439. justify-content: center;
  11440. /* flex-direction: column; */
  11441. position: absolute;
  11442. right: -20px;
  11443. transform: translateX(100%);
  11444. }
  11445. .a_add_body_div>>>.el-button--primary {
  11446. background: #466b99;
  11447. border: none;
  11448. }
  11449. .all_choose {
  11450. display: flex;
  11451. flex-direction: row;
  11452. align-items: flex-start;
  11453. width: 100%;
  11454. }
  11455. .all_choose>span {
  11456. min-width: fit-content;
  11457. display: block;
  11458. white-space: nowrap;
  11459. overflow: hidden;
  11460. text-overflow: ellipsis;
  11461. margin-right: 20px;
  11462. font-weight: bold;
  11463. font-size: 14px;
  11464. }
  11465. .all_choose>>>.el-checkbox-group {
  11466. display: flex;
  11467. flex-direction: row;
  11468. width: 100%;
  11469. flex-wrap: wrap;
  11470. align-content: center;
  11471. justify-content: flex-start;
  11472. align-items: center;
  11473. margin-top: 3px;
  11474. }
  11475. .all_choose>.el-checkbox-group>>>.el-checkbox {
  11476. margin-bottom: 10px;
  11477. display: flex;
  11478. flex-direction: row;
  11479. align-items: center;
  11480. margin-right: 10px;
  11481. }
  11482. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  11483. min-width: 80px;
  11484. overflow: hidden;
  11485. width: 80px;
  11486. text-overflow: ellipsis;
  11487. white-space: nowrap;
  11488. }
  11489. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  11490. width: auto;
  11491. }
  11492. .choose>div:nth-child(3)>span {
  11493. /* letter-spacing: 0 !important; */
  11494. }
  11495. .choose {
  11496. display: flex;
  11497. flex-direction: column;
  11498. flex-wrap: nowrap;
  11499. height: 100%;
  11500. justify-content: space-evenly;
  11501. align-items: flex-start;
  11502. }
  11503. .both {
  11504. display: flex;
  11505. flex-direction: row;
  11506. flex-wrap: wrap;
  11507. width: 100%;
  11508. align-items: center;
  11509. justify-content: flex-start;
  11510. margin: 15px 0;
  11511. }
  11512. .notice>>>.el-dialog {
  11513. width: 500px !important;
  11514. text-align: center;
  11515. }
  11516. .notice>>>.el-button {
  11517. margin-top: 20px;
  11518. }
  11519. .whiteBg {
  11520. background: #fff;
  11521. border-radius: 10px;
  11522. }
  11523. .wb_j_box {
  11524. display: flex;
  11525. width: 100%;
  11526. padding: 10px 20px;
  11527. box-sizing: border-box;
  11528. }
  11529. .wb_j_box_content {
  11530. width: calc(100% - 55% - 100px);
  11531. display: flex;
  11532. align-items: center;
  11533. }
  11534. .wb_j_box_p_box {
  11535. max-width: calc(100% - 200px);
  11536. word-break: break-all;
  11537. overflow: hidden;
  11538. margin: 0 0 0 10px;
  11539. font-size: 14px;
  11540. color: #6e6e6e;
  11541. }
  11542. .chooseWho {
  11543. display: flex;
  11544. width: 410px;
  11545. flex-direction: row;
  11546. flex-wrap: nowrap;
  11547. justify-content: space-between;
  11548. padding-bottom: 10px;
  11549. }
  11550. .chooseWho>div {
  11551. cursor: pointer;
  11552. padding-bottom: 10px;
  11553. font-weight: bold;
  11554. }
  11555. .isChooseActive {
  11556. color: #3e88f4;
  11557. border-bottom: 2px solid #2f80f3;
  11558. }
  11559. .toolSort {
  11560. display: flex;
  11561. flex-direction: row;
  11562. flex-wrap: wrap;
  11563. justify-content: flex-start;
  11564. align-items: flex-start;
  11565. }
  11566. .toolSort>div {
  11567. margin-right: 10px;
  11568. }
  11569. .tools {
  11570. width: 100%;
  11571. display: flex;
  11572. flex-direction: column;
  11573. flex-wrap: nowrap;
  11574. align-items: flex-start;
  11575. }
  11576. .leftTools,
  11577. .rightTools {
  11578. width: 50%;
  11579. }
  11580. .leftTools+.leftTools {
  11581. border-top: 1px solid #dbdbdb;
  11582. padding-top: 30px;
  11583. }
  11584. .rightTools {
  11585. display: flex;
  11586. flex-direction: row;
  11587. flex-wrap: nowrap;
  11588. justify-content: space-around;
  11589. }
  11590. .firstToolList {
  11591. display: flex;
  11592. flex-direction: column;
  11593. flex-wrap: nowrap;
  11594. align-items: center;
  11595. }
  11596. .iconList {
  11597. display: flex;
  11598. flex-direction: row;
  11599. flex-wrap: wrap;
  11600. justify-content: flex-start;
  11601. align-items: center;
  11602. margin: 20px 0 5px 0;
  11603. width: 240px;
  11604. min-width: 240px;
  11605. }
  11606. .iconTool {
  11607. display: flex;
  11608. flex-direction: column;
  11609. flex-wrap: nowrap;
  11610. align-items: center;
  11611. justify-content: flex-start;
  11612. margin: 15px 10px;
  11613. }
  11614. .toolIcon {
  11615. width: 50px;
  11616. }
  11617. .taskBorder {
  11618. /*border: 1px solid #e1e1e1; */
  11619. border-radius: 8px;
  11620. margin-top: 10px;
  11621. /* min-height: 1160px; */
  11622. position: relative;
  11623. background: #fff;
  11624. padding: 20px 20px 0;
  11625. overflow: hidden;
  11626. box-sizing: border-box;
  11627. }
  11628. .smallTaskBorder {
  11629. height: 170px;
  11630. min-height: 170px !important;
  11631. overflow: hidden;
  11632. }
  11633. .taskBorder>div {
  11634. /* padding: 30px 0 10px 30px; */
  11635. }
  11636. .addTaskBorder {
  11637. /* border: 2px solid #5E9AFC; */
  11638. border-radius: 8px;
  11639. margin-top: 10px;
  11640. cursor: pointer;
  11641. /* height: 50px;
  11642. line-height: 50px; */
  11643. background: #fff;
  11644. padding: 15px 0;
  11645. display: flex;
  11646. align-items: center;
  11647. justify-content: center;
  11648. }
  11649. /* .addTaskBorder>div {
  11650. margin: 0 auto;
  11651. display: flex;
  11652. align-items: center;
  11653. justify-content: center;
  11654. }
  11655. .addTaskBorder>div>img {
  11656. width: 20px;
  11657. }
  11658. .addTaskBorder>div>span {
  11659. font-size: 16px;
  11660. margin-left: 10px;
  11661. color: #5E9AFC;
  11662. } */
  11663. .funBlock {
  11664. display: flex;
  11665. padding: 15px 0;
  11666. flex-direction: row;
  11667. justify-content: flex-end;
  11668. align-items: center;
  11669. position: absolute;
  11670. right: 15px;
  11671. bottom: 35px;
  11672. z-index: 999;
  11673. }
  11674. .fold {
  11675. display: flex;
  11676. margin: 0 10px;
  11677. flex-direction: row;
  11678. align-items: center;
  11679. cursor: pointer;
  11680. }
  11681. .arrow {
  11682. width: 15px;
  11683. height: 15px;
  11684. margin-left: 10px;
  11685. }
  11686. .addToolFun {
  11687. display: flex;
  11688. width: 150px;
  11689. flex-direction: row;
  11690. align-items: center;
  11691. justify-content: center;
  11692. border: 1px dashed;
  11693. border-radius: 5px;
  11694. height: 50px;
  11695. margin: 20px auto 35px;
  11696. cursor: pointer;
  11697. }
  11698. .addToolFun2 {
  11699. display: flex;
  11700. width: 150px;
  11701. border: 2px dashed #CAD1DC;
  11702. flex-direction: row;
  11703. align-items: center;
  11704. justify-content: center;
  11705. border-radius: 5px;
  11706. height: 50px;
  11707. margin: 0 auto 0;
  11708. cursor: pointer;
  11709. }
  11710. .addToolImg {
  11711. width: 20px;
  11712. height: 20px;
  11713. margin-right: 10px;
  11714. }
  11715. .addToolsDia>>>.el-dialog__body {
  11716. padding: 20px;
  11717. }
  11718. .addToolsDia>>>.el-dialog__body>.toolChoose {
  11719. padding: 0;
  11720. }
  11721. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  11722. padding: 0;
  11723. border-bottom: none;
  11724. margin-bottom: 0;
  11725. }
  11726. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  11727. width: 100%;
  11728. }
  11729. .lineCss>>>.el-form-item__label {
  11730. width: auto !important;
  11731. }
  11732. .lineCss>>>.el-form-item__content {
  11733. margin-left: 50px !important;
  11734. }
  11735. .newSteps {
  11736. display: flex;
  11737. width: 100% !important;
  11738. height: 80px;
  11739. cursor: pointer;
  11740. margin: 10px 0;
  11741. border-radius: 10px;
  11742. flex-direction: row;
  11743. align-content: center;
  11744. justify-content: center;
  11745. align-items: center;
  11746. margin: 0 !important;
  11747. }
  11748. /* 评价样式 */
  11749. .elist_css {
  11750. padding-bottom: 60px !important;
  11751. }
  11752. .elist_title {
  11753. margin-bottom: 10px;
  11754. }
  11755. .elist_input {}
  11756. .elist_input_box {
  11757. display: flex;
  11758. align-items: center;
  11759. flex-wrap: wrap;
  11760. }
  11761. .elist_input_box+.elist_input_box {
  11762. margin-top: 30px;
  11763. }
  11764. .elist_input .elist_input_box input {
  11765. font: inherit;
  11766. color: currentColor;
  11767. /* width: 200px; */
  11768. max-width: 200px;
  11769. padding: 8px 14px;
  11770. display: block;
  11771. min-width: 0;
  11772. outline: none;
  11773. border: 1px solid rgba(0, 0, 0, 0.23);
  11774. border-radius: 4px;
  11775. box-sizing: border-box;
  11776. background: #fff;
  11777. margin: 0 5px 0 0;
  11778. }
  11779. .elist_input .elist_input_box span {
  11780. height: 36px;
  11781. line-height: 36px;
  11782. color: rgb(82, 82, 82);
  11783. min-width: 80px;
  11784. }
  11785. .elist_input .elist_input_box .remove {
  11786. height: 20px;
  11787. width: 20px;
  11788. min-width: 20px;
  11789. background-size: 100% 100%;
  11790. background-position: unset;
  11791. margin-left: 5px;
  11792. }
  11793. .elist_input_box>>>.el-rate {
  11794. display: flex;
  11795. height: 36px;
  11796. align-items: center;
  11797. }
  11798. .elist_input_box .elist_inptu_text {
  11799. width: 100%;
  11800. display: flex;
  11801. align-items: center;
  11802. margin-top: 10px;
  11803. }
  11804. .elist_input_box .elist_inptu_text input {
  11805. /* width: 500px; */
  11806. width: 100%;
  11807. max-width: unset;
  11808. }
  11809. .elist_input_box>>>.el-rate__icon {
  11810. font-size: 24px;
  11811. }
  11812. .elist_btn {
  11813. margin-top: 10px;
  11814. }
  11815. .lineTitle {
  11816. /* margin-top: 15px; */
  11817. width: 110px;
  11818. font-size: 16px;
  11819. display: flex;
  11820. align-items: center;
  11821. line-height: 20px;
  11822. }
  11823. .lineTitle::before {
  11824. content: '';
  11825. display: block;
  11826. width: 3px;
  11827. height: 20px;
  11828. background: #0061FF;
  11829. border-radius: 3px;
  11830. margin: 0 5px 0 0;
  11831. }
  11832. .courseTop {
  11833. display: flex;
  11834. flex-direction: row;
  11835. justify-content: space-between;
  11836. align-items: center;
  11837. width: calc(100%);
  11838. padding: 10px 0;
  11839. margin: 0 auto;
  11840. }
  11841. .stepsNav {
  11842. display: flex;
  11843. flex-direction: row;
  11844. justify-content: flex-start;
  11845. align-items: center;
  11846. }
  11847. .stepsWord {
  11848. font-size: 18px;
  11849. color: #fff;
  11850. font-weight: bold;
  11851. margin-left: auto;
  11852. background: rgb(15, 126, 255);
  11853. border-radius: 5px;
  11854. padding: 3px 25px;
  11855. box-sizing: border-box;
  11856. }
  11857. .rightBox {
  11858. width: calc(100%);
  11859. background: #F0F2F5;
  11860. /* border-radius: 10px; */
  11861. overflow: auto;
  11862. height: calc(100% - 120px);
  11863. margin: 0 auto;
  11864. position: relative;
  11865. box-sizing: border-box;
  11866. border-radius: 5px;
  11867. }
  11868. .e_add_top {
  11869. display: flex;
  11870. justify-content: space-between;
  11871. padding: 20px 20px 0 20px;
  11872. border-radius: 3px;
  11873. background: #fff;
  11874. }
  11875. .e_add_title2 {
  11876. display: flex;
  11877. align-items: center;
  11878. }
  11879. .e_add_title2 span {
  11880. width: 40px;
  11881. }
  11882. .e_add_title {
  11883. display: flex;
  11884. align-items: center;
  11885. color: #b8b8b8;
  11886. font-size: 18px;
  11887. position: relative;
  11888. height: 40px;
  11889. }
  11890. .e_add_title span {
  11891. margin-right: 10px;
  11892. }
  11893. .e_add_title .el_input {
  11894. width: 300px;
  11895. }
  11896. .e_add_title>>>.el-input__inner {
  11897. width: 400px;
  11898. }
  11899. .e_add_btn {}
  11900. .e_add_content {
  11901. display: flex;
  11902. width: 100%;
  11903. }
  11904. .e_add_list {
  11905. background: #fff;
  11906. height: 500px;
  11907. width: 210px;
  11908. position: relative;
  11909. margin: 15px 5px 0 0;
  11910. flex-shrink: 0;
  11911. display: flex;
  11912. flex-direction: column;
  11913. }
  11914. .e_add_list_title {
  11915. font-size: 20px;
  11916. width: 100%;
  11917. box-sizing: border-box;
  11918. padding: 15px 40px;
  11919. text-align: center;
  11920. border-bottom: 1px solid #eaeaea;
  11921. position: relative;
  11922. display: flex;
  11923. align-items: center;
  11924. justify-content: center;
  11925. height: 57px;
  11926. background: #f6f6f6;
  11927. }
  11928. .e_add_list_title span {
  11929. overflow: hidden;
  11930. white-space: nowrap;
  11931. text-overflow: ellipsis;
  11932. }
  11933. .e_add_list_title img {
  11934. position: absolute;
  11935. right: 15px;
  11936. width: 25px;
  11937. cursor: pointer;
  11938. top: 50%;
  11939. transform: translateY(-50%);
  11940. }
  11941. .e_add_list_body {
  11942. height: calc(100% - 187px);
  11943. overflow: auto;
  11944. }
  11945. .e_add_list_child {
  11946. width: 100%;
  11947. display: flex;
  11948. align-items: center;
  11949. justify-content: center;
  11950. position: relative;
  11951. box-sizing: border-box;
  11952. padding: 15px 40px;
  11953. text-align: center;
  11954. }
  11955. .e_add_list_child span {
  11956. overflow: hidden;
  11957. white-space: nowrap;
  11958. text-overflow: ellipsis;
  11959. cursor: pointer;
  11960. }
  11961. .e_add_list_child img {
  11962. position: absolute;
  11963. right: 10px;
  11964. width: 21px;
  11965. cursor: pointer;
  11966. top: 50%;
  11967. transform: translateY(-50%);
  11968. }
  11969. .e_add_list_child+.e_add_list_child {
  11970. border-top: 1px solid #eaeaea;
  11971. }
  11972. .e_add_list_child .active {
  11973. color: #409eff;
  11974. }
  11975. .e_add_list_btn {
  11976. position: absolute;
  11977. bottom: 0;
  11978. height: 50px;
  11979. background: rgb(120, 120, 254);
  11980. width: 100%;
  11981. color: #fff;
  11982. font-size: 16px;
  11983. text-align: center;
  11984. line-height: 50px;
  11985. cursor: pointer;
  11986. }
  11987. .e_add_list_detail {
  11988. position: absolute;
  11989. bottom: 0;
  11990. height: 130px;
  11991. background: rgb(120, 120, 254);
  11992. width: 100%;
  11993. color: #fff;
  11994. font-size: 16px;
  11995. display: flex;
  11996. align-items: center;
  11997. justify-content: center;
  11998. }
  11999. .e_add_list_detail textarea {
  12000. height: 90%;
  12001. width: 95%;
  12002. border: none;
  12003. resize: none;
  12004. outline: none;
  12005. padding: 5px;
  12006. box-sizing: border-box;
  12007. }
  12008. .e_add_list_pbox {
  12009. width: 100%;
  12010. }
  12011. .e_add_list_pbox_title {
  12012. height: 50px;
  12013. background: #fff;
  12014. display: flex;
  12015. align-items: center;
  12016. width: 100%;
  12017. box-sizing: border-box;
  12018. padding: 0 20px;
  12019. flex-direction: row;
  12020. flex-wrap: wrap;
  12021. }
  12022. .type_title {
  12023. font-size: 18px;
  12024. font-weight: 700;
  12025. }
  12026. .type_content {
  12027. font-size: 16px;
  12028. margin-left: 30px;
  12029. }
  12030. .type_content span+span {
  12031. margin-left: 20px;
  12032. }
  12033. .type_content span {
  12034. cursor: pointer;
  12035. padding-bottom: 5px;
  12036. box-sizing: border-box;
  12037. }
  12038. .type_content .active {
  12039. color: #409eff;
  12040. border-bottom: 2px solid #409eff;
  12041. }
  12042. .e_add_list_pbox_content {
  12043. height: calc(100% - 50px);
  12044. display: flex;
  12045. align-items: center;
  12046. width: 100%;
  12047. background: #fff;
  12048. }
  12049. .mbCss {
  12050. width: 100%;
  12051. display: flex;
  12052. flex-direction: row;
  12053. flex-wrap: nowrap;
  12054. align-content: center;
  12055. align-items: flex-start;
  12056. justify-content: flex-start;
  12057. }
  12058. .pjCss {
  12059. /* width: 42%; */
  12060. width: calc(100% - 55%);
  12061. display: flex;
  12062. flex-direction: column;
  12063. flex-wrap: nowrap;
  12064. align-items: flex-start;
  12065. margin-top: 1.5%;
  12066. }
  12067. .e_box {
  12068. display: flex;
  12069. flex-wrap: wrap;
  12070. max-height: 500px;
  12071. align-items: flex-start;
  12072. overflow: auto;
  12073. }
  12074. .e_card {
  12075. border: 1px solid #ccc;
  12076. background: #fff;
  12077. margin-right: 20px;
  12078. width: 270px;
  12079. display: flex;
  12080. flex-direction: column;
  12081. align-items: center;
  12082. border-radius: 5px;
  12083. margin-top: 10px;
  12084. text-align: center;
  12085. }
  12086. .e_card_picture {
  12087. margin: 10px 0;
  12088. }
  12089. .e_card_picture>img {
  12090. width: 50px;
  12091. }
  12092. .e_card_name {
  12093. width: 100%;
  12094. padding: 0 10px;
  12095. box-sizing: border-box;
  12096. margin-bottom: 10px;
  12097. overflow: hidden;
  12098. text-overflow: ellipsis;
  12099. white-space: nowrap;
  12100. }
  12101. .e_card_time {
  12102. width: 100%;
  12103. padding: 0 10px;
  12104. box-sizing: border-box;
  12105. font-size: 15px;
  12106. color: #c3c3c3;
  12107. margin-bottom: 10px;
  12108. }
  12109. .e_card_btn {
  12110. height: 40px;
  12111. display: flex;
  12112. align-items: center;
  12113. width: 100%;
  12114. background: rgb(244, 244, 244);
  12115. }
  12116. .e_card_btn:hover {
  12117. background: rgb(221 221 221);
  12118. }
  12119. .e_card_btn span {
  12120. flex: 1 1 auto;
  12121. text-align: center;
  12122. cursor: pointer;
  12123. }
  12124. .addEva {
  12125. border: 1px solid #ccc;
  12126. background: #fff;
  12127. margin-right: 20px;
  12128. width: 270px;
  12129. height: 149px;
  12130. display: flex;
  12131. flex-direction: column;
  12132. align-items: center;
  12133. border-radius: 5px;
  12134. margin-top: 10px;
  12135. text-align: center;
  12136. cursor: pointer;
  12137. justify-content: center;
  12138. }
  12139. .addEva>img {
  12140. width: 50px;
  12141. object-fit: cover;
  12142. }
  12143. .uploadFm {
  12144. border: 1px dashed #ccc;
  12145. width: 100%;
  12146. height: 140px;
  12147. position: relative;
  12148. cursor: pointer;
  12149. display: flex;
  12150. flex-direction: column;
  12151. justify-content: center;
  12152. align-items: center;
  12153. font-size: 14px;
  12154. color: #6e6e6e;
  12155. position:relative;
  12156. }
  12157. .cover_p{
  12158. width: 100% !important;
  12159. height: 100%;
  12160. object-fit: cover;
  12161. }
  12162. .uploadFm2:hover .cover_mask{
  12163. display: flex !important;
  12164. }
  12165. .cover_mask{
  12166. display:none;
  12167. width:100%;
  12168. height:100%;
  12169. position:absolute;
  12170. background:#00000054;
  12171. align-items: center;
  12172. justify-content: center;
  12173. flex-direction: column;
  12174. }
  12175. .cover_mask > img{
  12176. width: 30px;
  12177. }
  12178. .cover_mask > span{
  12179. color: #fff;
  12180. font-size: 12px;
  12181. }
  12182. .uploadFm>img {
  12183. width: 50px;
  12184. }
  12185. .fileCss {
  12186. width: 100%;
  12187. display: flex;
  12188. flex-direction: row;
  12189. flex-wrap: nowrap;
  12190. justify-content: space-around;
  12191. align-items: center;
  12192. padding-top: 15px;
  12193. }
  12194. .fileCss>div {
  12195. display: flex;
  12196. flex-direction: column;
  12197. align-items: center;
  12198. }
  12199. .fileCss .spanName {
  12200. margin-top: 10px
  12201. }
  12202. .sysPicBox {
  12203. display: flex;
  12204. flex-direction: row;
  12205. flex-wrap: wrap;
  12206. align-content: flex-start;
  12207. height: 435px;
  12208. overflow: auto;
  12209. position: relative;
  12210. }
  12211. .picNone {
  12212. position: absolute;
  12213. left: 50%;
  12214. top: 45%;
  12215. transform: translate(-50%, -50%);
  12216. width: fit-content;
  12217. color: #9c9c9c;
  12218. }
  12219. .sysPic {
  12220. width: 200px;
  12221. height: 115px;
  12222. margin: 0 20px 20px 0;
  12223. cursor: pointer;
  12224. }
  12225. .sysPic>img,
  12226. .isSysPic>img,
  12227. .deletePic>img {
  12228. width: 100%;
  12229. height: 100%;
  12230. object-fit: cover;
  12231. }
  12232. .isSysPic {
  12233. width: 200px;
  12234. height: 115px;
  12235. position: relative;
  12236. }
  12237. .deletePic {
  12238. width: 20px;
  12239. height: 20px;
  12240. position: absolute;
  12241. top: 0;
  12242. right: 0;
  12243. cursor: pointer;
  12244. }
  12245. .select_box1 {
  12246. height: 100%;
  12247. }
  12248. .select_box1_img {
  12249. background: #fff;
  12250. border-radius: 5px;
  12251. padding: 15px;
  12252. box-sizing: border-box;
  12253. margin-bottom: 20px;
  12254. }
  12255. .select_box1_title {
  12256. padding: 0 0 15px 0;
  12257. border-bottom: 1px solid #eee;
  12258. margin-bottom: 15px;
  12259. }
  12260. .select_box1_title span:nth-child(1) {
  12261. font-size: 16px;
  12262. margin-right: 20px;
  12263. color: #000;
  12264. }
  12265. .select_box1_title span:nth-child(2) {
  12266. font-size: 14px;
  12267. color: rgb(112, 112, 112);
  12268. }
  12269. .select_box1_add_img {}
  12270. .select_box1_select {
  12271. background: #fff;
  12272. border-radius: 5px;
  12273. padding: 15px;
  12274. box-sizing: border-box;
  12275. height: calc(100% - 200px);
  12276. overflow: auto;
  12277. }
  12278. .select_box2 {
  12279. height: 100%;
  12280. }
  12281. .select_box2_title {
  12282. background: #fff;
  12283. border-radius: 5px;
  12284. padding: 5px 10px;
  12285. box-sizing: border-box;
  12286. margin-bottom: 10px;
  12287. }
  12288. .select_box2_box {
  12289. display: flex;
  12290. height: calc(100% - 30px);
  12291. }
  12292. .select_box2_img {
  12293. width: calc(100% - 310px);
  12294. height: 100%;
  12295. overflow: auto;
  12296. background: #fff;
  12297. border-radius: 5px;
  12298. }
  12299. .select_box2_img img {
  12300. width: 100%;
  12301. }
  12302. .select_box2_answer {
  12303. background: #fff;
  12304. margin-left: 10px;
  12305. border-radius: 5px;
  12306. width: 300px;
  12307. overflow: auto;
  12308. height: 100%;
  12309. display: flex;
  12310. flex-direction: column;
  12311. align-items: center;
  12312. padding-top: 10px;
  12313. box-sizing: border-box;
  12314. }
  12315. .select_box2_answer_box {
  12316. margin: 0 0 10px 0;
  12317. width: 85%;
  12318. }
  12319. .rate_textarea {
  12320. font: inherit;
  12321. color: currentColor;
  12322. width: 100%;
  12323. padding: 8px 14px;
  12324. display: block;
  12325. min-width: 0;
  12326. outline: none;
  12327. border: 1px solid rgba(0, 0, 0, 0.23);
  12328. border-radius: 4px;
  12329. box-sizing: border-box;
  12330. background: #fff;
  12331. margin: 0 20px 0 0;
  12332. resize: none;
  12333. }
  12334. .select_answer_title {
  12335. text-align: left;
  12336. width: 85%;
  12337. margin-bottom: 10px;
  12338. font-size: 18px;
  12339. color: #8e8e8e;
  12340. }
  12341. .mask {
  12342. background-color: rgb(0 0 0 / 30%);
  12343. /* position: fixed; */
  12344. position: absolute;
  12345. top: 0;
  12346. left: 0;
  12347. width: 100%;
  12348. height: 100%;
  12349. z-index: 90;
  12350. display: flex;
  12351. align-items: center;
  12352. justify-content: center;
  12353. }
  12354. .progressBox {
  12355. width: 300px;
  12356. height: 150px;
  12357. background: #fff;
  12358. border-radius: 10px;
  12359. box-shadow: 0 0 6px 1px #bfbfbf;
  12360. display: flex;
  12361. align-items: center;
  12362. justify-content: center;
  12363. flex-direction: column;
  12364. position: relative;
  12365. color: #6c6c6c;
  12366. }
  12367. .progressBox>>>.el-progress-bar__outer {
  12368. background-color: #d1dfff !important;
  12369. }
  12370. .progressBox .lbox {
  12371. height: 50px;
  12372. font-size: 19px;
  12373. display: flex;
  12374. align-items: center;
  12375. color: #747474;
  12376. }
  12377. .progressBox .lbox img {
  12378. width: 40px;
  12379. margin-right: 20px;
  12380. }
  12381. .closeCss {
  12382. position: absolute;
  12383. top: 8px;
  12384. right: 8px;
  12385. cursor: pointer;
  12386. width: 20px;
  12387. height: 20px;
  12388. }
  12389. .closeCss>img {
  12390. width: 100%;
  12391. height: 100%;
  12392. }
  12393. .updateTips::after {
  12394. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  12395. font-size: 14px;
  12396. margin-left: 20px;
  12397. font-weight: 400;
  12398. color: #ff3a3a;
  12399. }
  12400. .updateMask {
  12401. width: 100%;
  12402. z-index: 3;
  12403. top: 0;
  12404. position: absolute;
  12405. /* background-color: rgba(0,0,0,.3); */
  12406. }
  12407. .t_j_box {
  12408. display: flex;
  12409. }
  12410. .t_j_box span:nth-child(1) {
  12411. width: 15%;
  12412. overflow: hidden;
  12413. margin-right: 10px;
  12414. text-overflow: ellipsis;
  12415. white-space: nowrap;
  12416. }
  12417. .t_j_box span:nth-child(2) {
  12418. width: 30%;
  12419. overflow: hidden;
  12420. text-overflow: ellipsis;
  12421. margin-right: 10px;
  12422. }
  12423. .t_j_box span:nth-child(3) {
  12424. max-width: calc(55% - 20px);
  12425. overflow: hidden;
  12426. text-overflow: ellipsis;
  12427. }
  12428. .sentenBox {
  12429. background: #fff;
  12430. height: 600px;
  12431. overflow: auto;
  12432. background-image: url("../../../assets/icon/conSentences/csBg.png");
  12433. background-position: 102%;
  12434. background-repeat: no-repeat;
  12435. background-size: 60%;
  12436. }
  12437. .sentenBox>.sentenContent {
  12438. padding-bottom: 10px;
  12439. width: 97%;
  12440. margin: 0 auto;
  12441. }
  12442. .sentenBox>.sentenContent+.sentenContent {
  12443. border-top: 1px solid #cbcbcb;
  12444. }
  12445. .addSen {
  12446. background: #409efe;
  12447. width: 90px;
  12448. color: #fff;
  12449. height: 35px;
  12450. text-align: center;
  12451. line-height: 35px;
  12452. border-radius: 5px;
  12453. float: right;
  12454. margin: 10px 20px 0 0;
  12455. cursor: pointer;
  12456. }
  12457. .sentenTop {
  12458. display: flex;
  12459. flex-direction: row;
  12460. flex-wrap: nowrap;
  12461. align-items: center;
  12462. }
  12463. .sentenTop::before {
  12464. content: attr(index);
  12465. background: #3681fc;
  12466. border-radius: 50%;
  12467. color: #fff;
  12468. width: 25px;
  12469. height: 25px;
  12470. min-width: 25px;
  12471. min-height: 25px;
  12472. text-align: center;
  12473. line-height: 25px;
  12474. margin-right: 5px;
  12475. }
  12476. .sentenTop>div:nth-child(2) {
  12477. width: 300px;
  12478. margin: 0 15px;
  12479. }
  12480. .sentenTop>div:nth-child(3) {
  12481. background: #409efe;
  12482. color: #fff;
  12483. width: 65px;
  12484. height: 35px;
  12485. text-align: center;
  12486. line-height: 35px;
  12487. border-radius: 5px;
  12488. cursor: pointer;
  12489. }
  12490. .cardList {
  12491. padding: 20px 0 20px 0;
  12492. display: flex;
  12493. flex-direction: row;
  12494. flex-wrap: wrap;
  12495. align-items: center;
  12496. box-sizing: border-box;
  12497. border-bottom: 1px solid #f4f4f4;
  12498. width: 98%;
  12499. margin: 0 auto;
  12500. }
  12501. .rightCardList {
  12502. display: flex;
  12503. flex-wrap: wrap;
  12504. }
  12505. .cardBox {
  12506. display: flex;
  12507. flex-direction: row;
  12508. flex-wrap: wrap;
  12509. align-items: center;
  12510. align-content: center;
  12511. }
  12512. .isCard,
  12513. .isCard1 {
  12514. width: auto;
  12515. padding: 0 20px;
  12516. height: 65px;
  12517. text-align: center;
  12518. line-height: 65px;
  12519. font-size: 14px;
  12520. cursor: pointer;
  12521. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  12522. background-size: 100% 100%;
  12523. position: relative;
  12524. z-index: 99;
  12525. }
  12526. .isCard1 {
  12527. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  12528. }
  12529. .isCard:hover .deleteWord {
  12530. display: block;
  12531. }
  12532. .isCard>div:nth-child(1),
  12533. .isCard1>div:nth-child(1) {
  12534. white-space: nowrap;
  12535. overflow: hidden;
  12536. text-overflow: ellipsis;
  12537. width: 100%;
  12538. margin: 0 auto;
  12539. }
  12540. .card {
  12541. width: 140px;
  12542. height: 65px;
  12543. }
  12544. .card>img {
  12545. width: 100%;
  12546. height: 100%;
  12547. }
  12548. .rightCardBox {
  12549. width: 98%;
  12550. margin: 10px auto 0;
  12551. }
  12552. .rightCardBox>div:nth-child(1) {
  12553. margin-bottom: 10px;
  12554. }
  12555. .cardCss {
  12556. display: flex;
  12557. flex-direction: column;
  12558. flex-wrap: nowrap;
  12559. align-items: center;
  12560. border-bottom: 3px solid #b4c3d3;
  12561. padding: 0 0 5px 0;
  12562. /* margin-right: 10px; */
  12563. }
  12564. .cardCss>div:nth-child(2) {
  12565. background: #5b7b9d;
  12566. color: #fff;
  12567. width: 20px;
  12568. height: 20px;
  12569. border-radius: 50%;
  12570. text-align: center;
  12571. line-height: 20px;
  12572. }
  12573. .sentenTopBox {
  12574. display: flex;
  12575. flex-direction: row;
  12576. flex-wrap: nowrap;
  12577. align-items: center;
  12578. justify-content: space-between;
  12579. padding: 55px 0 0 20px;
  12580. box-sizing: border-box;
  12581. width: 85%;
  12582. }
  12583. .stepsBottom {
  12584. width: 85%;
  12585. margin-bottom: 20px;
  12586. box-shadow: 0 0 10px 10px #f7f7f7;
  12587. background: #f7f7f7;
  12588. border-radius: 10px;
  12589. overflow: hidden;
  12590. }
  12591. .course_left {
  12592. width: 300px;
  12593. height: auto;
  12594. position: relative;
  12595. }
  12596. .stepsBottom2 {
  12597. width: 300px;
  12598. margin: 10px 0;
  12599. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  12600. /* background: #f7f7f7; */
  12601. border-radius: 8px;
  12602. overflow: hidden;
  12603. height: fit-content;
  12604. position: relative;
  12605. /* transition: all .5s; */
  12606. }
  12607. .navTop {
  12608. background: #53749b;
  12609. color: #fff;
  12610. height: 40px;
  12611. line-height: 40px;
  12612. padding-left: 15px;
  12613. font-size: 18px;
  12614. }
  12615. .navBottom {
  12616. background: #fff;
  12617. height: calc(100vh - 210px);
  12618. overflow: auto;
  12619. }
  12620. .navTask {
  12621. display: flex;
  12622. flex-direction: row;
  12623. flex-wrap: nowrap;
  12624. align-items: center;
  12625. padding: 10px 10px 10px 0;
  12626. cursor: pointer;
  12627. background: #ffffff;
  12628. width: 95%;
  12629. margin: 10px auto 0;
  12630. box-sizing: border-box;
  12631. border-radius: 5px;
  12632. flex-wrap: wrap;
  12633. position: relative;
  12634. }
  12635. .navTask::before {
  12636. content: '';
  12637. display: block;
  12638. width: 16px;
  12639. height: 16px;
  12640. background-image: url(../../../assets/icon/new/icon_arrow.png);
  12641. background-size: 100%;
  12642. margin-left: 23px;
  12643. }
  12644. .isNavOpen::before {
  12645. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  12646. }
  12647. .dragOverTop {
  12648. border-top: 2px solid #0061FF !important;
  12649. border-radius: 0 !important;
  12650. margin-top: 10px;
  12651. }
  12652. .dragOverBottom {
  12653. border-bottom: 2px solid #0061FF !important;
  12654. border-radius: 0 !important;
  12655. margin-top: 10px;
  12656. }
  12657. .dragOverTop2 {
  12658. border-top: 2px solid #0061FF !important;
  12659. border-radius: 0 !important;
  12660. }
  12661. .dragOverBottom2 {
  12662. border-bottom: 2px solid #0061FF !important;
  12663. border-radius: 0 !important;
  12664. }
  12665. .isNavTask {
  12666. /* background: #3681FC; */
  12667. background: #EEF3FB;
  12668. }
  12669. .isNavTask>.chapter_upload_drag {
  12670. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  12671. }
  12672. .isNavTask .nt_taskName {
  12673. /* color: #fff !important; */
  12674. font-weight: bold !important;
  12675. color: #0061FF !important;
  12676. }
  12677. .isNavTask .nt_taskTitle {
  12678. /* color: #AECCFE !important; */
  12679. font-weight: bold !important;
  12680. color: #0061FF !important;
  12681. }
  12682. .navTask .nt_taskBox {
  12683. width: calc(100% - 40px);
  12684. padding: 0 0 0 5px;
  12685. box-sizing: border-box;
  12686. box-sizing: border-box;
  12687. display: flex;
  12688. flex-direction: row;
  12689. flex-wrap: nowrap;
  12690. align-items: baseline;
  12691. }
  12692. .navTask .nt_taskTitle {
  12693. /* color: #717C8D; */
  12694. color: #060E17;
  12695. line-height: 25px;
  12696. font-size: 16px;
  12697. /* min-width: 66px; */
  12698. }
  12699. .navTask .nt_taskName {
  12700. /* color: #fff; */
  12701. /* max-width: 130px; */
  12702. /* width: 100%; */
  12703. max-width: calc(100% - 66px);
  12704. white-space: nowrap;
  12705. overflow: hidden;
  12706. text-overflow: ellipsis;
  12707. font-size: 16px;
  12708. color: #060E17;
  12709. /* color: #0E1E33; */
  12710. }
  12711. .gjBox {
  12712. width: calc(100% - 25px);
  12713. padding: 0 0 0 0;
  12714. box-sizing: border-box;
  12715. border-left: 1px solid #CAD1DC;
  12716. margin-left: 25px;
  12717. }
  12718. .gjBox>div {
  12719. display: flex;
  12720. align-items: center;
  12721. }
  12722. .gjBox>div::before {
  12723. content: '';
  12724. height: 1px;
  12725. width: 10px;
  12726. background: #CAD1DC;
  12727. display: block;
  12728. margin-right: 5px;
  12729. }
  12730. .gjCss {
  12731. display: flex;
  12732. flex-direction: row;
  12733. flex-wrap: nowrap;
  12734. align-items: center;
  12735. padding: 15px 0;
  12736. box-sizing: border-box;
  12737. font-size: 14px;
  12738. cursor: pointer;
  12739. }
  12740. .isGjCss {
  12741. color: #0061ff;
  12742. }
  12743. .groupBox {}
  12744. .groupContent+.groupContent {
  12745. margin-top: 30px;
  12746. }
  12747. .groupTitle {
  12748. font-size: 24px;
  12749. color: rgb(80, 80, 80);
  12750. margin-bottom: 20px;
  12751. }
  12752. .groupName {
  12753. display: flex;
  12754. align-items: center;
  12755. }
  12756. .groupn {
  12757. font-size: 15px;
  12758. margin-right: 10px;
  12759. }
  12760. .groupName+.groupName {
  12761. margin-top: 15px;
  12762. }
  12763. .groupBtn {
  12764. margin-left: 10px;
  12765. }
  12766. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  12767. text-align: left;
  12768. }
  12769. .radioBox>div {
  12770. margin: 10px 0 0 10px;
  12771. }
  12772. .radioBox>>>.el-radio__input,
  12773. .radioBox>>>.el-checkbox__inner {
  12774. margin-left: 10px;
  12775. }
  12776. .radioBox>>>.el-radio__label,
  12777. .radioBox>>>.el-checkbox__label {
  12778. display: flex;
  12779. align-items: center;
  12780. }
  12781. .inImg {
  12782. width: 50px;
  12783. }
  12784. .inImg>img {
  12785. width: 100%;
  12786. height: 100%;
  12787. object-fit: cover;
  12788. }
  12789. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  12790. height: auto;
  12791. padding: 10px;
  12792. margin: 0;
  12793. }
  12794. .upCss>>>.el-upload-list {
  12795. width: 100%;
  12796. }
  12797. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  12798. width: 100%;
  12799. height: 120px;
  12800. object-fit: contain;
  12801. background: unset;
  12802. margin-left: 0;
  12803. }
  12804. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  12805. display: none;
  12806. }
  12807. .tcMember+.tcMember::before {
  12808. content: "、";
  12809. }
  12810. .xzUpImg {
  12811. width: 25px;
  12812. height: 25px;
  12813. min-width: 25px;
  12814. min-height: 25px;
  12815. cursor: pointer;
  12816. margin: 0 10px;
  12817. }
  12818. .xzUpImg>img {
  12819. width: 100%;
  12820. height: 100%;
  12821. }
  12822. .closeCss {
  12823. position: absolute;
  12824. top: 8px;
  12825. right: 8px;
  12826. cursor: pointer;
  12827. width: 20px;
  12828. height: 20px;
  12829. }
  12830. .closeCss>img {
  12831. width: 100%;
  12832. height: 100%;
  12833. }
  12834. .moveBtn {
  12835. display: flex;
  12836. flex-direction: row;
  12837. flex-wrap: nowrap;
  12838. align-items: center;
  12839. width: 55px;
  12840. }
  12841. .timuUpImg {
  12842. display: flex;
  12843. flex-direction: row;
  12844. align-items: center;
  12845. width: 100%;
  12846. margin-right: 10px;
  12847. }
  12848. .timuUpImg>div:nth-child(1) {
  12849. margin-right: 10px;
  12850. display: flex;
  12851. align-items: center;
  12852. width: 100%;
  12853. }
  12854. .timuImgBox {
  12855. margin: 10px 0;
  12856. display: flex;
  12857. flex-direction: column;
  12858. flex-wrap: wrap;
  12859. align-items: flex-start;
  12860. }
  12861. .timuImg {
  12862. width: 100px;
  12863. margin: 5px 0;
  12864. cursor: pointer;
  12865. position: relative;
  12866. }
  12867. .timuImg:hover .deleteWord {
  12868. display: block;
  12869. }
  12870. .deleteWord {
  12871. width: 25px;
  12872. height: 25px;
  12873. position: absolute;
  12874. right: -5px;
  12875. top: -5px;
  12876. cursor: pointer;
  12877. display: none;
  12878. }
  12879. .timuImg>img,
  12880. .deleteWord>img {
  12881. width: 100%;
  12882. height: 100%;
  12883. object-fit: cover;
  12884. }
  12885. .e_add_delete {
  12886. cursor: pointer;
  12887. margin-left: 10px;
  12888. }
  12889. .pType_box {
  12890. margin-top: 30px;
  12891. align-items: flex-end;
  12892. }
  12893. .noneBox {
  12894. height: 100%;
  12895. width: 100%;
  12896. display: flex;
  12897. align-items: center;
  12898. justify-content: center;
  12899. margin-top: 150px;
  12900. }
  12901. .noneBox>img {
  12902. width: 300px;
  12903. }
  12904. .textarea_css {
  12905. display: block;
  12906. resize: none;
  12907. padding: 10px 15px;
  12908. line-height: 1.5;
  12909. box-sizing: border-box;
  12910. width: 100%;
  12911. font-size: 14px;
  12912. color: #606266;
  12913. background-color: #FFF;
  12914. background-image: none;
  12915. border: 1px solid #DCDFE6;
  12916. border-radius: 4px;
  12917. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  12918. outline: none;
  12919. overflow: hidden;
  12920. height: 46px;
  12921. font-family: 'Microsoft YaHei';
  12922. }
  12923. .textarea_css::-webkit-input-placeholder {
  12924. color: #C0C4CC
  12925. }
  12926. .textarea_css:focus {
  12927. border-color: #409EFF;
  12928. outline: 0;
  12929. }
  12930. .moveBtn2 {
  12931. flex-direction: column;
  12932. width: fit-content;
  12933. margin: 0 10px 0 10px;
  12934. }
  12935. .moveBtn2 .chapter_upload_down,
  12936. .moveBtn2 .chapter_upload_up {
  12937. width: 16px;
  12938. height: 16px;
  12939. }
  12940. .moveBtn2 .chapter_upload_up::after,
  12941. .moveBtn2 .chapter_upload_down::after {
  12942. width: 10px;
  12943. height: 10px;
  12944. }
  12945. .fullStyle>>>.el-dialog__body {
  12946. height: calc(100% - 125px) !important;
  12947. box-sizing: border-box;
  12948. }
  12949. .fullStyle>>>.el-dialog {
  12950. width: 100% !important;
  12951. max-width: 100% !important;
  12952. height: 100% !important;
  12953. margin: 0 !important;
  12954. }
  12955. .fullStyle {
  12956. width: 100% !important;
  12957. max-width: 100% !important;
  12958. height: 100% !important;
  12959. margin: 0 auto !important;
  12960. }
  12961. .wb_j_box_btn {
  12962. width: calc(100% - 30px);
  12963. display: flex;
  12964. height: 40px;
  12965. border: 1.5px solid #CAD1DC;
  12966. border-radius: 4px;
  12967. box-sizing: border-box;
  12968. align-items: center;
  12969. font-size: 14px;
  12970. cursor: pointer;
  12971. overflow: hidden;
  12972. }
  12973. .wb_j_box_btn:hover {
  12974. border: 1.5px solid #0061FF;
  12975. }
  12976. .wb_j_box_title {
  12977. background: #F0F4FA;
  12978. height: 100%;
  12979. line-height: 40px;
  12980. width: 90px;
  12981. text-align: center;
  12982. color: #060E17;
  12983. border-right: 1.5px solid #CAD1DC;
  12984. box-sizing: border-box;
  12985. }
  12986. .wb_j_box_btn_c {
  12987. width: calc(100% - 90px);
  12988. padding: 0 35px 0 10px;
  12989. box-sizing: border-box;
  12990. position: relative;
  12991. }
  12992. .wb_j_box_span {
  12993. width: 100%;
  12994. overflow: hidden;
  12995. white-space: nowrap;
  12996. text-overflow: ellipsis;
  12997. word-wrap: break-word;
  12998. color: #717C8D;
  12999. }
  13000. .wb_j_box_arrow {
  13001. content: '';
  13002. width: 14px;
  13003. height: 14px;
  13004. background: url(../../../assets/icon/new/u_arrow.png);
  13005. background-size: 100% 100%;
  13006. position: absolute;
  13007. right: 12px;
  13008. top: 50%;
  13009. transform: translateY(-50%);
  13010. }
  13011. .check_classBox {
  13012. height: 400px;
  13013. display: flex;
  13014. border-top: 1.5px solid #E7EBF1;
  13015. border-bottom: 1.5px solid #E7EBF1;
  13016. }
  13017. .check_class_right {
  13018. width: 130px;
  13019. border-right: 1px solid #E7EBF1;
  13020. display: flex;
  13021. align-items: center;
  13022. flex-direction: column;
  13023. height: 100%;
  13024. overflow: auto;
  13025. padding: 15px 0;
  13026. box-sizing: border-box;
  13027. }
  13028. .check_class {
  13029. width: 85%;
  13030. border-radius: 5px;
  13031. height: 30px;
  13032. line-height: 30px;
  13033. text-align: center;
  13034. padding: 0 10px;
  13035. box-sizing: border-box;
  13036. cursor: pointer;
  13037. white-space: nowrap;
  13038. overflow: hidden;
  13039. text-overflow: ellipsis;
  13040. }
  13041. .check_class.activeX {
  13042. background: #E0EAFB;
  13043. color: #3681FC;
  13044. font-weight: 700;
  13045. }
  13046. .check_class+.check_class {
  13047. margin-top: 15px;
  13048. }
  13049. .check_class_left {
  13050. background: #FAFAFA;
  13051. width: calc(100% - 130px);
  13052. padding: 15px;
  13053. box-sizing: border-box;
  13054. }
  13055. .check_class_all_box {
  13056. display: flex;
  13057. margin-bottom: 10px;
  13058. }
  13059. .all_check {
  13060. display: flex;
  13061. align-items: center;
  13062. padding: 2px 0 0;
  13063. margin-left: 10px;
  13064. }
  13065. .all_check>>>.el-checkbox__label {
  13066. line-height: 18px;
  13067. }
  13068. .check_class_left_title {
  13069. font-size: 16px;
  13070. font-weight: 700;
  13071. }
  13072. .check_class_item {
  13073. display: flex;
  13074. flex-wrap: wrap;
  13075. height: calc(100% - 45px);
  13076. overflow: auto;
  13077. justify-content: flex-start;
  13078. align-items: flex-start;
  13079. align-content: flex-start;
  13080. }
  13081. .class_item:first-child {
  13082. /* margin: 0 15px 15px 67px; */
  13083. }
  13084. .class_item {
  13085. margin: 0 15px 15px 0;
  13086. }
  13087. .class_item:hover>>>.el-checkbox__label {
  13088. color: #409EFF;
  13089. }
  13090. .class_item>>>.el-checkbox__label {
  13091. color: #0E1E33;
  13092. }
  13093. .class_item:hover>>>.el-checkbox__inner {
  13094. border-color: #409EFF;
  13095. }
  13096. .class_item>>>.el-checkbox,
  13097. .class_item>>>.el-checkbox__input {
  13098. display: flex;
  13099. align-items: center;
  13100. }</style>