addCourse.vue 503 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474
  1. <template>
  2. <div class="pb_content" style="background: #F0F2F5;">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="courseTop">
  6. <div class="stepsNav">
  7. <el-breadcrumb separator-class="el-icon-arrow-right">
  8. <el-breadcrumb-item :to="{
  9. path:
  10. '/course?userid=' +
  11. userid +
  12. '&oid=' +
  13. oid +
  14. '&org=' +
  15. org +
  16. '&role=' +
  17. role,
  18. }">课程管理</el-breadcrumb-item>
  19. <el-breadcrumb-item>
  20. <span style="color: rgb(15, 126, 255)">添加课程</span>
  21. </el-breadcrumb-item>
  22. </el-breadcrumb>
  23. </div>
  24. <div class="r_pub_button_retrun" @click="retrunCourse">返回</div>
  25. </div>
  26. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  27. <div ref="stepBox" class="stepBox">
  28. <div class="stepBg" v-if="false">
  29. <div :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }" @mouseenter="stepDisplay(true)"
  30. @mouseleave="stepDisplay(false)">
  31. <div v-if="steps > 0 && isStepDisplay" class="first" @click="navSteps(1)">
  32. <div>
  33. <img src="../../assets/icon/first.png" alt />
  34. </div>
  35. <div>填写基本信息</div>
  36. </div>
  37. <div v-else-if="isStepDisplay" class="firstNo" @click="navSteps(1)">
  38. <div>
  39. <img src="../../assets/icon/firstNo.png" alt />
  40. </div>
  41. <div>填写基本信息</div>
  42. </div>
  43. <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0 && isStepDisplay"></div>
  44. <div v-if="steps > 1 && cidType === 0 && isStepDisplay" class="second" @click="navSteps(2)">
  45. <div style="margin: 5px 10px 0 0; width: 2rem">
  46. <img src="../../assets/icon/second.png" alt />
  47. </div>
  48. <div>选择课程模板</div>
  49. </div>
  50. <div v-else-if="cidType === 0 && isStepDisplay" class="secondNo" @click="navSteps(2)">
  51. <div>
  52. <img src="../../assets/icon/secondNo.png" alt />
  53. </div>
  54. <div>选择课程模板</div>
  55. </div>
  56. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 2 }"></div>
  57. <div v-if="steps > 2 && isStepDisplay" class="third" @click="navSteps(3)">
  58. <div>
  59. <img src="../../assets/icon/third.png" alt />
  60. </div>
  61. <div>上传课程内容</div>
  62. </div>
  63. <div v-else-if="isStepDisplay" class="thirdNo" @click="navSteps(3)">
  64. <div>
  65. <img src="../../assets/icon/thirdNo.png" alt />
  66. </div>
  67. <div>上传课程内容</div>
  68. </div>
  69. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
  70. <div v-if="steps > 3 && isStepDisplay" class="four">
  71. <div>
  72. <img src="../../assets/icon/four.png" alt />
  73. </div>
  74. <div>上传完成</div>
  75. </div>
  76. <div v-else-if="isStepDisplay" class="fourNo">
  77. <div>
  78. <img src="../../assets/icon/fourNo.png" alt />
  79. </div>
  80. <div>上传完成</div>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange" style="padding:0;"
  85. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 20px)' : 'calc(100% - 100px)' }">
  86. <div class="updateMask" :style="{
  87. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  88. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  89. <div class="whiteBg" style="background:unset;padding: 0;">
  90. <div>
  91. <div class="basic_box" style="padding: 0;">
  92. <div class="big_box">
  93. <div class="left_first">
  94. <div :class="{
  95. updateTips: cid && userid != courseUserid && role != '1',
  96. }">
  97. <div style="width: 100%;">
  98. <div class="course_input_box">
  99. <div class="bb_courseIcon"><img src="../../assets/icon/new/course.png" /></div>
  100. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  101. style="border: 1.5px solid rgb(202, 209, 220);margin: 0px 10px 0px 0px;border-radius: 5px;font-weight: 600;padding: 12px 14px 12px 71px;" />
  102. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  103. style="justify-content: center;width: 200px;"></el-switch>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  108. <span>类型</span>
  109. <!-- 学科+ 主题+ 未来+ -->
  110. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  111. style="display: flex; align-items: center">
  112. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  113. <el-radio :label="item.name">{{
  114. item.name
  115. }}</el-radio>
  116. </div>
  117. </el-radio-group>
  118. </div>
  119. <div class="both">
  120. <div class="choose">
  121. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  122. <span v-if="CourseTypeJson[item.id].length > 0 &&
  123. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  124. ? pTypeCheck.indexOf(item.id) != -1
  125. : true)
  126. ">{{ item.name }}:</span>
  127. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  128. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  129. ? pTypeCheck.indexOf(item.id) != -1
  130. : true)
  131. ">
  132. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  133. item1.name }}</el-checkbox>
  134. </el-checkbox-group>
  135. <!-- <div
  136. v-else
  137. style="font-size: 14px; margin-left: -8px"
  138. >
  139. 暂无
  140. </div> -->
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="right_first">
  146. <!-- <div class="ai_box">
  147. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  148. </div> -->
  149. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  150. <div style="width: 100%;">
  151. <div class="uploadFm" @click="choosePicVisible = true" :class="{uploadFm2:cover.length}">
  152. <img src="../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0"/>
  153. <img :src="cover[0].url" alt="" class="cover_p" v-else/>
  154. <div v-if="cover.length == 0">点击添加封面</div>
  155. <div class="cover_mask"><img src="../../assets/icon/new/cover_update.png" /><span style="margin-top:5px;">修改封面</span></div>
  156. </div>
  157. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  158. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  159. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  160. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  161. <i class="el-icon-plus"></i>
  162. </el-upload> -->
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. <div class="whiteBg" style="background:#fff;margin: 10px 0;">
  170. <div class="whiteBg" style="border-radius: 0">
  171. <div class="c_info_title">课程权限设置</div>
  172. <div class="wb_j_box">
  173. <div class="wb_j_box_content">
  174. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  175. (dialogVisibleClass = true),
  176. (classSearch = ''),
  177. (gradeId = ''),
  178. getClass()
  179. ">添加班级</button>
  180. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  181. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  182. getClassC(tc) }}</span>
  183. </div> -->
  184. <div class="wb_j_box_btn" @click="
  185. (dialogVisibleClass = true),
  186. (classSearch = ''),
  187. (gradeId = ''),
  188. getClass()
  189. ">
  190. <div class="wb_j_box_title">授课班级</div>
  191. <div class="wb_j_box_btn_c">
  192. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  193. v-if="checkboxList2.length" popper-class="text_tooltip2">
  194. <div class="wb_j_box_span">{{ getListClassC(checkboxList2) }}</div>
  195. </el-tooltip>
  196. <div v-else class="wb_j_box_span">请选择授课班级</div>
  197. <div class="wb_j_box_arrow"></div>
  198. </div>
  199. </div>
  200. </div>
  201. <div class="wb_j_box_content">
  202. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  203. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  204. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  205. checkBoolean
  206. ? checkboxList3
  207. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  208. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  209. </div> -->
  210. <div class="wb_j_box_btn" @click="openMember">
  211. <div class="wb_j_box_title">协同人员</div>
  212. <div class="wb_j_box_btn_c">
  213. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  214. v-if="checkboxList3.length" popper-class="text_tooltip2">
  215. <div class="wb_j_box_span">{{ getListMan2(checkboxList3) }}</div>
  216. </el-tooltip>
  217. <div v-else class="wb_j_box_span">请选择协同人员</div>
  218. <div class="wb_j_box_arrow"></div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  225. <div class="c_info_title">课程简要描述</div>
  226. <div style="width: 100%;padding: 0px 20px;box-sizing: border-box;">
  227. <div style="width: calc((100% - 55% - 100px) * 2 - 30px)">
  228. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText" placeholder="请输入课程简要描述"></textarea>
  229. </div>
  230. </div>
  231. </div>
  232. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px">
  233. <div class="c_info_title">目标管理</div>
  234. <div style="margin: 0 auto;padding:0 20px">
  235. <div style="
  236. width: 95%;
  237. min-height: 200px;
  238. border: 1px solid #CAD1DC;
  239. border-radius: 4px;
  240. position: relative;
  241. ">
  242. <div class="e_add_top">
  243. <div class="e_add_title">
  244. <button class="c_pub_button_delete pub_btn_delete_img" @click="deleteEva()"
  245. v-if="evalua">清除</button>
  246. <button class="c_pub_button_confirm pub_btn_add_img2" @click="dialogVisiblemb = true">添加</button>
  247. <!-- <span>当前使用目标管理</span>
  248. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  249. <img
  250. src="../../assets/line.png"
  251. class="cru_line"
  252. style="
  253. width: 125px;
  254. height: 20px;
  255. bottom: -10px;
  256. left: 155px;
  257. "
  258. /> -->
  259. </div>
  260. <div style="
  261. display: flex;
  262. flex-direction: row;
  263. align-items: center;
  264. ">
  265. <!-- <el-button
  266. type="primary"
  267. size="small"
  268. @click="dialogVisiblemb = true"
  269. >添加目标管理</el-button
  270. >
  271. <el-button
  272. type="primary"
  273. size="small"
  274. @click="deleteEva()"
  275. >清除内容</el-button
  276. > -->
  277. <!-- <div class="e_add_delete" @click="deleteEva()">
  278. <img src="../../assets/icon/delete.png" alt="" />
  279. </div> -->
  280. </div>
  281. </div>
  282. <div v-if="evalua == ''">
  283. <div class="noneBox">
  284. <img src="../../assets/icon/new/eva_none.png" />
  285. <span>请添加目标管理</span>
  286. </div>
  287. </div>
  288. <div class="e_add_content" v-else>
  289. <div class="e_add_list_pbox">
  290. <div class="e_add_list_pbox_title">
  291. <span class="type_title">切换模式</span>
  292. <div class="type_content">
  293. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  294. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  295. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  296. </div>
  297. </div>
  298. <div class="e_add_list_pbox_content">
  299. <Mind :showBar="false" :mindData="data" v-show="typeMode == 1"></Mind>
  300. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  301. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  302. v-if="typeMode == 3">
  303. </SeeBoard>
  304. </div>
  305. </div>
  306. </div>
  307. </div>
  308. </div>
  309. </div>
  310. </div>
  311. <div class="info_btnBox3">
  312. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  313. goTo(
  314. '/course?userid=' +
  315. userid +
  316. '&oid=' +
  317. oid +
  318. '&org=' +
  319. org +
  320. '&role=' +
  321. role
  322. )
  323. ">
  324. 返回课程
  325. </button>
  326. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  327. {{ steps == 4 ? "返回课程" : "上一步" }}
  328. </button>
  329. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  330. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  331. {{ steps == 3 ? "确认上传" : "下一步" }}
  332. </button>
  333. </div>
  334. </div>
  335. <div class="rightBox" v-if="this.steps == 2"
  336. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  337. <div class="basic_box"
  338. style="padding: 20px 30px 0px !important; box-sizing: border-box;height: calc(100% - 80px);overflow: auto;background:#fff">
  339. <!-- <div
  340. style="
  341. color: #b8b8b8;
  342. background: #fff;
  343. width: 26%;
  344. height: 40px;
  345. border-radius: 15px;
  346. padding-left: 20px;
  347. line-height: 40px;
  348. font-size: 17px;
  349. box-shadow: 0px 1px 2px 2px #e0e0e0;
  350. "
  351. >-->
  352. <div class="right_title" style="border: none; margin: 0; padding: 0">
  353. 请选择合适的课程模板
  354. </div>
  355. <div class="wordbox">
  356. <div class="wordTeacher" @click="checkTemplate2()">
  357. <div class="wordPic">
  358. <img src="../../assets/icon/new/template_none.png" alt />
  359. </div>
  360. <div style="
  361. margin-top: 10px;
  362. line-height: 19px;
  363. overflow: hidden;
  364. text-overflow: ellipsis;
  365. white-space: nowrap;
  366. padding: 0 20px;
  367. ">
  368. 空白模板
  369. </div>
  370. </div>
  371. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  372. <div class="wordPic">
  373. <img src="../../assets/icon/new/template.png" alt />
  374. </div>
  375. <div style="
  376. margin-top: 10px;
  377. line-height: 19px;
  378. overflow: hidden;
  379. text-overflow: ellipsis;
  380. white-space: nowrap;
  381. padding: 0 20px;
  382. ">
  383. {{ aa.title }}
  384. </div>
  385. </div>
  386. <div class="wordTeacher" @click="checkTemplate3()" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  387. <div class="wordPic">
  388. <img src="../../assets/icon/new/template.png" alt />
  389. </div>
  390. <div style="
  391. margin-top: 10px;
  392. line-height: 19px;
  393. overflow: hidden;
  394. text-overflow: ellipsis;
  395. white-space: nowrap;
  396. padding: 0 20px;
  397. ">
  398. 简易模板
  399. </div>
  400. </div>
  401. <div class="wordTeacher" @click="pasteStage()" v-if="isPasteStage">
  402. <div class="wordPic">
  403. <img src="../../assets/icon/new/template.png" alt />
  404. </div>
  405. <div style="
  406. margin-top: 10px;
  407. line-height: 19px;
  408. overflow: hidden;
  409. text-overflow: ellipsis;
  410. white-space: nowrap;
  411. padding: 0 20px;
  412. ">
  413. 智能粘贴模式
  414. </div>
  415. </div>
  416. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  417. <div class="wordPic">
  418. <img src="../../assets/icon/wordMub.png" alt />
  419. </div>
  420. <div style="
  421. margin-top: 10px;
  422. line-height: 19px;
  423. overflow: hidden;
  424. text-overflow: ellipsis;
  425. white-space: nowrap;
  426. padding: 0 20px;
  427. ">
  428. 未来小学课程设计
  429. </div>
  430. </div> -->
  431. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  432. <div class="wordPic">
  433. <img src="../../assets/icon/wordMub.png" alt />
  434. </div>
  435. <div style="
  436. margin-top: 10px;
  437. line-height: 19px;
  438. overflow: hidden;
  439. text-overflow: ellipsis;
  440. white-space: nowrap;
  441. padding: 0 20px;
  442. ">
  443. 我的课程
  444. </div>
  445. </div> -->
  446. </div>
  447. </div>
  448. <div class="info_btnBox3" style="position: absolute;bottom: 0;">
  449. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  450. goTo(
  451. '/course?userid=' +
  452. userid +
  453. '&oid=' +
  454. oid +
  455. '&org=' +
  456. org +
  457. '&role=' +
  458. role
  459. )
  460. ">
  461. 返回课程
  462. </button>
  463. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  464. {{ steps == 4 ? "返回课程" : "上一步" }}
  465. </button>
  466. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  467. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  468. {{ steps == 3 ? "确认上传" : "下一步" }}
  469. </button>
  470. </div>
  471. </div>
  472. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR"
  473. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  474. <div class="rb_c_box">
  475. <div class="rb_c_box_left" v-if="steps == 3 && unitJson[unitIndex].easy != 1">
  476. <div class="stepsBottom">
  477. <!-- <div class="navTop">辅助导航</div> -->
  478. <div class="navBottom" v-if="courseState == 2">
  479. <!-- <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  480. <div class="nt_taskBox" style="width: 100%;">
  481. <div class="nt_taskTitle"
  482. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  483. unitIndex + 1 }}</div>
  484. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  485. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  486. <span>{{ unitJson[unitIndex].dyName }}</span>
  487. </el-tooltip>
  488. </div>
  489. </div>
  490. </div> -->
  491. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  492. .taskJson" :key="tIndex" :class="{
  493. dragOverTop: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex > tIndex && dragType == 'task',
  494. dragOverBottom: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex < tIndex && dragType == 'task',
  495. }">
  496. <div @dragstart="dragTaskStart(t, tIndex, 0)" @dragover.prevent="dragTaskOver(tIndex, 0)"
  497. @dragend="dragTaskEnd()" :draggable="isdrag == 'task-'+tIndex" @click="goToTask(tIndex)" class="navTask" :class="{
  498. isNavTask:
  499. isClickColor > 0 && isClickColor == tIndex + 1,
  500. isNavOpen: t.toolOpen
  501. }">
  502. <div @click.stop="taskOpen(tIndex, 0)" class="chapter_upload_open"></div>
  503. <div
  504. @mousedown="isdrag = 'task-'+tIndex" @mouseup="isdrag = ''"
  505. @touchstart="isdrag = 'task-'+tIndex" @touchend="isdrag = ''"
  506. style="left: 8px;"
  507. class="chapter_upload_drag"
  508. ></div>
  509. <div class="nt_taskBox">
  510. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  511. <div class="nt_taskName">
  512. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  513. <span>{{ t.task ? t.task : '未命名任务' }}</span>
  514. </el-tooltip>
  515. </div>
  516. </div>
  517. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  518. 1
  519. ">
  520. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  521. @click.stop="taskMove(1, tIndex)"></div>
  522. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  523. @click.stop="taskMove(2, tIndex)"></div>
  524. </div> -->
  525. </div>
  526. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  527. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  528. @click="jumpGj(tIndex, toolIndex2)">
  529. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  530. <div>工具{{ toolIndex2 + 1 }}:</div>
  531. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  532. </div>
  533. </div>
  534. </div>
  535. </div>
  536. </div>
  537. <div class="navBottom" v-if="courseState == 1">
  538. <div v-for="(stage, stageIndex) in unitJson" :key="stageIndex" class="stageBox" :class="{
  539. dragOverTop: newIndex === stageIndex && typeIndex == 'Unit-'+stageIndex && oldIndex > stageIndex && dragType == 'Unit',
  540. dragOverBottom: newIndex === stageIndex && typeIndex == 'Unit-'+stageIndex && oldIndex < stageIndex && dragType == 'Unit',
  541. }">
  542. <div @dragstart="dragUnitStart(stage, stageIndex)" @dragover.prevent="dragUnitOver(stageIndex)"
  543. @dragend="dragUnitEnd()" :draggable="isdrag == 'unit-'+stageIndex" @click="unitSet2(stageIndex)" class="navStage" :class="{
  544. isNavStage: stageIndex == unitIndex,
  545. isNavStageOpen: stage.toolOpen
  546. }">
  547. <div
  548. @mousedown="isdrag = 'unit-'+stageIndex" @mouseup="isdrag = ''"
  549. @touchstart="isdrag = 'unit-'+stageIndex" @touchend="isdrag = ''"
  550. style="left: 8px;"
  551. class="chapter_upload_drag"
  552. ></div>
  553. <div class="nt_taskBox">
  554. <div class="nt_taskTitle">第{{ stageIndex + 1 }}阶段:</div>
  555. <div class="nt_taskName">
  556. <el-tooltip effect="light" :content="stage.dyName ? stage.dyName : '未命名阶段'" placement="top">
  557. <span>{{ stage.dyName ? stage.dyName : '未命名阶段' }}</span>
  558. </el-tooltip>
  559. </div>
  560. </div>
  561. <div @click.stop="unitOpen(stageIndex)" class="chapter_unit_open"></div>
  562. </div>
  563. <div v-for="(t, tIndex) in unitJson[stageIndex].chapterInfo[0]
  564. .taskJson" :key="`${stageIndex}-${tIndex}`" :class="{
  565. dragOverTop: newIndex === tIndex && typeIndex == 'task-'+tIndex && ((oldIndex > tIndex && stageIndex == checkUnitIndex) || (oldIndex == tIndex && stageIndex == checkUnitIndex && checkUnitIndex != oldUnitIndex)) && dragType == 'task',
  566. dragOverBottom: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex < tIndex && stageIndex == checkUnitIndex && dragType == 'task',
  567. }" :style="{display:stage.toolOpen ? 'block' : 'none'}">
  568. <div @dragstart="dragTaskStart(t, tIndex, stageIndex)" @dragover.prevent="dragTaskOver(tIndex, stageIndex)"
  569. @dragend="dragTaskEnd()" :draggable="isdrag == 'task-'+stageIndex+'-'+tIndex" @click="goToTask2(tIndex, stageIndex)" class="navTask" style="padding-left: 12px;" :class="{
  570. isNavTask:
  571. isClickColor > 0 && isClickColor == tIndex + 1 && stageIndex == unitIndex,
  572. isNavOpen: t.toolOpen
  573. }">
  574. <div @click.stop="taskOpen(tIndex, stageIndex)" class="chapter_upload_open"></div>
  575. <div
  576. @mousedown="isdrag = 'task-'+stageIndex+'-'+tIndex" @mouseup="isdrag = ''"
  577. @touchstart="isdrag = 'task-'+stageIndex+'-'+tIndex" @touchend="isdrag = ''"
  578. style="left: 20px;"
  579. class="chapter_upload_drag"
  580. ></div>
  581. <div class="nt_taskBox" style="width: calc(100% - 52px);">
  582. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  583. <div class="nt_taskName">
  584. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  585. <span>{{ t.task ? t.task : '未命名任务' }}</span>
  586. </el-tooltip>
  587. </div>
  588. </div>
  589. </div>
  590. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  591. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  592. @click="jumpGj2(tIndex, toolIndex2, stageIndex)">
  593. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}${stageIndex}` }">
  594. <div>工具{{ toolIndex2 + 1 }}:</div>
  595. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  596. </div>
  597. </div>
  598. </div>
  599. </div>
  600. </div>
  601. </div>
  602. </div>
  603. </div>
  604. <div class="rb_c_box_right">
  605. <!-- <div class="rb_c_box_btn">
  606. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  607. </div> -->
  608. <div class="basic_box" ref="unitBox">
  609. <div style="
  610. display: flex;
  611. flex-direction: row;
  612. align-items: center;
  613. position: sticky;
  614. top: 0;
  615. z-index: 99;
  616. width: 100%;
  617. padding: 0 20px 0 20px;
  618. box-sizing: border-box;
  619. background: #fff;
  620. border-radius: 8px;
  621. ">
  622. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  623. <div class="cru_selectBox"
  624. :style="{ maxWidth: isPasteTask ? 'calc(100% - 335px)' : 'calc(100% - 190px)' }" v-if="courseState == 1">
  625. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  626. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  627. <!-- item.dyName ? item.dyName : -->
  628. <span v-if="unitJson[unitJson.length - 1].easy == 4 ||
  629. unitJson[unitJson.length - 1].easy == 6
  630. ">{{
  631. item.dyName ? item.dyName : "第" + (index + 1) + "阶段"
  632. }}</span>
  633. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  634. </div>
  635. <div class="cru_line" :style="{
  636. left: offsetLetfPx + 'px',
  637. }"></div>
  638. </div>
  639. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  640. !(unitJson[unitJson.length - 1].easy == 6) && courseState == 1
  641. ">
  642. <img src="../../assets/icon/new/addStage.png" alt />
  643. </div>
  644. <button class="c_pub_button_add pub_btn_add_img" @click="updateCourseState(1)" v-if="courseState == 2" style="margin: 15px 0">新建阶段</button>
  645. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  646. <button class="c_pub_button_add" @click="openStageBox" v-show="false"
  647. style="margin: 0 0 0 auto;">阶段顺序</button>
  648. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask()" v-if="steps == 3 && isPasteTask"
  649. style="margin: 0 0 0 auto;">智能粘贴</button>
  650. <button class="c_pub_button_confirm pub_btn_template_img" @click="openTemplate"
  651. :style="{margin: isPasteTask ? '0 0 0 20px' : '0 0 0 auto'}" style="padding:0 12px">选择课程模板</button>
  652. </div>
  653. <div style="margin: 0 0 10px 0; padding: 0;" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  654. :key="index">
  655. <div class="chapter_box" v-if="courseState == 1">
  656. <div class="chapter_contentbox">
  657. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  658. <div class="cc_input">
  659. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  660. v-model="unitJson[unitIndex].dyName" />
  661. </div>
  662. <div class="remove" v-if="(unitJson.length > 1 || courseState != 2) &&
  663. !(unitJson[unitJson.length - 1].easy == 4) &&
  664. !(unitJson[unitJson.length - 1].easy == 6)
  665. " @click="deleteUnit(unitIndex)"></div>
  666. </div>
  667. </div>
  668. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  669. margin: 50px 0px 10px;
  670. font-size: 1.5em;
  671. font-weight: 700;
  672. color: #0f7eff;
  673. ">
  674. 添加任务
  675. </div> -->
  676. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  677. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  678. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  679. <div style="background: #fff;border-radius: 5px;">
  680. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  681. <!-- padding: 20px; -->
  682. <div v-if="unitJson[unitIndex].easy != 1">
  683. <div :style="{
  684. marginBottom:
  685. unitJson[unitIndex].easy == 3 ||
  686. (unitJson[unitIndex].easy == 5 &&
  687. itemTask.taskType == 1)
  688. ? '75px'
  689. : '0',
  690. }">
  691. <div style="
  692. display: flex;
  693. margin: 0px 0 20px;
  694. flex-direction: row;
  695. justify-content: flex-start;
  696. align-items: center;
  697. ">
  698. <div class="lineTitle">任务概述</div>
  699. </div>
  700. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  701. flex-direction: row;
  702. justify-content: flex-start;
  703. align-items: center;
  704. margin:0;
  705. ">
  706. <!-- <div class="cc_title">
  707. 任务{{ itemTaskIndex + 1 }}
  708. </div> -->
  709. <div class="cc_input">
  710. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  711. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  712. itemTaskIndex
  713. ].task
  714. " />
  715. </div>
  716. <div class="remove" v-if="item.taskJson.length > 1 &&
  717. (!unitJson[unitIndex].easy ||
  718. unitJson[unitIndex].easy == 6)
  719. " @click="deleteTask(itemTaskIndex)"></div>
  720. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
  721. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  722. src="../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  723. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  724. @click="fold2(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开任务描述
  725. </div> -->
  726. </div>
  727. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  728. display: flex;
  729. margin: 20px 0;
  730. flex-direction: row;
  731. justify-content: flex-start;
  732. align-items: center;
  733. ">
  734. <div class="lineTitle">任务描述</div>
  735. </div> && !itemTask.isFold2-->
  736. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 "
  737. style="margin-top: 20px;">
  738. <editor-bar class="addEditor" style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  739. itemTaskIndex
  740. ].taskDetail
  741. " @change="change"></editor-bar>
  742. <!-- <textarea
  743. rows="6"
  744. class="binfo_input"
  745. placeholder="请输入任务描述"
  746. cols
  747. style="width: 70.5% !important; height: 120px"
  748. v-model="
  749. unitJson[unitIndex].chapterInfo[0].taskJson[
  750. itemTaskIndex
  751. ].taskDetail
  752. "
  753. ></textarea>-->
  754. </div>
  755. </div>
  756. </div>
  757. <div style="position:relative" v-if="!unitJson[unitIndex].easy ||
  758. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  759. ">
  760. <div style="
  761. display: flex;
  762. flex-direction: row;
  763. justify-content: space-between;
  764. align-items: center;
  765. " :style="{ margin: !itemTask.isFoldchapter ? '20px 0 10px' : '20px 0 0' }">
  766. <div style="margin-bottom:10px" class="lineTitle clineTitle">学习内容</div>
  767. <!-- <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  768. @click="foldC(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  769. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  770. src="../../assets/icon/new/icon-slide.png" />展开学习内容</div> -->
  771. <!-- <div class="line"></div> -->
  772. </div>
  773. <!-- v-if="!itemTask.isFoldchapter" -->
  774. <div>
  775. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  776. itemTask.chapterData.length == 0
  777. "><img src="../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  778. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  779. <div @dragstart="dragStart(item1, index1, itemTaskIndex)" @dragover.prevent="dragOver(index1, itemTaskIndex)"
  780. @dragend="dragEnd()" :draggable="isdrag == 'chapter-'+itemTaskIndex+'-'+index1" class="chapter_upload"
  781. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  782. getChapterData(
  783. $event,
  784. unitIndex,
  785. index,
  786. index1,
  787. item1.type
  788. )
  789. " :class="{
  790. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex > index1 && dragType == 'drag',
  791. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex < index1 && dragType == 'drag',
  792. }">
  793. <div @mousedown="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @mouseup="isdrag = ''"
  794. @touchstart="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  795. <div class="chapter_upload_o" style="
  796. position: relative;
  797. display: flex;
  798. align-items: center;
  799. ">
  800. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  801. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  802. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  803. </div>
  804. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  805. </div>
  806. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  807. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  808. </div>
  809. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  810. </div>
  811. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  812. </div>
  813. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  814. </div>
  815. </div>
  816. <div class="chapter_upload_n">
  817. <input readonly="true" v-if="item1.type == 2 ||
  818. item1.type == 3 ||
  819. item1.type == 12 ||
  820. item1.type == 13 ||
  821. item1.type == 7
  822. " :placeholder="item1.name" @click="
  823. updataVideoT(
  824. $event,
  825. unitIndex,
  826. itemTaskIndex,
  827. index1
  828. )
  829. " style="
  830. border: none;
  831. outline: none;
  832. width: 80%;
  833. minwidth: 215px;
  834. z-index: 99;
  835. font-size: 14px;
  836. white-space: nowrap;
  837. overflow: hidden;
  838. text-overflow: ellipsis;
  839. " />
  840. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  841. border: none;
  842. outline: none;
  843. width: 80%;
  844. white-space: nowrap;
  845. overflow: hidden;
  846. text-overflow: ellipsis;
  847. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  848. <input :placeholder="item1.title ? item1.title : '链接'
  849. " v-if="item1.type == 8" style="
  850. border: none;
  851. outline: none;
  852. width: 80%;
  853. white-space: nowrap;
  854. overflow: hidden;
  855. text-overflow: ellipsis;
  856. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  857. <input :placeholder="item1.title ? item1.title : '链接'
  858. " v-if="item1.type == 14" style="
  859. border: none;
  860. outline: none;
  861. width: 80%;
  862. white-space: nowrap;
  863. overflow: hidden;
  864. text-overflow: ellipsis;
  865. " readonly="true" @click="openUpdateSource(itemTaskIndex, index1)" />
  866. </div>
  867. <div class="chapter_upload_ic">
  868. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  869. </div>
  870. <div class="chapter_upload_ud" style="z-index: 99">
  871. <div class="chapter_upload_up" @click="
  872. upCd(
  873. $event,
  874. unitIndex,
  875. index,
  876. itemTaskIndex,
  877. index1
  878. )
  879. "></div>
  880. <div class="chapter_upload_down" @click="
  881. downCd(
  882. $event,
  883. unitIndex,
  884. index,
  885. itemTaskIndex,
  886. index1
  887. )
  888. "></div>
  889. </div>
  890. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  891. item1.type == 3 ||
  892. item1.type == 12 ||
  893. item1.type == 13 ||
  894. item1.type == 7
  895. " @click.stop="
  896. updataVideoT(
  897. $event,
  898. unitIndex,
  899. itemTaskIndex,
  900. index1
  901. )
  902. ">
  903. <div></div>
  904. </div>
  905. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  906. @click="selectAttText(itemTaskIndex, index1)">
  907. <div></div>
  908. </div>
  909. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  910. @click="selectLine(itemTaskIndex, index1)">
  911. <div></div>
  912. </div>
  913. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  914. @click="openUpdateSource(itemTaskIndex, index1)">
  915. <div></div>
  916. </div>
  917. <div class="chapter_upload_ic_r" @click.stop="
  918. deleteChapterData(
  919. $event,
  920. unitIndex,
  921. index,
  922. index1,
  923. itemTaskIndex
  924. )
  925. ">
  926. <div></div>
  927. </div>
  928. </div>
  929. </div>
  930. </div>
  931. </div>
  932. </div>
  933. <!-- v-if="!itemTask.isFoldchapter" -->
  934. <div class="add_info_box" style="margin: 10px 0 0">
  935. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  936. 文件
  937. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  938. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  939. " />
  940. </button>
  941. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(itemTaskIndex)">
  942. 图文
  943. </button>
  944. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(itemTaskIndex)">
  945. 链接
  946. </button>
  947. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(itemTaskIndex)">
  948. 代码
  949. </button>
  950. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(itemTaskIndex)">
  951. 资源
  952. </button>
  953. </div>
  954. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  955. itemTaskIndex
  956. ].proVisible
  957. " class="mask">
  958. <div class="progressBox">
  959. <!-- <div id="closePro" class="closeCss">
  960. <img src="../../../assets/icon/close.png" alt />
  961. </div> -->
  962. <div class="lbox">
  963. <img src="../../assets/loading.gif" />上传中,请稍后
  964. </div>
  965. <div style="margin-bottom: 10px">
  966. <span>{{
  967. unitJson[unitIndex].chapterInfo[0].taskJson[
  968. itemTaskIndex
  969. ].isFinishSize
  970. }}M</span>
  971. /
  972. <span>{{
  973. unitJson[unitIndex].chapterInfo[0].taskJson[
  974. itemTaskIndex
  975. ].isAllSize
  976. }}M</span>
  977. </div>
  978. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  979. itemTaskIndex
  980. ].progress
  981. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  982. itemTaskIndex
  983. ].progress
  984. : 0
  985. " style="width: 80%"></el-progress>
  986. </div>
  987. </div>
  988. </div>
  989. <div v-if="unitJson[unitIndex].easy == 1 ||
  990. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  991. ">
  992. <div>
  993. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  994. itemTask.chapterData.length == 0
  995. "><img src="../../assets/icon/new/c_none.png" alt /></div>
  996. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  997. <div @dragstart="dragStart(item1, index1, index)" @dragover.prevent="dragOver(index1, itemTaskIndex)"
  998. @dragend="dragEnd()" :draggable="isdrag == 'chapter-'+itemTaskIndex+'-'+index1" class="chapter_upload"
  999. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  1000. getChapterData(
  1001. $event,
  1002. unitIndex,
  1003. index,
  1004. index1,
  1005. item1.type
  1006. )
  1007. " :class="{
  1008. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex > index1,
  1009. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex < index1,
  1010. }">
  1011. <div @mousedown="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @mouseup="isdrag = ''"
  1012. @touchstart="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  1013. <div class="chapter_upload_t" style="width: 100%"></div>
  1014. <div class="chapter_upload_o" style="
  1015. position: relative;
  1016. display: flex;
  1017. align-items: center;
  1018. ">
  1019. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1020. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  1021. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  1022. </div>
  1023. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  1024. </div>
  1025. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1026. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  1027. </div>
  1028. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  1029. </div>
  1030. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  1031. </div>
  1032. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  1033. </div>
  1034. </div>
  1035. <div class="chapter_upload_n">
  1036. <span style="
  1037. font-size: 14px;
  1038. color: rgb(109, 109, 109);
  1039. height: 14px;
  1040. line-height: 14px;
  1041. " v-if="item1.type == 2 ||
  1042. item1.type == 3 ||
  1043. item1.type == 7
  1044. ">{{ item1.text }}-</span>
  1045. <input readonly="true" v-if="item1.type == 2 ||
  1046. item1.type == 3 ||
  1047. item1.type == 7
  1048. " :placeholder="item1.name" @click="
  1049. updataVideoT(
  1050. $event,
  1051. unitIndex,
  1052. itemTaskIndex,
  1053. index1
  1054. )
  1055. " style="
  1056. border: none;
  1057. outline: none;
  1058. width: 80%;
  1059. minwidth: 215px;
  1060. z-index: 99;
  1061. font-size: 14px;
  1062. white-space: nowrap;
  1063. overflow: hidden;
  1064. text-overflow: ellipsis;
  1065. " />
  1066. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1067. border: none;
  1068. outline: none;
  1069. width: 80%;
  1070. white-space: nowrap;
  1071. overflow: hidden;
  1072. text-overflow: ellipsis;
  1073. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  1074. <input :placeholder="item1.title ? item1.title : '链接'
  1075. " v-if="item1.type == 8 || item1.type == 14" style="
  1076. border: none;
  1077. outline: none;
  1078. width: 80%;
  1079. white-space: nowrap;
  1080. overflow: hidden;
  1081. text-overflow: ellipsis;
  1082. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  1083. </div>
  1084. <div class="chapter_upload_ic">
  1085. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  1086. </div>
  1087. <div class="chapter_upload_ud" style="z-index: 99">
  1088. <div class="chapter_upload_up" @click="
  1089. upCd(
  1090. $event,
  1091. unitIndex,
  1092. index,
  1093. itemTaskIndex,
  1094. index1
  1095. )
  1096. "></div>
  1097. <div class="chapter_upload_down" @click="
  1098. downCd(
  1099. $event,
  1100. unitIndex,
  1101. index,
  1102. itemTaskIndex,
  1103. index1
  1104. )
  1105. "></div>
  1106. </div>
  1107. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  1108. item1.type == 3 ||
  1109. item1.type == 12 ||
  1110. item1.type == 13 ||
  1111. item1.type == 7
  1112. " @click.stop="
  1113. updataVideoT(
  1114. $event,
  1115. unitIndex,
  1116. itemTaskIndex,
  1117. index1
  1118. )
  1119. ">
  1120. <div></div>
  1121. </div>
  1122. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  1123. @click="selectAttText(itemTaskIndex, index1)">
  1124. <div></div>
  1125. </div>
  1126. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1127. @click="selectLine(itemTaskIndex, index1)">
  1128. <div></div>
  1129. </div>
  1130. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  1131. @click="openUpdateSource(itemTaskIndex, index1)">
  1132. <div></div>
  1133. </div>
  1134. <div class="chapter_upload_ic_r" @click.stop="
  1135. deleteChapterData(
  1136. $event,
  1137. unitIndex,
  1138. index,
  1139. index1,
  1140. itemTaskIndex
  1141. )
  1142. ">
  1143. <div></div>
  1144. </div>
  1145. </div>
  1146. </div>
  1147. </div>
  1148. </div>
  1149. </div>
  1150. <div class="add_info_box" style="margin: 10px 0 0">
  1151. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1152. <span style="color: red">*</span>
  1153. 教学设计
  1154. <input type="file"
  1155. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1156. style="display: none" v-if="inputShow" @change="
  1157. beforeUpload3(
  1158. $event,
  1159. unitIndex,
  1160. 3,
  1161. itemTaskIndex,
  1162. '教学设计'
  1163. )
  1164. " />
  1165. </button>
  1166. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1167. <span style="color: red">*</span>
  1168. 教学课件
  1169. <input type="file"
  1170. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1171. style="display: none" v-if="inputShow" @change="
  1172. beforeUpload3(
  1173. $event,
  1174. unitIndex,
  1175. 3,
  1176. itemTaskIndex,
  1177. '教学课件'
  1178. )
  1179. " />
  1180. </button>
  1181. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1182. 教学视频
  1183. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo"
  1184. style="display: none" v-if="inputShow" @change="
  1185. beforeUpload3(
  1186. $event,
  1187. unitIndex,
  1188. 2,
  1189. itemTaskIndex,
  1190. '教学视频'
  1191. )
  1192. " />
  1193. </button>
  1194. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1195. 教学音频
  1196. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  1197. beforeUpload3(
  1198. $event,
  1199. unitIndex,
  1200. 2,
  1201. itemTaskIndex,
  1202. '教学音频'
  1203. )
  1204. " />
  1205. </button>
  1206. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1207. 学习单
  1208. <input type="file"
  1209. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1210. style="display: none" v-if="inputShow" @change="
  1211. beforeUpload3(
  1212. $event,
  1213. unitIndex,
  1214. 3,
  1215. itemTaskIndex,
  1216. '学习单'
  1217. )
  1218. " />
  1219. </button>
  1220. </div>
  1221. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1222. itemTaskIndex
  1223. ].proVisible
  1224. " class="mask">
  1225. <div class="progressBox">
  1226. <!-- <div id="closePro" class="closeCss">
  1227. <img src="../../../assets/icon/close.png" alt />
  1228. </div> -->
  1229. <div class="lbox">
  1230. <img src="../../assets/loading.gif" />上传中,请稍后
  1231. </div>
  1232. <div style="margin-bottom: 10px">
  1233. <span>{{
  1234. unitJson[unitIndex].chapterInfo[0].taskJson[
  1235. itemTaskIndex
  1236. ].isFinishSize
  1237. }}M</span>
  1238. /
  1239. <span>{{
  1240. unitJson[unitIndex].chapterInfo[0].taskJson[
  1241. itemTaskIndex
  1242. ].isAllSize
  1243. }}M</span>
  1244. </div>
  1245. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1246. itemTaskIndex
  1247. ].progress
  1248. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1249. itemTaskIndex
  1250. ].progress
  1251. : 0
  1252. " style="width: 80%"></el-progress>
  1253. </div>
  1254. </div>
  1255. </div>
  1256. </div>
  1257. <!-- padding: 20px; -->
  1258. <div style="background: #fff;border-radius: 5px;margin-top: 15px;">
  1259. <div v-if="unitJson[unitIndex].easy != 3 &&
  1260. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  1261. " style="
  1262. flex-direction: row;
  1263. justify-content: flex-start;
  1264. align-items: center;
  1265. ">
  1266. <div style="
  1267. display: flex;
  1268. flex-direction: row;
  1269. align-items: center;
  1270. margin: 5px 0 20px;
  1271. ">
  1272. <div class="lineTitle clineTitle">
  1273. {{
  1274. !unitJson[unitIndex].easy ||
  1275. unitJson[unitIndex].easy == 6 ||
  1276. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1277. ? "练习内容"
  1278. : "评价内容"
  1279. }}
  1280. </div>
  1281. <!-- <div class="line" style="width: 90%"></div> -->
  1282. </div>
  1283. </div>
  1284. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1285. " class="toolChoose">
  1286. <div class="tools">
  1287. <div class="leftTools" style="
  1288. width: 100%;
  1289. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1290. <div style="
  1291. display: flex;
  1292. flex-direction: row;
  1293. align-items: baseline;
  1294. flex-wrap: nowrap;
  1295. justify-content: flex-start;
  1296. position: relative;
  1297. ">
  1298. <div style="margin-right: 20px; font-weight: bold"
  1299. :id="'gj' + itemTaskIndex + '' + toolIndex">
  1300. 工具 {{ toolIndex + 1 }} :
  1301. </div>
  1302. <div class="chooseWho">
  1303. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1304. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = false), $forceUpdate()">
  1305. 互动类
  1306. </div>
  1307. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1308. " @click="(itemTool.toolType = 1), (itemTool.isFold3 = false), $forceUpdate()">
  1309. 思维类
  1310. </div>
  1311. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  1312. " @click="(itemTool.toolType = 6), (itemTool.isFold3 = false), $forceUpdate()">
  1313. 协作类
  1314. </div>
  1315. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1316. " @click="(itemTool.toolType = 2), (itemTool.isFold3 = false), $forceUpdate()">
  1317. 测评类
  1318. </div>
  1319. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  1320. " @click="(itemTool.toolType = 7), (itemTool.isFold3 = false), $forceUpdate()">
  1321. 评价类
  1322. </div>
  1323. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1324. " @click="(itemTool.toolType = 3), (itemTool.isFold3 = false), $forceUpdate()">
  1325. 编程类
  1326. </div>
  1327. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1328. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = false), $forceUpdate()">
  1329. 学科类
  1330. </div>
  1331. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1332. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1333. 其他
  1334. </div> -->
  1335. </div>
  1336. <div class="chapter_upload_ud2" style="z-index: 9;margin:0 0 0 auto" :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px auto' : '0 0 0 auto' }" v-if="itemTask.toolChoose.length > 1">
  1337. <div class="chapter_upload_up2" @click.stop="
  1338. upTool(
  1339. $event,
  1340. unitIndex,
  1341. itemTaskIndex,
  1342. toolIndex
  1343. )
  1344. ">上移</div>
  1345. <div class="chapter_upload_down2" @click.stop="
  1346. downTool(
  1347. $event,
  1348. unitIndex,
  1349. itemTaskIndex,
  1350. toolIndex
  1351. )
  1352. ">下移</div>
  1353. </div>
  1354. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  1355. @click="fold3(itemTaskIndex, toolIndex)"
  1356. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1357. src="../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  1358. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  1359. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1360. src="../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  1361. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1362. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0;top:-5px;"></div>
  1363. </div>
  1364. <!-- v-show="!itemTool.isFold3" -->
  1365. <div style="min-height: 163px">
  1366. <div class="toolSort" v-if="itemTool.toolType == 0">
  1367. <!-- <div class="tool">
  1368. <div
  1369. class="whiteBIcon"
  1370. @click="addTools(8, itemTaskIndex, toolIndex)"
  1371. >
  1372. <img src="../../assets/icon/secondToolList/library.png" alt />
  1373. <div style="margin: 5px 0">素材库</div>
  1374. </div>
  1375. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1376. <img
  1377. src="../../assets/icon/checkNo.png"
  1378. alt
  1379. v-if="itemTool.tool.indexOf(8) == -1"
  1380. />
  1381. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1382. alt /><span>已选择</span></div>
  1383. </div>
  1384. </div>-->
  1385. <!-- <div class="tool">
  1386. <div
  1387. class="whiteBIcon"
  1388. @click="addTools(17, itemTaskIndex, toolIndex)"
  1389. >
  1390. <img
  1391. src="../../assets/icon/secondToolList/library.png"
  1392. alt
  1393. />
  1394. <div style="margin: 5px 0">学习资料</div>
  1395. </div>
  1396. <div
  1397. class="check"
  1398. @click="addTools(17, itemTaskIndex, toolIndex)"
  1399. >
  1400. <img
  1401. src="../../assets/icon/checkNo.png"
  1402. alt
  1403. v-if="itemTool.tool.indexOf(17) == -1"
  1404. />
  1405. <img
  1406. src="../../assets/icon/checkedIs.png"
  1407. alt
  1408. v-else
  1409. />
  1410. </div>10
  1411. </div> -->
  1412. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(10) != -1 }"
  1413. @click="addTools(10, itemTaskIndex, toolIndex)">
  1414. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 10, toolIndex)">
  1415. <img src="../../assets/icon/thirdToolList/time.png" alt />
  1416. <div style="margin: 5px 0">倒计时</div>
  1417. </div>
  1418. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1419. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1"><img
  1420. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1421. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1422. <img src="../../assets/icon/checkNo.png" alt
  1423. v-if="itemTool.tool.indexOf(10) == -1" />
  1424. <div class="checkDiv" v-else>
  1425. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1426. </div>
  1427. </div> -->
  1428. </div>
  1429. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(65) != -1 }"
  1430. @click="addTools(65, itemTaskIndex, toolIndex)">
  1431. <div class="whiteBIcon" @click.stop="addTools(65, itemTaskIndex, toolIndex)">
  1432. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  1433. <div style="margin: 5px 0">挑人</div>
  1434. </div>
  1435. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1436. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1"><img
  1437. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1438. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  1439. <img src="../../assets/icon/checkNo.png" alt
  1440. v-if="itemTool.tool.indexOf(65) == -1" />
  1441. <div class="checkDiv" v-else>
  1442. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1443. </div>
  1444. </div> -->
  1445. </div>
  1446. <!-- <div class="tool">
  1447. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1448. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1449. <div style="margin: 5px 0">学生分组</div>
  1450. </div>
  1451. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1452. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1453. <div class="checkDiv" v-else>
  1454. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1455. </div>
  1456. </div>
  1457. </div> -->
  1458. <!-- <div class="tool">
  1459. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1460. <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
  1461. <div style="margin: 5px 0">交互视频</div>
  1462. </div>
  1463. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1464. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  1465. <div class="checkDiv" v-else>
  1466. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1467. </div>
  1468. </div>
  1469. </div> -->
  1470. </div>
  1471. <div class="toolSort" v-if="itemTool.toolType == 1">
  1472. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(7) != -1 }"
  1473. @click="addTools(7, itemTaskIndex, toolIndex)">
  1474. <div class="whiteBIcon" @click.stop="addTools(7, itemTaskIndex, toolIndex)">
  1475. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  1476. <div style="margin: 5px 0">思维网格</div>
  1477. </div>
  1478. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1479. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1"><img
  1480. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1481. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1482. <img src="../../assets/icon/checkNo.png" alt
  1483. v-if="itemTool.tool.indexOf(7) == -1" />
  1484. <div class="checkDiv" v-else>
  1485. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1486. </div>
  1487. </div> -->
  1488. </div>
  1489. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(1) != -1 }"
  1490. @click="addTools(1, itemTaskIndex, toolIndex)">
  1491. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 1, toolIndex)">
  1492. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  1493. <div style="margin: 5px 0">电子白板</div>
  1494. </div>
  1495. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1496. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1"><img
  1497. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1498. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1499. <img src="../../assets/icon/checkNo.png" alt
  1500. v-if="itemTool.tool.indexOf(1) == -1" />
  1501. <div class="checkDiv" v-else>
  1502. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1503. </div>
  1504. </div> -->
  1505. </div>
  1506. <!-- <div class="tool">
  1507. <div
  1508. class="whiteBIcon"
  1509. @click="addTools(2, itemTaskIndex, toolIndex)"
  1510. >
  1511. <img
  1512. src="../../assets/icon/secondToolList/note.png"
  1513. alt
  1514. />
  1515. <div style="margin: 5px 0">便签</div>
  1516. </div>
  1517. <div
  1518. class="check"
  1519. @click="addTools(2, itemTaskIndex, toolIndex)"
  1520. >
  1521. <img
  1522. src="../../assets/icon/checkNo.png"
  1523. alt
  1524. v-if="itemTool.tool.indexOf(2) == -1"
  1525. />
  1526. <div class="checkDiv" v-else>
  1527. <img
  1528. src="../../assets/icon/checkedIs.png"
  1529. alt
  1530. /><span>已选择</span>
  1531. </div>
  1532. </div>
  1533. </div> -->
  1534. <!-- <div class="tool">
  1535. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1536. <img src="../../assets/icon/secondToolList/doc.png" alt />
  1537. <div style="margin: 5px 0">协同文档</div>
  1538. </div>
  1539. <div
  1540. class="check"
  1541. @click="addTools(6, itemTaskIndex, toolIndex)"
  1542. >
  1543. <img
  1544. src="../../assets/icon/checkNo.png"
  1545. alt
  1546. v-if="itemTool.tool.indexOf(6) == -1"
  1547. />
  1548. <div class="checkDiv" v-else>
  1549. <img
  1550. src="../../assets/icon/checkedIs.png"
  1551. alt
  1552. /><span>已选择</span>
  1553. </div>
  1554. </div>
  1555. </div> -->
  1556. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(52) != -1 }"
  1557. @click="addTools(52, itemTaskIndex, toolIndex)">
  1558. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 52, toolIndex)">
  1559. <img src="../../assets/icon/fourthToolList/text.png" alt />
  1560. <div style="margin: 5px 0">文档</div>
  1561. </div>
  1562. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1563. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1"><img
  1564. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1565. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1566. <img src="../../assets/icon/checkNo.png" alt
  1567. v-if="itemTool.tool.indexOf(52) == -1" />
  1568. <div class="checkDiv" v-else>
  1569. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1570. </div>
  1571. </div> -->
  1572. </div>
  1573. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(3) != -1 }"
  1574. @click="addTools(3, itemTaskIndex, toolIndex)">
  1575. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 3, toolIndex)">
  1576. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  1577. <div style="margin: 5px 0">思维导图</div>
  1578. </div>
  1579. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1580. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1"><img
  1581. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1582. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1583. <img src="../../assets/icon/checkNo.png" alt
  1584. v-if="itemTool.tool.indexOf(3) == -1" />
  1585. <div class="checkDiv" v-else>
  1586. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1587. </div>
  1588. </div> -->
  1589. </div>
  1590. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(48) != -1 }"
  1591. @click="addTools(48, itemTaskIndex, toolIndex)">
  1592. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 48, toolIndex)">
  1593. <img src="../../assets/icon/fourthToolList/table.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(48) != -1"><img
  1598. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1599. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1600. <img src="../../assets/icon/checkNo.png" alt
  1601. v-if="itemTool.tool.indexOf(48) == -1" />
  1602. <div class="checkDiv" v-else>
  1603. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1604. </div>
  1605. </div> -->
  1606. </div>
  1607. </div>
  1608. <div class="toolSort" v-if="itemTool.toolType == 6">
  1609. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(49) != -1 }"
  1610. @click="addTools(49, itemTaskIndex, toolIndex)">
  1611. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 49, toolIndex)">
  1612. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1613. <div style="margin: 5px 0">学生分组</div>
  1614. </div>
  1615. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1616. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1"><img
  1617. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1618. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1619. <img src="../../assets/icon/checkNo.png" alt
  1620. v-if="itemTool.tool.indexOf(49) == -1" />
  1621. <div class="checkDiv" v-else>
  1622. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1623. </div>
  1624. </div> -->
  1625. </div>
  1626. </div>
  1627. <div class="toolSort" v-if="itemTool.toolType == 2">
  1628. <!-- <div class="tool">
  1629. <div
  1630. class="whiteBIcon"
  1631. @click="addTools(5, itemTaskIndex, toolIndex)"
  1632. >
  1633. <img
  1634. src="../../assets/icon/thirdToolList/score.png"
  1635. alt
  1636. />
  1637. <div style="margin: 5px 0">量规评分</div>
  1638. </div>
  1639. <div
  1640. class="check"
  1641. @click="addTools(5, itemTaskIndex, toolIndex)"
  1642. >
  1643. <img
  1644. src="../../assets/icon/checkNo.png"
  1645. alt
  1646. v-if="itemTool.tool.indexOf(5) == -1"
  1647. />
  1648. <img
  1649. src="../../assets/icon/checkedIs.png"
  1650. alt
  1651. v-else
  1652. />
  1653. </div>
  1654. </div>-->
  1655. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(4) != -1 }"
  1656. @click="addTools(4, itemTaskIndex, toolIndex)">
  1657. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 4, toolIndex)">
  1658. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  1659. <div style="margin: 5px 0">问卷调查</div>
  1660. </div>
  1661. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1662. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1"><img
  1663. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1664. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1665. <img src="../../assets/icon/checkNo.png" alt
  1666. v-if="itemTool.tool.indexOf(4) == -1" />
  1667. <div class="checkDiv" v-else>
  1668. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1669. </div>
  1670. </div> -->
  1671. </div>
  1672. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(45) != -1 }"
  1673. @click="addTools(45, itemTaskIndex, toolIndex)">
  1674. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1675. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  1676. <div style="margin: 5px 0">选择题</div>
  1677. </div>
  1678. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1679. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1"><img
  1680. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1681. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1682. <img src="../../assets/icon/checkNo.png" alt
  1683. v-if="itemTool.tool.indexOf(45) == -1" />
  1684. <div class="checkDiv" v-else>
  1685. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1686. </div>
  1687. </div> -->
  1688. </div>
  1689. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(15) != -1 }"
  1690. @click="addTools(15, itemTaskIndex, toolIndex)">
  1691. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 15, toolIndex)">
  1692. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  1693. <div style="margin: 5px 0">问答</div>
  1694. </div>
  1695. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1696. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1"><img
  1697. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1698. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1699. <img src="../../assets/icon/checkNo.png" alt
  1700. v-if="itemTool.tool.indexOf(15) == -1" />
  1701. <div class="checkDiv" v-else>
  1702. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1703. </div>
  1704. </div> -->
  1705. </div>
  1706. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(16) != -1 }"
  1707. @click="addTools(16, itemTaskIndex, toolIndex)">
  1708. <div class="whiteBIcon" @click.stop="addTools(16, itemTaskIndex, toolIndex)">
  1709. <img src="../../assets/icon/thirdToolList/work.png" alt />
  1710. <div style="margin: 5px 0">作业提交</div>
  1711. </div>
  1712. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1713. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1"><img
  1714. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1715. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1716. <img src="../../assets/icon/checkNo.png" alt
  1717. v-if="itemTool.tool.indexOf(16) == -1" />
  1718. <div class="checkDiv" v-else>
  1719. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1720. </div>
  1721. </div> -->
  1722. </div>
  1723. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(50) != -1 }"
  1724. @click="addTools(50, itemTaskIndex, toolIndex)">
  1725. <div class="whiteBIcon" @click.stop="addTools(50, itemTaskIndex, toolIndex)">
  1726. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1727. <div style="margin: 5px 0">批量上传</div>
  1728. </div>
  1729. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1730. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1"><img
  1731. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1732. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1733. <img src="../../assets/icon/checkNo.png" alt
  1734. v-if="itemTool.tool.indexOf(50) == -1" />
  1735. <div class="checkDiv" v-else>
  1736. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1737. </div>
  1738. </div> -->
  1739. </div>
  1740. <!-- <div class="tool">
  1741. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1742. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1743. <div style="margin: 5px 0">个人评价</div>
  1744. </div>
  1745. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1746. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1747. <div class="checkDiv" v-else>
  1748. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1749. </div>
  1750. </div>
  1751. </div> -->
  1752. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(41) != -1 }"
  1753. @click="addTools(41, itemTaskIndex, toolIndex)">
  1754. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 41, toolIndex)">
  1755. <img src="../../assets/icon/thirdToolList/select.png" alt />
  1756. <div style="margin: 5px 0">选择匹配</div>
  1757. </div>
  1758. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1759. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1"><img
  1760. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1761. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1762. <img src="../../assets/icon/checkNo.png" alt
  1763. v-if="itemTool.tool.indexOf(41) == -1" />
  1764. <div class="checkDiv" v-else>
  1765. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1766. </div>
  1767. </div> -->
  1768. </div>
  1769. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(47) != -1 }"
  1770. @click="addTools(47, itemTaskIndex, toolIndex)">
  1771. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 47, toolIndex)">
  1772. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  1773. <div style="margin: 5px 0">排序</div>
  1774. </div>
  1775. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1776. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1"><img
  1777. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1778. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1779. <img src="../../assets/icon/checkNo.png" alt
  1780. v-if="itemTool.tool.indexOf(47) == -1" />
  1781. <div class="checkDiv" v-else>
  1782. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1783. </div>
  1784. </div> -->
  1785. </div>
  1786. <!-- <div class="tool">
  1787. <div
  1788. class="whiteBIcon"
  1789. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1790. >
  1791. <img
  1792. src="../../assets/icon/thirdToolList/mp3.png"
  1793. alt
  1794. />
  1795. <div style="margin: 5px 0">上传音频</div>
  1796. </div>
  1797. <div
  1798. class="check"
  1799. @click="addTools(42, itemTaskIndex, toolIndex)"
  1800. >
  1801. <img
  1802. src="../../assets/icon/checkNo.png"
  1803. alt
  1804. v-if="itemTool.tool.indexOf(42) == -1"
  1805. />
  1806. <img
  1807. src="../../assets/icon/checkedIs.png"
  1808. alt
  1809. v-else
  1810. />
  1811. </div>
  1812. </div> -->
  1813. </div>
  1814. <div class="toolSort" v-if="itemTool.toolType == 3">
  1815. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(18) != -1 }"
  1816. @click="addTools(18, itemTaskIndex, toolIndex)">
  1817. <div class="whiteBIcon" @click.stop="addTools(18, itemTaskIndex, toolIndex)">
  1818. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1819. <div style="margin: 5px 0">训练平台</div>
  1820. </div>
  1821. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1822. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1"><img
  1823. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1824. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1825. <img src="../../assets/icon/checkNo.png" alt
  1826. v-if="itemTool.tool.indexOf(18) == -1" />
  1827. <div class="checkDiv" v-else>
  1828. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1829. </div>
  1830. </div> -->
  1831. </div>
  1832. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(21) != -1 }"
  1833. @click="addTools(21, itemTaskIndex, toolIndex)">
  1834. <div class="whiteBIcon" @click.stop="addTools(21, itemTaskIndex, toolIndex)">
  1835. <img src="../../assets/icon/fourthToolList/program.png" alt />
  1836. <div style="margin: 5px 0">AIoT Blockly</div>
  1837. </div>
  1838. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1839. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1"><img
  1840. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1841. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1842. <img src="../../assets/icon/checkNo.png" alt
  1843. v-if="itemTool.tool.indexOf(21) == -1" />
  1844. <div class="checkDiv" v-else>
  1845. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1846. </div>
  1847. </div> -->
  1848. </div>
  1849. <!-- <div class="tool">
  1850. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1851. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1852. <div style="margin: 5px 0">AI体验</div>
  1853. </div>
  1854. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1855. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1856. <div class="checkDiv" v-else>
  1857. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1858. </div>
  1859. </div>
  1860. </div> -->
  1861. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(23) != -1 }"
  1862. @click="addTools(23, itemTaskIndex, toolIndex)">
  1863. <div class="whiteBIcon" @click.stop="addTools(23, itemTaskIndex, toolIndex)">
  1864. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1865. <div style="margin: 5px 0">AI Python</div>
  1866. </div>
  1867. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1868. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1"><img
  1869. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1870. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1871. <img src="../../assets/icon/checkNo.png" alt
  1872. v-if="itemTool.tool.indexOf(23) == -1" />
  1873. <div class="checkDiv" v-else>
  1874. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1875. </div>
  1876. </div> -->
  1877. </div>
  1878. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(24) != -1 }"
  1879. @click="addTools(24, itemTaskIndex, toolIndex)">
  1880. <div class="whiteBIcon" @click.stop="addTools(24, itemTaskIndex, toolIndex)">
  1881. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  1882. <div style="margin: 5px 0">AI Blockly</div>
  1883. </div>
  1884. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1885. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1"><img
  1886. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1887. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1888. <img src="../../assets/icon/checkNo.png" alt
  1889. v-if="itemTool.tool.indexOf(24) == -1" />
  1890. <div class="checkDiv" v-else>
  1891. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1892. </div>
  1893. </div> -->
  1894. </div>
  1895. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(32) != -1 }"
  1896. @click="addTools(32, itemTaskIndex, toolIndex)">
  1897. <div class="whiteBIcon" @click.stop="addTools(32, itemTaskIndex, toolIndex)">
  1898. <img src="../../assets/icon/thirdToolList/code.png" alt />
  1899. <div style="margin: 5px 0">源码编辑</div>
  1900. </div>
  1901. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1902. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1"><img
  1903. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1904. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1905. <img src="../../assets/icon/checkNo.png" alt
  1906. v-if="itemTool.tool.indexOf(32) == -1" />
  1907. <div class="checkDiv" v-else>
  1908. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1909. </div>
  1910. </div> -->
  1911. </div>
  1912. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(57) != -1 }"
  1913. @click="addTools(57, itemTaskIndex, toolIndex)">
  1914. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 57, toolIndex)">
  1915. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  1916. <div style="margin: 5px 0">CocoPi</div>
  1917. </div>
  1918. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1919. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1"><img
  1920. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1921. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1922. <img src="../../assets/icon/checkNo.png" alt
  1923. v-if="itemTool.tool.indexOf(57) == -1" />
  1924. <div class="checkDiv" v-else>
  1925. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1926. </div>
  1927. </div> -->
  1928. </div>
  1929. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(63) != -1 }"
  1930. @click="addTools(63, itemTaskIndex, toolIndex)">
  1931. <div class="whiteBIcon" @click.stop="addTools(63, itemTaskIndex, toolIndex)">
  1932. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  1933. <div style="margin: 5px 0">海龟编程</div>
  1934. </div>
  1935. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1936. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1"><img
  1937. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1938. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1939. <img src="../../assets/icon/checkNo.png" alt
  1940. v-if="itemTool.tool.indexOf(63) == -1" />
  1941. <div class="checkDiv" v-else>
  1942. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1943. </div>
  1944. </div> -->
  1945. </div>
  1946. </div>
  1947. <div class="toolSort" v-if="itemTool.toolType == 7">
  1948. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(40) != -1 }"
  1949. @click.stop="addTools(40, itemTaskIndex, toolIndex)">
  1950. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 40, toolIndex)">
  1951. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1952. <div style="margin: 5px 0">个人评价</div>
  1953. </div>
  1954. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1955. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1"><img
  1956. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1957. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1958. <img src="../../assets/icon/checkNo.png" alt
  1959. v-if="itemTool.tool.indexOf(40) == -1" />
  1960. <div class="checkDiv" v-else>
  1961. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1962. </div>
  1963. </div> -->
  1964. </div>
  1965. </div>
  1966. <div class="toolSort" v-if="itemTool.toolType == 5">
  1967. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(28) != -1 }"
  1968. @click="addTools(28, itemTaskIndex, toolIndex)">
  1969. <div class="whiteBIcon" @click.stop="addTools(28, itemTaskIndex, toolIndex)">
  1970. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1971. <div style="margin: 5px 0">翻译</div>
  1972. </div>
  1973. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1974. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1"><img
  1975. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1976. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1977. <img src="../../assets/icon/checkNo.png" alt
  1978. v-if="itemTool.tool.indexOf(28) == -1" />
  1979. <div class="checkDiv" v-else>
  1980. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1981. </div>
  1982. </div> -->
  1983. </div>
  1984. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(31) != -1 }"
  1985. @click="addTools(31, itemTaskIndex, toolIndex)">
  1986. <div class="whiteBIcon" @click.stop="addTools(31, itemTaskIndex, toolIndex)">
  1987. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1988. <div style="margin: 5px 0">数字画板</div>
  1989. </div>
  1990. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1991. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1"><img
  1992. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1993. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1994. <img src="../../assets/icon/checkNo.png" alt
  1995. v-if="itemTool.tool.indexOf(31) == -1" />
  1996. <div class="checkDiv" v-else>
  1997. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1998. </div>
  1999. </div> -->
  2000. </div>
  2001. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(39) != -1 }"
  2002. @click="addTools(39, itemTaskIndex, toolIndex)">
  2003. <div class="whiteBIcon" @click.stop="addTools(39, itemTaskIndex, toolIndex)">
  2004. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  2005. <div style="margin: 5px 0">GeoGebra</div>
  2006. </div>
  2007. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2008. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1"><img
  2009. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2010. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2011. <img src="../../assets/icon/checkNo.png" alt
  2012. v-if="itemTool.tool.indexOf(39) == -1" />
  2013. <div class="checkDiv" v-else>
  2014. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2015. </div>
  2016. </div> -->
  2017. </div>
  2018. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(66) != -1 }"
  2019. @click="addTools(66, itemTaskIndex, toolIndex)">
  2020. <div class="whiteBIcon" @click.stop="addTools(66, itemTaskIndex, toolIndex)">
  2021. <img src="../../assets/icon/secondToolList/formulaEdi.png" alt />
  2022. <div style="margin: 5px 0">公式编辑</div>
  2023. </div>
  2024. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2025. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1"><img
  2026. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2027. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  2028. <img src="../../assets/icon/checkNo.png" alt
  2029. v-if="itemTool.tool.indexOf(66) == -1" />
  2030. <div class="checkDiv" v-else>
  2031. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2032. </div>
  2033. </div> -->
  2034. </div>
  2035. <!-- <div class="tool">
  2036. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  2037. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  2038. <div style="margin: 5px 0">分子结构</div>
  2039. </div>
  2040. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  2041. <img src="../../assets/icon/checkNo.png" alt
  2042. v-if="itemTool.tool.indexOf(67) == -1" />
  2043. <div class="checkDiv" v-else>
  2044. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2045. </div>
  2046. </div>
  2047. </div> -->
  2048. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(68) != -1 }"
  2049. @click="addTools(68, itemTaskIndex, toolIndex)">
  2050. <div class="whiteBIcon" @click.stop="addTools(68, itemTaskIndex, toolIndex)">
  2051. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  2052. <div style="margin: 5px 0">时间轴</div>
  2053. </div>
  2054. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2055. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1"><img
  2056. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2057. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  2058. <img src="../../assets/icon/checkNo.png" alt
  2059. v-if="itemTool.tool.indexOf(68) == -1" />
  2060. <div class="checkDiv" v-else>
  2061. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2062. </div>
  2063. </div> -->
  2064. </div>
  2065. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(69) != -1 }"
  2066. @click="addTools(69, itemTaskIndex, toolIndex)">
  2067. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 69, toolIndex)">
  2068. <img src="../../assets/icon/thirdToolList/english.png" alt />
  2069. <div style="margin: 5px 0">英语写作</div>
  2070. </div>
  2071. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2072. <div class="isCTool" v-if="itemTool.tool.indexOf(69) != -1"><img
  2073. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2074. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2075. <img src="../../assets/icon/checkNo.png" alt
  2076. v-if="itemTool.tool.indexOf(4) == -1" />
  2077. <div class="checkDiv" v-else>
  2078. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2079. </div>
  2080. </div> -->
  2081. </div>
  2082. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(70) != -1 }"
  2083. @click="addTools(70, itemTaskIndex, toolIndex)">
  2084. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 70, toolIndex)">
  2085. <img src="../../assets/icon/thirdToolList/englishVoice.png" alt />
  2086. <div style="margin: 5px 0">英语口语</div>
  2087. </div>
  2088. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2089. <div class="isCTool" v-if="itemTool.tool.indexOf(70) != -1"><img
  2090. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2091. </div>
  2092. <!-- <div class="tool">
  2093. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  2094. <img src="../../assets/icon/secondToolList/translation.png" alt />
  2095. <div style="margin: 5px 0">翻译</div>
  2096. </div>
  2097. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  2098. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  2099. <div class="checkDiv" v-else>
  2100. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2101. </div>
  2102. </div>
  2103. </div>
  2104. <div class="tool">
  2105. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  2106. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  2107. <div style="margin: 5px 0">魔盒识字</div>
  2108. </div>
  2109. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  2110. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  2111. <div class="checkDiv" v-else>
  2112. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2113. </div>
  2114. </div>
  2115. </div>
  2116. <div class="tool">
  2117. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  2118. <img src="../../assets/icon/secondToolList/24game.png" alt />
  2119. <div style="margin: 5px 0">24点</div>
  2120. </div>
  2121. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  2122. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  2123. <div class="checkDiv" v-else>
  2124. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2125. </div>
  2126. </div>
  2127. </div>
  2128. <div class="tool">
  2129. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  2130. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  2131. <div style="margin: 5px 0">数学画板</div>
  2132. </div>
  2133. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  2134. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  2135. <div class="checkDiv" v-else>
  2136. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2137. </div>
  2138. </div>
  2139. </div>
  2140. <div class="tool">
  2141. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  2142. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  2143. <div style="margin: 5px 0">GeoGebra</div>
  2144. </div>
  2145. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2146. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  2147. <div class="checkDiv" v-else>
  2148. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2149. </div>
  2150. </div>
  2151. </div>
  2152. <div class="tool">
  2153. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  2154. <img src="../../assets/icon/fourthToolList/car.png" alt />
  2155. <div style="margin: 5px 0">模拟驾驶</div>
  2156. </div>
  2157. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  2158. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  2159. <div class="checkDiv" v-else>
  2160. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2161. </div>
  2162. </div>
  2163. </div>
  2164. <div class="tool">
  2165. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  2166. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  2167. <div style="margin: 5px 0">路径搜索</div>
  2168. </div>
  2169. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  2170. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  2171. <div class="checkDiv" v-else>
  2172. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2173. </div>
  2174. </div>
  2175. </div>
  2176. <div class="tool">
  2177. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  2178. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  2179. <div style="margin: 5px 0">深度学习</div>
  2180. </div>
  2181. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  2182. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  2183. <div class="checkDiv" v-else>
  2184. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2185. </div>
  2186. </div>
  2187. </div>
  2188. <div class="tool">
  2189. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  2190. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  2191. <div style="margin: 5px 0">全历史</div>
  2192. </div>
  2193. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  2194. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  2195. <div class="checkDiv" v-else>
  2196. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2197. </div>
  2198. </div>
  2199. </div>
  2200. </div>
  2201. <div class="toolSort" v-if="itemTool.toolType == 4">
  2202. <div class="tool">
  2203. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  2204. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  2205. <div style="margin: 5px 0">课程设计</div>
  2206. </div>
  2207. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  2208. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  2209. <div class="checkDiv" v-else>
  2210. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2211. </div>
  2212. </div>
  2213. </div>
  2214. <div class="tool">
  2215. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  2216. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  2217. <div style="margin: 5px 0">目标管理</div>
  2218. </div>
  2219. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  2220. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  2221. <div class="checkDiv" v-else>
  2222. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2223. </div>
  2224. </div>
  2225. </div> -->
  2226. <!-- <div class="tool">
  2227. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2228. <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
  2229. <div style="margin: 5px 0">汉字宫</div>
  2230. </div>
  2231. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2232. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2233. <div class="checkDiv" v-else>
  2234. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2235. </div>
  2236. </div>
  2237. </div> -->
  2238. </div>
  2239. </div>
  2240. <!-- v-show="!itemTool.isFold3" -->
  2241. <div>
  2242. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述" class="binfo_input"
  2243. style="margin: 0 0 20px 0; width: 100% !important"
  2244. v-model="itemTool.toolDetail"></textarea>
  2245. </div>
  2246. </div>
  2247. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  2248. <div class="addToolImg">
  2249. <img src="../../assets/icon/add.png" alt />
  2250. </div>
  2251. <div>添加工具</div>
  2252. </div> -->
  2253. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 0 auto;padding: 0 30px;height: 45px;">
  2254. 添加工具
  2255. </button>
  2256. </div>
  2257. </div>
  2258. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  2259. unitJson[unitIndex].easy == 4
  2260. " class="toolChoose" style="padding: 0 0 40px;">
  2261. <div class="tools">
  2262. <div class="leftTools" style="width: 100%"
  2263. v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2264. <div>
  2265. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2266. style="margin: 0 0 20px 0; width: 100% !important"
  2267. v-model="itemTool.toolDetail"></textarea>
  2268. </div>
  2269. <div style="
  2270. display: flex;
  2271. flex-direction: row;
  2272. align-items: baseline;
  2273. flex-wrap: nowrap;
  2274. justify-content: flex-start;
  2275. position: relative;
  2276. ">
  2277. <div style="margin-right: 20px; font-weight: bold"
  2278. :id="'gj' + itemTaskIndex + '' + toolIndex">
  2279. 工具 {{ toolIndex + 1 }} :
  2280. </div>
  2281. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2282. v-if="itemTask.toolChoose.length > 1" style="right: 0"></div>
  2283. </div>
  2284. <div style="min-height: 163px">
  2285. <div class="toolSort">
  2286. <div class="tool">
  2287. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2288. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2289. <div style="margin: 5px 0">电子白板</div>
  2290. </div>
  2291. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2292. <img src="../../assets/icon/checkNo.png" alt
  2293. v-if="itemTool.tool.indexOf(1) == -1" />
  2294. <div class="checkDiv" v-else>
  2295. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2296. </div>
  2297. </div>
  2298. </div>
  2299. <div class="tool">
  2300. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2301. <img src="../../assets/icon/fourthToolList/text.png" alt />
  2302. <div style="margin: 5px 0">文档</div>
  2303. </div>
  2304. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2305. <img src="../../assets/icon/checkNo.png" alt
  2306. v-if="itemTool.tool.indexOf(52) == -1" />
  2307. <div class="checkDiv" v-else>
  2308. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2309. </div>
  2310. </div>
  2311. </div>
  2312. <div class="tool">
  2313. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2314. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2315. <div style="margin: 5px 0">思维导图</div>
  2316. </div>
  2317. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2318. <img src="../../assets/icon/checkNo.png" alt
  2319. v-if="itemTool.tool.indexOf(3) == -1" />
  2320. <div class="checkDiv" v-else>
  2321. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2322. </div>
  2323. </div>
  2324. </div>
  2325. <div class="tool">
  2326. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2327. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  2328. <div style="margin: 5px 0">问卷调查</div>
  2329. </div>
  2330. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2331. <img src="../../assets/icon/checkNo.png" alt
  2332. v-if="itemTool.tool.indexOf(4) == -1" />
  2333. <div class="checkDiv" v-else>
  2334. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2335. </div>
  2336. </div>
  2337. </div>
  2338. <div class="tool">
  2339. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2340. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  2341. <div style="margin: 5px 0">选择题</div>
  2342. </div>
  2343. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2344. <img src="../../assets/icon/checkNo.png" alt
  2345. v-if="itemTool.tool.indexOf(45) == -1" />
  2346. <div class="checkDiv" v-else>
  2347. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2348. </div>
  2349. </div>
  2350. </div>
  2351. <div class="tool">
  2352. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2353. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  2354. <div style="margin: 5px 0">问答</div>
  2355. </div>
  2356. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2357. <img src="../../assets/icon/checkNo.png" alt
  2358. v-if="itemTool.tool.indexOf(15) == -1" />
  2359. <div class="checkDiv" v-else>
  2360. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2361. </div>
  2362. </div>
  2363. </div>
  2364. <div class="tool">
  2365. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2366. <img src="../../assets/icon/thirdToolList/work.png" alt />
  2367. <div style="margin: 5px 0">作业提交</div>
  2368. </div>
  2369. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2370. <img src="../../assets/icon/checkNo.png" alt
  2371. v-if="itemTool.tool.indexOf(16) == -1" />
  2372. <div class="checkDiv" v-else>
  2373. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2374. </div>
  2375. </div>
  2376. </div>
  2377. <div class="tool">
  2378. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2379. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2380. <div style="margin: 5px 0">批量上传</div>
  2381. </div>
  2382. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2383. <img src="../../assets/icon/checkNo.png" alt
  2384. v-if="itemTool.tool.indexOf(50) == -1" />
  2385. <div class="checkDiv" v-else>
  2386. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2387. </div>
  2388. </div>
  2389. </div>
  2390. <div class="tool">
  2391. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2392. <img src="../../assets/icon/thirdToolList/select.png" alt />
  2393. <div style="margin: 5px 0">选择匹配</div>
  2394. </div>
  2395. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2396. <img src="../../assets/icon/checkNo.png" alt
  2397. v-if="itemTool.tool.indexOf(41) == -1" />
  2398. <div class="checkDiv" v-else>
  2399. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2400. </div>
  2401. </div>
  2402. </div>
  2403. <div class="tool">
  2404. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2405. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  2406. <div style="margin: 5px 0">排序</div>
  2407. </div>
  2408. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2409. <img src="../../assets/icon/checkNo.png" alt
  2410. v-if="itemTool.tool.indexOf(47) == -1" />
  2411. <div class="checkDiv" v-else>
  2412. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2413. </div>
  2414. </div>
  2415. </div>
  2416. <div class="tool">
  2417. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2418. <img src="../../assets/icon/fourthToolList/table.png" alt />
  2419. <div style="margin: 5px 0">表格</div>
  2420. </div>
  2421. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2422. <img src="../../assets/icon/checkNo.png" alt
  2423. v-if="itemTool.tool.indexOf(48) == -1" />
  2424. <div class="checkDiv" v-else>
  2425. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2426. </div>
  2427. </div>
  2428. </div>
  2429. </div>
  2430. </div>
  2431. </div>
  2432. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  2433. <div class="addToolImg">
  2434. <img src="../../assets/icon/add.png" alt />
  2435. </div>
  2436. <div>添加工具</div>
  2437. </div> -->
  2438. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 35px auto 20px">
  2439. 添加工具
  2440. </button>
  2441. </div>
  2442. </div>
  2443. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  2444. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2445. " class="toolChoose" style="padding: 0 0 40px;">
  2446. <div class="tools">
  2447. <div class="leftTools" style="
  2448. width: 100%;
  2449. padding: 0 0 15px 0;
  2450. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2451. <div style="min-height: 163px">
  2452. <div class="toolSort">
  2453. <div class="tool">
  2454. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2455. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2456. <div style="margin: 5px 0">批量上传</div>
  2457. </div>
  2458. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2459. <img src="../../assets/icon/checkNo.png" alt
  2460. v-if="itemTool.tool.indexOf(50) == -1" />
  2461. <div class="checkDiv" v-else>
  2462. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2463. </div>
  2464. </div>
  2465. </div>
  2466. </div>
  2467. </div>
  2468. </div>
  2469. </div>
  2470. </div>
  2471. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  2472. <div class="elist_title">
  2473. <div style="
  2474. display: flex;
  2475. flex-direction: row;
  2476. align-items: center;
  2477. margin: 20px 0;
  2478. ">
  2479. <div class="lineTitle clineTitle">评价设置</div>
  2480. <!-- <div class="line" style="width: 90%"></div> -->
  2481. </div>
  2482. </div>
  2483. <div class="mbCss">
  2484. <div class="pjCss" :style="{width:itemTask.isEvaFold?'calc(100% - 55%)':'calc(100% - 120px)'}">
  2485. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2486. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2487. <span>评价维度:</span>
  2488. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价维度'" placement="top" popper-class="text_tooltip2"> -->
  2489. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价维度" />
  2490. <!-- </el-tooltip> -->
  2491. <!-- <span>评星等级:</span>
  2492. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  2493. disabled></el-rate> -->
  2494. <div class="remove" @click="
  2495. deletEList(unitIndex, itemTaskIndex, eIndex)
  2496. "></div>
  2497. <div class="elist_inptu_text">
  2498. <span>维度描述:</span>
  2499. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写维度描述'" placement="top" popper-class="text_tooltip2"> -->
  2500. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写维度描述" />
  2501. <!-- </el-tooltip> -->
  2502. </div>
  2503. <div class="elist_inptu_text" v-if="evalua">
  2504. <span>目标:</span>
  2505. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写维度描述" /> -->
  2506. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2507. @change="forceUpdate()">
  2508. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2509. :value="e.name">
  2510. </el-option>
  2511. </el-select> -->
  2512. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2513. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2514. </div>
  2515. </div>
  2516. </div>
  2517. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  2518. style="margin: 35px 35px 0 0">
  2519. <div class="addToolImg">
  2520. <img src="../../assets/icon/add.png" alt />
  2521. </div>
  2522. <div>添加</div>
  2523. </div> -->
  2524. <div class="eva_btn_box">
  2525. <button class="c_pub_button_add pub_btn_eval_img" @click="addEList(unitIndex, itemTaskIndex)">
  2526. 添加
  2527. </button>
  2528. <button class="c_pub_button_add pub_btn_eval_source_img" @click="openEList(unitIndex, itemTaskIndex)">
  2529. 资源
  2530. </button>
  2531. </div>
  2532. </div>
  2533. <div v-if="evalua" style="
  2534. border: 1px solid #e5e5e5;
  2535. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2536. " :style="{width:itemTask.isEvaFold?'55%':'116px'}" class="evaCss">
  2537. <!-- <div class="e_add_top">
  2538. <div class="e_add_title">
  2539. <span>当前使用目标管理</span>
  2540. <span>{{ eTitle }}</span>
  2541. <img src="../../assets/line.png" class="cru_line" style="
  2542. width: 125px;
  2543. height: 20px;
  2544. bottom: -10px;
  2545. left: 155px;
  2546. " />
  2547. </div>
  2548. </div> -->
  2549. <div class="e_add_content" style="width: 100%">
  2550. <div class="e_add_list_pbox" style="width: 100%">
  2551. <div class="e_add_list_pbox_title">
  2552. <span class="type_title" v-if="itemTask.isEvaFold">切换模式</span>
  2553. <div class="type_content" v-if="itemTask.isEvaFold">
  2554. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1, itemTaskIndex)">目标树</span>
  2555. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2, itemTaskIndex)">目标罗盘</span>
  2556. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  2557. </div>
  2558. <div v-if="itemTask.isEvaFold"
  2559. class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva(itemTaskIndex)"><img
  2560. src="../../assets/icon/new/icon-slide.png" />收起目标</div>
  2561. <div v-else style="margin:0 0 0 auto" class="show_taskD"
  2562. @click="foldEva(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开目标
  2563. </div>
  2564. </div>
  2565. <div class="e_add_list_pbox_content" v-if="itemTask.isEvaFold" style="min-height: 200px;">
  2566. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  2567. " v-if="typeMode == 1"></Mind>
  2568. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  2569. </Sunburst>
  2570. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2571. v-if="typeMode == 3"></SeeBoard>
  2572. </div>
  2573. </div>
  2574. </div>
  2575. </div>
  2576. </div>
  2577. </div>
  2578. <div class="funBlock" style="padding: 0">
  2579. <div class="fold" @click="fold(itemTaskIndex, $event)">
  2580. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }">
  2581. </div>
  2582. <div>{{ itemTask.isFold === 1 ? '展开任务' : '收起任务' }}</div>
  2583. </div>
  2584. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2585. <div>展开</div>
  2586. <div class="arrow">
  2587. <img src="../../assets/icon/expand.png" alt />
  2588. </div>
  2589. </div> -->
  2590. </div>
  2591. </div>
  2592. </div>
  2593. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2594. <!-- <div>
  2595. <img src="../../../assets/icon/new/addStage.png" alt />
  2596. <span>添加任务</span>
  2597. </div> -->
  2598. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  2599. 添加任务
  2600. </button>
  2601. </div>
  2602. </div>
  2603. <div class="info_btnBox3">
  2604. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  2605. goTo(
  2606. '/course?userid=' +
  2607. userid +
  2608. '&oid=' +
  2609. oid +
  2610. '&org=' +
  2611. org +
  2612. '&role=' +
  2613. role
  2614. )
  2615. ">
  2616. 返回课程
  2617. </button>
  2618. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps"
  2619. style="background:#dbdbdb">
  2620. {{ steps == 4 ? "返回课程" : "上一步" }}
  2621. </button>
  2622. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  2623. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2624. {{ steps == 3 ? "确认上传" : "下一步" }}
  2625. </button>
  2626. </div>
  2627. </div>
  2628. </div>
  2629. </div>
  2630. </div>
  2631. <div style="
  2632. width: calc(100% - 20px);
  2633. background: rgb(255, 255, 255);
  2634. border-radius: 10px;
  2635. " v-if="this.steps == 4">
  2636. <div class="basic_box_success">
  2637. <div class="right_img">
  2638. <img src="../../assets/icon/right.png" alt />
  2639. </div>
  2640. <div style="font-weight: bold">成功</div>
  2641. <!-- <div>您的课程编号</div>
  2642. <div class="number">{{ number }}</div>-->
  2643. <!-- <div class="success_button">
  2644. <div class="look_course" @click="isNoFinsh">
  2645. 邀请老师协同编辑
  2646. </div>
  2647. <div class="attend_others" @click="goCourse">预览课程</div>
  2648. </div> -->
  2649. </div>
  2650. </div>
  2651. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  2652. @mouseleave="btnDisplay(false)" v-if="false">
  2653. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1 && isBtnDisplay" @click="
  2654. goTo(
  2655. '/course?userid=' +
  2656. userid +
  2657. '&oid=' +
  2658. oid +
  2659. '&org=' +
  2660. org +
  2661. '&role=' +
  2662. role
  2663. )
  2664. ">
  2665. 返回课程
  2666. </button>
  2667. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5 && isBtnDisplay"
  2668. @click="lastSteps">
  2669. {{ steps == 4 ? "返回课程" : "上一步" }}
  2670. </button>
  2671. <button class="c_pub_button_confirm" v-if="steps < 4 && isBtnDisplay" @click="nextSteps"
  2672. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2673. {{ steps == 3 ? "确认上传" : "下一步" }}
  2674. </button>
  2675. </div>
  2676. </div>
  2677. </div>
  2678. </div>
  2679. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2680. class="dialog_diy2 customWidth">
  2681. <div>请复制该链接邀请协同编辑</div>
  2682. <div>http://www.boomyon.com/index-zhang.com</div>
  2683. <span slot="footer" class="dialog-footer">
  2684. <el-button type="primary">复制链接分享</el-button>
  2685. <el-button @click="dialogVisible = false">取消</el-button>
  2686. </span>
  2687. </el-dialog>
  2688. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2689. :before-close="handleClose" class="dialog_diy2 customWidth">
  2690. <el-form>
  2691. <el-form-item label="文档标题">
  2692. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2693. </el-form-item>
  2694. <div>文档简介</div>
  2695. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2696. </el-form>
  2697. <span slot="footer" class="dialog-footer">
  2698. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2699. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2700. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2701. </span>
  2702. </el-dialog>
  2703. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2704. :before-close="handleClose" class="dialog_diy">
  2705. <el-form>
  2706. <el-form-item label="文档标题">
  2707. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2708. </el-form-item>
  2709. <div>文档内容</div>
  2710. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2711. </el-form>
  2712. <span slot="footer" class="dialog-footer">
  2713. <el-button @click="clearChoose">取 消</el-button>
  2714. <el-button type="primary" @click="wordNext()">确定</el-button>
  2715. </span>
  2716. </el-dialog>
  2717. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2718. :before-close="handleClose" class="dialog_diy">
  2719. <el-form>
  2720. <el-form-item label="文本标题">
  2721. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  2722. placeholder="请输入文本标题..."></el-input>
  2723. </el-form-item>
  2724. <!-- <div>富文本内容</div> -->
  2725. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2726. </el-form>
  2727. <span slot="footer" class="dialog-footer">
  2728. <el-button @click="clearAttText">取 消</el-button>
  2729. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2730. </span>
  2731. </el-dialog>
  2732. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2733. :before-close="handleClose" class="dialog_diy lineCss">
  2734. <el-form>
  2735. <el-form-item label="标题" :label-width="formLabelWidth">
  2736. <span>
  2737. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2738. </span>
  2739. </el-form-item>
  2740. <el-form-item label="链接" :label-width="formLabelWidth">
  2741. <span>
  2742. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2743. </span>
  2744. </el-form-item>
  2745. </el-form>
  2746. <span slot="footer" class="dialog-footer">
  2747. <el-button @click="clearLine">取 消</el-button>
  2748. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2749. </span>
  2750. </el-dialog>
  2751. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  2752. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  2753. <div>
  2754. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  2755. </div>
  2756. <span slot="footer" class="dialog-footer">
  2757. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2758. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  2759. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  2760. </span>
  2761. </el-dialog>
  2762. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2763. :before-close="handleClose" class="addNewPP customWidth">
  2764. <div class="people">
  2765. <div class="people_top">
  2766. <div class="people_nav">选择成员</div>
  2767. <div class="people_top_right">
  2768. <div class="people_search">
  2769. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2770. <div class="search_img" @click="searchStudent">
  2771. <img src="../../assets/icon/search.png" alt />
  2772. </div>
  2773. </div>
  2774. </div>
  2775. </div>
  2776. <el-checkbox-group v-model="checkboxList" class="people_name">
  2777. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2778. "暂无学生可选" }}</el-checkbox>
  2779. </el-checkbox-group>
  2780. </div>
  2781. <span slot="footer" class="dialog-footer">
  2782. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2783. <el-button type="primary" @click="isAddPP">确定</el-button>
  2784. </span>
  2785. </el-dialog>
  2786. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  2787. :before-close="handleClose" class="addNewPP2">
  2788. <div class="check_classBox">
  2789. <div class="check_class_right">
  2790. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  2791. 全部
  2792. </div>
  2793. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  2794. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  2795. {{ item.name }}
  2796. </div>
  2797. </el-tooltip>
  2798. </div>
  2799. <div class="check_class_left">
  2800. <div class="check_class_all_box">
  2801. <div class="check_class_left_title">选择班级</div>
  2802. <div style="display:flex;align-items:center;margin-left:auto;"><el-checkbox v-model="checkAll"
  2803. @change="handleCheckAllChange" class="all_check">全选</el-checkbox></div>
  2804. </div>
  2805. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  2806. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  2807. </div> -->
  2808. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  2809. <div v-for="item in grade2" :key="item.id" class="class_item">
  2810. <el-checkbox :label="item.id">
  2811. {{ item.name }}
  2812. </el-checkbox>
  2813. </div>
  2814. </el-checkbox-group>
  2815. <div v-if="!grade2.length">暂无数据</div>
  2816. </div>
  2817. </div>
  2818. <span slot="footer" class="dialog-footer">
  2819. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2820. <el-button type="primary" @click="isAddClass">确定</el-button>
  2821. </span>
  2822. </el-dialog>
  2823. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2824. :before-close="handleClose" class="addNewPP customWidth">
  2825. <div class="people">
  2826. <div class="people_top">
  2827. <div class="people_top_right">
  2828. <div class="people_search">
  2829. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2830. <div class="search_img" @click="getTeacher">
  2831. <img src="../../assets/icon/search.png" alt />
  2832. </div>
  2833. </div>
  2834. </div>
  2835. <div class="people_nav" style="display: flex;align-items: center;">
  2836. <div class="check_class_left_title">选择成员</div>
  2837. <div style="display:flex;align-items:center;margin-left:auto;"><el-checkbox v-model="checkAll2"
  2838. @change="handleCheckAllChange2" class="all_check">全选</el-checkbox></div>
  2839. </div>
  2840. </div>
  2841. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length" @change="InviteChange2">
  2842. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2843. <div class="t_j_box">
  2844. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2845. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2846. </el-tooltip>
  2847. <el-tooltip placement="top" :content="item.username">
  2848. <span>{{ item.username }}</span>
  2849. </el-tooltip>
  2850. <el-tooltip placement="top" :content="item.school">
  2851. <span>{{ item.school }}</span>
  2852. </el-tooltip>
  2853. </div>
  2854. </el-checkbox>
  2855. </el-checkbox-group>
  2856. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2857. </div>
  2858. <span slot="footer" class="dialog-footer">
  2859. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2860. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2861. </span>
  2862. </el-dialog>
  2863. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2864. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  2865. <div style="height:100%">
  2866. <div class="a_add_title" style="
  2867. display: flex;
  2868. flex-direction: row;
  2869. align-items: center;
  2870. justify-content: center;
  2871. ">
  2872. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  2873. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2874. </div>
  2875. <div class="a_addBox" style="height:calc(100% - 50px)">
  2876. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  2877. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2878. <div class="a_add_checkType">
  2879. <span :class="{
  2880. active:
  2881. askJson.askJson[index1].type == '1' ||
  2882. !askJson.askJson[index1].type,
  2883. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2884. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2885. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2886. </div>
  2887. <div class="a_add_head">
  2888. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  2889. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2890. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  2891. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  2892. </div>
  2893. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  2894. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  2895. </div>
  2896. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  2897. </div>
  2898. <div class="a_add_head_div">
  2899. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2900. </el-button>
  2901. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  2902. </div>
  2903. </div>
  2904. <div class="a_add_body">
  2905. <div class="a_add_input" style="flex-direction: column;">
  2906. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2907. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  2908. <div style="margin-right: 10px">
  2909. 选项{{ checkIndex + 1 }}
  2910. </div>
  2911. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  2912. " placeholder="请输入选项" style="width: 300px;" @change="() => { $forceUpdate() }"></textarea>
  2913. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  2914. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  2915. </div>
  2916. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  2917. </div>
  2918. <div class="a_add_body_div">
  2919. <el-button type="primary" size="small"
  2920. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  2921. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  2922. v-if="askJson.askJson[index1].askItem != 1">删除
  2923. </el-button>
  2924. </div>
  2925. </div>
  2926. </div>
  2927. <!-- <div class="a_add_body_div">
  2928. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2929. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2930. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2931. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2932. </el-button>
  2933. </div> -->
  2934. </div>
  2935. </div>
  2936. </div>
  2937. </div>
  2938. <span slot="footer" class="dialog-footer">
  2939. <el-button @click="closePan(4)">取 消</el-button>
  2940. <el-button type="primary" @click="addAsk">确 定</el-button>
  2941. </span>
  2942. </el-dialog>
  2943. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2944. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  2945. <div style="height:100%">
  2946. <!-- <div class="a_add_title" style="
  2947. display: flex;
  2948. flex-direction: row;
  2949. align-items: center;
  2950. justify-content: center;
  2951. ">
  2952. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2953. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2954. </div> -->
  2955. <div class="a_addBox" style="height:100%">
  2956. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  2957. <!-- 请输入题目内容 -->
  2958. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  2959. v-if="isPasteChoice">智能粘贴</button>
  2960. </div>
  2961. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2962. <div class="a_add_checkType">
  2963. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2964. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2965. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2966. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2967. </div>
  2968. <div class="a_add_head">
  2969. <div class="timuUpImg">
  2970. <div style="display: flex;align-items: center;">
  2971. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2972. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  2973. placeholder="请输入题目">
  2974. </el-input> -->
  2975. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  2976. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  2977. @change="() => { $forceUpdate() }"></textarea>
  2978. </div>
  2979. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  2980. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  2981. </div>
  2982. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  2983. </div>
  2984. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  2985. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2986. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2987. </div>
  2988. </div>
  2989. <div class="a_add_head_div">
  2990. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2991. </el-button>
  2992. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  2993. </div>
  2994. </div>
  2995. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  2996. testJson.testJson[index1].timuList.length
  2997. ">
  2998. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2999. @click.stop="previewImg(timg.src)">
  3000. <img :src="timg.src" alt="" />
  3001. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  3002. <img src="../../assets/icon/delete.png" alt="" />
  3003. </div>
  3004. </div>
  3005. </div>
  3006. <div class="a_add_body">
  3007. <div class="a_add_input a_add_input_choice">
  3008. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  3009. @change="() => { $forceUpdate() }">
  3010. <div class="radioBox">
  3011. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3012. .testItem" :key="checkIndex" :label="checkIndex">
  3013. <div style="margin-right: 10px">
  3014. 选项{{ checkIndex + 1 }}
  3015. </div>
  3016. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  3017. testJson.testJson[index1].checkList[checkIndex]
  3018. .imgType &&
  3019. testJson.testJson[index1].checkList[checkIndex]
  3020. .imgType == 1
  3021. ">
  3022. <div class="inImg" @click.stop="
  3023. previewImg(
  3024. testJson.testJson[index1].checkList[checkIndex]
  3025. .src
  3026. )
  3027. ">
  3028. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  3029. .src
  3030. " lazy />
  3031. <!-- <img :src="
  3032. testJson.testJson[index1].checkList[checkIndex]
  3033. .src
  3034. " alt="" /> -->
  3035. </div>
  3036. </div>
  3037. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  3038. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3039. @change="() => { $forceUpdate() }"></textarea>
  3040. <div class="xzUpImg" @click.stop="addImg($event)">
  3041. <img src="../../assets/icon/xzUpImg.png" alt="" />
  3042. <input type="file" accept="image/*" style="display: none"
  3043. @change="beforeUploadTi($event, index1, checkIndex)" />
  3044. </div>
  3045. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3046. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  3047. </div>
  3048. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  3049. </div>
  3050. <div class="a_add_body_div">
  3051. <el-button type="primary" size="small"
  3052. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  3053. <el-button type="primary" size="small"
  3054. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  3055. v-if="testJson.testJson[index1].testItem != 1">删除
  3056. </el-button>
  3057. </div>
  3058. </el-radio>
  3059. </div>
  3060. </el-radio-group>
  3061. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  3062. @change="() => { $forceUpdate() }">
  3063. <div class="radioBox">
  3064. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  3065. .testItem" :key="checkIndex1" :label="checkIndex1">
  3066. <div style="margin-right: 10px">
  3067. 选项{{ checkIndex1 + 1 }}
  3068. </div>
  3069. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  3070. testJson.testJson[index1].checkList[checkIndex1]
  3071. .imgType &&
  3072. testJson.testJson[index1].checkList[checkIndex1]
  3073. .imgType == 1
  3074. ">
  3075. <div class="inImg" @click.stop="
  3076. previewImg(
  3077. testJson.testJson[index1].checkList[checkIndex1]
  3078. .src
  3079. )
  3080. ">
  3081. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  3082. .src
  3083. " lazy />
  3084. <!-- <img :src="
  3085. testJson.testJson[index1].checkList[checkIndex1]
  3086. .src
  3087. " alt="" /> -->
  3088. </div>
  3089. </div>
  3090. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  3091. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3092. @change="() => { $forceUpdate() }"></textarea>
  3093. <div class="xzUpImg" @click.stop="addImg($event)">
  3094. <img src="../../assets/icon/xzUpImg.png" alt="" />
  3095. <input type="file" accept="image/*" style="display: none"
  3096. @change="beforeUploadTi($event, index1, checkIndex1)" />
  3097. </div>
  3098. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3099. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  3100. </div>
  3101. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  3102. </div>
  3103. <div class="a_add_body_div">
  3104. <el-button type="primary" size="small"
  3105. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  3106. <el-button type="primary" size="small"
  3107. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  3108. v-if="testJson.testJson[index1].testItem != 1">删除
  3109. </el-button>
  3110. </div>
  3111. </el-checkbox>
  3112. </div>
  3113. </el-checkbox-group>
  3114. </div>
  3115. <!-- <div class="a_add_body_div">
  3116. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  3117. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  3118. v-if="testJson.testJson[index1].testItem != 1">删除
  3119. </el-button>
  3120. </div> -->
  3121. </div>
  3122. </div>
  3123. </div>
  3124. </div>
  3125. <span slot="footer" class="dialog-footer">
  3126. <el-button @click="closePan(45)">取 消</el-button>
  3127. <el-button type="primary" @click="addTest">确 定</el-button>
  3128. </span>
  3129. </el-dialog>
  3130. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  3131. :before-close="handleClose" class="dialog_diy addToolsDia">
  3132. <div class="toolChoose">
  3133. <div class="tools">
  3134. <div class="leftTools" style="
  3135. width: 100%;
  3136. padding: 0 0 15px 0;
  3137. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  3138. <div style="
  3139. display: flex;
  3140. flex-direction: row;
  3141. align-items: baseline;
  3142. flex-wrap: nowrap;
  3143. justify-content: flex-start;
  3144. position: relative;
  3145. ">
  3146. <div class="chooseWho">
  3147. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  3148. 互动类
  3149. </div>
  3150. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  3151. 思维类
  3152. </div>
  3153. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3154. 评价类
  3155. </div>
  3156. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3157. 其他
  3158. </div>
  3159. </div>
  3160. </div>
  3161. <div style="min-height: 163px">
  3162. <div class="toolSort" v-if="chapToolsType == 0">
  3163. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }" @click="chapAddTools(8)">
  3164. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  3165. <img src="../../assets/icon/secondToolList/library.png" alt />
  3166. <div style="margin: 5px 0">素材库</div>
  3167. </div>
  3168. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3169. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1"><img
  3170. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3171. <!-- <div class="check" @click="chapAddTools(8)">
  3172. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  3173. <div class="checkDiv" v-else>
  3174. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3175. </div>
  3176. </div> -->
  3177. </div>
  3178. </div>
  3179. <div class="toolSort" v-if="chapToolsType == 1">
  3180. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }" @click="chapAddTools(7)">
  3181. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  3182. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  3183. <div style="margin: 5px 0">思维网格</div>
  3184. </div>
  3185. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3186. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1"><img
  3187. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3188. <!-- <div class="check" @click="chapAddTools(7)">
  3189. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  3190. <div class="checkDiv" v-else>
  3191. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3192. </div>
  3193. </div> -->
  3194. </div>
  3195. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }" @click="chapAddTools(1)">
  3196. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  3197. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  3198. <div style="margin: 5px 0">电子白板</div>
  3199. </div>
  3200. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3201. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1"><img
  3202. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3203. <!-- <div class="check" @click="chapAddTools(1)">
  3204. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  3205. <div class="checkDiv" v-else>
  3206. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3207. </div>
  3208. </div> -->
  3209. </div>
  3210. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }" @click="chapAddTools(2)">
  3211. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  3212. <img src="../../assets/icon/secondToolList/note.png" alt />
  3213. <div style="margin: 5px 0">便签</div>
  3214. </div>
  3215. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3216. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1"><img
  3217. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3218. <!-- <div class="check" @click="chapAddTools(2)">
  3219. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  3220. <div class="checkDiv" v-else>
  3221. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3222. </div>
  3223. </div> -->
  3224. </div>
  3225. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }" @click="chapAddTools(6)">
  3226. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  3227. <img src="../../assets/icon/secondToolList/doc.png" alt />
  3228. <div style="margin: 5px 0">协同文档</div>
  3229. </div>
  3230. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3231. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1"><img
  3232. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3233. <!-- <div class="check" @click="chapAddTools(6)">
  3234. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  3235. <div class="checkDiv" v-else>
  3236. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3237. </div>
  3238. </div> -->
  3239. </div>
  3240. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }" @click="chapAddTools(3)">
  3241. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  3242. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  3243. <div style="margin: 5px 0">思维导图</div>
  3244. </div>
  3245. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3246. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1"><img
  3247. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3248. <!-- <div class="check" @click="chapAddTools(3)">
  3249. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  3250. <div class="checkDiv" v-else>
  3251. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3252. </div>
  3253. </div> -->
  3254. </div>
  3255. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }" @click="chapAddTools(31)">
  3256. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  3257. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  3258. <div style="margin: 5px 0">数学画板</div>
  3259. </div>
  3260. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3261. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1"><img
  3262. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3263. <!-- <div class="check" @click="chapAddTools(31)">
  3264. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  3265. <div class="checkDiv" v-else>
  3266. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3267. </div>
  3268. </div> -->
  3269. </div>
  3270. </div>
  3271. <div class="toolSort" v-if="chapToolsType == 2">
  3272. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }" @click="chapAddTools(5)">
  3273. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  3274. <img src="../../assets/icon/thirdToolList/score.png" alt />
  3275. <div style="margin: 5px 0">量规评分</div>
  3276. </div>
  3277. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3278. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1"><img
  3279. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3280. <!-- <div class="check" @click="chapAddTools(5)">
  3281. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  3282. <div class="checkDiv" v-else>
  3283. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3284. </div>
  3285. </div> -->
  3286. </div>
  3287. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }" @click="chapAddTools(4)">
  3288. <div class="whiteBIcon" @click.stop="openTools(chapCount, 4, null)">
  3289. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  3290. <div style="margin: 5px 0">问卷调查</div>
  3291. </div>
  3292. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3293. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1"><img
  3294. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3295. <!-- <div class="check" @click="chapAddTools(4)">
  3296. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  3297. <div class="checkDiv" v-else>
  3298. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3299. </div>
  3300. </div> -->
  3301. </div>
  3302. </div>
  3303. </div>
  3304. <div>
  3305. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  3306. v-model="itemTools.toolDetail" />
  3307. </div>
  3308. </div>
  3309. </div>
  3310. </div>
  3311. <span slot="footer" class="dialog-footer">
  3312. <el-button @click="dialogVisible4 = false">取 消</el-button>
  3313. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  3314. </span>
  3315. </el-dialog>
  3316. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  3317. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  3318. <div>
  3319. <div class="a_add_title" style="
  3320. display: flex;
  3321. flex-direction: column;
  3322. align-items: flex-start;
  3323. justify-content: center;
  3324. ">
  3325. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3326. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  3327. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  3328. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  3329. </div>
  3330. </div>
  3331. <span slot="footer" class="dialog-footer">
  3332. <el-button @click="closePan(15)">取 消</el-button>
  3333. <el-button type="primary" @click="addAnswer">确 定</el-button>
  3334. </span>
  3335. </el-dialog>
  3336. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  3337. :before-close="handleClose" class="dialog_diy">
  3338. <div>
  3339. <div class="a_add_title" style="
  3340. display: flex;
  3341. flex-direction: column;
  3342. align-items: flex-start;
  3343. justify-content: center;
  3344. ">
  3345. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3346. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  3347. </div>
  3348. </div>
  3349. <span slot="footer" class="dialog-footer">
  3350. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  3351. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  3352. </span>
  3353. </el-dialog>
  3354. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  3355. :before-close="handleClose" class="dialog_diy">
  3356. <div>
  3357. <div class="fileCss" style="padding-top: 20px">
  3358. <div>
  3359. <button class="info_btn" @click="addImg($event)">
  3360. 选择本地文件
  3361. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  3362. </button>
  3363. <div class="spanName">选择本地文件</div>
  3364. </div>
  3365. <!-- <div>
  3366. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  3367. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  3368. <img :src="cover[0].url" alt="" />
  3369. <div class="deletePic" @click="deleteSysPic">
  3370. <img src="../../assets/icon/delete.png" alt="" />
  3371. </div>
  3372. </div>
  3373. <div class="spanName">选择系统文件</div>
  3374. </div> -->
  3375. <div>
  3376. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  3377. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  3378. <img :src="cover[0].url" alt="" />
  3379. <div class="deletePic" @click="deleteSysPic">
  3380. <img src="../../assets/icon/delete.png" alt="" />
  3381. </div>
  3382. </div>
  3383. <div class="spanName">选择网络文件</div>
  3384. </div>
  3385. </div>
  3386. <!-- <div class="fileCss">
  3387. </div> -->
  3388. </div>
  3389. <span slot="footer" class="dialog-footer">
  3390. <el-button @click="choosePicVisible = false">取 消</el-button>
  3391. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  3392. </span>
  3393. </el-dialog>
  3394. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  3395. :before-close="handleClose" class="dialog_diy">
  3396. <div class="cru_selectBox" style="margin: 0">
  3397. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  3398. 绘画
  3399. </div>
  3400. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  3401. 科技
  3402. </div>
  3403. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  3404. 人文
  3405. </div>
  3406. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  3407. 艺术
  3408. </div>
  3409. </div>
  3410. <div class="sysPicBox">
  3411. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  3412. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  3413. </div>
  3414. </div>
  3415. </el-dialog>
  3416. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  3417. :before-close="handleClose" class="dialog_diy">
  3418. <div>
  3419. <div class="people_top_right" style="display: flex;align-items: center;">
  3420. <div style="position: relative; width: 100%;">
  3421. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  3422. @keyup.enter.native="resetImage()"></el-input>
  3423. <div class="search_img" @click="resetImage" style="right: 10px;">
  3424. <img src="../../assets/icon/search.png" alt />
  3425. </div>
  3426. </div>
  3427. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  3428. </div>
  3429. <div class="sysPicBox" v-loading="imageloading">
  3430. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  3431. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  3432. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  3433. </div>
  3434. </div>
  3435. </div>
  3436. </el-dialog>
  3437. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  3438. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  3439. <div v-if="selectJson" style="height:100%">
  3440. <div class="select_box1" v-if="selectSteps == 1">
  3441. <div class="select_box1_img">
  3442. <div class="select_box1_title">
  3443. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  3444. </div>
  3445. <div class="select_box1_add_img">
  3446. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  3447. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  3448. <img src="../../assets/icon/addPoster.png" alt="" />
  3449. </div>
  3450. <div class="isSysPic" v-else>
  3451. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3452. <div class="deletePic" @click="deleteSelectPic">
  3453. <img src="../../assets/icon/delete.png" alt="" />
  3454. </div>
  3455. </div>
  3456. </div>
  3457. </div>
  3458. <div class="select_box1_select">
  3459. <div class="select_box1_title">
  3460. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  3461. </div>
  3462. <div class="select_box1_select_box">
  3463. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  3464. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  3465. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  3466. <div class="select_box1_select_box_add">
  3467. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  3468. 添加</el-button>
  3469. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  3470. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  3471. </div>
  3472. </div>
  3473. </div>
  3474. </div>
  3475. <div v-if="selectSteps == 2" style="height:100%">
  3476. <div class="select_box2">
  3477. <div class="select_box2_title">设置每道题目的正确选项</div>
  3478. <div class="select_box2_box">
  3479. <div class="select_box2_img">
  3480. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3481. </div>
  3482. <div class="select_box2_answer">
  3483. <div class="select_answer_title">根据题目选择对应答案</div>
  3484. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  3485. <span>{{ checkIndex + 1 }}、</span>
  3486. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  3487. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  3488. </el-option>
  3489. </el-select>
  3490. </div>
  3491. </div>
  3492. </div>
  3493. </div>
  3494. </div>
  3495. </div>
  3496. <span slot="footer" class="dialog-footer">
  3497. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  3498. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  3499. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  3500. </span>
  3501. </el-dialog>
  3502. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  3503. :before-close="handleClose" class="dialog_diy">
  3504. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  3505. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  3506. <div class="pjCss" style="width: 100%">
  3507. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  3508. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  3509. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  3510. <input type="input" v-model="eItem.value" placeholder="填写评价维度" />
  3511. <div class="remove" @click="deletRateList(eIndex)"></div>
  3512. <div style="width: 100%; display: flex">
  3513. <span style="min-width: 100px; text-align: right">评星等级:</span>
  3514. <el-rate v-model="eItem.score" disabled></el-rate>
  3515. </div>
  3516. <div class="elist_inptu_text" style="align-items: flex-start">
  3517. <span style="min-width: 100px; text-align: right">描述:</span>
  3518. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写维度描述"></textarea>
  3519. </div>
  3520. </div>
  3521. </div>
  3522. <div class="addToolFun" @click="addRateList()">
  3523. <div class="addToolImg">
  3524. <img src="../../assets/icon/add.png" alt />
  3525. </div>
  3526. <div>添加</div>
  3527. </div>
  3528. </div>
  3529. </div>
  3530. <span slot="footer" class="dialog-footer">
  3531. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  3532. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  3533. </span>
  3534. </el-dialog>
  3535. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  3536. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  3537. <div style="height: 100%;">
  3538. <div class="sentenBox" style="height: 100%;">
  3539. <div class="addSen" @click="addSt">添加题目</div>
  3540. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  3541. <div class="sentenTopBox">
  3542. <div class="sentenTop" :index="stIndex + 1">
  3543. <div>题目设置</div>
  3544. <div>
  3545. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  3546. </div>
  3547. <div @click="addSen(stIndex)">添加</div>
  3548. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  3549. </div>
  3550. </div>
  3551. <div class="cardList">
  3552. <div v-if="st.addSentence.length > 0" class="cardBox">
  3553. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  3554. @click="setRightAnswer(s, stIndex, sIndex)">
  3555. <el-tooltip class="item" effect="light" :content="s" placement="top">
  3556. <div>{{ s }}</div>
  3557. </el-tooltip>
  3558. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  3559. <img src="../../assets/icon/delete.png" alt="" />
  3560. </div>
  3561. </div>
  3562. </div>
  3563. <div class="card">
  3564. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  3565. </div>
  3566. </div>
  3567. <div class="rightCardBox">
  3568. <div>正确顺序</div>
  3569. <div class="rightCardList">
  3570. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  3571. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  3572. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  3573. <el-tooltip class="item" effect="light" :content="r" placement="top">
  3574. <div>{{ r }}</div>
  3575. </el-tooltip>
  3576. </div>
  3577. <div>{{ rIndex + 1 }}</div>
  3578. </div>
  3579. </div>
  3580. <div class="card" v-if="st.rightAnswer.length == 0">
  3581. <img src="../../assets/icon/conSentences/noAnswer.png" alt="" />
  3582. </div>
  3583. <div class="card" v-else>
  3584. <img src="../../assets/icon/conSentences/clickNo.png" alt="" />
  3585. </div>
  3586. </div>
  3587. </div>
  3588. </div>
  3589. </div>
  3590. </div>
  3591. <span slot="footer" class="dialog-footer">
  3592. <el-button @click="closePan(47)">取 消</el-button>
  3593. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  3594. </span>
  3595. </el-dialog>
  3596. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  3597. :before-close="handleClose" class="dialog_diy">
  3598. <el-form>
  3599. <!-- <el-form-item label="文本标题">
  3600. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3601. </el-form-item> -->
  3602. <div>表格内容</div>
  3603. <Table v-model="tableJson.text" @change="change"></Table>
  3604. </el-form>
  3605. <span slot="footer" class="dialog-footer">
  3606. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  3607. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  3608. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  3609. </span>
  3610. </el-dialog>
  3611. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  3612. :before-close="handleClose" class="dialog_diy">
  3613. <el-form>
  3614. <!-- <el-form-item label="文本标题">
  3615. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3616. </el-form-item> -->
  3617. <div>文档内容</div>
  3618. <editor-bar v-model="wordJson.text"></editor-bar>
  3619. </el-form>
  3620. <span slot="footer" class="dialog-footer">
  3621. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  3622. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  3623. </span>
  3624. </el-dialog>
  3625. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  3626. :before-close="handleClose" class="dialog_diy">
  3627. <div style="
  3628. width: 100%;
  3629. display: flex;
  3630. flex-direction: row;
  3631. flex-wrap: nowrap;
  3632. align-items: center;
  3633. justify-content: center;
  3634. ">
  3635. <div>班级:</div>
  3636. <el-select multiple v-model="uploadJson" placeholder="请选择">
  3637. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  3638. </el-option>
  3639. </el-select>
  3640. </div>
  3641. <span slot="footer" class="dialog-footer">
  3642. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  3643. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  3644. </span>
  3645. </el-dialog>
  3646. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  3647. :before-close="handleClose" class="dialog_diy">
  3648. <div style="
  3649. width: 100%;
  3650. display: flex;
  3651. flex-direction: row;
  3652. flex-wrap: nowrap;
  3653. align-items: center;
  3654. justify-content: center;
  3655. ">
  3656. <div>随机码:</div>
  3657. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  3658. </div>
  3659. <span slot="footer" class="dialog-footer">
  3660. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  3661. <el-button type="primary" @click="addInvite">确定</el-button>
  3662. </span>
  3663. </el-dialog>
  3664. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  3665. :before-close="handleClose" class="dialog_diy">
  3666. <div>
  3667. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  3668. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  3669. </div>
  3670. <span slot="footer" class="dialog-footer">
  3671. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  3672. <el-button type="primary" @click="addPreTime">确定</el-button>
  3673. </span>
  3674. </el-dialog>
  3675. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3676. class="dialog_diy">
  3677. <div>
  3678. <div style="
  3679. width: 100%;
  3680. display: flex;
  3681. flex-direction: row;
  3682. flex-wrap: nowrap;
  3683. align-content: center;
  3684. align-items: center;
  3685. justify-content: space-between;
  3686. ">
  3687. <div style="
  3688. display: flex;
  3689. flex-flow: row nowrap;
  3690. align-items: flex-start;
  3691. width: 100%;
  3692. flex-direction: column;
  3693. flex-wrap: nowrap;
  3694. position: relative;
  3695. ">
  3696. <div class="e_box">
  3697. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  3698. <div class="e_card_picture">
  3699. <img src="../../assets/e_picture.png" />
  3700. </div>
  3701. <div class="e_card_name">
  3702. <span>{{ item.title }}</span>
  3703. </div>
  3704. <div class="e_card_btn">
  3705. <span @click="checkEva(item.id, 2)">导入</span>
  3706. </div>
  3707. </div> -->
  3708. <!-- <div class="addEva" @click="openT">
  3709. <img src="../../assets/icon/addEva.png" alt="" />
  3710. </div> -->
  3711. <div style="display:flex;justify-content: flex-end;margin-bottom: 10px;"><el-button @click="openT" type="primary" size="small">添加目标</el-button></div>
  3712. <el-table
  3713. v-if="evaJuri.length"
  3714. ref="table"
  3715. :data="evaJuri"
  3716. border
  3717. :fit="true"
  3718. style="width: 100%"
  3719. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  3720. :row-class-name="tableRowClassName"
  3721. >
  3722. <el-table-column
  3723. label="目标名称"
  3724. min-width="15"
  3725. align="center"
  3726. prop="title"
  3727. >
  3728. </el-table-column>
  3729. <el-table-column
  3730. prop="username"
  3731. label="负责人"
  3732. min-width="15"
  3733. align="center"
  3734. >
  3735. </el-table-column>
  3736. <el-table-column label="操作" width="250px">
  3737. <template slot-scope="scope">
  3738. <div class="btnBox">
  3739. <el-button
  3740. type="primary"
  3741. size="small"
  3742. @click="checkEva(scope.row.id, 2)"
  3743. >导入</el-button
  3744. >
  3745. </div>
  3746. </template>
  3747. </el-table-column>
  3748. </el-table>
  3749. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  3750. 暂无数据
  3751. </div>
  3752. </div>
  3753. </div>
  3754. </div>
  3755. </div>
  3756. <span slot="footer" class="dialog-footer">
  3757. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  3758. </span>
  3759. </el-dialog>
  3760. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  3761. :before-close="handleClose" class="dialog_diy">
  3762. <div class="groupBox">
  3763. <div v-if="groupJson.group" class="groupContent">
  3764. <div class="groupTitle">请设置小组数量及名称</div>
  3765. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  3766. <span class="groupn">第{{ index + 1 }}组名称:</span>
  3767. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3768. <div class="groupBtn">
  3769. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  3770. 添加</el-button>
  3771. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3772. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  3773. </div>
  3774. </div>
  3775. </div>
  3776. <div class="groupContent">
  3777. <div class="groupTitle">请设置每组人数</div>
  3778. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3779. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3780. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  3781. @change="numberPan"></el-input>
  3782. </div>
  3783. </div>
  3784. <span slot="footer" class="dialog-footer">
  3785. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3786. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3787. </span>
  3788. </el-dialog>
  3789. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  3790. :before-close="handleClose" class="dialog_diy">
  3791. <div style="
  3792. width: 100%;
  3793. display: flex;
  3794. flex-direction: row;
  3795. flex-wrap: nowrap;
  3796. align-items: center;
  3797. justify-content: center;
  3798. ">
  3799. <div style="min-width: fit-content;">文件名称:</div>
  3800. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  3801. </div>
  3802. <span slot="footer" class="dialog-footer">
  3803. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  3804. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  3805. </span>
  3806. </el-dialog>
  3807. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px"
  3808. :before-close="(done) => { closePan(69) }" class="dialog_diy fullStyle fullStyle1">
  3809. <englishRight :englishList="englishList" :oid="oid" ref="engJson" @setJson="addEnglish"></englishRight>
  3810. <span slot="footer" class="dialog-footer">
  3811. <el-button @click="englishDialogVisible = false">取 消</el-button>
  3812. <el-button type="primary" @click="addEnglish">确 定</el-button>
  3813. </span>
  3814. </el-dialog>
  3815. <el-dialog title="选择课程模板" :visible.sync="templateDialog" :append-to-body="true" width="630px"
  3816. :before-close="handleClose" class="dialog_diy">
  3817. <div class="template_box">
  3818. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkctJson(aa)" :class="{wordTeacherA:ctJson.id == aa.id}">
  3819. <div class="wordPic">
  3820. <img src="../../assets/icon/new/course_template.png" alt />
  3821. </div>
  3822. <el-tooltip effect="dark" :content="aa.title" placement="top">
  3823. <div style="
  3824. margin-top: 10px;
  3825. line-height: 19px;
  3826. overflow: hidden;
  3827. text-overflow: ellipsis;
  3828. white-space: nowrap;
  3829. padding: 0 10px;
  3830. box-sizing: border-box;
  3831. width: 100%;
  3832. ">
  3833. {{ aa.title }}
  3834. </div>
  3835. </el-tooltip>
  3836. </div>
  3837. <div class="wordTeacher" @click="checkctJson({id: 1})" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'" :class="{wordTeacherA:ctJson.id == 1}">
  3838. <div class="wordPic">
  3839. <img src="../../assets/icon/new/course_template.png" alt />
  3840. </div>
  3841. <div style="
  3842. margin-top: 10px;
  3843. line-height: 19px;
  3844. overflow: hidden;
  3845. text-overflow: ellipsis;
  3846. white-space: nowrap;
  3847. padding: 0 20px;
  3848. ">
  3849. 简易模板
  3850. </div>
  3851. </div>
  3852. <div class="wordTeacher" @click="checkctJson({id: 2})" v-if="isPasteStage" :class="{wordTeacherA:ctJson.id == 2}">
  3853. <div class="wordPic">
  3854. <img src="../../assets/icon/new/course_template.png" alt />
  3855. </div>
  3856. <div style="
  3857. margin-top: 10px;
  3858. line-height: 19px;
  3859. overflow: hidden;
  3860. text-overflow: ellipsis;
  3861. white-space: nowrap;
  3862. padding: 0 20px;
  3863. ">
  3864. 智能粘贴模式
  3865. </div>
  3866. </div>
  3867. </div>
  3868. <span slot="footer" class="dialog-footer">
  3869. <el-button @click="templateDialog = false">取 消</el-button>
  3870. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  3871. </span>
  3872. </el-dialog>
  3873. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  3874. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  3875. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  3876. <div class="change_stageBox">
  3877. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  3878. <div class="nt_taskBox">
  3879. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  3880. <div class="nt_taskName">
  3881. <el-tooltip effect="light" :content="t.dyName" placement="top">
  3882. <span>{{ t.dyName }}</span>
  3883. </el-tooltip>
  3884. </div>
  3885. </div>
  3886. <div class="moveBtn" v-if="unitJson3.length > 1">
  3887. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)">
  3888. </div>
  3889. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  3890. </div>
  3891. </div>
  3892. </div>
  3893. <span slot="footer" class="dialog-footer">
  3894. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  3895. <el-button type="primary" @click="updateChange">确定</el-button>
  3896. </span>
  3897. </el-dialog>
  3898. <evaBox :oid='oid' :org="org" :dialogVisibleEva.sync="evaBoxDialog" @updateEvaJson="updateEvaJson"></evaBox>
  3899. <EnglishVoice :oid='oid' :org="org" :EnglishVoiceDialog.sync="EnglishVoiceDialog" :englishVoiceJson="englishVoiceJson" @setEnglishVoiceJson="setEnglishVoiceJson"></EnglishVoice>
  3900. </div>
  3901. </template>
  3902. <script>
  3903. import "../../common/aws-sdk-2.235.1.min.js";
  3904. import { tools as toolsData } from "../../common/tools.js";
  3905. // import "../../common/aws-sdk-2.99.0.min.js";
  3906. import $ from "jquery";
  3907. import EditorBar from "../../components/tools/wangEnduit";
  3908. import Table from "../../components/tools/table";
  3909. import Mind from "../tools/jsmind2";
  3910. import Time from "../tools/time.vue";
  3911. import Sunburst from "../tools/sunburst";
  3912. import SeeBoard from "../tools/seeBoard";
  3913. import weilaiData from "./components/weilai.js";
  3914. import sourceDialog from "./teacherSource/dialog.vue";
  3915. import interVideo from "./interVideo/index.vue";
  3916. import englishRight from "./components/englishRight.vue";
  3917. import evaBox from './evaBox/index.vue'
  3918. import EnglishVoice from './EnglishVoice/index.vue'
  3919. export default {
  3920. components: {
  3921. EditorBar,
  3922. Mind,
  3923. Time,
  3924. Sunburst,
  3925. SeeBoard,
  3926. Table,
  3927. sourceDialog,
  3928. interVideo,
  3929. englishRight,
  3930. evaBox,
  3931. EnglishVoice
  3932. },
  3933. data() {
  3934. return {
  3935. checkAll: false,
  3936. checkAll2: false,
  3937. chooseType: 1,
  3938. checkedCities: [],
  3939. isIndeterminate: true,
  3940. isIndeterminate2: true,
  3941. isSysPic: false,
  3942. isSysPic2: false,
  3943. steps: 1,
  3944. nbOrder: 0,
  3945. courseId: "",
  3946. chapToolsType: 0,
  3947. chapTools: [
  3948. {
  3949. tools: [],
  3950. toolDetail: "",
  3951. },
  3952. ],
  3953. line: "",
  3954. lineTitle: "",
  3955. sysPic: [],
  3956. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3957. sentenceList2: [],
  3958. isPushTitleList: [],
  3959. lineCount: 0,
  3960. lineType: 0,
  3961. chapCount: 0,
  3962. courseName: "",
  3963. isTeacherSee: false,
  3964. courseText: "",
  3965. preTime: 0,
  3966. formLabelWidth: "100px",
  3967. choosePicVisible: false,
  3968. sysPicVisible: false,
  3969. sysPicVisible2: false,
  3970. uploadLoading1: false,
  3971. noneBtnImg: false,
  3972. updateBoolean2: false,
  3973. unitIndex: 0,
  3974. taskCount: 0,
  3975. dialogVisible: false,
  3976. dialogVisible1: false,
  3977. dialogVisible2: false,
  3978. dialogVisible3: false,
  3979. dialogVisible4: false,
  3980. dialogVisible5: false,
  3981. dialogVisible6: false,
  3982. dialogVisible7: false,
  3983. dialogVisible8: false,
  3984. dialogVisible9: false,
  3985. dialogVisibleClass: false,
  3986. dialogVisibleMember: false,
  3987. dialogVisibleMp3: false,
  3988. dialogVisibleSelect: false,
  3989. dialogVisibleSentence: false,
  3990. dialogVisibleRate: false,
  3991. dialogVisibleChoice: false,
  3992. dialogVisiblemb: false,
  3993. dialogVisibleInvite: false,
  3994. dialogVisibleSource: false,
  3995. dialogVisibleVideo: false,
  3996. dialogVisibleStageChange: false,
  3997. dialogVisibleupdataVideoT: false,
  3998. englishDialogVisible: false,
  3999. templateDialog: false,
  4000. ctJson: {},
  4001. isClickColor: 1,
  4002. toolIndexType: "",
  4003. publicTool: 0,
  4004. searchPeople: "",
  4005. searchTN: "",
  4006. userid: this.$route.query.userid,
  4007. oid: this.$route.query.oid,
  4008. org: this.$route.query.org,
  4009. role: this.$route.query.role,
  4010. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  4011. dialogVisibleTable: false,
  4012. dialogVisibleWord: false,
  4013. tableJson: { text: "" },
  4014. wordJson: { text: "" },
  4015. dialogVisibleMoreUpload: false,
  4016. dialogVisiblePreTime: false,
  4017. uploadJson: [],
  4018. classJuri: [],
  4019. gradeList: [],
  4020. cover: [], //课程封面
  4021. myWord: [],
  4022. evaJuri: [],
  4023. evalua: "",
  4024. targetArray: [],
  4025. eTitle: "",
  4026. eJson: {},
  4027. fid: "", //一级
  4028. sid: "", //二级
  4029. tid: "", //二级
  4030. typeMode: 1,
  4031. eJSONNum: 0,
  4032. data: {
  4033. meta: {
  4034. name: "example",
  4035. author: "dd@163.com",
  4036. version: "0.2",
  4037. },
  4038. format: "node_array",
  4039. data: [{ id: "root", isroot: true, topic: "" }],
  4040. },
  4041. askJson: {
  4042. askCount: 1,
  4043. askTitle: "",
  4044. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4045. },
  4046. askJson2: {},
  4047. testJson: {},
  4048. testJson2: {},
  4049. selectJson: {},
  4050. selectJson2: {},
  4051. rateJson: [],
  4052. unitJson2: [],
  4053. unitJson3: [],
  4054. unitJson: [
  4055. {
  4056. dyName: "", //单元标题
  4057. chapterInfo: [
  4058. {
  4059. isread: false,
  4060. chapterid: this.guid(),
  4061. title: "",
  4062. courseName: "",
  4063. taskJson: [
  4064. {
  4065. task: "",
  4066. taskDetail: "",
  4067. chapterData: [],
  4068. toolText: "",
  4069. toolChoose: [
  4070. {
  4071. tool: [],
  4072. toolDetail: "",
  4073. toolType: 0,
  4074. askCount: 1,
  4075. askTitle: "",
  4076. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4077. },
  4078. ],
  4079. isShowTools: false,
  4080. askCount: 1,
  4081. isFold: 1,
  4082. askTitle: "",
  4083. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4084. checkJson: [{ checkCount: [], checkPerent: [] }],
  4085. homeworkList: [],
  4086. },
  4087. ],
  4088. itemCount: 1,
  4089. fileList1: [],
  4090. video: [],
  4091. testData: [],
  4092. pData: [],
  4093. templateArray: [],
  4094. },
  4095. ],
  4096. },
  4097. ],
  4098. templateArray: [],
  4099. studentJuri: [],
  4100. teacherJuri: [],
  4101. checkboxList: [],
  4102. checkboxList2: [],
  4103. checkboxList3: [],
  4104. classSearch: "",
  4105. gradeId: "",
  4106. number: "",
  4107. tTitle: "",
  4108. tdetail: "",
  4109. templateC: {},
  4110. AttText: {},
  4111. AttTextType: 0,
  4112. AttTextIndex: 0,
  4113. cTemplate: "",
  4114. CourseType: [],
  4115. CourseType2: [],
  4116. CourseTypeJson: {},
  4117. courseTypeId: [],
  4118. courseTypeSon: [],
  4119. clearArray: [],
  4120. pTypeCheck: [],
  4121. pTypeCheckName: [],
  4122. loading: false,
  4123. toolType: 0,
  4124. inputShow: true,
  4125. inputShow2: true,
  4126. toolIndex: 0,
  4127. cidType: 0,
  4128. answerQ: "",
  4129. answerQ2: "",
  4130. grade: [],
  4131. grade2: [],
  4132. courseUserid: "",
  4133. timer: null,
  4134. timer2: null,
  4135. pasteTimer: null,
  4136. checkId: "",
  4137. isDelete: 1,
  4138. addindex: 0,
  4139. selectSteps: 1,
  4140. groupJson: {},
  4141. dialogVisibleGroup: false,
  4142. rightBoxHeight: 0,
  4143. ManAarray: [],
  4144. checkBoolean: false,
  4145. inviteCode: [],
  4146. inviteId: "",
  4147. icode: "",
  4148. easyArray: [2, 4],
  4149. sourceData: {},
  4150. updateSourcePan: false,
  4151. videoJson: {},
  4152. isBtnDisplay: false,
  4153. isStepDisplay: false,
  4154. isPasteStage: false,
  4155. isPasteTask: false,
  4156. isPasteChoice: false,
  4157. imageList: [],
  4158. imageloading: false,
  4159. searchImageValue: "",
  4160. ppage: 1,
  4161. toolsData: toolsData,
  4162. oldIndex: 0,
  4163. dragType:'',
  4164. oldUnitIndex: 0,
  4165. oldData: null,
  4166. newIndex: "",
  4167. englishList:{},
  4168. typeIndex: "",
  4169. courseState: 2,
  4170. taskJSONa: [
  4171. {
  4172. task: "",
  4173. taskDetail: "",
  4174. chapterData: [],
  4175. toolText: "",
  4176. toolChoose: [
  4177. {
  4178. tool: [],
  4179. toolDetail: "",
  4180. toolType: 0,
  4181. askCount: 1,
  4182. askTitle: "",
  4183. askJson: [
  4184. { askstitle: "", askItem: 1, checkList: [] },
  4185. ],
  4186. },
  4187. ],
  4188. isShowTools: false,
  4189. askCount: 1,
  4190. isFold: 1,
  4191. askTitle: "",
  4192. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4193. checkJson: [{ checkCount: [], checkPerent: [] }],
  4194. homeworkList: [],
  4195. },
  4196. ],
  4197. checkUnitIndex: 0,
  4198. isdrag: '',
  4199. evaIndex: '',
  4200. evatIndex: '',
  4201. evaBoxDialog: false,
  4202. EnglishVoiceDialog: false,
  4203. englishVoiceJson:{}
  4204. };
  4205. },
  4206. directives: {
  4207. autoHeight: {
  4208. update(el, binding) {
  4209. const { value } = binding
  4210. if (value && typeof value === 'number') {
  4211. el.style.height = `${value}px`
  4212. } else {
  4213. el.style.height = 'auto'
  4214. }
  4215. },
  4216. componentUpdated(el) {
  4217. el.style.height = `${el.scrollHeight + 5}px`
  4218. },
  4219. },
  4220. },
  4221. computed: {
  4222. // rightBoxHeight: function () {
  4223. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  4224. // },
  4225. offsetLetfPx: function () {
  4226. //addnum可以直接在模板语法里面用,相当于data内的值
  4227. return (
  4228. $(".cru_select")[this.unitIndex] &&
  4229. $(".cru_select")[this.unitIndex].offsetLeft + 5
  4230. );
  4231. },
  4232. getMan2() {
  4233. return function (people) {
  4234. let _people = people;
  4235. let _people2 = "";
  4236. if (this.ManAarray.length) {
  4237. for (var i = 0; i < this.ManAarray.length; i++) {
  4238. if (this.ManAarray[i].userid == people) {
  4239. _people2 = this.ManAarray[i].name;
  4240. break;
  4241. }
  4242. }
  4243. }
  4244. if (people == this.courseUserid) {
  4245. return "";
  4246. }
  4247. return this.ManAarray.length ? _people2 : "";
  4248. };
  4249. },
  4250. getListMan2() {
  4251. return function (list) {
  4252. let _people2 = [];
  4253. if (this.ManAarray.length) {
  4254. for (var j = 0; j < list.length; j++) {
  4255. let people = list[j];
  4256. for (var i = 0; i < this.ManAarray.length; i++) {
  4257. if (this.ManAarray[i].userid == people && people != this.courseUserid) {
  4258. _people2.push(this.ManAarray[i].name);
  4259. break;
  4260. }
  4261. }
  4262. }
  4263. }
  4264. return this.ManAarray.length ? _people2.join("、") : "";
  4265. };
  4266. },
  4267. isInvite() {
  4268. return function (cid) {
  4269. let array = [];
  4270. for (var i = 0; i < this.inviteCode.length; i++) {
  4271. array.push(this.inviteCode[i].cid);
  4272. }
  4273. return array.indexOf(cid) != -1;
  4274. };
  4275. },
  4276. getInviteCodeC() {
  4277. return function (cid) {
  4278. let array = [];
  4279. for (var i = 0; i < this.inviteCode.length; i++) {
  4280. array.push(this.inviteCode[i].cid);
  4281. }
  4282. return this.inviteCode[array.indexOf(cid)].ic;
  4283. };
  4284. },
  4285. getClassC() {
  4286. return function (c) {
  4287. let _c2 = "";
  4288. if (this.grade.length) {
  4289. for (var i = 0; i < this.grade.length; i++) {
  4290. if (this.grade[i].id == c) {
  4291. _c2 = this.grade[i].name;
  4292. break;
  4293. }
  4294. }
  4295. }
  4296. return this.grade.length ? _c2 : "";
  4297. };
  4298. },
  4299. getListClassC() {
  4300. return function (list) {
  4301. let _c2 = [];
  4302. if (this.grade.length) {
  4303. for (var j = 0; j < list.length; j++) {
  4304. let c = list[j]
  4305. for (var i = 0; i < this.grade.length; i++) {
  4306. if (this.grade[i].id == c) {
  4307. _c2.push(this.grade[i].name);
  4308. break;
  4309. }
  4310. }
  4311. }
  4312. }
  4313. return this.grade.length ? _c2.join('、') : "";
  4314. };
  4315. },
  4316. },
  4317. watch: {
  4318. unitIndex(newValue, oldValue) {
  4319. if (this.isDelete == 2) {
  4320. this.isDelete = 1;
  4321. return;
  4322. }
  4323. if (this.cid != "") {
  4324. let _unitIndex = oldValue;
  4325. if (
  4326. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4327. JSON.stringify(this.unitJson[_unitIndex])
  4328. ) {
  4329. this.$refs.rightboxR.scrollTop = 0;
  4330. return;
  4331. }
  4332. let cPan = 1;
  4333. for (
  4334. var j = 0;
  4335. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4336. j++
  4337. ) {
  4338. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4339. j
  4340. ].proVisible = false;
  4341. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4342. j
  4343. ].proVisible2 = false;
  4344. if (
  4345. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4346. .length > 1
  4347. ) {
  4348. for (
  4349. var z = 0;
  4350. z <
  4351. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4352. .length;
  4353. z++
  4354. ) {
  4355. if (
  4356. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4357. .toolChoose[z].tool.length
  4358. ) {
  4359. this.$message.error("请把工具添加完整");
  4360. cPan = 2;
  4361. break;
  4362. }
  4363. }
  4364. }
  4365. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4366. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4367. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4368. (ele) => {
  4369. return ele.value != "";
  4370. }
  4371. );
  4372. }
  4373. }
  4374. if (cPan == 2) {
  4375. this.unitIndex = oldValue;
  4376. return;
  4377. }
  4378. for (var i = 0; i < this.unitJson.length; i++) {
  4379. if (this.addindex != i) {
  4380. delete this.unitJson[i].isUpdate;
  4381. }
  4382. }
  4383. this.$refs.rightboxR.scrollTop = 0;
  4384. this.addindex = -1;
  4385. let params = [
  4386. {
  4387. cid: this.cid,
  4388. chapters: JSON.stringify(this.unitJson),
  4389. uid: this.userid,
  4390. unitIndex: _unitIndex,
  4391. },
  4392. ];
  4393. this.ajax
  4394. .post(this.$store.state.api + "updateWorkNew4", params)
  4395. .then((res) => {
  4396. // this.$message({
  4397. // message: "修改成功",
  4398. // type: "success",
  4399. // });
  4400. // this.courseId = this.cid;
  4401. })
  4402. .catch((err) => {
  4403. this.$message.error("网络不佳");
  4404. console.error(err);
  4405. });
  4406. }
  4407. },
  4408. steps(newValue, old) {
  4409. if (newValue == 4) {
  4410. let cPan = 1;
  4411. for (var i = 0; i < this.unitJson.length; i++) {
  4412. for (
  4413. var j = 0;
  4414. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4415. j++
  4416. ) {
  4417. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4418. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4419. if (
  4420. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4421. ) {
  4422. for (
  4423. var z = 0;
  4424. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4425. z++
  4426. ) {
  4427. if (
  4428. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4429. .length
  4430. ) {
  4431. this.$message.error("请把工具添加完整");
  4432. cPan = 2;
  4433. break;
  4434. }
  4435. }
  4436. }
  4437. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4438. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4439. i
  4440. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4441. return ele.value != "";
  4442. });
  4443. }
  4444. }
  4445. }
  4446. this.inputShow = true;
  4447. if (cPan == 2) {
  4448. this.steps = old;
  4449. return;
  4450. }
  4451. this.goTo(
  4452. "/course?userid=" +
  4453. this.userid +
  4454. "&oid=" +
  4455. this.oid +
  4456. "&org=" +
  4457. this.org +
  4458. "&role=" +
  4459. this.role
  4460. );
  4461. }
  4462. },
  4463. },
  4464. methods: {
  4465. tableRowClassName({ row, rowIndex }) {
  4466. if ((rowIndex + 1) % 2 === 0) {
  4467. return "even_row";
  4468. } else {
  4469. return "";
  4470. }
  4471. },
  4472. openAI() {
  4473. top.postMessage({ tools: "64" }, "*");
  4474. },
  4475. setMan() {
  4476. // let teacherJuri = this.teacherJuri2;
  4477. this.ManAarray = [];
  4478. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  4479. if (_user.indexOf(this.userid) == -1) {
  4480. _user.push(this.userid);
  4481. }
  4482. if (_user.indexOf(this.courseUserid) == -1) {
  4483. _user.push(this.courseUserid);
  4484. }
  4485. let params = {
  4486. uid: _user.join(","),
  4487. };
  4488. this.ajax
  4489. .get(this.$store.state.api + "getAllUserById", params)
  4490. .then((res) => {
  4491. let teacherJuri = res.data[0];
  4492. this.ManAarray = teacherJuri;
  4493. })
  4494. .catch((err) => {
  4495. console.error(err);
  4496. });
  4497. },
  4498. previewImg(url) {
  4499. this.$hevueImgPreview(url);
  4500. },
  4501. btnDisplay(bool) {
  4502. this.isBtnDisplay = bool
  4503. },
  4504. stepDisplay(bool) {
  4505. this.isStepDisplay = bool
  4506. },
  4507. scrollChange() {
  4508. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  4509. },
  4510. addHw(e) {
  4511. var el = e.currentTarget;
  4512. el.getElementsByTagName("input")[0].click();
  4513. },
  4514. change(val) {
  4515. if (this.dialogVisible1) {
  4516. this.tdetail = val
  4517. } else if (this.dialogVisible6) {
  4518. this.AttText.text = val
  4519. } else if (this.dialogVisible2) {
  4520. this.cTemplate = val
  4521. } else if (this.dialogVisibleTable) {
  4522. this.tableJson.text = val
  4523. }
  4524. this.$forceUpdate();
  4525. console.log(val);
  4526. },
  4527. change2(val) {
  4528. console.log(val);
  4529. this.$forceUpdate();
  4530. },
  4531. handleClose(done) {
  4532. done();
  4533. },
  4534. closePan(tool) {
  4535. if (tool == 15) {
  4536. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  4537. this.dialogVisible8 = false
  4538. } else {
  4539. this.closeConfirm(tool);
  4540. }
  4541. } else if (tool == 4) {
  4542. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  4543. this.dialogVisible5 = false
  4544. } else {
  4545. this.closeConfirm(tool);
  4546. }
  4547. } else if (tool == 45) {
  4548. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  4549. this.dialogVisibleChoice = false
  4550. } else {
  4551. this.closeConfirm(tool);
  4552. }
  4553. } else if (tool == 41) {
  4554. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  4555. this.dialogVisibleSelect = false
  4556. } else {
  4557. this.closeConfirm(tool);
  4558. }
  4559. } else if (tool == 47) {
  4560. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  4561. this.dialogVisibleSentence = false
  4562. } else {
  4563. this.closeConfirm(tool);
  4564. }
  4565. }else if (tool == 69){
  4566. if (JSON.stringify(this.englishList) == JSON.stringify(this.englishList)) {
  4567. this.englishDialogVisible = false
  4568. } else {
  4569. this.closeConfirm(tool);
  4570. }
  4571. }
  4572. },
  4573. closeConfirm(tool) {
  4574. this
  4575. .$confirm("是否保存已编辑内容?", "提示", {
  4576. confirmButtonText: "保存",
  4577. cancelButtonText: "不保存",
  4578. type: "warning",
  4579. })
  4580. .then(() => {
  4581. if (tool == 15) {
  4582. this.addAnswer();
  4583. } else if (tool == 4) {
  4584. this.addAsk();
  4585. } else if (tool == 45) {
  4586. this.addTest();
  4587. } else if (tool == 41) {
  4588. this.addSelectAnswer();
  4589. } else if (tool == 47) {
  4590. this.addSentenceTool();
  4591. }else if(tool == 69){
  4592. this.addEnglish();
  4593. }
  4594. })
  4595. .catch(() => {
  4596. if (tool == 15) {
  4597. this.dialogVisible8 = false;
  4598. } else if (tool == 4) {
  4599. this.dialogVisible5 = false;
  4600. } else if (tool == 45) {
  4601. this.dialogVisibleChoice = false;
  4602. } else if (tool == 41) {
  4603. this.dialogVisibleSelect = false;
  4604. } else if (tool == 47) {
  4605. this.dialogVisibleSentence = false;
  4606. } else if (tool == 69) {
  4607. this.englishDialogVisible = false;
  4608. }
  4609. });
  4610. },
  4611. addEnglish(jsonType){
  4612. this.englishList.engTitle = this.$refs['engJson'].engList.engTitle;
  4613. this.englishList.englishText = this.$refs['engJson'].engList.englishText;
  4614. this.englishList.textJson = this.$refs['engJson'].engList.textJson;
  4615. if(this.englishList.engTitle == "" || this.englishList.englishText == ""){
  4616. this.$message.error("请将内容填写完整!");
  4617. return;
  4618. }
  4619. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4620. this.taskCount
  4621. ].toolChoose[this.toolIndex].englishList = this.englishList;
  4622. this.englishList = {};
  4623. if(jsonType && jsonType == 1){
  4624. this.englishDialogVisible = true;
  4625. }else{
  4626. this.englishDialogVisible = false;
  4627. }
  4628. if (
  4629. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  4630. .toolChoose[this.toolIndex].tool != 69
  4631. ) {
  4632. this.addTools(69, this.taskCount, this.toolIndex);
  4633. }
  4634. },
  4635. imgChange2(i, j) {
  4636. var _tmp = this.testJson.testJson[i].checkList[j];
  4637. this.noneBtnImg = _tmp.length >= 1;
  4638. },
  4639. imgChange3(i) {
  4640. var _tmp = this.testJson.testJson[i];
  4641. this.noneBtnImg = _tmp.length >= 1;
  4642. },
  4643. imgChange1(file, fileList, type, itemTaskIndex) {
  4644. if (type == 1) {
  4645. var _tmp = this.cover;
  4646. } else if (
  4647. type == 2 ||
  4648. type == 3 ||
  4649. type == 6 ||
  4650. type == 7 ||
  4651. type == 8
  4652. ) {
  4653. var _tmp =
  4654. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4655. .chapterData;
  4656. } else if (type == 4) {
  4657. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  4658. } else {
  4659. var _tmp =
  4660. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4661. .homeworkList;
  4662. }
  4663. this.noneBtnImg = _tmp.length >= 1;
  4664. },
  4665. goTo(path) {
  4666. this.$router.push(path);
  4667. },
  4668. guid() {
  4669. var _num,
  4670. i,
  4671. _guid = "";
  4672. for (i = 0; i < 32; i++) {
  4673. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4674. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4675. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4676. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4677. _guid += "-";
  4678. }
  4679. }
  4680. return _guid;
  4681. },
  4682. retrunCourse() {
  4683. this
  4684. .$confirm("是否保存已编辑内容?", "提示", {
  4685. confirmButtonText: "保存",
  4686. cancelButtonText: "不保存",
  4687. distinguishCancelAndClose: true,
  4688. type: "warning",
  4689. })
  4690. .then(() => {
  4691. if (this.cid == "" || this.cid == undefined) {
  4692. if (this.courseName == "") {
  4693. this.$message.error("请补充填写课程名称");
  4694. return;
  4695. } else {
  4696. this.addWork();
  4697. }
  4698. this.steps = 4
  4699. } else {
  4700. if (this.courseName == "") {
  4701. this.$message.error("请补充填写课程名称");
  4702. return;
  4703. } else {
  4704. if (this.userid != this.courseUserid && this.role != "1") {
  4705. this.updateWork2();
  4706. } else {
  4707. this.updateWork();
  4708. }
  4709. this.steps = 4
  4710. }
  4711. }
  4712. })
  4713. .catch((v) => {
  4714. console.log(v)
  4715. if(v == "cancel"){
  4716. this.goTo(
  4717. "/course?userid=" +
  4718. this.userid +
  4719. "&oid=" +
  4720. this.oid +
  4721. "&org=" +
  4722. this.org +
  4723. "&role=" +
  4724. this.role
  4725. );
  4726. }
  4727. });
  4728. },
  4729. lastSteps() {
  4730. if (this.steps == 4) {
  4731. this.goTo(
  4732. "/course?userid=" +
  4733. this.userid +
  4734. "&oid=" +
  4735. this.oid +
  4736. "&org=" +
  4737. this.org +
  4738. "&role=" +
  4739. this.role
  4740. );
  4741. } else {
  4742. // if (this.cidType == 0) {
  4743. // this.steps--;
  4744. // if (this.steps == 1) {
  4745. // setTimeout(() => {
  4746. // this.checkEva(this.checkId);
  4747. // setTimeout(() => {
  4748. // this.checkEva(this.checkId);
  4749. // }, 100);
  4750. // }, 100);
  4751. // }
  4752. // } else {
  4753. if (this.steps == 3) {
  4754. this.steps = 1;
  4755. setTimeout(() => {
  4756. this.checkEva(this.checkId);
  4757. setTimeout(() => {
  4758. this.checkEva(this.checkId);
  4759. }, 100);
  4760. }, 100);
  4761. }
  4762. // }
  4763. }
  4764. },
  4765. navSteps(s) {
  4766. if (this.courseName == "") {
  4767. this.$message.error("请补充填写课程名称");
  4768. return;
  4769. }
  4770. if (this.cidType == 0) {
  4771. if (this.steps == 1) {
  4772. if (this.cid == "" || this.cid == undefined) {
  4773. this.addWork();
  4774. } else {
  4775. if (this.userid != this.courseUserid && this.role != "1") {
  4776. // this.updateWork2();
  4777. } else {
  4778. this.updateWork();
  4779. }
  4780. }
  4781. }
  4782. if (s == 1) {
  4783. this.steps = 1;
  4784. setTimeout(() => {
  4785. this.checkEva(this.checkId);
  4786. setTimeout(() => {
  4787. this.checkEva(this.checkId);
  4788. }, 100);
  4789. }, 100);
  4790. }
  4791. if (s == 2) {
  4792. this.steps = 2;
  4793. }
  4794. if (s == 3) {
  4795. this.cTemplate = this.templateC.content;
  4796. this.dialogVisible2 = false;
  4797. this.steps = 3;
  4798. this.isClickColor = 1
  4799. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4800. this.$forceUpdate();
  4801. setTimeout(() => {
  4802. this.checkEva(this.checkId);
  4803. setTimeout(() => {
  4804. this.checkEva(this.checkId);
  4805. }, 100);
  4806. }, 1000);
  4807. }
  4808. } else {
  4809. if (this.steps == 1) {
  4810. if (this.cid == "" || this.cid == undefined) {
  4811. this.addWork();
  4812. } else {
  4813. if (this.userid != this.courseUserid && this.role != "1") {
  4814. // this.updateWork2();
  4815. } else {
  4816. this.updateWork();
  4817. }
  4818. }
  4819. }
  4820. if (s == 1) {
  4821. this.steps = 1;
  4822. setTimeout(() => {
  4823. this.checkEva(this.checkId);
  4824. setTimeout(() => {
  4825. this.checkEva(this.checkId);
  4826. }, 100);
  4827. }, 100);
  4828. }
  4829. if (s == 3) {
  4830. this.cTemplate = this.templateC.content;
  4831. this.dialogVisible2 = false;
  4832. this.steps = 3;
  4833. this.isClickColor = 1
  4834. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4835. this.$forceUpdate();
  4836. setTimeout(() => {
  4837. this.checkEva(this.checkId);
  4838. setTimeout(() => {
  4839. this.checkEva(this.checkId);
  4840. }, 100);
  4841. }, 1000);
  4842. }
  4843. }
  4844. this.$refs.stepBox.scrollTop = 0;
  4845. },
  4846. nextSteps() {
  4847. // if (this.cidType == 1) {
  4848. if (this.steps == 1) {
  4849. if (this.courseName != "") {
  4850. this.steps = 3;
  4851. this.isClickColor = 1
  4852. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4853. this.$forceUpdate();
  4854. setTimeout(() => {
  4855. this.checkEva(this.checkId);
  4856. setTimeout(() => {
  4857. this.checkEva(this.checkId);
  4858. }, 100);
  4859. }, 1000);
  4860. if (this.cid == "" || this.cid == undefined) {
  4861. this.addWork();
  4862. } else {
  4863. if (this.userid != this.courseUserid && this.role != "1") {
  4864. // this.updateWork2();
  4865. } else {
  4866. this.updateWork();
  4867. }
  4868. }
  4869. } else {
  4870. this.$message.error("请补充填写课程名称");
  4871. return;
  4872. }
  4873. } else if (this.steps == 3) {
  4874. if (this.cid == "" || this.cid == undefined) {
  4875. if (this.courseName == "") {
  4876. this.$message.error("请补充填写课程名称");
  4877. return;
  4878. } else {
  4879. this.addWork();
  4880. this.steps++;
  4881. }
  4882. } else {
  4883. if (this.courseName == "") {
  4884. this.$message.error("请补充填写课程名称");
  4885. return;
  4886. } else {
  4887. if (this.userid != this.courseUserid && this.role != "1") {
  4888. this.updateWork2();
  4889. } else {
  4890. this.updateWork();
  4891. }
  4892. this.steps++;
  4893. }
  4894. }
  4895. }
  4896. // } else {
  4897. // if (this.steps == 1) {
  4898. // if (this.courseName != "") {
  4899. // if (this.cid == "" || this.cid == undefined) {
  4900. // this.addWork();
  4901. // } else {
  4902. // if (this.userid != this.courseUserid && this.role != "1") {
  4903. // // this.updateWork2();
  4904. // } else {
  4905. // this.updateWork();
  4906. // }
  4907. // }
  4908. // this.steps++;
  4909. // } else {
  4910. // this.$message.error("请补充填写课程名称");
  4911. // return;
  4912. // }
  4913. // } else if (this.steps == 2) {
  4914. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  4915. // this.cTemplate = this.templateC.content;
  4916. // }
  4917. // this.dialogVisible2 = false;
  4918. // this.steps++;
  4919. // setTimeout(() => {
  4920. // this.checkEva(this.checkId);
  4921. // setTimeout(() => {
  4922. // this.checkEva(this.checkId);
  4923. // }, 100);
  4924. // }, 1000);
  4925. // } else if (this.steps == 3) {
  4926. // if (this.cid == "" || this.cid == undefined) {
  4927. // if (this.courseName == "") {
  4928. // this.$message.error("请补充填写课程名称");
  4929. // return;
  4930. // } else {
  4931. // this.addWork();
  4932. // this.steps++;
  4933. // }
  4934. // } else {
  4935. // if (this.courseName == "") {
  4936. // this.$message.error("请补充填写课程名称");
  4937. // return;
  4938. // } else {
  4939. // if (this.userid != this.courseUserid && this.role != "1") {
  4940. // this.updateWork2();
  4941. // } else {
  4942. // this.updateWork();
  4943. // }
  4944. // this.steps++;
  4945. // }
  4946. // }
  4947. // }
  4948. // }
  4949. this.$refs.stepBox.scrollTop = 0;
  4950. },
  4951. unitSet(i) {
  4952. if(this.unitIndex == i){
  4953. return;
  4954. }
  4955. this.unitIndex = i;
  4956. this.isClickColor = 1
  4957. // this.$refs.rightboxR.scrollTop = 0;
  4958. this.$refs.unitBox.scrollTop = 0
  4959. },
  4960. panUnitJson(){
  4961. let _unitIndex = this.unitIndex;
  4962. let cPan = 1;
  4963. for (
  4964. var j = 0;
  4965. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4966. j++
  4967. ) {
  4968. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4969. j
  4970. ].proVisible = false;
  4971. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4972. j
  4973. ].proVisible2 = false;
  4974. if (
  4975. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4976. .length > 1
  4977. ) {
  4978. for (
  4979. var z = 0;
  4980. z <
  4981. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4982. .length;
  4983. z++
  4984. ) {
  4985. if (
  4986. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4987. .toolChoose[z].tool.length
  4988. ) {
  4989. this.$message.error("请把工具添加完整");
  4990. cPan = 2;
  4991. break;
  4992. }
  4993. }
  4994. }
  4995. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4996. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4997. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4998. (ele) => {
  4999. return ele.value != "";
  5000. }
  5001. );
  5002. }
  5003. }
  5004. return cPan;
  5005. },
  5006. unitOpen(i){
  5007. if(this.unitJson[i].toolOpen){
  5008. this.unitJson[i].toolOpen = false
  5009. }else {
  5010. this.unitJson[i].toolOpen = true
  5011. }
  5012. this.updateWork()
  5013. this.$forceUpdate()
  5014. },
  5015. unitSet2(i) {
  5016. if(this.panUnitJson() == 2){
  5017. return;
  5018. }
  5019. // if(this.unitJson[i].toolOpen){
  5020. // this.unitJson[i].toolOpen = false
  5021. // this.updateWork()
  5022. // this.$forceUpdate()
  5023. // return
  5024. // }else {
  5025. this.unitJson[i].toolOpen = true
  5026. // }
  5027. this.$forceUpdate()
  5028. if(this.unitIndex == i){
  5029. return;
  5030. }
  5031. this.unitIndex = i;
  5032. this.isClickColor = 1
  5033. // this.$refs.rightboxR.scrollTop = 0;
  5034. this.$refs.unitBox.scrollTop = 0
  5035. },
  5036. updateCourseState(i){
  5037. let params = [
  5038. {
  5039. cid: this.cid,
  5040. state: i,
  5041. },
  5042. ];
  5043. this.ajax
  5044. .post(this.$store.state.api + "updateCourseMode", params)
  5045. .then((res) => {
  5046. this.courseState = i
  5047. })
  5048. .catch((err) => {
  5049. this.$message.error("网络不佳");
  5050. console.error(err);
  5051. });
  5052. },
  5053. time() {
  5054. if (!this.now) {
  5055. this.now = new Date().getTime();
  5056. return true;
  5057. } else {
  5058. let time = new Date().getTime();
  5059. if (time - this.now > 3000) {
  5060. this.now = time;
  5061. return true;
  5062. } else {
  5063. return false;
  5064. }
  5065. }
  5066. },
  5067. deleteUnit(i) {
  5068. var _this = this;
  5069. if(i == 0 && _this.unitJson.length == 1){
  5070. _this
  5071. .$confirm("确定切换成任务模式吗?", "提示", {
  5072. confirmButtonText: "确定",
  5073. cancelButtonText: "取消",
  5074. type: "warning",
  5075. })
  5076. .then(() => {
  5077. _this.unitJson[i].dyName = ''
  5078. _this.updateCourseState(2)
  5079. })
  5080. .catch(() => {
  5081. return;
  5082. });
  5083. }else {
  5084. _this
  5085. .$confirm("确定删除此阶段吗?", "提示", {
  5086. confirmButtonText: "确定",
  5087. cancelButtonText: "取消",
  5088. type: "warning",
  5089. })
  5090. .then(() => {
  5091. _this.isDelete = 2;
  5092. // _this.unitIndex = _this.unitIndex - 1;
  5093. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  5094. // _this.$message.success("删除成功");
  5095. })
  5096. .catch(() => {
  5097. return;
  5098. });
  5099. }
  5100. },
  5101. deleteWork(chapid) {
  5102. let params = [
  5103. {
  5104. cid: this.cid,
  5105. chapters: JSON.stringify(this.unitJson),
  5106. uid: this.userid,
  5107. chapid: chapid,
  5108. },
  5109. ];
  5110. this.ajax
  5111. .post(this.$store.state.api + "deleteWork", params)
  5112. .then((res) => {
  5113. this.$message({
  5114. message: "删除成功",
  5115. type: "success",
  5116. });
  5117. let task = JSON.parse(JSON.stringify(this.unitJson[this.unitIndex].chapterInfo[0].taskJson))
  5118. this.unitJson.splice(this.unitIndex, 1);
  5119. if(this.unitIndex == 0){
  5120. this.unitIndex = 0;
  5121. }else{
  5122. this.unitIndex = this.unitIndex - 1;
  5123. }
  5124. if(JSON.stringify(task) != JSON.stringify(this.taskJSONa)){
  5125. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson, ...task]
  5126. }
  5127. })
  5128. .catch((err) => {
  5129. this.$message.error("网络不佳");
  5130. console.error(err);
  5131. });
  5132. },
  5133. deleteTool(itemTaskIndex, i) {
  5134. var _this = this;
  5135. if (_this.time()) {
  5136. _this
  5137. .$confirm("确定删除此工具吗?", "提示", {
  5138. confirmButtonText: "确定",
  5139. cancelButtonText: "取消",
  5140. type: "warning",
  5141. })
  5142. .then(() => {
  5143. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5144. itemTaskIndex
  5145. ].toolChoose.splice(i, 1);
  5146. _this.$message.success("删除成功");
  5147. })
  5148. .catch(() => {
  5149. return;
  5150. });
  5151. }
  5152. },
  5153. deleteSentence(i) {
  5154. var _this = this;
  5155. _this
  5156. .$confirm("确定删除此题目吗?", "提示", {
  5157. confirmButtonText: "确定",
  5158. cancelButtonText: "取消",
  5159. type: "warning",
  5160. })
  5161. .then(() => {
  5162. _this.sentenceList.splice(i, 1);
  5163. _this.$message.success("删除成功");
  5164. })
  5165. .catch(() => {
  5166. return;
  5167. });
  5168. },
  5169. deleteS(s, i, j) {
  5170. this.sentenceList[i].addSentence.splice(j, 1);
  5171. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  5172. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  5173. this.sentenceList[i].rightAnswer.splice(a, 1);
  5174. }
  5175. },
  5176. openT() {
  5177. top.postMessage({ tools: "25" }, "*");
  5178. },
  5179. deleteTask(i) {
  5180. var _this = this;
  5181. if (_this.time()) {
  5182. _this
  5183. .$confirm(
  5184. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  5185. 1 ==
  5186. i
  5187. ? "确定删除此任务吗?"
  5188. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  5189. "提示",
  5190. {
  5191. confirmButtonText: "确定",
  5192. cancelButtonText: "取消",
  5193. type: "warning",
  5194. }
  5195. )
  5196. .then(() => {
  5197. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  5198. i,
  5199. 1
  5200. );
  5201. _this.$message.success("删除成功");
  5202. })
  5203. .catch(() => {
  5204. return;
  5205. });
  5206. }
  5207. },
  5208. handlePictureCardPreview(file) {
  5209. this.dialogImageUrl = file.url;
  5210. },
  5211. clean(i, c) {
  5212. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  5213. },
  5214. handle_remove1(file, fileList, type) {
  5215. var _tmp = this.cover;
  5216. // for (var i = 0, len = _tmp.length; i < len; i++) {
  5217. // if (_tmp[i].uid == file.uid) {
  5218. // _tmp.splice(i, 1);
  5219. // break;
  5220. // }
  5221. // this.cover = _tmp;
  5222. // }
  5223. this.cover = [];
  5224. this.noneBtnImg = this.cover.length >= 1;
  5225. this.isSysPic = false;
  5226. this.isSysPic2 = false;
  5227. this.$forceUpdate();
  5228. },
  5229. addImg(e) {
  5230. var el = e.currentTarget;
  5231. el.getElementsByTagName("input")[0].click();
  5232. e.target.value = "";
  5233. },
  5234. addChaptersTools(i) {
  5235. this.chapTools = [
  5236. {
  5237. tools: [],
  5238. toolDetail: "",
  5239. },
  5240. ];
  5241. this.chapCount = i;
  5242. this.dialogVisible4 = true;
  5243. },
  5244. isNoFinsh() {
  5245. this.$message.warning("功能正在开发中");
  5246. },
  5247. addAttText(i) {
  5248. this.AttText = {
  5249. title: "",
  5250. text: "",
  5251. };
  5252. this.taskCount = i;
  5253. this.AttTextType = 0;
  5254. this.$forceUpdate();
  5255. this.dialogVisible6 = true;
  5256. setTimeout(() => {
  5257. this.$refs['fuInput'].focus();
  5258. }, 100);
  5259. },
  5260. openLine(i) {
  5261. this.line = "";
  5262. this.lineCount = i;
  5263. this.lineType = 0;
  5264. this.$forceUpdate();
  5265. this.dialogVisible7 = true;
  5266. },
  5267. pasteLine(i) {
  5268. navigator.clipboard
  5269. .readText()
  5270. .then((v) => {
  5271. console.log("获取剪贴板成功:", v);
  5272. const html = v;
  5273. const regex = /src="(.*?)"/g;
  5274. const match = regex.exec(html);
  5275. if (match && match[1]) {
  5276. console.log(match[1]);
  5277. this.$message.success("粘贴成功");
  5278. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5279. i
  5280. ].chapterData.push({
  5281. name: "链接",
  5282. title: "嵌入代码",
  5283. url: match[1],
  5284. type: 8,
  5285. });
  5286. } else {
  5287. // console.log("未找到包含 src 属性的 iframe");
  5288. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  5289. }
  5290. })
  5291. .catch((v) => {
  5292. console.log("获取剪贴板失败: ", v);
  5293. });
  5294. },
  5295. openSource(i) {
  5296. this.lineCount = i;
  5297. this.sourceData = {};
  5298. this.dialogVisibleSource = true;
  5299. this.updateSourcePan = false;
  5300. },
  5301. addSource() {
  5302. if (!Object.keys(this.sourceData).length) {
  5303. this.$message.error("请选择要上传的资源");
  5304. return;
  5305. }
  5306. let keys = Object.keys(this.sourceData);
  5307. for (var i = 0; i < keys.length; i++) {
  5308. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5309. this.lineCount
  5310. ].chapterData.push({
  5311. name: "链接",
  5312. title: this.sourceData[keys[i]].name,
  5313. url: this.sourceData[keys[i]].url,
  5314. type: 14,
  5315. id: keys[i]
  5316. });
  5317. }
  5318. this.$forceUpdate();
  5319. this.dialogVisibleSource = false;
  5320. },
  5321. updateSource() {
  5322. if (!Object.keys(this.sourceData).length) {
  5323. this.$message.error("请选择要上传的资源");
  5324. return;
  5325. }
  5326. let keys = Object.keys(this.sourceData);
  5327. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5328. this.taskCount
  5329. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  5330. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5331. this.taskCount
  5332. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  5333. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5334. this.taskCount
  5335. ].chapterData[this.lineCount].id = keys[0];
  5336. this.updateSourcePan = false;
  5337. this.$forceUpdate();
  5338. this.dialogVisibleSource = false;
  5339. },
  5340. deleteM(i, j) {
  5341. this.testJson.testJson[i].timuList.splice(j, 1);
  5342. },
  5343. beforeUploadTiMu(event, i) {
  5344. const loading = this.openLoading();
  5345. var file = event.target.files[0];
  5346. var credentials = {
  5347. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5348. secretAccessKey: "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",
  5349. }; //秘钥形式的登录上传
  5350. window.AWS.config.update(credentials);
  5351. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5352. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5353. var _this = this;
  5354. if (file) {
  5355. var params = {
  5356. Key:
  5357. file.name.split(".")[0] +
  5358. new Date().getTime() +
  5359. "." +
  5360. file.name.split(".")[file.name.split(".").length - 1],
  5361. ContentType: file.type,
  5362. Body: file,
  5363. "Access-Control-Allow-Credentials": "*",
  5364. ACL: "public-read",
  5365. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5366. var options = {
  5367. partSize: 2048 * 1024 * 1024,
  5368. queueSize: 2,
  5369. leavePartsOnError: true,
  5370. };
  5371. bucket
  5372. .upload(params, options)
  5373. .on("httpUploadProgress", function (evt) {
  5374. //这里可以写进度条
  5375. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5376. })
  5377. .send(function (err, data) {
  5378. loading.close();
  5379. if (err) {
  5380. _this.$message.error("上传失败");
  5381. } else {
  5382. if (_this.testJson.testJson[i].timuList) {
  5383. _this.testJson.testJson[i].timuList.push({
  5384. src: data.Location,
  5385. });
  5386. } else {
  5387. _this.testJson.testJson[i].timuList = [];
  5388. _this.testJson.testJson[i].timuList.push({
  5389. src: data.Location,
  5390. });
  5391. }
  5392. _this.imgChange3(i);
  5393. _this.$forceUpdate();
  5394. }
  5395. });
  5396. }
  5397. },
  5398. beforeUploadTi(event, i, j) {
  5399. const loading = this.openLoading();
  5400. var file = event.target.files[0];
  5401. var credentials = {
  5402. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5403. secretAccessKey: "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",
  5404. }; //秘钥形式的登录上传
  5405. window.AWS.config.update(credentials);
  5406. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5407. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5408. var _this = this;
  5409. if (file) {
  5410. var params = {
  5411. Key:
  5412. file.name.split(".")[0] +
  5413. new Date().getTime() +
  5414. "." +
  5415. file.name.split(".")[file.name.split(".").length - 1],
  5416. ContentType: file.type,
  5417. Body: file,
  5418. "Access-Control-Allow-Credentials": "*",
  5419. ACL: "public-read",
  5420. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5421. var options = {
  5422. partSize: 2048 * 1024 * 1024,
  5423. queueSize: 2,
  5424. leavePartsOnError: true,
  5425. };
  5426. bucket
  5427. .upload(params, options)
  5428. .on("httpUploadProgress", function (evt) {
  5429. //这里可以写进度条
  5430. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5431. })
  5432. .send(function (err, data) {
  5433. loading.close();
  5434. if (err) {
  5435. _this.$message.error("上传失败");
  5436. } else {
  5437. _this.testJson.testJson[i].checkList[j] = {};
  5438. _this.testJson.testJson[i].checkList[j].src = data.Location;
  5439. _this.testJson.testJson[i].checkList[j].imgType = 1;
  5440. _this.imgChange2(i, j);
  5441. _this.$forceUpdate();
  5442. }
  5443. });
  5444. }
  5445. },
  5446. beforeUpload1(event, type) {
  5447. // const loading = this.openLoading();
  5448. var file = event.target.files[0];
  5449. var credentials = {
  5450. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5451. secretAccessKey: "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",
  5452. }; //秘钥形式的登录上传
  5453. window.AWS.config.update(credentials);
  5454. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5455. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5456. var _this = this;
  5457. if (file) {
  5458. var params = {
  5459. Key:
  5460. file.name.split(".")[0] +
  5461. new Date().getTime() +
  5462. "." +
  5463. file.name.split(".")[file.name.split(".").length - 1],
  5464. ContentType: file.type,
  5465. Body: file,
  5466. "Access-Control-Allow-Credentials": "*",
  5467. ACL: "public-read",
  5468. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5469. var options = {
  5470. partSize: 2048 * 1024 * 1024,
  5471. queueSize: 2,
  5472. leavePartsOnError: true,
  5473. };
  5474. bucket
  5475. .upload(params, options)
  5476. .on("httpUploadProgress", function (evt) {
  5477. //这里可以写进度条
  5478. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5479. })
  5480. .send(function (err, data) {
  5481. // loading.close();
  5482. if (err) {
  5483. // var a = _this.$refs.upload1.uploadFiles;
  5484. // a.splice(a.length - 1, a.length);
  5485. _this.$message.error("上传失败");
  5486. } else {
  5487. // _this.cover.push({
  5488. // name: file.name,
  5489. // url: data.Location,
  5490. // uid: file.uid,
  5491. // });
  5492. _this.cover = [{
  5493. name: file.name,
  5494. url: data.Location,
  5495. uid: file.uid,
  5496. }];
  5497. _this.imgChange1(null, null, 1, null);
  5498. _this.choosePicVisible = false;
  5499. console.log(data.Location);
  5500. }
  5501. });
  5502. }
  5503. },
  5504. beforeUploadSelect(event, type) {
  5505. // const loading = this.openLoading();
  5506. var file = event.target.files[0];
  5507. var credentials = {
  5508. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5509. secretAccessKey: "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",
  5510. }; //秘钥形式的登录上传
  5511. window.AWS.config.update(credentials);
  5512. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5513. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5514. var _this = this;
  5515. if (file) {
  5516. var params = {
  5517. Key:
  5518. file.name.split(".")[0] +
  5519. new Date().getTime() +
  5520. "." +
  5521. file.name.split(".")[file.name.split(".").length - 1],
  5522. ContentType: file.type,
  5523. Body: file,
  5524. "Access-Control-Allow-Credentials": "*",
  5525. ACL: "public-read",
  5526. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5527. var options = {
  5528. partSize: 2048 * 1024 * 1024,
  5529. queueSize: 2,
  5530. leavePartsOnError: true,
  5531. };
  5532. bucket
  5533. .upload(params, options)
  5534. .on("httpUploadProgress", function (evt) {
  5535. //这里可以写进度条
  5536. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5537. })
  5538. .send(function (err, data) {
  5539. // loading.close();
  5540. if (err) {
  5541. _this.$message.error("上传失败");
  5542. } else {
  5543. _this.selectJson.url = data.Location;
  5544. console.log(data.Location);
  5545. }
  5546. });
  5547. }
  5548. },
  5549. chooseSysPic(p) {
  5550. this.cover = []
  5551. setTimeout(() => {
  5552. this.cover[0] = {
  5553. name: "系统图片.png",
  5554. url: p,
  5555. };
  5556. this.imgChange1(null, null, 1, null);
  5557. this.$forceUpdate();
  5558. }, 0);
  5559. this.isSysPic = true;
  5560. this.isSysPic2 = false;
  5561. this.sysPicVisible = false;
  5562. this.$forceUpdate();
  5563. },
  5564. chooseSysPic2(p) {
  5565. this.cover = []
  5566. setTimeout(() => {
  5567. this.cover[0] = {
  5568. name: "网络图片.png",
  5569. url: p,
  5570. };
  5571. this.imgChange1(null, null, 1, null);
  5572. this.$forceUpdate();
  5573. }, 0);
  5574. this.isSysPic2 = true;
  5575. this.isSysPic = false;
  5576. this.sysPicVisible2 = false;
  5577. this.$forceUpdate();
  5578. },
  5579. beforeUpload(data) {
  5580. this.$refs.upload1.uploadFiles;
  5581. this.uploadLoading1 = true;
  5582. var file = data.file;
  5583. var credentials = {
  5584. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5585. secretAccessKey: "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",
  5586. }; //秘钥形式的登录上传
  5587. window.AWS.config.update(credentials);
  5588. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5589. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5590. var _this = this;
  5591. if (file) {
  5592. var params = {
  5593. Key:
  5594. file.name.split(".")[0] +
  5595. new Date().getTime() +
  5596. "." +
  5597. file.name.split(".")[file.name.split(".").length - 1],
  5598. ContentType: file.type,
  5599. Body: file,
  5600. "Access-Control-Allow-Credentials": "*",
  5601. ACL: "public-read",
  5602. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5603. var options = {
  5604. partSize: 2048 * 1024 * 1024,
  5605. queueSize: 2,
  5606. leavePartsOnError: true,
  5607. };
  5608. bucket
  5609. .upload(params, options)
  5610. .on("httpUploadProgress", function (evt) {
  5611. //这里可以写进度条
  5612. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5613. })
  5614. .send(function (err, data) {
  5615. _this.uploadLoading1 = false;
  5616. if (err) {
  5617. // var a = _this.$refs.upload1.uploadFiles;
  5618. // a.splice(a.length - 1, a.length);
  5619. _this.$message.error("上传失败");
  5620. } else {
  5621. //上传成功处理
  5622. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5623. name: file.name,
  5624. url: data.Location,
  5625. uid: file.uid,
  5626. });
  5627. _this.imgChange();
  5628. console.log(data.Location);
  5629. }
  5630. });
  5631. }
  5632. },
  5633. onExceed() {
  5634. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  5635. },
  5636. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5637. // const loading = this.openLoading();
  5638. var file = event.target.files[0];
  5639. var credentials = {
  5640. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5641. secretAccessKey: "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",
  5642. }; //秘钥形式的登录上传
  5643. window.AWS.config.update(credentials);
  5644. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5645. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5646. var _this = this;
  5647. if (type == 3) {
  5648. var b = [
  5649. "DOC",
  5650. "DOCX",
  5651. "DOCM",
  5652. "DOTM",
  5653. "DOTX",
  5654. "PPTX",
  5655. "PPSX",
  5656. "PPT",
  5657. "PPS",
  5658. "PPTM",
  5659. "POTM",
  5660. "PPAM",
  5661. "POTX",
  5662. "PPSM",
  5663. ];
  5664. if (
  5665. b.indexOf(
  5666. file.name
  5667. .split(".")
  5668. [file.name.split(".").length - 1].toLocaleUpperCase()
  5669. ) != -1
  5670. ) {
  5671. if (file.size / 1024 / 1024 > 80) {
  5672. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5673. this.inputShow = true;
  5674. // var a = _this.$refs.upload1.uploadFiles;
  5675. // a.splice(a.length - 1, a.length);
  5676. // loading.close();
  5677. return;
  5678. }
  5679. } else if (
  5680. file.name
  5681. .split(".")
  5682. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5683. ) {
  5684. if (file.size / 1024 / 1024 > 80) {
  5685. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5686. this.inputShow = true;
  5687. // var a = _this.$refs.upload1.uploadFiles;
  5688. // a.splice(a.length - 1, a.length);
  5689. // loading.close();
  5690. return;
  5691. }
  5692. }
  5693. }
  5694. this.inputShow = false;
  5695. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5696. itemTaskIndex
  5697. ].progress = 0;
  5698. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5699. itemTaskIndex
  5700. ].proVisible = true;
  5701. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5702. itemTaskIndex
  5703. ].isFinishSize = 0;
  5704. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5705. itemTaskIndex
  5706. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5707. _this.$forceUpdate();
  5708. if (file) {
  5709. var params = {
  5710. Key:
  5711. file.name.split(".")[0] +
  5712. new Date().getTime() +
  5713. "." +
  5714. file.name.split(".")[file.name.split(".").length - 1],
  5715. ContentType: file.type,
  5716. Body: file,
  5717. "Access-Control-Allow-Credentials": "*",
  5718. ACL: "public-read",
  5719. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5720. var options = {
  5721. partSize: 2048 * 1024 * 1024,
  5722. queueSize: 2,
  5723. leavePartsOnError: true,
  5724. };
  5725. bucket
  5726. .upload(params, options)
  5727. .on("httpUploadProgress", function (evt) {
  5728. //这里可以写进度条
  5729. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5730. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5731. itemTaskIndex
  5732. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5733. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5734. itemTaskIndex
  5735. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5736. _this.$forceUpdate();
  5737. })
  5738. .send(function (err, data) {
  5739. // loading.close();
  5740. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5741. itemTaskIndex
  5742. ].progress = 100;
  5743. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5744. itemTaskIndex
  5745. ].isFinishSize =
  5746. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5747. itemTaskIndex
  5748. ].isAllSize;
  5749. _this.$forceUpdate();
  5750. setTimeout(() => {
  5751. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5752. itemTaskIndex
  5753. ].proVisible = false;
  5754. _this.$forceUpdate();
  5755. }, 1000);
  5756. _this.inputShow = true;
  5757. if (err) {
  5758. // var a = _this.$refs.upload1.uploadFiles;
  5759. // a.splice(a.length - 1, a.length);
  5760. _this.$message.error("上传失败");
  5761. } else {
  5762. if (type == 13) {
  5763. let _type = 2;
  5764. var imgA = [
  5765. "png",
  5766. "jpg",
  5767. "jpeg",
  5768. "bmp",
  5769. "gif",
  5770. "webp",
  5771. "psd",
  5772. "svg",
  5773. "tiff",
  5774. ];
  5775. var fileA = [
  5776. "PDF",
  5777. "DOC",
  5778. "DOCX",
  5779. "DOCM",
  5780. "DOTM",
  5781. "DOTX",
  5782. "PPTX",
  5783. "PPSX",
  5784. "PPT",
  5785. "PPS",
  5786. "PPTM",
  5787. "POTM",
  5788. "PPAM",
  5789. "POTX",
  5790. "PPSM",
  5791. "XLSX",
  5792. "XLS",
  5793. ];
  5794. var videoA = [
  5795. "AVI",
  5796. "NAVI",
  5797. "MPEG",
  5798. "ASF",
  5799. "MOV",
  5800. "WMV",
  5801. "3GP",
  5802. "RM",
  5803. "RMVB",
  5804. "FLV",
  5805. "F4V",
  5806. "H.264",
  5807. "H.265",
  5808. "REAL VIDEO",
  5809. "MKV",
  5810. "WebM",
  5811. "HDDVD",
  5812. "MP4",
  5813. "MPG",
  5814. "M4V",
  5815. "MGV",
  5816. "OGV",
  5817. "QTM",
  5818. "STR",
  5819. "AMC",
  5820. "DVX",
  5821. "EVO",
  5822. "DAT",
  5823. "OGG",
  5824. "OGM",
  5825. ];
  5826. if (
  5827. fileA.indexOf(
  5828. data.Location.split(".")[
  5829. data.Location.split(".").length - 1
  5830. ].toLocaleUpperCase()
  5831. ) != -1
  5832. ) {
  5833. _type = 3;
  5834. } else if (
  5835. videoA.indexOf(
  5836. data.Location.split(".")[
  5837. data.Location.split(".").length - 1
  5838. ].toLocaleUpperCase()
  5839. ) != -1
  5840. ) {
  5841. _type = 2;
  5842. } else if (
  5843. imgA.indexOf(
  5844. data.Location.split(".")[
  5845. data.Location.split(".").length - 1
  5846. ].toLocaleLowerCase()
  5847. ) != -1
  5848. ) {
  5849. _type = 13;
  5850. } else {
  5851. _type = 12;
  5852. }
  5853. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5854. itemTaskIndex
  5855. ].chapterData.push({
  5856. name: file.name,
  5857. url: data.Location,
  5858. uid: file.uid,
  5859. type: _type,
  5860. });
  5861. _this.imgChange1(null, null, _type, itemTaskIndex);
  5862. } else if (type == 2 || type == 3 || type == 12) {
  5863. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5864. itemTaskIndex
  5865. ].chapterData.push({
  5866. name: file.name,
  5867. url: data.Location,
  5868. uid: file.uid,
  5869. type: type,
  5870. });
  5871. _this.imgChange1(null, null, type, itemTaskIndex);
  5872. } else if (type == 4) {
  5873. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5874. itemTaskIndex
  5875. ].fileList1.push({
  5876. name: file.name,
  5877. url: data.Location,
  5878. uid: file.uid,
  5879. });
  5880. _this.imgChange1(null, null, type, itemTaskIndex);
  5881. } else if (type == 5) {
  5882. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5883. itemTaskIndex
  5884. ].homeworkList.push({
  5885. name: file.name,
  5886. url: data.Location,
  5887. uid: file.uid,
  5888. });
  5889. _this.imgChange1(null, null, type, itemTaskIndex);
  5890. }
  5891. console.log(data.Location);
  5892. }
  5893. });
  5894. }
  5895. },
  5896. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  5897. // const loading = this.openLoading();
  5898. var file = event.target.files[0];
  5899. var credentials = {
  5900. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5901. secretAccessKey: "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",
  5902. }; //秘钥形式的登录上传
  5903. window.AWS.config.update(credentials);
  5904. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5905. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5906. var _this = this;
  5907. if (type == 3) {
  5908. var b = [
  5909. "DOC",
  5910. "DOCX",
  5911. "DOCM",
  5912. "DOTM",
  5913. "DOTX",
  5914. "PPTX",
  5915. "PPSX",
  5916. "PPT",
  5917. "PPS",
  5918. "PPTM",
  5919. "POTM",
  5920. "PPAM",
  5921. "POTX",
  5922. "PPSM",
  5923. ];
  5924. if (
  5925. b.indexOf(
  5926. file.name
  5927. .split(".")
  5928. [file.name.split(".").length - 1].toLocaleUpperCase()
  5929. ) != -1
  5930. ) {
  5931. if (file.size / 1024 / 1024 > 80) {
  5932. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5933. this.inputShow = true;
  5934. // var a = _this.$refs.upload1.uploadFiles;
  5935. // a.splice(a.length - 1, a.length);
  5936. // loading.close();
  5937. return;
  5938. }
  5939. } else if (
  5940. file.name
  5941. .split(".")
  5942. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5943. ) {
  5944. if (file.size / 1024 / 1024 > 80) {
  5945. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5946. this.inputShow = true;
  5947. // var a = _this.$refs.upload1.uploadFiles;
  5948. // a.splice(a.length - 1, a.length);
  5949. // loading.close();
  5950. return;
  5951. }
  5952. }
  5953. }
  5954. this.inputShow = false;
  5955. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5956. itemTaskIndex
  5957. ].progress = 0;
  5958. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5959. itemTaskIndex
  5960. ].proVisible = true;
  5961. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5962. itemTaskIndex
  5963. ].isFinishSize = 0;
  5964. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5965. itemTaskIndex
  5966. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5967. _this.$forceUpdate();
  5968. if (file) {
  5969. var params = {
  5970. Key:
  5971. file.name.split(".")[0] +
  5972. new Date().getTime() +
  5973. "." +
  5974. file.name.split(".")[file.name.split(".").length - 1],
  5975. ContentType: file.type,
  5976. Body: file,
  5977. "Access-Control-Allow-Credentials": "*",
  5978. ACL: "public-read",
  5979. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5980. var options = {
  5981. partSize: 2048 * 1024 * 1024,
  5982. queueSize: 2,
  5983. leavePartsOnError: true,
  5984. };
  5985. bucket
  5986. .upload(params, options)
  5987. .on("httpUploadProgress", function (evt) {
  5988. //这里可以写进度条
  5989. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5990. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5991. itemTaskIndex
  5992. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5993. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5994. itemTaskIndex
  5995. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5996. _this.$forceUpdate();
  5997. })
  5998. .send(function (err, data) {
  5999. // loading.close();
  6000. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6001. itemTaskIndex
  6002. ].progress = 100;
  6003. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6004. itemTaskIndex
  6005. ].isFinishSize =
  6006. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6007. itemTaskIndex
  6008. ].isAllSize;
  6009. _this.$forceUpdate();
  6010. setTimeout(() => {
  6011. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6012. itemTaskIndex
  6013. ].proVisible = false;
  6014. _this.$forceUpdate();
  6015. }, 1000);
  6016. _this.inputShow = true;
  6017. if (err) {
  6018. // var a = _this.$refs.upload1.uploadFiles;
  6019. // a.splice(a.length - 1, a.length);
  6020. _this.$message.error("上传失败");
  6021. } else {
  6022. if (type == 2 || type == 3) {
  6023. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6024. itemTaskIndex
  6025. ].chapterData.push({
  6026. name: file.name,
  6027. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6028. // itemTaskIndex
  6029. // ].chapterData.length+1),
  6030. url: data.Location,
  6031. uid: file.uid,
  6032. type: type,
  6033. text: string,
  6034. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6035. // itemTaskIndex
  6036. // ].chapterData.length + 1),
  6037. });
  6038. _this.imgChange1(null, null, type, itemTaskIndex);
  6039. } else if (type == 4) {
  6040. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6041. itemTaskIndex
  6042. ].fileList1.push({
  6043. name: file.name,
  6044. url: data.Location,
  6045. uid: file.uid,
  6046. });
  6047. _this.imgChange1(null, null, type, itemTaskIndex);
  6048. } else if (type == 5) {
  6049. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6050. itemTaskIndex
  6051. ].homeworkList.push({
  6052. name: file.name,
  6053. url: data.Location,
  6054. uid: file.uid,
  6055. });
  6056. _this.imgChange1(null, null, type, itemTaskIndex);
  6057. }
  6058. console.log(data.Location);
  6059. }
  6060. });
  6061. }
  6062. },
  6063. addunit() {
  6064. this.unitJson.push({
  6065. dyName: "", //单元标题
  6066. isUpdate: 1,
  6067. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  6068. chapterInfo: [
  6069. {
  6070. isread: false,
  6071. chapterid: this.guid(),
  6072. title: "",
  6073. courseName: "",
  6074. taskJson: [
  6075. {
  6076. task: "",
  6077. taskDetail: "",
  6078. chapterData: [],
  6079. toolText: "",
  6080. toolChoose: [
  6081. {
  6082. tool: [],
  6083. toolDetail: "",
  6084. toolType: 0,
  6085. askCount: 1,
  6086. askTitle: "",
  6087. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6088. },
  6089. ],
  6090. isShowTools: false,
  6091. askCount: 1,
  6092. isFold: 1,
  6093. askTitle: "",
  6094. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6095. checkJson: [{ checkCount: [], checkPerent: [] }],
  6096. homeworkList: [],
  6097. },
  6098. ],
  6099. itemCount: 1,
  6100. fileList1: [],
  6101. video: [],
  6102. testData: [],
  6103. pData: [],
  6104. templateArray: [],
  6105. },
  6106. ],
  6107. });
  6108. this.addindex = this.unitJson.length - 1;
  6109. setTimeout(() => {
  6110. this.unitIndex = this.unitJson.length - 1;
  6111. setTimeout(() => {
  6112. console.log(this.$refs.dyInput)
  6113. this.$refs.dyInput[0].focus()
  6114. }, 100);
  6115. this.unitSet(this.unitIndex);
  6116. }, 0);
  6117. },
  6118. addToolFun(itemTaskIndex) {
  6119. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6120. itemTaskIndex
  6121. ].toolChoose.push({
  6122. tool: [],
  6123. toolDetail: "",
  6124. toolType: 0,
  6125. askCount: 1,
  6126. askTitle: "",
  6127. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6128. });
  6129. },
  6130. addTaskBorder() {
  6131. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  6132. task: "",
  6133. taskDetail: "",
  6134. chapterData: [],
  6135. toolText: "",
  6136. toolChoose: [
  6137. {
  6138. tool: [],
  6139. toolDetail: "",
  6140. toolType: 0,
  6141. askCount: 1,
  6142. askTitle: "",
  6143. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6144. },
  6145. ],
  6146. isShowTools: false,
  6147. askCount: 1,
  6148. isFold: 1,//任务收起状态
  6149. askTitle: "",
  6150. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6151. checkJson: [{ checkCount: [], checkPerent: [] }],
  6152. homeworkList: [],
  6153. });
  6154. setTimeout(() => {
  6155. this.checkEva(this.checkId);
  6156. setTimeout(() => {
  6157. this.checkEva(this.checkId);
  6158. }, 100);
  6159. }, 100);
  6160. },
  6161. add(e, i) {
  6162. var el = e.currentTarget;
  6163. el.getElementsByTagName("input")[0].click();
  6164. },
  6165. fold(i, e) {
  6166. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  6167. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  6168. } else {
  6169. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  6170. }
  6171. },
  6172. fold2(i) {
  6173. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  6174. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  6175. } else {
  6176. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  6177. }
  6178. this.$forceUpdate();
  6179. },
  6180. foldEva(i) {
  6181. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  6182. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold = false;
  6183. } else {
  6184. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold = true;
  6185. setTimeout(() => {
  6186. this.checkEva(this.checkId);
  6187. setTimeout(() => {
  6188. this.checkEva(this.checkId);
  6189. }, 500);
  6190. }, 0);
  6191. }
  6192. this.$forceUpdate();
  6193. },
  6194. foldC(i) {
  6195. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  6196. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  6197. } else {
  6198. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  6199. }
  6200. this.$forceUpdate();
  6201. },
  6202. fold3(i, ti) {
  6203. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  6204. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  6205. } else {
  6206. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  6207. }
  6208. this.$forceUpdate();
  6209. },
  6210. deleteHomeworkBox(unitIndex, index, i) {
  6211. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  6212. this.taskCount
  6213. ].homeworkList.splice(i, 1);
  6214. },
  6215. getStudent() {
  6216. let params = {
  6217. oid: this.oid,
  6218. cu: "",
  6219. cn: this.searchPeople,
  6220. };
  6221. this.ajax
  6222. .get(this.$store.state.api + "selectStudentAdd", params)
  6223. .then((res) => {
  6224. this.studentJuri = res.data[0];
  6225. })
  6226. .catch((err) => {
  6227. this.isLoading = false;
  6228. console.error(err);
  6229. });
  6230. },
  6231. getTeacher() {
  6232. let params = {
  6233. oid:
  6234. this.org && this.org != "undefined" && this.org != "null"
  6235. ? this.org
  6236. : this.oid,
  6237. cu: "",
  6238. cn: this.searchTN,
  6239. };
  6240. this.ajax
  6241. .get(
  6242. this.$store.state.api +
  6243. (this.org && this.org != "undefined" && this.org != "null"
  6244. ? "selectTeacherAddOrg"
  6245. : "selectTeacherAdd"),
  6246. params
  6247. )
  6248. .then((res) => {
  6249. let teacherJuri = res.data[0];
  6250. for (var i = 0; i < teacherJuri.length; i++) {
  6251. if (teacherJuri[i].userid == this.userid) {
  6252. teacherJuri.splice(i, 1);
  6253. break;
  6254. }
  6255. }
  6256. this.teacherJuri = teacherJuri;
  6257. let _check = []
  6258. let _check2 = []
  6259. for (var i = 0; i < this.teacherJuri.length; i++) {
  6260. var gid = this.teacherJuri[i].userid
  6261. _check.push(gid)
  6262. }
  6263. for (var i = 0; i < this.checkboxList3.length; i++) {
  6264. var _id = this.checkboxList3[i]
  6265. if (_check.indexOf(_id) !== -1) {
  6266. _check2.push(_id)
  6267. }
  6268. }
  6269. this.checkAll2 = _check2.length === _check.length;
  6270. })
  6271. .catch((err) => {
  6272. console.error(err);
  6273. });
  6274. },
  6275. searchStudent() {
  6276. this.getStudent();
  6277. },
  6278. selectGrage() {
  6279. let params = {
  6280. oid: this.oid,
  6281. };
  6282. this.ajax
  6283. .get(this.$store.state.api + "selectGrageBySchool", params)
  6284. .then((res) => {
  6285. this.gradeList = res.data[0];
  6286. })
  6287. .catch((err) => {
  6288. this.isLoading = false;
  6289. console.error(err);
  6290. });
  6291. },
  6292. //获取班级列表
  6293. getClass() {
  6294. let params = {
  6295. oid: this.oid,
  6296. gid: this.gradeId,
  6297. cn: this.classSearch,
  6298. };
  6299. this.ajax
  6300. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  6301. .then((res) => {
  6302. if (!this.grade.length) {
  6303. this.grade = res.data[0];
  6304. }
  6305. this.grade2 = res.data[0];
  6306. this.classJuri = res.data[0];
  6307. let _check = []
  6308. let _check2 = []
  6309. for (var i = 0; i < this.grade2.length; i++) {
  6310. var gid = this.grade2[i].id
  6311. _check.push(gid)
  6312. }
  6313. for (var i = 0; i < this.checkboxList2.length; i++) {
  6314. var _id = this.checkboxList2[i]
  6315. if (_check.indexOf(_id) !== -1) {
  6316. _check2.push(_id)
  6317. }
  6318. }
  6319. this.checkAll = _check2.length === _check.length;
  6320. })
  6321. .catch((err) => {
  6322. this.isLoading = false;
  6323. console.error(err);
  6324. });
  6325. },
  6326. CourseType2Change(val) {
  6327. this.pTypeCheck = [];
  6328. for (var i = 0; i < this.CourseType2.length; i++) {
  6329. let typeA = this.CourseType2[i];
  6330. if (val.indexOf(typeA.name) != -1) {
  6331. this.pTypeCheck.push(...typeA.id);
  6332. }
  6333. }
  6334. },
  6335. getChapterData(e, i, j, ic, type) {
  6336. e.stopPropagation();
  6337. this.updataC = true;
  6338. this.icc = ic;
  6339. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6340. console.log("还不能下载图片喔");
  6341. }
  6342. },
  6343. deleteChapterData(e, i, j, ic, taskI) {
  6344. e.stopPropagation();
  6345. let _this = this;
  6346. _this
  6347. .$confirm("确定删除此项?", "提示", {
  6348. confirmButtonText: "确定",
  6349. cancelButtonText: "取消",
  6350. type: "warning",
  6351. })
  6352. .then(() => {
  6353. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  6354. })
  6355. .catch(() => {
  6356. return;
  6357. });
  6358. },
  6359. updataVideoT(e, i, j, ic) {
  6360. // e.stopPropagation();
  6361. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  6362. // ic
  6363. // ].name = JSON.parse(JSON.stringify(e.target.value));
  6364. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6365. ic
  6366. ].name;
  6367. this.taskCount = j;
  6368. this.lineCount = ic;
  6369. this.dialogVisibleupdataVideoT = true;
  6370. this.$forceUpdate();
  6371. },
  6372. updataVideoC() {
  6373. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  6374. this.dialogVisibleupdataVideoT = false;
  6375. this.$forceUpdate();
  6376. },
  6377. upCd(e, i, j, taskCount, ic) {
  6378. e.stopPropagation();
  6379. if (ic == 0) {
  6380. return;
  6381. }
  6382. var a =
  6383. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  6384. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  6385. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6386. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6387. this.$forceUpdate();
  6388. },
  6389. downCd(e, i, j, taskCount, ic) {
  6390. e.stopPropagation();
  6391. if (
  6392. ic ==
  6393. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  6394. 1
  6395. ) {
  6396. return;
  6397. }
  6398. var a =
  6399. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  6400. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  6401. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6402. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6403. this.$forceUpdate();
  6404. },
  6405. async upTool(e, i, j, tooli){
  6406. e.stopPropagation();
  6407. if (tooli == 0) {
  6408. return;
  6409. }
  6410. let count1 = await this.getWorksCount(3, i, j, tooli - 1)
  6411. let count2 = await this.getWorksCount(3, i, j, tooli)
  6412. if(count1 > 0 || count2 > 0){
  6413. this.$confirm(
  6414. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6415. "提示",
  6416. {
  6417. confirmButtonText: "确定",
  6418. cancelButtonText: "取消",
  6419. type: "warning",
  6420. }
  6421. )
  6422. .then(() => {
  6423. var a =
  6424. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6425. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6426. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6427. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6428. this.$forceUpdate()
  6429. })
  6430. .catch(() => {
  6431. return;
  6432. });
  6433. }else{
  6434. var a =
  6435. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6436. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6437. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6438. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6439. this.$forceUpdate()
  6440. }
  6441. },
  6442. async downTool(e, i, j, tooli){
  6443. e.stopPropagation();
  6444. if ( tooli ==
  6445. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length -
  6446. 1) {
  6447. return;
  6448. }
  6449. let count1 = await this.getWorksCount(3, i, j, tooli + 1)
  6450. let count2 = await this.getWorksCount(3, i, j, tooli)
  6451. if(count1 > 0 || count2 > 0){
  6452. this.$confirm(
  6453. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6454. "提示",
  6455. {
  6456. confirmButtonText: "确定",
  6457. cancelButtonText: "取消",
  6458. type: "warning",
  6459. }
  6460. )
  6461. .then(() => {
  6462. var a =
  6463. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6464. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6465. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6466. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6467. this.$forceUpdate()
  6468. })
  6469. .catch(() => {
  6470. return;
  6471. });
  6472. }else{
  6473. var a =
  6474. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6475. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6476. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6477. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6478. this.$forceUpdate()
  6479. }
  6480. },
  6481. addWork() {
  6482. let cPan = 1;
  6483. for (var i = 0; i < this.unitJson.length; i++) {
  6484. for (
  6485. var j = 0;
  6486. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6487. j++
  6488. ) {
  6489. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6490. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6491. if (
  6492. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6493. ) {
  6494. for (
  6495. var z = 0;
  6496. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6497. z++
  6498. ) {
  6499. if (
  6500. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6501. .length
  6502. ) {
  6503. this.$message.error("请把工具添加完整");
  6504. cPan = 2;
  6505. break;
  6506. }
  6507. }
  6508. }
  6509. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6510. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6511. i
  6512. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6513. return ele.value != "";
  6514. });
  6515. }
  6516. }
  6517. }
  6518. this.inputShow = true;
  6519. if (cPan == 2) {
  6520. this.steps--;
  6521. return;
  6522. }
  6523. for (var i = 0; i < this.unitJson.length; i++) {
  6524. delete this.unitJson[i].isUpdate;
  6525. }
  6526. let params = [
  6527. {
  6528. uid: this.userid,
  6529. title: this.courseName.replace(/%/g, "%25"),
  6530. brief: this.courseText.replace(/%/g, "%25"),
  6531. cover:
  6532. this.cover.length > 0
  6533. ? JSON.stringify(this.cover)
  6534. : JSON.stringify([
  6535. {
  6536. name: "noBanner.jpg",
  6537. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6538. uid: 1656409780264,
  6539. status: "success",
  6540. },
  6541. ]),
  6542. evaId: this.evalua,
  6543. astudent:
  6544. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6545. see: this.isTeacherSee == true ? 1 : 0,
  6546. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6547. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  6548. courseType: JSON.stringify(this.courseTypeId),
  6549. ateacher:
  6550. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6551. inviteCode: JSON.stringify(this.inviteCode),
  6552. },
  6553. ];
  6554. this.ajax
  6555. .post(this.$store.state.api + "addWorkNew2", params)
  6556. .then((res) => {
  6557. console.log(this.steps);
  6558. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6559. this.$message({
  6560. message: "新增成功",
  6561. type: "success",
  6562. });
  6563. }
  6564. this.number = res.data.ordernumber;
  6565. this.courseId = res.data.courseId;
  6566. this.cid = res.data.courseId;
  6567. this.courseUserid = this.userid;
  6568. this.islogin = true;
  6569. })
  6570. .catch((err) => {
  6571. this.$message.error("网络不佳");
  6572. console.error(err);
  6573. });
  6574. },
  6575. goCourse() {
  6576. top.postMessage({ cid: this.courseId, type: "1" }, "*");
  6577. },
  6578. updateWork2() {
  6579. let _unitIndex = this.unitIndex;
  6580. let cPan = 1;
  6581. for (
  6582. var j = 0;
  6583. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6584. j++
  6585. ) {
  6586. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6587. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6588. j
  6589. ].proVisible2 = false;
  6590. if (
  6591. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6592. .length > 1
  6593. ) {
  6594. for (
  6595. var z = 0;
  6596. z <
  6597. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6598. .length;
  6599. z++
  6600. ) {
  6601. if (
  6602. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6603. z
  6604. ].tool.length
  6605. ) {
  6606. this.$message.error("请把工具添加完整");
  6607. cPan = 2;
  6608. break;
  6609. }
  6610. }
  6611. }
  6612. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6613. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6614. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6615. (ele) => {
  6616. return ele.value != "";
  6617. }
  6618. );
  6619. }
  6620. }
  6621. this.inputShow = true;
  6622. if (cPan == 2) {
  6623. this.steps--;
  6624. return;
  6625. }
  6626. let params = [
  6627. {
  6628. cid: this.cid,
  6629. chapters: JSON.stringify(this.unitJson),
  6630. uid: this.userid,
  6631. unitIndex: _unitIndex,
  6632. },
  6633. ];
  6634. this.ajax
  6635. .post(this.$store.state.api + "updateWorkNew4", params)
  6636. .then((res) => {
  6637. this.$message({
  6638. message: "修改成功",
  6639. type: "success",
  6640. });
  6641. this.courseId = this.cid;
  6642. })
  6643. .catch((err) => {
  6644. this.$message.error("网络不佳");
  6645. console.error(err);
  6646. });
  6647. },
  6648. updateWork3(unitIndex) {
  6649. let _unitIndex = unitIndex;
  6650. let cPan = 1;
  6651. for (
  6652. var j = 0;
  6653. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6654. j++
  6655. ) {
  6656. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6657. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6658. j
  6659. ].proVisible2 = false;
  6660. if (
  6661. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6662. .length > 1
  6663. ) {
  6664. for (
  6665. var z = 0;
  6666. z <
  6667. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6668. .length;
  6669. z++
  6670. ) {
  6671. if (
  6672. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6673. z
  6674. ].tool.length
  6675. ) {
  6676. this.$message.error("请把工具添加完整");
  6677. cPan = 2;
  6678. break;
  6679. }
  6680. }
  6681. }
  6682. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6683. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6684. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6685. (ele) => {
  6686. return ele.value != "";
  6687. }
  6688. );
  6689. }
  6690. }
  6691. this.inputShow = true;
  6692. if (cPan == 2) {
  6693. this.steps--;
  6694. return;
  6695. }
  6696. let params = [
  6697. {
  6698. cid: this.cid,
  6699. chapters: JSON.stringify(this.unitJson),
  6700. uid: this.userid,
  6701. unitIndex: _unitIndex,
  6702. },
  6703. ];
  6704. this.ajax
  6705. .post(this.$store.state.api + "updateWorkNew4", params)
  6706. .then((res) => {
  6707. // this.$message({
  6708. // message: "修改成功",
  6709. // type: "success",
  6710. // });
  6711. this.courseId = this.cid;
  6712. })
  6713. .catch((err) => {
  6714. this.$message.error("网络不佳");
  6715. console.error(err);
  6716. });
  6717. },
  6718. updateWork() {
  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. this.steps--;
  6758. return;
  6759. }
  6760. for (var i = 0; i < this.unitJson.length; i++) {
  6761. delete this.unitJson[i].isUpdate;
  6762. }
  6763. let params = [
  6764. {
  6765. cid: this.cid,
  6766. title: this.courseName.replace(/%/g, "%25"),
  6767. brief: this.courseText.replace(/%/g, "%25"),
  6768. cover:
  6769. this.cover.length > 0
  6770. ? JSON.stringify(this.cover)
  6771. : JSON.stringify([
  6772. {
  6773. name: "noBanner.jpg",
  6774. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6775. uid: 1656409780264,
  6776. status: "success",
  6777. },
  6778. ]),
  6779. evaId: this.evalua,
  6780. astudent:
  6781. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6782. see: this.isTeacherSee == true ? 1 : 0,
  6783. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6784. template: this.myWord != "undefined" ? this.myWord : [],
  6785. uid: this.userid,
  6786. courseType: JSON.stringify(this.courseTypeId),
  6787. ateacher:
  6788. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6789. inviteCode: JSON.stringify(this.inviteCode),
  6790. },
  6791. ];
  6792. this.ajax
  6793. .post(this.$store.state.api + "updateWorkNew2", params)
  6794. .then((res) => {
  6795. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6796. if (this.cidType == 1) {
  6797. this.$message({
  6798. message: "修改成功",
  6799. type: "success",
  6800. });
  6801. } else {
  6802. this.$message({
  6803. message: "新增成功",
  6804. type: "success",
  6805. });
  6806. }
  6807. }
  6808. this.number = this.nbOrder;
  6809. this.courseId = this.cid;
  6810. })
  6811. .catch((err) => {
  6812. this.$message.error("网络不佳");
  6813. console.error(err);
  6814. });
  6815. },
  6816. guid() {
  6817. var _num,
  6818. i,
  6819. _guid = "";
  6820. for (i = 0; i < 32; i++) {
  6821. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6822. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6823. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6824. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6825. _guid += "-";
  6826. }
  6827. }
  6828. return _guid;
  6829. },
  6830. insertWord() {
  6831. this.dialogVisible1 = true;
  6832. this.updateBoolean2 = false;
  6833. this.tTitle = "";
  6834. this.tdetail = "";
  6835. },
  6836. addWord() {
  6837. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6838. name: this.tTitle,
  6839. content: this.tdetail,
  6840. uid: this.guid(),
  6841. });
  6842. this.dialogVisible1 = false;
  6843. },
  6844. upWord() { },
  6845. selectWord(uid, i, c) {
  6846. this.dialogVisible1 = true;
  6847. this.updateBoolean2 = true;
  6848. if (
  6849. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6850. ) {
  6851. this.tTitle =
  6852. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6853. this.tdetail =
  6854. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6855. }
  6856. },
  6857. isAddPP() {
  6858. if (this.checkboxList.length > 0) {
  6859. this.$message({
  6860. message: "添加成功",
  6861. type: "success",
  6862. });
  6863. this.dialogVisible3 = false;
  6864. } else {
  6865. this.$message({
  6866. message: "请添加课程成员",
  6867. type: "error",
  6868. });
  6869. }
  6870. },
  6871. isAddClass() {
  6872. this.dialogVisibleClass = false;
  6873. },
  6874. isAddPPTeacher() {
  6875. this.dialogVisibleMember = false;
  6876. this.setMan();
  6877. },
  6878. getTemplate() {
  6879. this.ajax
  6880. .get(this.$store.state.api + "getCourseTemplateT", "")
  6881. .then((res) => {
  6882. this.templateArray = res.data[0];
  6883. this.getTemplateOid();
  6884. this.$forceUpdate();
  6885. })
  6886. .catch((err) => { });
  6887. },
  6888. getTemplateOid() {
  6889. let params = {
  6890. oid: this.oid,
  6891. };
  6892. this.ajax
  6893. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6894. .then((res) => {
  6895. if (res.data[0].length) {
  6896. this.templateArray = [...res.data[0], ...this.templateArray];
  6897. }
  6898. this.getTemplateOrg();
  6899. this.$forceUpdate();
  6900. })
  6901. .catch((err) => { });
  6902. },
  6903. getTemplateOrg() {
  6904. let params = {
  6905. oid: this.org,
  6906. };
  6907. this.ajax
  6908. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6909. .then((res) => {
  6910. if (res.data[0].length) {
  6911. this.templateArray = [...res.data[0], ...this.templateArray];
  6912. }
  6913. this.$forceUpdate();
  6914. })
  6915. .catch((err) => { });
  6916. },
  6917. clearChoose() {
  6918. this.clearArray.splice(this.templateC.id, 1);
  6919. this.dialogVisible2 = false;
  6920. },
  6921. clearAttText() {
  6922. this.AttText = {
  6923. title: "",
  6924. text: "",
  6925. };
  6926. this.dialogVisible6 = false;
  6927. },
  6928. clearLine() {
  6929. this.line = "";
  6930. this.dialogVisible7 = false;
  6931. },
  6932. openTemplate(){
  6933. this.ctJson = {}
  6934. this.templateDialog = true
  6935. },
  6936. checkctJson(json){
  6937. if(this.ctJson.id == json.id){
  6938. this.ctJson = {}
  6939. }else{
  6940. this.ctJson = json
  6941. }
  6942. },
  6943. addTemplate(res){
  6944. let _this = this;
  6945. let _res = []
  6946. if(res.id == 1){
  6947. _res = [
  6948. {
  6949. dyName: "", //单元标题
  6950. easy: 1,
  6951. chapterInfo: [
  6952. {
  6953. isread: false,
  6954. chapterid: this.guid(),
  6955. title: "",
  6956. courseName: "",
  6957. taskJson: [
  6958. {
  6959. task: "",
  6960. taskDetail: "",
  6961. chapterData: [],
  6962. toolText: "",
  6963. toolChoose: [
  6964. {
  6965. tool: [],
  6966. toolDetail: "",
  6967. toolType: 0,
  6968. askCount: 1,
  6969. askTitle: "",
  6970. askJson: [
  6971. { askstitle: "", askItem: 1, checkList: [] },
  6972. ],
  6973. },
  6974. ],
  6975. isShowTools: false,
  6976. askCount: 1,
  6977. isFold: 1,
  6978. askTitle: "",
  6979. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6980. checkJson: [{ checkCount: [], checkPerent: [] }],
  6981. homeworkList: [],
  6982. },
  6983. ],
  6984. itemCount: 1,
  6985. fileList1: [],
  6986. video: [],
  6987. testData: [],
  6988. pData: [],
  6989. templateArray: [],
  6990. },
  6991. ],
  6992. },
  6993. ];
  6994. this.updateCourseState(1)
  6995. }else if(res.id == 2){
  6996. let stageData = []
  6997. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  6998. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  6999. if (!iframe && !iframe2) {
  7000. this.$message.error("请使用AI共创生成");
  7001. return;
  7002. }
  7003. let copyData = iframe ? iframe.contentWindow.copyData : false;
  7004. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  7005. if ((!copyData || !copyData.stageData || !copyData.stageData.length) && (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)) {
  7006. this.$message.error("请使用AI共创生成");
  7007. return;
  7008. }
  7009. stageData = copyData ? copyData.stageData : copyData2 ? copyData2.stageData : [''];
  7010. for (var i = 0; i < stageData.length; i++) {
  7011. _res.push({
  7012. dyName: stageData[i], //单元标题
  7013. chapterInfo: [
  7014. {
  7015. isread: false,
  7016. chapterid: this.guid(),
  7017. title: "",
  7018. courseName: "",
  7019. taskJson: [
  7020. {
  7021. task: "",
  7022. taskDetail: "",
  7023. chapterData: [],
  7024. toolText: "",
  7025. toolChoose: [
  7026. {
  7027. tool: [],
  7028. toolDetail: "",
  7029. toolType: 0,
  7030. askCount: 1,
  7031. askTitle: "",
  7032. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7033. },
  7034. ],
  7035. isShowTools: false,
  7036. askCount: 1,
  7037. isFold: 1,
  7038. askTitle: "",
  7039. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7040. checkJson: [{ checkCount: [], checkPerent: [] }],
  7041. homeworkList: [],
  7042. },
  7043. ],
  7044. itemCount: 1,
  7045. fileList1: [],
  7046. video: [],
  7047. testData: [],
  7048. pData: [],
  7049. templateArray: [],
  7050. },
  7051. ],
  7052. });
  7053. }
  7054. this.updateCourseState(1)
  7055. }else if(!Object.keys(res).length){
  7056. this.$message.error("请选择模板")
  7057. retrun;
  7058. }else{
  7059. _res = JSON.parse(res.chapters)
  7060. this.updateCourseState(parseInt(res.state))
  7061. }
  7062. _this
  7063. .$confirm("确定选择课程模板吗?此操作将删除所有已编辑课程内容。", "提示", {
  7064. confirmButtonText: "确定",
  7065. cancelButtonText: "取消",
  7066. type: "warning",
  7067. })
  7068. .then(() => {
  7069. _this.unitJson = _res;
  7070. _this.updateWork();
  7071. // _this.steps++;
  7072. _this.templateDialog = false
  7073. setTimeout(() => {
  7074. this.checkEva(this.checkId);
  7075. setTimeout(() => {
  7076. this.checkEva(this.checkId);
  7077. }, 100);
  7078. }, 1000);
  7079. })
  7080. .catch(() => {
  7081. return;
  7082. });
  7083. },
  7084. checkTemplate(res) {
  7085. let _this = this;
  7086. _this
  7087. .$confirm("确定选择课程模板吗?此操作将删除所有已编辑课程内容。", "提示", {
  7088. confirmButtonText: "确定",
  7089. cancelButtonText: "取消",
  7090. type: "warning",
  7091. })
  7092. .then(() => {
  7093. _this.unitJson = JSON.parse(res.chapters);
  7094. _this.steps++;
  7095. setTimeout(() => {
  7096. this.checkEva(this.checkId);
  7097. setTimeout(() => {
  7098. this.checkEva(this.checkId);
  7099. }, 100);
  7100. }, 1000);
  7101. })
  7102. .catch(() => {
  7103. return;
  7104. });
  7105. },
  7106. checkTemplate1(w) {
  7107. this.steps++;
  7108. },
  7109. checkTemplate2() {
  7110. let _this = this;
  7111. _this
  7112. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  7113. confirmButtonText: "确定",
  7114. cancelButtonText: "取消",
  7115. type: "warning",
  7116. })
  7117. .then(() => {
  7118. _this.unitIndex = 0;
  7119. _this.unitJson = [
  7120. {
  7121. dyName: "", //单元标题
  7122. chapterInfo: [
  7123. {
  7124. isread: false,
  7125. chapterid: this.guid(),
  7126. title: "",
  7127. courseName: "",
  7128. taskJson: [
  7129. {
  7130. task: "",
  7131. taskDetail: "",
  7132. chapterData: [],
  7133. toolText: "",
  7134. toolChoose: [
  7135. {
  7136. tool: [],
  7137. toolDetail: "",
  7138. toolType: 0,
  7139. askCount: 1,
  7140. askTitle: "",
  7141. askJson: [
  7142. { askstitle: "", askItem: 1, checkList: [] },
  7143. ],
  7144. },
  7145. ],
  7146. isShowTools: false,
  7147. askCount: 1,
  7148. isFold: 1,
  7149. askTitle: "",
  7150. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7151. checkJson: [{ checkCount: [], checkPerent: [] }],
  7152. homeworkList: [],
  7153. },
  7154. ],
  7155. itemCount: 1,
  7156. fileList1: [],
  7157. video: [],
  7158. testData: [],
  7159. pData: [],
  7160. templateArray: [],
  7161. },
  7162. ],
  7163. },
  7164. ];
  7165. this.steps++;
  7166. setTimeout(() => {
  7167. this.checkEva(this.checkId);
  7168. setTimeout(() => {
  7169. this.checkEva(this.checkId);
  7170. }, 100);
  7171. }, 1000);
  7172. this.updateWork();
  7173. })
  7174. .catch(() => {
  7175. return;
  7176. });
  7177. },
  7178. checkTemplate3() {
  7179. let _this = this;
  7180. _this
  7181. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  7182. confirmButtonText: "确定",
  7183. cancelButtonText: "取消",
  7184. type: "warning",
  7185. })
  7186. .then(() => {
  7187. _this.unitIndex = 0;
  7188. _this.unitJson = [
  7189. {
  7190. dyName: "", //单元标题
  7191. easy: 1,
  7192. chapterInfo: [
  7193. {
  7194. isread: false,
  7195. chapterid: this.guid(),
  7196. title: "",
  7197. courseName: "",
  7198. taskJson: [
  7199. {
  7200. task: "",
  7201. taskDetail: "",
  7202. chapterData: [],
  7203. toolText: "",
  7204. toolChoose: [
  7205. {
  7206. tool: [],
  7207. toolDetail: "",
  7208. toolType: 0,
  7209. askCount: 1,
  7210. askTitle: "",
  7211. askJson: [
  7212. { askstitle: "", askItem: 1, checkList: [] },
  7213. ],
  7214. },
  7215. ],
  7216. isShowTools: false,
  7217. askCount: 1,
  7218. isFold: 1,
  7219. askTitle: "",
  7220. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7221. checkJson: [{ checkCount: [], checkPerent: [] }],
  7222. homeworkList: [],
  7223. },
  7224. ],
  7225. itemCount: 1,
  7226. fileList1: [],
  7227. video: [],
  7228. testData: [],
  7229. pData: [],
  7230. templateArray: [],
  7231. },
  7232. ],
  7233. },
  7234. ];
  7235. // this.steps++;
  7236. this.updateWork();
  7237. })
  7238. .catch(() => {
  7239. return;
  7240. });
  7241. },
  7242. checkTemplate4() {
  7243. let _this = this;
  7244. _this
  7245. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  7246. confirmButtonText: "确定",
  7247. cancelButtonText: "取消",
  7248. type: "warning",
  7249. })
  7250. .then(() => {
  7251. _this.unitIndex = 0;
  7252. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  7253. this.steps++;
  7254. this.updateWork();
  7255. })
  7256. .catch(() => {
  7257. return;
  7258. });
  7259. },
  7260. wordNext() {
  7261. this.dialogVisible2 = false;
  7262. },
  7263. isAddOrUpdateAttText() {
  7264. if (this.AttTextType == 0) {
  7265. this.addAttTextMessage();
  7266. } else {
  7267. this.updateAttText();
  7268. }
  7269. },
  7270. isAddOrUpdateLine() {
  7271. if (!this.lineTitle) {
  7272. this.$message.error("请填写链接标题");
  7273. return;
  7274. }
  7275. if (this.lineType == 0) {
  7276. this.addLine();
  7277. } else {
  7278. this.updateLine();
  7279. }
  7280. },
  7281. addAttTextMessage() {
  7282. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7283. this.taskCount
  7284. ].chapterData.push({
  7285. name: this.AttText.title,
  7286. url: this.AttText.text,
  7287. type: 6,
  7288. });
  7289. this.imgChange1(null, null, 6, this.taskCount);
  7290. this.dialogVisible6 = false;
  7291. },
  7292. selectAttText(itemTaskIndex, i) {
  7293. this.AttText.title =
  7294. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7295. itemTaskIndex
  7296. ].chapterData[i].name;
  7297. this.AttText.text =
  7298. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7299. itemTaskIndex
  7300. ].chapterData[i].url;
  7301. this.taskCount = itemTaskIndex;
  7302. this.AttTextIndex = i;
  7303. this.AttTextType = 1;
  7304. this.dialogVisible6 = true;
  7305. },
  7306. updateAttText() {
  7307. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7308. this.taskCount
  7309. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  7310. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7311. this.taskCount
  7312. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  7313. this.dialogVisible6 = false;
  7314. },
  7315. addLine() {
  7316. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7317. this.lineCount
  7318. ].chapterData.push({
  7319. name: "链接",
  7320. title: this.lineTitle,
  7321. url: this.line,
  7322. type: 8,
  7323. });
  7324. this.imgChange1(null, null, 8, this.lineCount);
  7325. this.dialogVisible7 = false;
  7326. },
  7327. selectLine(itemTaskIndex, i) {
  7328. this.line =
  7329. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7330. itemTaskIndex
  7331. ].chapterData[i].url;
  7332. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7333. itemTaskIndex
  7334. ].chapterData[i].title
  7335. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7336. .chapterData[i].title
  7337. : "";
  7338. this.taskCount = itemTaskIndex;
  7339. this.lineCount = i;
  7340. this.lineType = 1;
  7341. this.dialogVisible7 = true;
  7342. },
  7343. openUpdateSource(itemTaskIndex, i) {
  7344. this.sourceData = {}
  7345. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  7346. this.sourceData[source.id] = {}
  7347. this.sourceData[source.id].name = source.title
  7348. this.sourceData[source.id].url = source.url
  7349. this.dialogVisibleSource = true;
  7350. this.updateSourcePan = true;
  7351. this.taskCount = itemTaskIndex;
  7352. this.lineCount = i;
  7353. },
  7354. updateLine() {
  7355. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7356. this.taskCount
  7357. ].chapterData[this.lineCount].url = this.line;
  7358. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7359. this.taskCount
  7360. ].chapterData[this.lineCount].title = this.lineTitle;
  7361. this.dialogVisible7 = false;
  7362. },
  7363. addPP() {
  7364. this.dialogVisible3 = true;
  7365. },
  7366. goTo(path) {
  7367. this.$router.push(path);
  7368. },
  7369. openTools(itemTaskIndex, i, toolIndex) {
  7370. this.toolIndex = toolIndex;
  7371. this.taskCount = itemTaskIndex;
  7372. if (i == 4) {
  7373. if (toolIndex == null) {
  7374. var a =
  7375. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7376. .chapterData;
  7377. for (var i = 0; i < a.length; i++) {
  7378. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  7379. this.askJson =
  7380. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7381. itemTaskIndex
  7382. ].chapterData[i].askJson;
  7383. }
  7384. }
  7385. } else {
  7386. this.askJson = JSON.parse(
  7387. JSON.stringify(
  7388. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7389. itemTaskIndex
  7390. ].toolChoose[toolIndex]
  7391. )
  7392. );
  7393. }
  7394. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  7395. this.dialogVisible5 = true;
  7396. } else if (i == 45) {
  7397. if (
  7398. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7399. .toolChoose[toolIndex].testJson
  7400. ) {
  7401. this.testJson = JSON.parse(
  7402. JSON.stringify(
  7403. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7404. itemTaskIndex
  7405. ].toolChoose[toolIndex].testJson
  7406. )
  7407. );
  7408. } else {
  7409. var testJson = {
  7410. testCount: 1,
  7411. testTitle: "",
  7412. testJson: [
  7413. {
  7414. teststitle: "",
  7415. testItem: 1,
  7416. checkList: [],
  7417. timuList: [],
  7418. answer: [],
  7419. type: "1",
  7420. },
  7421. ],
  7422. };
  7423. this.testJson = testJson;
  7424. }
  7425. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  7426. this.dialogVisibleChoice = true;
  7427. } else if (i == 47) {
  7428. if (
  7429. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7430. .toolChoose[toolIndex].sentenceList
  7431. ) {
  7432. this.sentenceList = JSON.parse(
  7433. JSON.stringify(
  7434. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7435. itemTaskIndex
  7436. ].toolChoose[toolIndex].sentenceList
  7437. )
  7438. );
  7439. } else {
  7440. var sentenceList = [
  7441. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7442. ];
  7443. this.sentenceList = sentenceList;
  7444. }
  7445. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  7446. this.dialogVisibleSentence = true;
  7447. } else if (i == 48) {
  7448. if (
  7449. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7450. .toolChoose[toolIndex].tableJson
  7451. ) {
  7452. this.tableJson = JSON.parse(
  7453. JSON.stringify(
  7454. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7455. itemTaskIndex
  7456. ].toolChoose[toolIndex].tableJson
  7457. )
  7458. );
  7459. } else {
  7460. var tableJson = { text: "" };
  7461. this.tableJson = tableJson;
  7462. }
  7463. this.dialogVisibleTable = true;
  7464. } else if (i == 52) {
  7465. if (
  7466. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7467. .toolChoose[toolIndex].wordJson
  7468. ) {
  7469. this.wordJson = JSON.parse(
  7470. JSON.stringify(
  7471. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7472. itemTaskIndex
  7473. ].toolChoose[toolIndex].wordJson
  7474. )
  7475. );
  7476. } else {
  7477. var wordJson = { text: "" };
  7478. this.wordJson = wordJson;
  7479. }
  7480. this.dialogVisibleWord = true;
  7481. // else if (i == 50) {
  7482. // if (
  7483. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7484. // .toolChoose[toolIndex].uploadJson
  7485. // ) {
  7486. // this.uploadJson = JSON.parse(
  7487. // JSON.stringify(
  7488. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7489. // itemTaskIndex
  7490. // ].toolChoose[toolIndex].uploadJson
  7491. // )
  7492. // );
  7493. // } else {
  7494. // var uploadJson = [];
  7495. // this.uploadJson = uploadJson;
  7496. // }
  7497. // this.dialogVisibleMoreUpload = true;
  7498. // }
  7499. } else if (i == 10) {
  7500. if (
  7501. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7502. .toolChoose[toolIndex].preTime
  7503. ) {
  7504. this.preTime = JSON.parse(
  7505. JSON.stringify(
  7506. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7507. itemTaskIndex
  7508. ].toolChoose[toolIndex].preTime
  7509. )
  7510. );
  7511. } else {
  7512. var preTime = 0;
  7513. this.preTime = preTime;
  7514. }
  7515. this.dialogVisiblePreTime = true;
  7516. } else if (i == 49) {
  7517. if (
  7518. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7519. .toolChoose[toolIndex].groupJson
  7520. ) {
  7521. this.groupJson = JSON.parse(
  7522. JSON.stringify(
  7523. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7524. itemTaskIndex
  7525. ].toolChoose[toolIndex].groupJson
  7526. )
  7527. );
  7528. } else {
  7529. var groupJson = {
  7530. group: [{ name: "第1组" }],
  7531. number: undefined,
  7532. islock: 1,
  7533. };
  7534. this.groupJson = groupJson;
  7535. }
  7536. this.dialogVisibleGroup = true;
  7537. } else if (i == 62) {
  7538. if (
  7539. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7540. .toolChoose[toolIndex].videoJson
  7541. ) {
  7542. this.videoJson = JSON.parse(
  7543. JSON.stringify(
  7544. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7545. itemTaskIndex
  7546. ].toolChoose[toolIndex].videoJson
  7547. )
  7548. );
  7549. } else {
  7550. var videoJson = {
  7551. video: "",
  7552. setting: [],
  7553. };
  7554. this.videoJson = videoJson;
  7555. }
  7556. this.dialogVisibleVideo = true;
  7557. } else if (i == 15) {
  7558. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7559. itemTaskIndex
  7560. ].toolChoose[toolIndex].answerQ
  7561. ? JSON.parse(
  7562. JSON.stringify(
  7563. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7564. itemTaskIndex
  7565. ].toolChoose[toolIndex].answerQ
  7566. )
  7567. )
  7568. : "";
  7569. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  7570. this.dialogVisible8 = true;
  7571. } else if (i == 40) {
  7572. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7573. itemTaskIndex
  7574. ].toolChoose[toolIndex].rateJson
  7575. ? JSON.parse(
  7576. JSON.stringify(
  7577. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7578. itemTaskIndex
  7579. ].toolChoose[toolIndex].rateJson
  7580. )
  7581. )
  7582. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  7583. this.selectSteps = 1;
  7584. this.dialogVisibleRate = true;
  7585. } else if (i == 42) {
  7586. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7587. itemTaskIndex
  7588. ].toolChoose[toolIndex].answerQ
  7589. ? JSON.parse(
  7590. JSON.stringify(
  7591. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7592. itemTaskIndex
  7593. ].toolChoose[toolIndex].answerQ
  7594. )
  7595. )
  7596. : "";
  7597. this.dialogVisibleMp3 = true;
  7598. } else if (i == 41) {
  7599. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7600. itemTaskIndex
  7601. ].toolChoose[toolIndex].selectJson
  7602. ? JSON.parse(
  7603. JSON.stringify(
  7604. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7605. itemTaskIndex
  7606. ].toolChoose[toolIndex].selectJson
  7607. )
  7608. )
  7609. : { url: "", select: [], answer: [] };
  7610. this.selectSteps = 1;
  7611. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  7612. this.dialogVisibleSelect = true;
  7613. } else if (i == 3) {
  7614. top.postMessage(
  7615. {
  7616. tools: "3y",
  7617. cid: this.cid,
  7618. stage: this.unitIndex,
  7619. task: itemTaskIndex,
  7620. tool: toolIndex,
  7621. },
  7622. "*"
  7623. );
  7624. } else if (i == 1) {
  7625. top.postMessage(
  7626. {
  7627. tools: "1y",
  7628. cid: this.cid,
  7629. stage: this.unitIndex,
  7630. task: itemTaskIndex,
  7631. tool: toolIndex,
  7632. },
  7633. "*"
  7634. );
  7635. } else if (i == 57) {
  7636. top.postMessage(
  7637. {
  7638. tools: "57y",
  7639. cid: this.cid,
  7640. stage: this.unitIndex,
  7641. task: itemTaskIndex,
  7642. tool: toolIndex,
  7643. },
  7644. "*"
  7645. );
  7646. }else if(i == 69){
  7647. this.englishList = {};
  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.$forceUpdate();
  7660. this.englishDialogVisible = true;
  7661. }else if(i == 70){
  7662. this.englishVoiceJson = {};
  7663. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7664. itemTaskIndex
  7665. ].toolChoose[toolIndex].englishVoiceJson
  7666. ? JSON.parse(
  7667. JSON.stringify(
  7668. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7669. itemTaskIndex
  7670. ].toolChoose[toolIndex].englishVoiceJson
  7671. )
  7672. )
  7673. : {
  7674. title:'',
  7675. detail:'',
  7676. array:[]
  7677. };
  7678. this.$forceUpdate();
  7679. this.EnglishVoiceDialog = true;
  7680. }
  7681. },
  7682. setEnglishVoiceJson(val){
  7683. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(JSON.stringify(val))
  7684. this.$forceUpdate();
  7685. if (
  7686. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7687. .toolChoose[this.toolIndex].tool != 70
  7688. ) {
  7689. this.addTools(70, this.taskCount, this.toolIndex);
  7690. }
  7691. },
  7692. chapAddTools(i) {
  7693. if (this.chapTools[0].tools.length == 0) {
  7694. this.chapTools[0].tools.push(i);
  7695. } else {
  7696. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7697. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7698. } else {
  7699. this.chapTools[0].tools.push(i);
  7700. }
  7701. }
  7702. this.$forceUpdate();
  7703. },
  7704. addChaptersDataTools() {
  7705. if (this.chapTools[0].tools.indexOf(4) != -1) {
  7706. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7707. this.chapCount
  7708. ].chapterData.push({
  7709. name: this.chapTools[0].toolDetail,
  7710. url: this.chapTools[0].tools,
  7711. type: 7,
  7712. askJson: this.askJson,
  7713. });
  7714. } else {
  7715. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7716. this.chapCount
  7717. ].chapterData.push({
  7718. name: this.chapTools[0].toolDetail,
  7719. url: this.chapTools[0].tools,
  7720. type: 7,
  7721. });
  7722. }
  7723. this.imgChange1(null, null, 7, this.chapCount);
  7724. this.dialogVisible4 = false;
  7725. },
  7726. addTools(i, itemTaskIndex, toolIndex) {
  7727. // if (
  7728. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7729. // .toolChoose[toolIndex].tool.length == 0
  7730. // ) {
  7731. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7732. // itemTaskIndex
  7733. // ].toolChoose[toolIndex].tool.push(i);
  7734. // } else {
  7735. // if (
  7736. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7737. // itemTaskIndex
  7738. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7739. // ) {
  7740. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7741. // itemTaskIndex
  7742. // ].toolChoose[toolIndex].tool.splice(
  7743. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7744. // itemTaskIndex
  7745. // ].toolChoose[toolIndex].tool.indexOf(i),
  7746. // 1
  7747. // );
  7748. // } else {
  7749. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7750. // itemTaskIndex
  7751. // ].toolChoose[toolIndex].tool.push(i);
  7752. // }
  7753. // console.log(
  7754. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7755. // .toolChoose[toolIndex].tool
  7756. // );
  7757. // }
  7758. if (i == 4) {
  7759. if (
  7760. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7761. .toolChoose[toolIndex].askJson.askTitle == "" ||
  7762. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7763. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  7764. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7765. .toolChoose[toolIndex].askJson[0].checkList < 2
  7766. ) {
  7767. this.openTools(itemTaskIndex, 4, toolIndex);
  7768. // this.$message({
  7769. // message: "请填写完整问卷内容",
  7770. // type: "error",
  7771. // });
  7772. return;
  7773. }
  7774. }
  7775. if (i == 45) {
  7776. if (
  7777. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7778. .toolChoose[toolIndex].testJson ||
  7779. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7780. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  7781. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7782. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  7783. ) {
  7784. this.openTools(itemTaskIndex, 45, toolIndex);
  7785. // this.$message({
  7786. // message: "请填写完整问卷内容",
  7787. // type: "error",
  7788. // });
  7789. return;
  7790. }
  7791. }
  7792. if (i == 47) {
  7793. if (
  7794. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7795. .toolChoose[toolIndex].sentenceList ||
  7796. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7797. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  7798. ) {
  7799. this.openTools(itemTaskIndex, 47, toolIndex);
  7800. return;
  7801. }
  7802. }
  7803. if(i == 69){
  7804. if (
  7805. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7806. .toolChoose[toolIndex].englishList
  7807. ) {
  7808. this.openTools(itemTaskIndex, 69, toolIndex);
  7809. return;
  7810. }
  7811. }
  7812. if(i == 70){
  7813. if (
  7814. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7815. .toolChoose[toolIndex].englishVoiceJson
  7816. ) {
  7817. this.openTools(itemTaskIndex, 70, toolIndex);
  7818. return;
  7819. }
  7820. }
  7821. // if (i == 48) {
  7822. // if (
  7823. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7824. // .toolChoose[toolIndex].tableJson
  7825. // ) {
  7826. // this.openTools(itemTaskIndex, 48, toolIndex);
  7827. // return;
  7828. // }
  7829. // }
  7830. // if (i == 50) {
  7831. // if (
  7832. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7833. // .toolChoose[toolIndex].uploadJson
  7834. // ) {
  7835. // this.openTools(itemTaskIndex, 50, toolIndex);
  7836. // return;
  7837. // }
  7838. // }
  7839. if (i == 49) {
  7840. if (
  7841. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7842. .toolChoose[toolIndex].groupJson
  7843. ) {
  7844. this.openTools(itemTaskIndex, 49, toolIndex);
  7845. return;
  7846. }
  7847. }
  7848. if (i == 62) {
  7849. if (
  7850. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7851. .toolChoose[toolIndex].videoJson
  7852. ) {
  7853. this.openTools(itemTaskIndex, 62, toolIndex);
  7854. return;
  7855. }
  7856. }
  7857. if (i == 15) {
  7858. if (
  7859. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7860. .toolChoose[toolIndex].answerQ ||
  7861. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7862. .toolChoose[toolIndex].answerQ == ""
  7863. ) {
  7864. this.openTools(itemTaskIndex, 15, toolIndex);
  7865. // this.$message({
  7866. // message: "请填写问答内容",
  7867. // type: "error",
  7868. // });
  7869. return;
  7870. }
  7871. }
  7872. if (i == 40) {
  7873. if (
  7874. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7875. .toolChoose[toolIndex].rateJson ||
  7876. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7877. .toolChoose[toolIndex].rateJson.length
  7878. ) {
  7879. this.openTools(itemTaskIndex, 40, toolIndex);
  7880. return;
  7881. }
  7882. }
  7883. if (i == 41) {
  7884. if (
  7885. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7886. .toolChoose[toolIndex].selectJson ||
  7887. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7888. .toolChoose[toolIndex].selectJson.url == "" ||
  7889. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7890. .toolChoose[toolIndex].selectJson.select.length ||
  7891. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7892. .toolChoose[toolIndex].selectJson.answer.length
  7893. ) {
  7894. this.openTools(itemTaskIndex, 41, toolIndex);
  7895. return;
  7896. }
  7897. }
  7898. if (i == 42) {
  7899. if (
  7900. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7901. .toolChoose[toolIndex].answerQ ||
  7902. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7903. .toolChoose[toolIndex].answerQ == ""
  7904. ) {
  7905. this.openTools(itemTaskIndex, 42, toolIndex);
  7906. return;
  7907. }
  7908. }
  7909. if (
  7910. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7911. .toolChoose[toolIndex].tool.length > 0
  7912. ) {
  7913. if (
  7914. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7915. itemTaskIndex
  7916. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7917. ) {
  7918. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7919. itemTaskIndex
  7920. ].toolChoose[toolIndex].tool.splice(
  7921. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7922. itemTaskIndex
  7923. ].toolChoose[toolIndex].tool.indexOf(i),
  7924. 1
  7925. );
  7926. } else {
  7927. // this.$message({
  7928. // message: "每个工具只能添加一个",
  7929. // type: "error",
  7930. // });
  7931. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7932. itemTaskIndex
  7933. ].toolChoose[toolIndex].tool = [];
  7934. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7935. itemTaskIndex
  7936. ].toolChoose[toolIndex].tool.push(i);
  7937. }
  7938. } else {
  7939. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7940. itemTaskIndex
  7941. ].toolChoose[toolIndex].tool.push(i);
  7942. }
  7943. this.$forceUpdate();
  7944. },
  7945. addAskList(index) {
  7946. this.askJson.askJson.splice(index + 1, 0, {
  7947. askstitle: "",
  7948. askItem: 1,
  7949. checkList: [],
  7950. })
  7951. this.askJson.askCount++;
  7952. },
  7953. addTestList(index) {
  7954. this.testJson.testJson.splice(index + 1, 0, {
  7955. teststitle: "",
  7956. testItem: 1,
  7957. checkList: [],
  7958. timuList: [],
  7959. answer: [],
  7960. type: "1",
  7961. })
  7962. this.testJson.testCount++;
  7963. },
  7964. deleteAskList(index) {
  7965. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  7966. this.askJson.askJson.splice(index, 1);
  7967. this.askJson.askCount--;
  7968. } else {
  7969. let _this = this;
  7970. _this
  7971. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7972. confirmButtonText: "确定",
  7973. cancelButtonText: "取消",
  7974. type: "warning",
  7975. })
  7976. .then(() => {
  7977. _this.askJson.askJson.splice(index, 1);
  7978. _this.askJson.askCount--;
  7979. })
  7980. .catch(() => {
  7981. return;
  7982. });
  7983. }
  7984. },
  7985. deleteTestList(index) {
  7986. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  7987. this.testJson.testJson.splice(index, 1);
  7988. this.testJson.testCount--;
  7989. } else {
  7990. let _this = this;
  7991. _this
  7992. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7993. confirmButtonText: "确定",
  7994. cancelButtonText: "取消",
  7995. type: "warning",
  7996. })
  7997. .then(() => {
  7998. _this.testJson.testJson.splice(index, 1);
  7999. _this.testJson.testCount--;
  8000. })
  8001. .catch(() => {
  8002. return;
  8003. });
  8004. }
  8005. },
  8006. askMove(type, index) {
  8007. if (type == 1) {
  8008. if (index > 0) {
  8009. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  8010. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  8011. this.askJson.askJson[index - 1] = b;
  8012. this.askJson.askJson[index] = a;
  8013. }
  8014. } else {
  8015. if (
  8016. index < this.askJson.askJson.length - 1
  8017. ) {
  8018. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  8019. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  8020. this.askJson.askJson[index + 1] = b;
  8021. this.askJson.askJson[index] = a;
  8022. }
  8023. }
  8024. this.$forceUpdate();
  8025. },
  8026. checkMove(type, index, checkIndex) {
  8027. if (type == 1) {
  8028. if (checkIndex > 0) {
  8029. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  8030. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  8031. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  8032. this.askJson.askJson[index].checkList[checkIndex] = a;
  8033. }
  8034. } else {
  8035. if (
  8036. checkIndex < this.askJson.askJson[index].checkList.length - 1
  8037. ) {
  8038. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  8039. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  8040. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  8041. this.askJson.askJson[index].checkList[checkIndex] = a;
  8042. }
  8043. }
  8044. this.$forceUpdate();
  8045. },
  8046. testMove(type, index) {
  8047. if (type == 1) {
  8048. if (index > 0) {
  8049. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  8050. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  8051. this.testJson.testJson[index - 1] = b;
  8052. this.testJson.testJson[index] = a;
  8053. }
  8054. } else {
  8055. if (
  8056. index < this.testJson.testJson.length - 1
  8057. ) {
  8058. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  8059. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  8060. this.testJson.testJson[index + 1] = b;
  8061. this.testJson.testJson[index] = a;
  8062. }
  8063. }
  8064. this.$forceUpdate();
  8065. },
  8066. tcheckMove(type, index, checkIndex) {
  8067. if (type == 1) {
  8068. if (checkIndex > 0) {
  8069. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  8070. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8071. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  8072. this.testJson.testJson[index].checkList[checkIndex] = a;
  8073. }
  8074. } else {
  8075. if (
  8076. checkIndex < this.testJson.testJson[index].checkList.length - 1
  8077. ) {
  8078. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  8079. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8080. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  8081. this.testJson.testJson[index].checkList[checkIndex] = a;
  8082. }
  8083. }
  8084. this.$forceUpdate();
  8085. },
  8086. addcheckList(json, index) {
  8087. // json.checkList.length++;
  8088. json.checkList.splice(index + 1, 0, '')
  8089. json.askItem++;
  8090. this.$forceUpdate();
  8091. },
  8092. deletecheckList(json, index) {
  8093. // json.checkList.length--;
  8094. json.checkList.splice(index, 1)
  8095. json.askItem--;
  8096. this.$forceUpdate();
  8097. },
  8098. addTcheckList(json, index) {
  8099. // json.checkList.length++;
  8100. json.checkList.splice(index + 1, 0, '')
  8101. json.testItem++;
  8102. this.$forceUpdate();
  8103. },
  8104. deleteTcheckList(json, index) {
  8105. // json.checkList.length--;
  8106. json.checkList.splice(index, 1)
  8107. json.testItem--;
  8108. this.$forceUpdate();
  8109. },
  8110. checkTestType(type, json) {
  8111. json.type = type;
  8112. setTimeout(() => {
  8113. json.answer = [];
  8114. }, 100)
  8115. },
  8116. checkAskType(type, json) {
  8117. json.type = type;
  8118. // json.checkList = [];
  8119. this.$forceUpdate();
  8120. },
  8121. addSelectList(json) {
  8122. json.select.push("");
  8123. json.answer.push("");
  8124. },
  8125. deleteSelectList(json) {
  8126. // json.select.length--;
  8127. // json.answer.length--;
  8128. json.select.splice(json.select.length - 1, 1);
  8129. json.answer.splice(json.answer.length - 1, 1);
  8130. },
  8131. addAsk() {
  8132. if (this.askJson.askTitle === "") {
  8133. this.$message.error("标题不能为空!");
  8134. return;
  8135. }
  8136. var aj = this.askJson.askJson;
  8137. var b = 1;
  8138. for (var i = 0; i < aj.length; i++) {
  8139. if (aj[i].askstitle === "") {
  8140. var a = 1;
  8141. for (let index = 0; index < aj[i].askItem; index++) {
  8142. const element = aj[i].checkList[index]
  8143. ? aj[i].checkList[index]
  8144. : "";
  8145. if (element != "") {
  8146. b++;
  8147. this.$message.error(`请将题目${i + 1}填写完整。`);
  8148. return;
  8149. } else {
  8150. a++;
  8151. }
  8152. }
  8153. if (b == 1) {
  8154. this.$message.error("至少填写一个问题");
  8155. return;
  8156. }
  8157. } else if (aj[i].askstitle != "") {
  8158. for (let index = 0; index < aj[i].askItem; index++) {
  8159. const element = aj[i].checkList[index]
  8160. ? aj[i].checkList[index]
  8161. : "";
  8162. var index = 0;
  8163. for (var z = 0; z < aj[i].checkList.length; z++) {
  8164. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8165. if (checkC != "") {
  8166. index++;
  8167. } else {
  8168. this.$message.error(`题目${i + 1}选项不能为空!`);
  8169. return;
  8170. }
  8171. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8172. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8173. if (checkC == checkC2) {
  8174. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8175. return;
  8176. }
  8177. }
  8178. }
  8179. b++;
  8180. if (index < 2) {
  8181. this.$message.error("每道题目至少需要设置2个选项。");
  8182. return;
  8183. }
  8184. }
  8185. }
  8186. }
  8187. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  8188. var elc = el.checkList.filter((element) => {
  8189. return element != "";
  8190. });
  8191. return el.askstitle != "" && elc.length != 0;
  8192. });
  8193. if (!this.dialogVisible4) {
  8194. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8195. this.taskCount
  8196. ].toolChoose[this.toolIndex] = this.askJson;
  8197. }
  8198. this.dialogVisible5 = false;
  8199. if (
  8200. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8201. .toolChoose[this.toolIndex].tool != 4
  8202. ) {
  8203. this.addTools(4, this.taskCount, this.toolIndex);
  8204. }
  8205. },
  8206. addTest() {
  8207. // if (this.testJson.testTitle === "") {
  8208. // this.$message.error("标题不能为空!");
  8209. // return;
  8210. // }
  8211. var aj = this.testJson.testJson;
  8212. var b = 1;
  8213. for (var i = 0; i < aj.length; i++) {
  8214. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  8215. var a = 1;
  8216. for (let index = 0; index < aj[i].testItem; index++) {
  8217. const element = aj[i].checkList[index]
  8218. ? aj[i].checkList[index]
  8219. : "";
  8220. if (element != "") {
  8221. b++;
  8222. this.$message.error(`请将题目${i + 1}填写完整。`);
  8223. return;
  8224. } else {
  8225. a++;
  8226. }
  8227. }
  8228. if (b == 1) {
  8229. this.$message.error("至少填写一个问题");
  8230. return;
  8231. }
  8232. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  8233. for (let index = 0; index < aj[i].testItem; index++) {
  8234. const element = aj[i].checkList[index]
  8235. ? aj[i].checkList[index]
  8236. : "";
  8237. var index = 0;
  8238. for (var z = 0; z < aj[i].checkList.length; z++) {
  8239. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8240. if (checkC != "") {
  8241. index++;
  8242. } else {
  8243. this.$message.error(`题目${i + 1}选项不能为空!`);
  8244. return;
  8245. }
  8246. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8247. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8248. if (checkC == checkC2) {
  8249. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8250. return;
  8251. }
  8252. }
  8253. }
  8254. b++;
  8255. if (index < 2) {
  8256. this.$message.error("每道题目至少需要设置2个选项。");
  8257. return;
  8258. }
  8259. if (
  8260. (aj[i].type == "2" && !aj[i].answer.length) ||
  8261. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  8262. ) {
  8263. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  8264. return;
  8265. }
  8266. }
  8267. }
  8268. }
  8269. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8270. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8271. var elc = el.checkList.filter((element) => {
  8272. return element != "";
  8273. });
  8274. return (
  8275. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8276. );
  8277. });
  8278. isTestJson.testCount = isTestJson.testJson.length;
  8279. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8280. this.taskCount
  8281. ].toolChoose[this.toolIndex].testJson = isTestJson;
  8282. this.dialogVisibleChoice = false;
  8283. if (
  8284. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8285. .toolChoose[this.toolIndex].tool != 45
  8286. ) {
  8287. this.addTools(45, this.taskCount, this.toolIndex);
  8288. }
  8289. },
  8290. addVideoJson(videoJson) {
  8291. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8292. this.taskCount
  8293. ].toolChoose[this.toolIndex].videoJson = videoJson;
  8294. this.dialogVisibleVideo = false;
  8295. if (
  8296. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8297. .toolChoose[this.toolIndex].tool != 62
  8298. ) {
  8299. this.addTools(62, this.taskCount, this.toolIndex);
  8300. }
  8301. },
  8302. //自动获取剪贴板
  8303. pasteOption() {
  8304. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8305. if (!iframe) {
  8306. this.$message.error("请使用AI共创生成题目");
  8307. return;
  8308. }
  8309. let copyData = iframe.contentWindow.copyData;
  8310. if (!copyData || !copyData.selectData.length) {
  8311. this.$message.error("请使用AI共创生成题目");
  8312. return;
  8313. }
  8314. let selectData = copyData.selectData;
  8315. for (var i = 0; i < selectData.length; i++) {
  8316. let answer = 0;
  8317. switch (selectData[i].answer[0]) {
  8318. case "A":
  8319. answer = 0;
  8320. break;
  8321. case "B":
  8322. answer = 1;
  8323. break;
  8324. case "C":
  8325. answer = 2;
  8326. break;
  8327. case "D":
  8328. answer = 3;
  8329. break;
  8330. case "E":
  8331. answer = 4;
  8332. break;
  8333. default:
  8334. break;
  8335. }
  8336. this.testJson.testJson.push({
  8337. teststitle: selectData[i].subject,
  8338. testItem: selectData[i].options.length,
  8339. checkList: selectData[i].options,
  8340. timuList: [],
  8341. answer: answer,
  8342. type: "1",
  8343. });
  8344. this.testJson.testCount++;
  8345. }
  8346. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8347. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8348. var elc = el.checkList.filter((element) => {
  8349. return element != "";
  8350. });
  8351. return (
  8352. el.teststitle != "" || el.timuList.length > 0 || elc.length != 0
  8353. );
  8354. });
  8355. isTestJson.testCount = isTestJson.testJson.length;
  8356. if(!isTestJson.testCount){
  8357. return;
  8358. }
  8359. this.testJson = isTestJson;
  8360. this.$forceUpdate();
  8361. },
  8362. pasteTask(taskJson) {
  8363. let stageTasksData = [];
  8364. if(taskJson){
  8365. stageTasksData = taskJson
  8366. }else {
  8367. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8368. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  8369. if (!iframe && !iframe2) {
  8370. this.$message.error("请使用AI共创生成");
  8371. return;
  8372. }
  8373. let copyData = iframe ? iframe.contentWindow.copyData : false;
  8374. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  8375. if ((!copyData || !copyData.tasksData || !copyData.tasksData.length) && (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)) {
  8376. this.$message.error("请使用AI共创生成");
  8377. return;
  8378. }
  8379. stageTasksData = copyData ? copyData.tasksData : copyData2 ? copyData2.tasksData : [{taskName:'',taskDecs:''}];
  8380. }
  8381. let taskA = [];
  8382. let tasks = stageTasksData;
  8383. for (var j = 0; j < tasks.length; j++) {
  8384. taskA.push({
  8385. task: tasks[j].taskName,
  8386. taskDetail: tasks[j].taskDecs,
  8387. chapterData: [],
  8388. toolText: "",
  8389. toolChoose: [
  8390. {
  8391. tool: [],
  8392. toolDetail: "",
  8393. toolType: 0,
  8394. askCount: 1,
  8395. askTitle: "",
  8396. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8397. },
  8398. ],
  8399. isShowTools: false,
  8400. askCount: 1,
  8401. isFold: 1,
  8402. askTitle: "",
  8403. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8404. checkJson: [{ checkCount: [], checkPerent: [] }],
  8405. homeworkList: [],
  8406. });
  8407. }
  8408. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  8409. this.$forceUpdate();
  8410. },
  8411. pasteStage(stageJson) {
  8412. let stageData = [];
  8413. if(stageJson){
  8414. stageData = stageJson
  8415. }else{
  8416. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8417. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  8418. if (!iframe && !iframe2) {
  8419. this.$message.error("请使用AI共创生成");
  8420. return;
  8421. }
  8422. let copyData = iframe ? iframe.contentWindow.copyData : false;
  8423. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  8424. if ((!copyData || !copyData.stageData || !copyData.stageData.length) && (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)) {
  8425. this.$message.error("请使用AI共创生成");
  8426. return;
  8427. }
  8428. stageData = copyData ? copyData.stageData : copyData2 ? copyData2.stageData : [''];
  8429. }
  8430. let stage = [];
  8431. for (var i = 0; i < stageData.length; i++) {
  8432. stage.push({
  8433. dyName: stageData[i], //单元标题
  8434. chapterInfo: [
  8435. {
  8436. isread: false,
  8437. chapterid: this.guid(),
  8438. title: "",
  8439. courseName: "",
  8440. taskJson: [
  8441. {
  8442. task: "",
  8443. taskDetail: "",
  8444. chapterData: [],
  8445. toolText: "",
  8446. toolChoose: [
  8447. {
  8448. tool: [],
  8449. toolDetail: "",
  8450. toolType: 0,
  8451. askCount: 1,
  8452. askTitle: "",
  8453. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8454. },
  8455. ],
  8456. isShowTools: false,
  8457. askCount: 1,
  8458. isFold: 1,
  8459. askTitle: "",
  8460. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8461. checkJson: [{ checkCount: [], checkPerent: [] }],
  8462. homeworkList: [],
  8463. },
  8464. ],
  8465. itemCount: 1,
  8466. fileList1: [],
  8467. video: [],
  8468. testData: [],
  8469. pData: [],
  8470. templateArray: [],
  8471. },
  8472. ],
  8473. });
  8474. }
  8475. let _this = this;
  8476. if(stageJson){
  8477. if(!_this.cid){
  8478. _this.unitJson = stage;
  8479. }else{
  8480. _this.unitIndex = 0;
  8481. _this.unitJson = stage;
  8482. _this.updateWork();
  8483. }
  8484. }else{
  8485. _this
  8486. .$confirm("确定选择智能粘贴模板吗?修改课程时无法重置课程模板。", "提示", {
  8487. confirmButtonText: "确定",
  8488. cancelButtonText: "取消",
  8489. type: "warning",
  8490. })
  8491. .then(() => {
  8492. _this.unitIndex = 0;
  8493. _this.unitJson = stage;
  8494. // _this.steps++;
  8495. _this.updateWork();
  8496. })
  8497. .catch(() => {
  8498. return;
  8499. });
  8500. }
  8501. },
  8502. openStageBox() {
  8503. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson))
  8504. this.dialogVisibleStageChange = true;
  8505. },
  8506. updateChange() {
  8507. this.$confirm(
  8508. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  8509. "提示",
  8510. {
  8511. confirmButtonText: "确定",
  8512. cancelButtonText: "取消",
  8513. type: "warning",
  8514. }
  8515. )
  8516. .then(() => {
  8517. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3))
  8518. this.updateWork()
  8519. this.dialogVisibleStageChange = false;
  8520. })
  8521. .catch(() => {
  8522. return;
  8523. });
  8524. },
  8525. addAnswer() {
  8526. if (this.answerQ == "") {
  8527. this.$message.error("请输入您想要问的问题");
  8528. return;
  8529. }
  8530. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8531. this.taskCount
  8532. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8533. this.dialogVisible8 = false;
  8534. if (
  8535. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8536. .toolChoose[this.toolIndex].tool != 15
  8537. ) {
  8538. this.addTools(15, this.taskCount, this.toolIndex);
  8539. }
  8540. },
  8541. addMp3Answer() {
  8542. if (this.answerQ == "") {
  8543. this.$message.error("请输入您想要回答的问题");
  8544. return;
  8545. }
  8546. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8547. this.taskCount
  8548. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8549. this.dialogVisibleMp3 = false;
  8550. },
  8551. addRateAnswer() {
  8552. var a = 1;
  8553. for (var i = 0; i < this.rateJson.length; i++) {
  8554. if (this.rateJson[i].value == "") {
  8555. a = 2;
  8556. break;
  8557. }
  8558. }
  8559. if (a == 2) {
  8560. this.$message.error("请把评价信息填写完整");
  8561. return;
  8562. }
  8563. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8564. this.taskCount
  8565. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  8566. this.dialogVisibleRate = false;
  8567. if (
  8568. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8569. .toolChoose[this.toolIndex].tool != 40
  8570. ) {
  8571. this.addTools(40, this.taskCount, this.toolIndex);
  8572. }
  8573. },
  8574. addSelectAnswer() {
  8575. if (this.selectJson.url == "") {
  8576. this.$message.error("请上传题目");
  8577. return;
  8578. }
  8579. if (!this.selectJson.select.length) {
  8580. this.$message.error("请添加选项");
  8581. return;
  8582. }
  8583. if (!this.selectJson.answer.length) {
  8584. this.$message.error("请设置答案");
  8585. return;
  8586. }
  8587. var a = 1;
  8588. for (var i = 0; i < this.selectJson.answer.length; i++) {
  8589. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  8590. a = 2;
  8591. }
  8592. }
  8593. if (a == 2) {
  8594. this.$message.error("请设置答案");
  8595. return;
  8596. }
  8597. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8598. this.taskCount
  8599. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  8600. this.dialogVisibleSelect = false;
  8601. if (
  8602. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8603. .toolChoose[this.toolIndex].tool != 41
  8604. ) {
  8605. this.addTools(41, this.taskCount, this.toolIndex);
  8606. }
  8607. },
  8608. nextSelectSteps() {
  8609. if (this.selectJson.url == "") {
  8610. this.$message.error("请上传题目");
  8611. return;
  8612. }
  8613. if (!this.selectJson.select.length) {
  8614. this.$message.error("请添加选项");
  8615. return;
  8616. } else {
  8617. for (var z = 0; z < this.selectJson.select.length; z++) {
  8618. let checkC = this.selectJson.select[z];
  8619. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  8620. let checkC2 = this.selectJson.select[z2];
  8621. if (checkC == checkC2) {
  8622. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8623. return;
  8624. }
  8625. }
  8626. }
  8627. }
  8628. var a = 1;
  8629. for (var i = 0; i < this.selectJson.select.length; i++) {
  8630. if (!this.selectJson.select[i]) {
  8631. a = 2;
  8632. }
  8633. }
  8634. if (a == 2) {
  8635. this.$message.error("添加的选项不能为空");
  8636. return;
  8637. }
  8638. this.selectSteps++;
  8639. },
  8640. selectCourseDetail() {
  8641. if (this.cid == "" || this.cid == undefined) {
  8642. console.log("这是新增课程");
  8643. this.selectAllType();
  8644. } else {
  8645. this.cidType = 1;
  8646. let params = {
  8647. cid: this.cid,
  8648. };
  8649. this.ajax
  8650. .get(this.$store.state.api + "select_course_detail", params)
  8651. .then((res) => {
  8652. this.loading = true;
  8653. this.unitJson = JSON.parse(res.data[0][0].chapters);
  8654. this.courseState = res.data[0][0].state
  8655. for (var j = 0; j < this.unitJson.length; j++) {
  8656. for (
  8657. var k = 0;
  8658. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  8659. k++
  8660. ) {
  8661. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  8662. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8663. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8664. : [];
  8665. let _chapterData = [];
  8666. for (
  8667. var c = 0;
  8668. c <
  8669. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  8670. .length;
  8671. c++
  8672. ) {
  8673. if (
  8674. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8675. ) {
  8676. _chapterData.push(
  8677. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8678. );
  8679. }
  8680. }
  8681. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  8682. _chapterData;
  8683. }
  8684. }
  8685. this.$forceUpdate();
  8686. this.courseName = res.data[0][0].title;
  8687. this.courseText = res.data[0][0].brief;
  8688. this.evalua = res.data[0][0].evaId;
  8689. this.cover = JSON.parse(res.data[0][0].cover);
  8690. this.noneBtnImg = this.cover.length >= 1;
  8691. // this.checkboxList =
  8692. // res.data[0][0].course_student.length > 0
  8693. // ? JSON.parse(res.data[0][0].course_student)
  8694. // : [];
  8695. this.checkboxList2 = res.data[0][0].juri
  8696. ? res.data[0][0].juri.split(",")
  8697. : [];
  8698. this.inviteCode = [];
  8699. for (var i = 0; i < res.data[2].length; i++) {
  8700. this.inviteCode.push({
  8701. cid: res.data[2][i].classid,
  8702. ic: res.data[2][i].code,
  8703. });
  8704. }
  8705. this.checkboxList3 = res.data[0][0].course_teacher
  8706. ? res.data[0][0].course_teacher.split(",")
  8707. : [];
  8708. // this.isTeacherSee =
  8709. // res.data[0][0].is_teacher_look == 0 ? true : false;
  8710. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  8711. this.myWord = res.data[0][0].template;
  8712. this.templateC.id = "123";
  8713. this.courseUserid = res.data[0][0].userid;
  8714. // if(this.courseUserid == this.userid){
  8715. // this.InviteChange(this.checkboxList2)
  8716. // }
  8717. this.nbOrder = res.data[0][0].ordernumber;
  8718. this.courseTypeId = [];
  8719. for (var i = 0; i < res.data[1].length; i++) {
  8720. this.courseTypeId.push(res.data[1][i].typeid);
  8721. }
  8722. console.log(this.courseTypeId);
  8723. // if (this.timer) clearInterval(this.timer);
  8724. if (this.timer) clearTimeout(this.timer);
  8725. this.timer = null;
  8726. // this.timer = setInterval(() => {
  8727. this.seleteCourseUpdate();
  8728. this.setMan();
  8729. this.selectAllType();
  8730. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  8731. // }, 5000);
  8732. this.$forceUpdate();
  8733. setTimeout(() => {
  8734. this.checkEva(this.evalua);
  8735. setTimeout(() => {
  8736. this.checkEva(this.evalua);
  8737. }, 100);
  8738. }, 100);
  8739. })
  8740. .catch((err) => {
  8741. console.error(err);
  8742. });
  8743. }
  8744. },
  8745. seleteCourseUpdate() {
  8746. let params = {
  8747. cid: this.cid,
  8748. };
  8749. this.ajax
  8750. .get(this.$store.state.api + "select_course_detail", params)
  8751. .then((res) => {
  8752. // console.log(this.unitJson);
  8753. let unitJson = JSON.parse(res.data[0][0].chapters);
  8754. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  8755. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  8756. let _unitJson = [];
  8757. let _chapAarry = [];
  8758. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  8759. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  8760. let index = 1;
  8761. let chapindex;
  8762. if (_unitJson2.length > unitJson.length) {
  8763. for (let c = 0; c < _unitJson2.length; c++) {
  8764. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  8765. }
  8766. for (let j = 0; j < unitJson.length; j++) {
  8767. let count = 0;
  8768. for (let k = 0; k < _unitJson2.length; k++) {
  8769. if (
  8770. unitJson[j].chapterInfo[0].chapterid ==
  8771. _unitJson2[k].chapterInfo[0].chapterid
  8772. ) {
  8773. count++;
  8774. _chapAarry.splice(
  8775. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8776. 1
  8777. );
  8778. _unitJson.push(unitJson[j]);
  8779. break;
  8780. }
  8781. }
  8782. // if(count === 0){
  8783. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8784. // }
  8785. }
  8786. for (let k = 0; k < _unitJson2.length; k++) {
  8787. if (_unitJson2[k].isUpdate == 1) {
  8788. _chapAarry.splice(
  8789. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8790. 1
  8791. );
  8792. _unitJson.push(_unitJson2[k]);
  8793. }
  8794. }
  8795. console.log(_chapAarry);
  8796. for (let d = 0; d < _unitJson2.length; d++) {
  8797. if (
  8798. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  8799. ) {
  8800. if (_unitIndex == d) {
  8801. index = 2;
  8802. }
  8803. chapindex = d;
  8804. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8805. }
  8806. }
  8807. } else {
  8808. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  8809. }
  8810. for (let i = 0; i < unitJson.length; i++) {
  8811. if (
  8812. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  8813. _unitJson[i].chapterInfo[0].chapterid !=
  8814. unitJson[i].chapterInfo[0].chapterid
  8815. ) {
  8816. if (i == _unitJson.length - 1) {
  8817. // this.unitIndex++
  8818. _unitIndex2++;
  8819. }
  8820. _unitJson.splice(i, 0, unitJson[i]);
  8821. } else if (i > _unitJson.length - 1) {
  8822. _unitJson.push(unitJson[i]);
  8823. } else if (
  8824. _unitJson[i].chapterInfo[0].chapterid ==
  8825. unitJson[i].chapterInfo[0].chapterid
  8826. ) {
  8827. _unitJson[i] = unitJson[i];
  8828. }
  8829. // if (i == _unitIndex) {
  8830. // continue;
  8831. // } else
  8832. }
  8833. if (_chapAarry.length && index != 2) {
  8834. if (chapindex < _unitIndex) {
  8835. this.isDelete = 2;
  8836. // this.unitIndex--;
  8837. _unitIndex2--;
  8838. } else if (
  8839. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  8840. _unitJson[_unitIndex].chapterInfo[0].chapterid
  8841. ) {
  8842. this.isDelete = 2;
  8843. for (let n = 0; n < _unitJson.length; n++) {
  8844. if (
  8845. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  8846. _unitJson[n].chapterInfo[0].chapterid
  8847. ) {
  8848. // this.unitIndex = n;
  8849. _unitIndex2 = n;
  8850. _unitJson[n] = _unitJson2[_unitIndex];
  8851. break;
  8852. }
  8853. }
  8854. }
  8855. } else if (index != 2) {
  8856. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  8857. _unitJson2[_unitIndex];
  8858. for (
  8859. var ci = 0;
  8860. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  8861. ci++
  8862. ) {
  8863. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  8864. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  8865. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8866. .toolChoose
  8867. : [];
  8868. let _chapterData = [];
  8869. for (
  8870. var c = 0;
  8871. c <
  8872. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  8873. .length;
  8874. c++
  8875. ) {
  8876. if (
  8877. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8878. .chapterData[c]
  8879. ) {
  8880. _chapterData.push(
  8881. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8882. .chapterData[c]
  8883. );
  8884. }
  8885. }
  8886. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  8887. _chapterData;
  8888. }
  8889. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  8890. }
  8891. if (index == 1) {
  8892. this.unitJson = _unitJson;
  8893. this.$forceUpdate();
  8894. setTimeout(() => {
  8895. if (this.unitIndex != _unitIndex2) {
  8896. this.isDelete = 2;
  8897. this.unitIndex = _unitIndex2;
  8898. }
  8899. }, 0);
  8900. this.timer = setTimeout(() => {
  8901. this.seleteCourseUpdate();
  8902. }, 1000);
  8903. } else if (index == 2) {
  8904. let _this = this;
  8905. _this
  8906. .$confirm(
  8907. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  8908. "提示",
  8909. {
  8910. confirmButtonText: "需要",
  8911. cancelButtonText: "取消",
  8912. type: "warning",
  8913. }
  8914. )
  8915. .then(() => {
  8916. if (_this.time()) {
  8917. _this.restoreWork(
  8918. _chapAarry[0],
  8919. _unitJson,
  8920. chapindex,
  8921. _unitJson2,
  8922. _unitIndex2
  8923. );
  8924. }
  8925. })
  8926. .catch(() => {
  8927. _this.unitJson = _unitJson;
  8928. _this.$forceUpdate();
  8929. setTimeout(() => {
  8930. if (this.unitIndex != _unitIndex2) {
  8931. this.isDelete = 2;
  8932. this.unitIndex = _unitIndex2;
  8933. }
  8934. }, 0);
  8935. _this.timer = setTimeout(() => {
  8936. _this.seleteCourseUpdate();
  8937. }, 1000);
  8938. });
  8939. }
  8940. })
  8941. .catch((err) => {
  8942. console.error(err);
  8943. });
  8944. },
  8945. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  8946. let params = [
  8947. {
  8948. cid: this.cid,
  8949. chapters: JSON.stringify(this.unitJson),
  8950. uid: this.userid,
  8951. chapid: chapid,
  8952. },
  8953. ];
  8954. this.ajax
  8955. .post(this.$store.state.api + "restoreWork", params)
  8956. .then((res) => {
  8957. this.$message({
  8958. message: "恢复成功",
  8959. type: "success",
  8960. });
  8961. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  8962. this.unitJson = unitJson;
  8963. this.$forceUpdate();
  8964. setTimeout(() => {
  8965. if (this.unitIndex != unitIndex2) {
  8966. this.isDelete = 2;
  8967. this.unitIndex = unitIndex2;
  8968. }
  8969. }, 0);
  8970. this.timer = setTimeout(() => {
  8971. this.seleteCourseUpdate();
  8972. }, 1000);
  8973. })
  8974. .catch((err) => {
  8975. this.$message.error("网络不佳");
  8976. console.error(err);
  8977. });
  8978. },
  8979. getTypeName() {
  8980. console.log(this.courseTypeId);
  8981. this.$forceUpdate();
  8982. },
  8983. selectAllType() {
  8984. let params = {
  8985. org: this.org && this.org != "" ? this.org : "",
  8986. oid: this.oid && this.oid != "" ? this.oid : "",
  8987. };
  8988. this.ajax
  8989. .get(this.$store.state.api + "selectAllType", params)
  8990. .then((res) => {
  8991. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8992. res.data[0] = [...res.data[0], ...res.data[4]]
  8993. }
  8994. this.CourseType = res.data;
  8995. this.CourseType2 = [
  8996. { name: "智见课程", id: [] },
  8997. { name: "智行课程", id: [] },
  8998. { name: "智创课程", id: [] },
  8999. ];
  9000. for (var cti = 0; cti < res.data[0].length; cti++) {
  9001. if (
  9002. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  9003. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  9004. ) {
  9005. this.CourseType2[0].id.push(res.data[0][cti].id);
  9006. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  9007. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  9008. this.CourseType2[1].id.push(res.data[0][cti].id);
  9009. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  9010. this.CourseType2[2].id.push(res.data[0][cti].id);
  9011. }
  9012. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  9013. res.data[0][cti].name = "年级";
  9014. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  9015. res.data[0][cti].name = "学科";
  9016. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  9017. res.data[0][cti].name = "主题";
  9018. }
  9019. }
  9020. let _courseTypeId = [];
  9021. for (var i = 0; i < res.data[0].length; i++) {
  9022. if (!this.cid) {
  9023. this.courseTypeId[res.data[0][i].id] = [];
  9024. }
  9025. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  9026. // }
  9027. this.CourseTypeJson[res.data[0][i].id] = [];
  9028. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9029. if (res.data[0][i].name == "栏目") {
  9030. this.CourseType[0][i].name = "主题";
  9031. }
  9032. }
  9033. if (res.data[2].length == 0 && res.data[3].length == 0) {
  9034. for (var j = 0; j < res.data[1].length; j++) {
  9035. if (
  9036. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  9037. _courseTypeId.indexOf(res.data[1][j].id) == -1
  9038. ) {
  9039. _courseTypeId.push(res.data[1][j].id);
  9040. }
  9041. if (res.data[0][i].id == res.data[1][j].pid) {
  9042. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9043. }
  9044. }
  9045. } else {
  9046. if (res.data[2].length > 0) {
  9047. for (var j = 0; j < res.data[2].length; j++) {
  9048. if (
  9049. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  9050. _courseTypeId.indexOf(res.data[2][j].id) == -1
  9051. ) {
  9052. _courseTypeId.push(res.data[2][j].id);
  9053. }
  9054. if (res.data[0][i].id == res.data[2][j].pid) {
  9055. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  9056. }
  9057. }
  9058. }
  9059. if (res.data[3].length > 0) {
  9060. for (var j = 0; j < res.data[3].length; j++) {
  9061. if (
  9062. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  9063. _courseTypeId.indexOf(res.data[3][j].id) == -1
  9064. ) {
  9065. _courseTypeId.push(res.data[3][j].id);
  9066. }
  9067. if (res.data[0][i].id == res.data[3][j].pid) {
  9068. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  9069. }
  9070. }
  9071. }
  9072. }
  9073. }
  9074. this.courseTypeId = _courseTypeId;
  9075. })
  9076. .catch((err) => {
  9077. console.error(err);
  9078. });
  9079. },
  9080. selectType() {
  9081. this.ajax
  9082. .get(this.$store.state.api + "selectType")
  9083. .then((res) => {
  9084. this.CourseType = res.data;
  9085. for (var i = 0; i < res.data[0].length; i++) {
  9086. if (!this.cid) {
  9087. this.courseTypeId[res.data[0][i].id] = "";
  9088. }
  9089. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9090. if (res.data[0][i].name == "栏目") {
  9091. this.CourseType[0][i].name = "主题";
  9092. }
  9093. }
  9094. for (var j = 0; j < res.data[1].length; j++) {
  9095. if (res.data[0][i].id == res.data[1][j].pid) {
  9096. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9097. this.CourseTypeJson[res.data[0][i].id] = [];
  9098. }
  9099. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9100. }
  9101. }
  9102. }
  9103. this.selectTypeByOid();
  9104. this.selectTypeByOrg();
  9105. })
  9106. .catch((err) => {
  9107. console.error(err);
  9108. });
  9109. },
  9110. selectTypeByOid() {
  9111. let params = {
  9112. oid: this.oid,
  9113. };
  9114. this.ajax
  9115. .get(this.$store.state.api + "selectTypeByOid", params)
  9116. .then((res) => {
  9117. for (var i = 0; i < res.data[0].length; i++) {
  9118. for (var j = 0; j < res.data[1].length; j++) {
  9119. if (res.data[0][i].id == res.data[1][j].pid) {
  9120. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9121. this.CourseTypeJson[res.data[0][i].id] = [];
  9122. }
  9123. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9124. }
  9125. }
  9126. }
  9127. })
  9128. .catch((err) => {
  9129. console.error(err);
  9130. });
  9131. },
  9132. selectTypeByOrg() {
  9133. let params = {
  9134. oid: this.org,
  9135. };
  9136. this.ajax
  9137. .get(this.$store.state.api + "selectTypeByOrg", params)
  9138. .then((res) => {
  9139. for (var i = 0; i < res.data[0].length; i++) {
  9140. for (var j = 0; j < res.data[1].length; j++) {
  9141. if (res.data[0][i].id == res.data[1][j].pid) {
  9142. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9143. this.CourseTypeJson[res.data[0][i].id] = [];
  9144. }
  9145. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9146. }
  9147. }
  9148. }
  9149. this.$forceUpdate();
  9150. })
  9151. .catch((err) => {
  9152. console.error(err);
  9153. });
  9154. },
  9155. OtherMb(type, task) {
  9156. if(task === 0 || task){
  9157. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[task].isEvaFold = true;
  9158. }
  9159. this.typeMode = type;
  9160. setTimeout(() => {
  9161. this.checkEva(this.checkId);
  9162. setTimeout(() => {
  9163. this.checkEva(this.checkId);
  9164. }, 100);
  9165. }, 100);
  9166. },
  9167. openMember() {
  9168. this.searchTN = "";
  9169. this.getTeacher();
  9170. this.dialogVisibleMember = true;
  9171. },
  9172. checkEva(id, type) {
  9173. this.dialogVisiblemb = false;
  9174. this.selectEva();
  9175. if (this.evalua != id && type == 2) {
  9176. this.$message.success("导入成功");
  9177. setTimeout(() => {
  9178. this.checkEva(id)
  9179. }, 100);
  9180. }
  9181. this.evalua = id;
  9182. this.checkId = id;
  9183. if (this.evalua != "") {
  9184. for (var i = 0; i < this.evaJuri.length; i++) {
  9185. if (this.evalua == this.evaJuri[i].id) {
  9186. this.eTitle = this.evaJuri[i].title;
  9187. this.eJson = JSON.parse(this.evaJuri[i].content);
  9188. }
  9189. }
  9190. this.data.data = [];
  9191. this.$forceUpdate();
  9192. setTimeout(() => {
  9193. this.setMindData();
  9194. }, 1000);
  9195. }
  9196. },
  9197. deleteEva() {
  9198. let _this = this;
  9199. if (_this.evalua == "") {
  9200. this.$message.warning("内容已经清空了,请勿重复清空");
  9201. return;
  9202. }
  9203. _this
  9204. .$confirm("确定删除此目标吗?", "提示", {
  9205. confirmButtonText: "确定",
  9206. cancelButtonText: "取消",
  9207. type: "warning",
  9208. })
  9209. .then(() => {
  9210. _this.evalua = "";
  9211. _this.checkId = "";
  9212. _this.eTitle = "";
  9213. let _unitJson = _this.unitJson;
  9214. for (var i = 0; i < _unitJson.length; i++) {
  9215. let _task = _unitJson[i].chapterInfo[0].taskJson;
  9216. for (var j = 0; j < _task.length; j++) {
  9217. let _eList = _task[j].eList;
  9218. for (var k = 0; k < _eList.length; k++) {
  9219. delete _eList[k].target;
  9220. }
  9221. }
  9222. }
  9223. _this.$forceUpdate();
  9224. if (_this.cid) {
  9225. _this.updateWork();
  9226. }
  9227. })
  9228. .catch(() => {
  9229. return;
  9230. });
  9231. },
  9232. selectEva() {
  9233. let params = {
  9234. oid: this.oid,
  9235. };
  9236. this.ajax
  9237. .get(this.$store.state.api + "selectAllEvaluation", params)
  9238. .then((res) => {
  9239. this.evaJuri = res.data[0];
  9240. })
  9241. .catch((err) => {
  9242. console.error(err);
  9243. });
  9244. },
  9245. setMindData() {
  9246. let targetArray = [];
  9247. this.data.data = [];
  9248. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  9249. let _eJson = Object.keys(this.eJson);
  9250. let _e = this.eJson;
  9251. for (let i = 0; i < _eJson.length; i++) {
  9252. let element = _e[_eJson[i]];
  9253. this.data.data.push({
  9254. id: element.id,
  9255. parentid: "root",
  9256. topic: element.name,
  9257. });
  9258. // targetArray.push({
  9259. // id: element.id,
  9260. // parentid: "root",
  9261. // name: element.name,
  9262. // });
  9263. targetArray.push({
  9264. value: element.name,
  9265. label: element.name,
  9266. children: [],
  9267. });
  9268. let _eJsonc = Object.keys(element.child);
  9269. let _e2 = element.child;
  9270. for (let j = 0; j < _eJsonc.length; j++) {
  9271. let _ec = _e2[_eJsonc[j]];
  9272. this.data.data.push({
  9273. id: _ec.id,
  9274. parentid: element.id,
  9275. topic: _ec.name,
  9276. });
  9277. // targetArray.push({
  9278. // id: _ec.id,
  9279. // parentid: element.id,
  9280. // name: _ec.name,
  9281. // });
  9282. targetArray[i].children.push({
  9283. value: _ec.name,
  9284. label: _ec.name,
  9285. children: [],
  9286. });
  9287. let _eJsonz = Object.keys(_ec.child);
  9288. let _e3 = _ec.child;
  9289. for (let z = 0; z < _eJsonz.length; z++) {
  9290. let _ez = _e3[_eJsonz[z]];
  9291. this.data.data.push({
  9292. id: _ez.id,
  9293. parentid: _ec.id,
  9294. topic: _ez.name,
  9295. });
  9296. // targetArray.push({
  9297. // id: _ez.id,
  9298. // parentid: _ec.id,
  9299. // name: _ez.name,
  9300. // });
  9301. targetArray[i].children[j].children.push({
  9302. value: _ez.name,
  9303. label: _ez.name,
  9304. });
  9305. }
  9306. }
  9307. }
  9308. this.targetArray = targetArray;
  9309. this.$forceUpdate();
  9310. },
  9311. /*添加评价 */
  9312. addEList(index, tIndex) {
  9313. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  9314. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  9315. value: "",
  9316. detail: "",
  9317. score: 5,
  9318. })
  9319. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  9320. { value: "", detail: "", score: 5 },
  9321. ]);
  9322. this.$forceUpdate();
  9323. },
  9324. openEList(index, tIndex){
  9325. this.evaIndex = index
  9326. this.evatIndex = tIndex
  9327. this.evaBoxDialog = true
  9328. },
  9329. updateEvaJson(array){
  9330. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[this.evatIndex].eList = array
  9331. },
  9332. forceUpdate() {
  9333. this.$forceUpdate();
  9334. },
  9335. deletEList(index, tIndex, eIndex) {
  9336. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  9337. eIndex,
  9338. 1
  9339. );
  9340. this.$forceUpdate();
  9341. },
  9342. getChoosePic(t) {
  9343. this.chooseType = t;
  9344. this.getAllBanner();
  9345. },
  9346. getAllBanner() {
  9347. this.sysPicVisible = true;
  9348. let params = {
  9349. t: this.chooseType,
  9350. };
  9351. this.ajax
  9352. .get(this.$store.state.api + "selectAllBanner", params)
  9353. .then((res) => {
  9354. this.sysPic = res.data[0];
  9355. })
  9356. .catch((err) => {
  9357. console.error(err);
  9358. });
  9359. },
  9360. // getClass() {
  9361. // let params = {
  9362. // oid: this.oid,
  9363. // };
  9364. // this.ajax
  9365. // .get(this.$store.state.api + "selectClassBySchool", params)
  9366. // .then((res) => {
  9367. // this.classJuri = res.data[0];
  9368. // })
  9369. // .catch((err) => {
  9370. // console.error(err);
  9371. // });
  9372. // },
  9373. deleteSysPic() {
  9374. this.cover = [];
  9375. this.isSysPic = false;
  9376. this.isSysPic2 = false;
  9377. },
  9378. deleteSelectPic() {
  9379. this.selectJson.url = "";
  9380. },
  9381. setEListStar() {
  9382. this.$forceUpdate();
  9383. },
  9384. deletRateList(i) {
  9385. this.rateJson.splice(i, 1);
  9386. },
  9387. addRateList() {
  9388. this.rateJson.push({ detail: "", score: 5, value: "" });
  9389. },
  9390. addSt() {
  9391. this.sentenceList.push({
  9392. sentenceTitle: "",
  9393. addSentence: [],
  9394. rightAnswer: [],
  9395. });
  9396. },
  9397. addSen(i) {
  9398. if (!this.sentenceList[i].sentenceTitle) {
  9399. this.$message.error("请填写卡片内容!");
  9400. return;
  9401. }
  9402. if (this.sentenceList[i].sentenceTitle.length > 10) {
  9403. this.$message.error("卡片内容字数不能超过10位");
  9404. return;
  9405. }
  9406. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  9407. this.$message.error("不能添加重复的卡片内容!");
  9408. return;
  9409. }
  9410. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  9411. // this.isPushTitleList.push(this.sentenceTitle);
  9412. this.sentenceList[i].sentenceTitle = "";
  9413. },
  9414. setRightAnswer(s, i, j) {
  9415. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  9416. this.sentenceList[i].rightAnswer.push(s);
  9417. }
  9418. },
  9419. returnCard(r, i, j) {
  9420. this.sentenceList[i].rightAnswer.splice(j, 1);
  9421. },
  9422. addSentenceTool() {
  9423. for (var i = 0; i < this.sentenceList.length; i++) {
  9424. if (this.sentenceList[i].rightAnswer.length == 0) {
  9425. this.$message.error(`请将题目${i + 1}设置完整。`);
  9426. return;
  9427. }
  9428. if (
  9429. this.sentenceList[i].addSentence.length !=
  9430. this.sentenceList[i].rightAnswer.length
  9431. ) {
  9432. this.$message.error(`请将题目${i + 1}设置完整。`);
  9433. return;
  9434. }
  9435. }
  9436. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9437. this.taskCount
  9438. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  9439. this.sentenceList = [
  9440. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9441. ];
  9442. this.dialogVisibleSentence = false;
  9443. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9444. // itemTaskIndex
  9445. // ].toolChoose[toolIndex].tool = [];
  9446. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9447. // itemTaskIndex
  9448. // ].toolChoose[toolIndex].tool.push(i);
  9449. if (
  9450. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9451. .toolChoose[this.toolIndex].tool != 47
  9452. ) {
  9453. this.addTools(47, this.taskCount, this.toolIndex);
  9454. }
  9455. },
  9456. addTableJson() {
  9457. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  9458. // this.$message.error("请将信息填写完整!");
  9459. // return;
  9460. // }
  9461. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9462. this.taskCount
  9463. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  9464. // this.tableJson = [{ text: "" }];
  9465. // this.dialogVisibleTable = false;
  9466. this.$message.success("上传成功");
  9467. if (
  9468. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9469. .toolChoose[this.toolIndex].tool != 48
  9470. ) {
  9471. this.addTools(48, this.taskCount, this.toolIndex);
  9472. }
  9473. },
  9474. addWordJson() {
  9475. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9476. this.taskCount
  9477. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  9478. // this.wordJson = [{ text: "" }];
  9479. // this.dialogVisibleWord = false;
  9480. this.$message.success("上传成功");
  9481. if (
  9482. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9483. .toolChoose[this.toolIndex].tool != 52
  9484. ) {
  9485. this.addTools(52, this.taskCount, this.toolIndex);
  9486. }
  9487. },
  9488. addMoreUpload() {
  9489. if (this.uploadJson.length == 0) {
  9490. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9491. this.taskCount
  9492. ].toolChoose[this.toolIndex].uploadJson = [];
  9493. } else {
  9494. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9495. this.taskCount
  9496. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  9497. }
  9498. this.uploadJson = [];
  9499. this.dialogVisibleMoreUpload = false;
  9500. if (
  9501. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9502. .toolChoose[this.toolIndex].tool != 50
  9503. ) {
  9504. this.addTools(50, this.taskCount, this.toolIndex);
  9505. }
  9506. },
  9507. addPreTime() {
  9508. if (this.preTime == 0) {
  9509. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9510. this.taskCount
  9511. ].toolChoose[this.toolIndex].preTime = 0;
  9512. } else {
  9513. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9514. this.taskCount
  9515. ].toolChoose[this.toolIndex].preTime = this.preTime;
  9516. }
  9517. this.preTime = 0;
  9518. this.dialogVisiblePreTime = false;
  9519. if (
  9520. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9521. .toolChoose[this.toolIndex].tool != 10
  9522. ) {
  9523. this.addTools(10, this.taskCount, this.toolIndex);
  9524. }
  9525. },
  9526. goToTask(i) {
  9527. this.toolIndexType = ''
  9528. if (this.isClickColor == (i + 1)) {
  9529. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9530. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9531. // } else {
  9532. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9533. // }
  9534. this.$forceUpdate();
  9535. return;
  9536. }
  9537. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9538. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9539. // } else {
  9540. document.querySelectorAll(".basic_box")[0].scrollTop =
  9541. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  9542. this.isClickColor = i + 1;
  9543. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9544. // }
  9545. this.$forceUpdate();
  9546. },
  9547. taskOpen(i, stageIndex){
  9548. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9549. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9550. } else {
  9551. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9552. }
  9553. this.updateWork3(stageIndex)
  9554. this.$forceUpdate();
  9555. },
  9556. goToTask2(i, stage) {
  9557. this.toolIndexType = ''
  9558. if (this.isClickColor == (i + 1) && this.unitIndex == stage) {
  9559. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9560. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9561. // } else {
  9562. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9563. // }
  9564. this.$forceUpdate();
  9565. return;
  9566. }
  9567. if(this.unitIndex != stage){
  9568. if(this.panUnitJson() == 2){
  9569. return;
  9570. }
  9571. this.unitSet(stage)
  9572. }
  9573. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9574. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9575. // } else {
  9576. document.querySelectorAll(".basic_box")[0].scrollTop =
  9577. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  9578. this.isClickColor = i + 1;
  9579. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9580. // }
  9581. this.$forceUpdate();
  9582. },
  9583. taskMove(type, index) {
  9584. this.$confirm(
  9585. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  9586. "提示",
  9587. {
  9588. confirmButtonText: "确定",
  9589. cancelButtonText: "取消",
  9590. type: "warning",
  9591. }
  9592. )
  9593. .then(() => {
  9594. if (type == 1) {
  9595. if (index > 0) {
  9596. let a = JSON.parse(
  9597. JSON.stringify(
  9598. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9599. index - 1
  9600. ]
  9601. )
  9602. );
  9603. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  9604. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9605. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9606. }
  9607. } else {
  9608. if (
  9609. index <
  9610. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  9611. ) {
  9612. let a = JSON.parse(
  9613. JSON.stringify(
  9614. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9615. index + 1
  9616. ]
  9617. )
  9618. );
  9619. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  9620. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9621. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9622. }
  9623. }
  9624. this.$forceUpdate();
  9625. })
  9626. .catch(() => {
  9627. return;
  9628. });
  9629. },
  9630. stageMove(type, index) {
  9631. if (type == 1) {
  9632. if (index > 0) {
  9633. let a = JSON.parse(
  9634. JSON.stringify(
  9635. this.unitJson3[index - 1]
  9636. )
  9637. );
  9638. let acid = JSON.parse(JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid))
  9639. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  9640. this.unitJson3[index - 1] = this.unitJson3[index];
  9641. this.unitJson3[index] = a;
  9642. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  9643. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  9644. }
  9645. } else {
  9646. if (
  9647. index <
  9648. this.unitJson3.length - 1
  9649. ) {
  9650. let a = JSON.parse(
  9651. JSON.stringify(
  9652. this.unitJson3[
  9653. index + 1
  9654. ]
  9655. )
  9656. );
  9657. let acid = JSON.parse(JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid))
  9658. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  9659. this.unitJson3[index + 1] =
  9660. this.unitJson3[index];
  9661. this.unitJson3[index] = a;
  9662. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  9663. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  9664. }
  9665. }
  9666. this.$forceUpdate();
  9667. },
  9668. addGroup(i) {
  9669. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  9670. this.groupJson.group.push({
  9671. name: "第" + (this.groupJson.group.length + 1) + "组",
  9672. });
  9673. },
  9674. deleteGroup(i) {
  9675. this.groupJson.group.splice(i, 1);
  9676. },
  9677. numberPan() {
  9678. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  9679. this.$message.error('请输入2-10的数字')
  9680. this.groupJson.number = ''
  9681. }
  9682. },
  9683. addGroupJson() {
  9684. for (var i = 0; i < this.groupJson.group.length; i++) {
  9685. if (!this.groupJson.group[i].name) {
  9686. this.$message.error("请将信息填写完整!");
  9687. return;
  9688. }
  9689. }
  9690. if (!this.groupJson.number) {
  9691. this.$message.error("请将信息填写完整!");
  9692. return;
  9693. }
  9694. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9695. this.taskCount
  9696. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  9697. JSON.stringify(this.groupJson)
  9698. );
  9699. this.dialogVisibleGroup = false;
  9700. this.groupJson = {};
  9701. if (
  9702. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9703. .toolChoose[this.toolIndex].tool != 49
  9704. ) {
  9705. this.addTools(49, this.taskCount, this.toolIndex);
  9706. }
  9707. },
  9708. updateTime(preTime) {
  9709. this.preTime = preTime;
  9710. },
  9711. InviteChange(val) {
  9712. console.log(val);
  9713. let _check = []
  9714. let _check2 = []
  9715. for (var i = 0; i < this.grade2.length; i++) {
  9716. var gid = this.grade2[i].id
  9717. _check.push(gid)
  9718. }
  9719. for (var i = 0; i < this.checkboxList2.length; i++) {
  9720. var _id = this.checkboxList2[i]
  9721. if (_check.indexOf(_id) !== -1) {
  9722. _check2.push(_id)
  9723. }
  9724. }
  9725. this.checkAll = _check2.length === _check.length;
  9726. return;
  9727. let array = JSON.parse(JSON.stringify(val));
  9728. this.inviteCode = this.inviteCode.filter((el) => {
  9729. if (val.indexOf(el.cid) != -1) {
  9730. array.splice(array.indexOf(el.cid), 1);
  9731. return el;
  9732. }
  9733. });
  9734. for (var i = 0; i < array.length; i++) {
  9735. this.getInviteCode(array[i]);
  9736. }
  9737. },
  9738. InviteChange2(val) {
  9739. console.log(val);
  9740. let _check = []
  9741. let _check2 = []
  9742. for (var i = 0; i < this.teacherJuri.length; i++) {
  9743. var gid = this.teacherJuri[i].userid
  9744. _check.push(gid)
  9745. }
  9746. for (var i = 0; i < this.checkboxList3.length; i++) {
  9747. var _id = this.checkboxList3[i]
  9748. if (_check.indexOf(_id) !== -1) {
  9749. _check2.push(_id)
  9750. }
  9751. }
  9752. this.checkAll2 = _check2.length === _check.length;
  9753. this.setMan();
  9754. return;
  9755. let array = JSON.parse(JSON.stringify(val));
  9756. this.inviteCode = this.inviteCode.filter((el) => {
  9757. if (val.indexOf(el.cid) != -1) {
  9758. array.splice(array.indexOf(el.cid), 1);
  9759. return el;
  9760. }
  9761. });
  9762. for (var i = 0; i < array.length; i++) {
  9763. this.getInviteCode(array[i]);
  9764. }
  9765. },
  9766. handleCheckAllChange(val) {
  9767. if (val) {
  9768. for (var i = 0; i < this.grade2.length; i++) {
  9769. var gid = this.grade2[i].id
  9770. if (this.checkboxList2.indexOf(gid) === -1) {
  9771. this.checkboxList2.push(gid)
  9772. }
  9773. }
  9774. } else {
  9775. let _check = []
  9776. let _check2 = []
  9777. for (var i = 0; i < this.grade2.length; i++) {
  9778. var gid = this.grade2[i].id
  9779. _check.push(gid)
  9780. }
  9781. for (var i = 0; i < this.checkboxList2.length; i++) {
  9782. var _id = this.checkboxList2[i]
  9783. if (_check.indexOf(_id) === -1) {
  9784. _check2.push(_id)
  9785. }
  9786. }
  9787. this.checkboxList2 = _check2
  9788. }
  9789. this.isIndeterminate = false;
  9790. },
  9791. handleCheckAllChange2(val) {
  9792. if (val) {
  9793. for (var i = 0; i < this.teacherJuri.length; i++) {
  9794. var gid = this.teacherJuri[i].userid
  9795. if (this.checkboxList3.indexOf(gid) === -1) {
  9796. this.checkboxList3.push(gid)
  9797. }
  9798. }
  9799. } else {
  9800. let _check = []
  9801. let _check2 = []
  9802. for (var i = 0; i < this.teacherJuri.length; i++) {
  9803. var gid = this.teacherJuri[i].userid
  9804. _check.push(gid)
  9805. }
  9806. for (var i = 0; i < this.checkboxList3.length; i++) {
  9807. var _id = this.checkboxList3[i]
  9808. if (_check.indexOf(_id) === -1) {
  9809. _check2.push(_id)
  9810. }
  9811. }
  9812. this.checkboxList3 = _check2
  9813. }
  9814. this.isIndeterminate2 = false;
  9815. },
  9816. async getInviteCode(cid) {
  9817. let code = this.randomNumber();
  9818. let params = {
  9819. code: code,
  9820. oid: this.oid,
  9821. };
  9822. let type = 1;
  9823. for (var i = 0; i < this.inviteCode.length; i++) {
  9824. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  9825. type = 2;
  9826. }
  9827. }
  9828. if (type == 2) {
  9829. this.getInviteCode(cid);
  9830. return;
  9831. }
  9832. const res = await this.ajax.get(
  9833. this.$store.state.api + "selectInviteCode2",
  9834. params
  9835. );
  9836. if (
  9837. res.data.length &&
  9838. res.data[0].length &&
  9839. res.data[0][0].courseId != this.cid
  9840. ) {
  9841. this.getInviteCode(cid);
  9842. return;
  9843. }
  9844. let array = [];
  9845. for (var i = 0; i < this.inviteCode.length; i++) {
  9846. array.push(this.inviteCode[i].cid);
  9847. }
  9848. if (array.indexOf(cid) != -1) {
  9849. this.inviteCode[array.indexOf(cid)].ic = code;
  9850. } else {
  9851. this.inviteCode.push({ cid: cid, ic: code });
  9852. }
  9853. },
  9854. OpenInviteD(cid) {
  9855. let array = [];
  9856. this.icode = "";
  9857. for (var i = 0; i < this.inviteCode.length; i++) {
  9858. array.push(this.inviteCode[i].cid);
  9859. }
  9860. if (array.indexOf(cid) != -1) {
  9861. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  9862. }
  9863. this.inviteId = cid;
  9864. this.dialogVisibleInvite = true;
  9865. },
  9866. addInvite() {
  9867. let reg = /^[A-Za-z0-9]{4,}$/;
  9868. if (!reg.test(this.icode)) {
  9869. this.$message.error("请输入至少四位数字或英文组合的随机码");
  9870. return;
  9871. }
  9872. let type = 1;
  9873. for (var i = 0; i < this.inviteCode.length; i++) {
  9874. if (
  9875. this.inviteCode[i].cid != this.inviteId &&
  9876. this.icode == this.inviteCode[i].ic
  9877. ) {
  9878. type = 2;
  9879. }
  9880. }
  9881. if (type == 2) {
  9882. this.$message.error("已有此随机码,不能重复");
  9883. return;
  9884. }
  9885. let params = {
  9886. code: this.icode,
  9887. oid: this.oid,
  9888. };
  9889. this.ajax
  9890. .get(this.$store.state.api + "selectInviteCode", params)
  9891. .then((res) => {
  9892. if (
  9893. res.data.length &&
  9894. res.data[0].length &&
  9895. res.data[0][0].courseId != this.cid
  9896. ) {
  9897. this.$message.error("已有此随机码,不能重复");
  9898. return;
  9899. }
  9900. let array = [];
  9901. for (var i = 0; i < this.inviteCode.length; i++) {
  9902. array.push(this.inviteCode[i].cid);
  9903. }
  9904. if (array.indexOf(this.inviteId) != -1) {
  9905. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  9906. } else {
  9907. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  9908. }
  9909. this.icode = "";
  9910. this.dialogVisibleInvite = false;
  9911. })
  9912. .catch((err) => {
  9913. console.error(err);
  9914. });
  9915. },
  9916. randomNumber() {
  9917. // 随机生成两位数
  9918. // let num = Math.floor(Math.random() * 900) + 100;
  9919. // 生成 0 到 99 之间的随机整数
  9920. const randomNumber = Math.floor(Math.random() * 100);
  9921. // 如果随机数小于 10,补上前导零
  9922. const num =
  9923. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  9924. // 随机生成两个大写字母
  9925. let letters = "";
  9926. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  9927. for (let i = 0; i < 3; i++) {
  9928. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  9929. }
  9930. // 随机生成两位数字和字母的组合
  9931. let mix = "";
  9932. let chars =
  9933. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  9934. for (let i = 0; i < 3; i++) {
  9935. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  9936. mix += char;
  9937. }
  9938. // 随机选择一种类型
  9939. let type = Math.floor(Math.random() * 3);
  9940. return num;
  9941. // 根据类型输出结果
  9942. switch (type) {
  9943. case 0:
  9944. console.log(num); // 输出两位数
  9945. return num;
  9946. case 1:
  9947. console.log(letters); // 输出两个大写字母
  9948. return letters;
  9949. case 2:
  9950. console.log(mix); // 输出两位数字和字母的组合
  9951. return mix;
  9952. }
  9953. },
  9954. getPaste() {
  9955. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9956. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  9957. if (!iframe && !iframe2) {
  9958. return;
  9959. }
  9960. let copyData = iframe ? iframe.contentWindow.copyData : false;
  9961. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  9962. if (copyData && copyData.stageData && copyData.stageData.length) {
  9963. this.isPasteStage = true
  9964. }
  9965. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  9966. this.isPasteStage = true
  9967. }
  9968. if (copyData && copyData.selectData.length) {
  9969. this.isPasteChoice = true
  9970. }
  9971. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  9972. this.isPasteTask = true
  9973. }
  9974. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  9975. this.isPasteTask = true
  9976. }
  9977. },
  9978. searchImage() {
  9979. var _this = this;
  9980. _this.imageList = []
  9981. if (!_this.searchImageValue) {
  9982. _this.sysPicVisible2 = true
  9983. return
  9984. }
  9985. _this.imageloading = true
  9986. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  9987. page: _this.ppage,
  9988. pagesize: 9,
  9989. query: _this.searchImageValue
  9990. }).then(function (response) {
  9991. // console.log(response.data.data);
  9992. var data = response.data.FunctionResponse.result;
  9993. for (var i = 0; i < data.length; i++) {
  9994. _this.imageList.push({ url: data[i].thumbnail })
  9995. }
  9996. _this.imageloading = false
  9997. }).catch(function (error) {
  9998. console.log(error);
  9999. });
  10000. _this.sysPicVisible2 = true
  10001. },
  10002. changePicture() {
  10003. this.ppage++
  10004. this.searchImage()
  10005. },
  10006. resetImage() {
  10007. this.ppage = 1
  10008. this.searchImage()
  10009. },
  10010. jumpGj(i, j) {
  10011. if ((i + 1) != this.isClickColor) {
  10012. this.isClickColor = (i + 1)
  10013. }
  10014. var a = document.scrollingElement;
  10015. this.toolIndexType = `gj${i}${j}`
  10016. let target = document.querySelector(`#gj${i}${j}`);
  10017. if (target) {
  10018. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  10019. setTimeout(() => {
  10020. target.scrollIntoView(true);
  10021. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = false
  10022. setTimeout(() => {
  10023. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  10024. }, 0);
  10025. }, 0);
  10026. }
  10027. },
  10028. jumpGj2(i, j, k) {
  10029. if(this.unitIndex != k){
  10030. if(this.panUnitJson() == 2){
  10031. return;
  10032. }
  10033. this.unitSet(k)
  10034. }
  10035. setTimeout(() => {
  10036. if ((i + 1) != this.isClickColor) {
  10037. this.isClickColor = (i + 1)
  10038. }
  10039. var a = document.scrollingElement;
  10040. this.toolIndexType = `gj${i}${j}${k}`
  10041. let target = document.querySelector(`#gj${i}${j}`);
  10042. if (target) {
  10043. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  10044. setTimeout(() => {
  10045. target.scrollIntoView(true);
  10046. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = false
  10047. setTimeout(() => {
  10048. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  10049. }, 0);
  10050. }, 0);
  10051. }
  10052. }, 0);
  10053. },
  10054. dragStart(val, i, j) {
  10055. console.log(this.taskCount);
  10056. this.dragType = 'drag'
  10057. this.taskCount = j
  10058. this.oldIndex = i;
  10059. this.oldData = val;
  10060. },
  10061. dragOver(i, j) {
  10062. this.typeIndex = "chapter-" + j + '-' + i
  10063. this.newIndex = i;
  10064. },
  10065. dragEnd() {
  10066. if(this.dragType != 'drag'){
  10067. this.typeIndex = "";
  10068. this.newIndex = "";
  10069. this.dragType = "";
  10070. this.isdrag = "";
  10071. return;
  10072. }
  10073. console.log(this.taskCount);
  10074. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData];
  10075. // 删除老的节点
  10076. newItems.splice(this.oldIndex, 1);
  10077. // 在列表中目标位置增加新的节点
  10078. newItems.splice(this.newIndex, 0, this.oldData);
  10079. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData = [...newItems];
  10080. this.typeIndex = "";
  10081. this.newIndex = "";
  10082. this.dragType = "";
  10083. this.isdrag = "";
  10084. this.$forceUpdate()
  10085. },
  10086. dragTaskStart(val, i, j) {
  10087. this.dragType = 'task'
  10088. this.oldIndex = i;
  10089. this.oldData = val;
  10090. this.oldUnitIndex = j;
  10091. },
  10092. dragTaskOver(i, j) {
  10093. this.typeIndex = "task-" + i
  10094. this.newIndex = i;
  10095. this.checkUnitIndex = j;
  10096. },
  10097. async dragTaskEnd() {
  10098. if(this.dragType != 'task'){
  10099. this.newIndex = "";
  10100. this.dragType = "";
  10101. this.typeIndex = "";
  10102. this.checkUnitIndex = "";
  10103. this.isdrag = "";
  10104. return;
  10105. }
  10106. if((this.newIndex == this.oldIndex && this.oldUnitIndex == this.checkUnitIndex)){
  10107. this.newIndex = "";
  10108. this.dragType = "";
  10109. this.typeIndex = "";
  10110. this.checkUnitIndex = "";
  10111. this.isdrag = "";
  10112. return;
  10113. }
  10114. let count1 = await this.getWorksCount(2, this.checkUnitIndex, this.newIndex, 0)
  10115. let count2 = await this.getWorksCount(2, this.oldUnitIndex, this.oldIndex, 0)
  10116. if(count1 > 0 || count2 > 0){
  10117. this.$confirm(
  10118. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  10119. "提示",
  10120. {
  10121. confirmButtonText: "确定",
  10122. cancelButtonText: "取消",
  10123. type: "warning",
  10124. }
  10125. )
  10126. .then(() => {
  10127. if(this.oldUnitIndex != this.checkUnitIndex){
  10128. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  10129. // 删除老的节点
  10130. newItems.splice(this.oldIndex, 1);
  10131. // 在列表中目标位置增加新的节点
  10132. let newItems2 = [...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson];
  10133. newItems2.splice(this.newIndex, 0, this.oldData);
  10134. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  10135. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [...newItems2];
  10136. }else{
  10137. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  10138. // 删除老的节点
  10139. newItems.splice(this.oldIndex, 1);
  10140. // 在列表中目标位置增加新的节点
  10141. newItems.splice(this.newIndex, 0, this.oldData);
  10142. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  10143. }
  10144. this.typeIndex = "";
  10145. this.newIndex = "";
  10146. this.dragType = "";
  10147. this.checkUnitIndex = "";
  10148. this.isdrag = "";
  10149. this.updateWork();
  10150. this.$forceUpdate()
  10151. })
  10152. .catch(() => {
  10153. this.newIndex = "";
  10154. this.dragType = "";
  10155. this.typeIndex = "";
  10156. this.checkUnitIndex = "";
  10157. this.isdrag = "";
  10158. return;
  10159. });
  10160. }else{
  10161. if(this.oldUnitIndex != this.checkUnitIndex){
  10162. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  10163. // 删除老的节点
  10164. newItems.splice(this.oldIndex, 1);
  10165. // 在列表中目标位置增加新的节点
  10166. let newItems2 = [...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson];
  10167. newItems2.splice(this.newIndex, 0, this.oldData);
  10168. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  10169. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [...newItems2];
  10170. }else{
  10171. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  10172. // 删除老的节点
  10173. newItems.splice(this.oldIndex, 1);
  10174. // 在列表中目标位置增加新的节点
  10175. newItems.splice(this.newIndex, 0, this.oldData);
  10176. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  10177. }
  10178. this.typeIndex = "";
  10179. this.newIndex = "";
  10180. this.dragType = "";
  10181. this.checkUnitIndex = "";
  10182. this.isdrag = "";
  10183. this.updateWork();
  10184. this.$forceUpdate()
  10185. }
  10186. },
  10187. dragUnitStart(val, i) {
  10188. this.dragType = 'Unit'
  10189. this.oldIndex = i;
  10190. this.oldData = val;
  10191. },
  10192. dragUnitOver(i) {
  10193. this.typeIndex = "Unit-" + i
  10194. this.newIndex = i;
  10195. console.log(i,this.unitJson[i].toolOpen)
  10196. if(!this.unitJson[i].toolOpen && this.dragType == 'task'){
  10197. this.unitJson[i].toolOpen = true
  10198. this.updateWork()
  10199. this.$forceUpdate()
  10200. }
  10201. },
  10202. async dragUnitEnd() {
  10203. if(this.dragType != 'Unit'){
  10204. this.newIndex = "";
  10205. this.dragType = "";
  10206. this.typeIndex = "";
  10207. this.isdrag = "";
  10208. return;
  10209. }
  10210. if(this.newIndex == this.oldIndex){
  10211. this.newIndex = "";
  10212. this.dragType = "";
  10213. this.typeIndex = "";
  10214. this.isdrag = "";
  10215. return;
  10216. }
  10217. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0)
  10218. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0)
  10219. console.log(count1, count2)
  10220. if(count1 > 0 || count2 > 0){
  10221. this.$confirm(
  10222. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  10223. "提示",
  10224. {
  10225. confirmButtonText: "确定",
  10226. cancelButtonText: "取消",
  10227. type: "warning",
  10228. }
  10229. )
  10230. .then(() => {
  10231. let newItems = [...this.unitJson];
  10232. // 删除老的节点
  10233. newItems.splice(this.oldIndex, 1);
  10234. // 在列表中目标位置增加新的节点
  10235. newItems.splice(this.newIndex, 0, this.oldData);
  10236. this.unitJson = [...newItems];
  10237. this.typeIndex = "";
  10238. this.newIndex = "";
  10239. this.dragType = "";
  10240. this.isdrag = "";
  10241. this.updateWork();
  10242. this.$forceUpdate()
  10243. })
  10244. .catch(() => {
  10245. this.newIndex = "";
  10246. this.dragType = "";
  10247. this.typeIndex = "";
  10248. this.isdrag = "";
  10249. return;
  10250. });
  10251. }else{
  10252. let newItems = [...this.unitJson];
  10253. // 删除老的节点
  10254. newItems.splice(this.oldIndex, 1);
  10255. // 在列表中目标位置增加新的节点
  10256. newItems.splice(this.newIndex, 0, this.oldData);
  10257. this.unitJson = [...newItems];
  10258. this.typeIndex = "";
  10259. this.newIndex = "";
  10260. this.dragType = "";
  10261. this.isdrag = "";
  10262. this.updateWork();
  10263. this.$forceUpdate()
  10264. }
  10265. },
  10266. getWorksCount(type, stage, task, tool){
  10267. return new Promise((resolve, reject) => {
  10268. let params = [
  10269. {
  10270. cid: this.cid,
  10271. stage: stage,
  10272. task: task,
  10273. tool: tool,
  10274. type: type
  10275. },
  10276. ];
  10277. this.ajax
  10278. .post(this.$store.state.api + "getCourseWorkCount", params)
  10279. .then((res) => {
  10280. let count = res.data[0][0].count
  10281. resolve(count)
  10282. })
  10283. .catch((err) => {
  10284. resolve(0)
  10285. this.$message.error("网络不佳");
  10286. console.error(err);
  10287. });
  10288. });
  10289. }
  10290. },
  10291. beforeDestroy() {
  10292. clearTimeout(this.timer);
  10293. this.timer = null;
  10294. clearInterval(this.timer2);
  10295. this.timer2 = null;
  10296. clearInterval(this.pasteTimer);
  10297. this.pasteTimer = null;
  10298. },
  10299. beforeRouteLeave(to, from, next) {
  10300. clearTimeout(this.timer);
  10301. this.timer = null;
  10302. clearInterval(this.timer2);
  10303. this.timer2 = null;
  10304. clearInterval(this.pasteTimer);
  10305. this.pasteTimer = null;
  10306. next();
  10307. },
  10308. created() {
  10309. this.getStudent();
  10310. this.getTeacher();
  10311. this.getClass();
  10312. this.selectGrage();
  10313. this.getTemplate();
  10314. // this.selectType();
  10315. this.selectEva();
  10316. this.loading = false;
  10317. this.timer2 = setInterval(() => {
  10318. this.selectEva();
  10319. }, 5000);
  10320. this.pasteTimer = setInterval(() => {
  10321. this.getPaste();
  10322. }, 1000);
  10323. setTimeout(() => {
  10324. this.selectCourseDetail();
  10325. }, 500);
  10326. let _this = this
  10327. window.pasteStage = function(json){
  10328. _this.pasteStage(json)
  10329. }
  10330. window.pasteTask = function(json){
  10331. _this.pasteTask(json)
  10332. }
  10333. },
  10334. };
  10335. </script>
  10336. <style scoped>
  10337. @media screen and (max-width: 1280px) {
  10338. .mbCss {
  10339. flex-direction: column !important;
  10340. }
  10341. .pjCss {
  10342. width: 100% !important;
  10343. }
  10344. .evaCss {
  10345. width: 100% !important;
  10346. margin-top: 10px;
  10347. }
  10348. }
  10349. .el-table >>> .even_row {
  10350. background-color: #f1f1f1 !important;
  10351. }
  10352. .dialog_diy>>>.el-dialog__header {
  10353. background: #3c3c3c !important;
  10354. padding: 15px 20px;
  10355. }
  10356. .dialog_diy>>>.el-dialog__title {
  10357. color: #fff;
  10358. }
  10359. .dialog_diy>>>.el-dialog__headerbtn {
  10360. top: 19px;
  10361. }
  10362. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  10363. color: #fff;
  10364. }
  10365. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  10366. color: #fff;
  10367. }
  10368. .dialog_diy>>>.el-dialog__body,
  10369. .dialog_diy>>>.el-dialog__footer {
  10370. background: #fafafa;
  10371. }
  10372. .dialog_diy3>>>.el-dialog__body,
  10373. .dialog_diy3>>>.el-dialog__footer {
  10374. background: #eee !important;
  10375. }
  10376. .dialog_diy3>>>.el-dialog__body {
  10377. padding: 20px 20px;
  10378. }
  10379. .dialog_diyStage>>>.el-dialog__body {
  10380. padding: 10px;
  10381. }
  10382. .source_diy>>>.el-dialog {
  10383. height: 100% !important;
  10384. margin: 0 auto !important;
  10385. }
  10386. .source_diy>>>.el-dialog__body {
  10387. height: calc(100% - 185px);
  10388. overflow: auto;
  10389. background: #e6eaf0;
  10390. }
  10391. .source_diy>>>.el-dialog__footer {
  10392. background: #e6eaf0 !important;
  10393. }
  10394. .left {
  10395. border-right: 1px solid rgb(60, 94, 143);
  10396. display: flex;
  10397. flex-direction: column;
  10398. align-items: center;
  10399. min-height: 600px;
  10400. width: 385px;
  10401. height: 80%;
  10402. }
  10403. .tips {
  10404. color: rgb(128, 128, 128);
  10405. font-size: 12px;
  10406. width: 270px;
  10407. margin: 40px;
  10408. }
  10409. .pb_content {
  10410. height: 100% !important;
  10411. /* margin: 0 20px 0 20px; */
  10412. }
  10413. .pb_content_body {
  10414. width: 100% !important;
  10415. height: 100%;
  10416. }
  10417. .info_solid {
  10418. width: 270px;
  10419. height: 30px;
  10420. border-left: 1px solid #bdbdbd;
  10421. margin: 10px 0px 10px 30px;
  10422. }
  10423. .info_steps {
  10424. width: 270px;
  10425. font-size: 0.875rem;
  10426. display: flex;
  10427. align-items: center;
  10428. }
  10429. .info_steps span:nth-child(1) {
  10430. width: 30px;
  10431. height: 30px;
  10432. background: rgba(0, 0, 0, 0.38);
  10433. display: block;
  10434. color: #fff;
  10435. border-radius: 40px;
  10436. text-align: center;
  10437. line-height: 30px;
  10438. }
  10439. .steps_active {
  10440. background: #3d67bc !important;
  10441. }
  10442. .info_steps span:nth-child(2) {
  10443. margin-left: 5px;
  10444. }
  10445. .right {
  10446. height: 100%;
  10447. width: 100%;
  10448. display: flex;
  10449. overflow: hidden;
  10450. flex-direction: column;
  10451. }
  10452. .basic_box {
  10453. margin: 0 auto;
  10454. position: relative;
  10455. padding: 0 20px 0 20px;
  10456. }
  10457. .basic_box_success {
  10458. width: 100%;
  10459. min-height: 455px;
  10460. padding: 50px 0;
  10461. position: relative;
  10462. text-align: center;
  10463. border-bottom: 1px solid #bfbfbf;
  10464. box-sizing: border-box;
  10465. display: flex;
  10466. align-items: center;
  10467. flex-direction: column;
  10468. justify-content: center;
  10469. }
  10470. .info_title {
  10471. font-size: 1.5em;
  10472. margin-right: 25px;
  10473. /* margin: 20px 30px 20px 30px; */
  10474. }
  10475. .bInfo_title {
  10476. text-align: left;
  10477. margin: 10px 0;
  10478. }
  10479. .small_title {
  10480. font-size: 14px;
  10481. line-height: 40px;
  10482. }
  10483. .chapter_beizhu {
  10484. font-size: 12px;
  10485. font-weight: bold;
  10486. float: right;
  10487. color: rgb(128, 128, 128);
  10488. margin-top: 5px;
  10489. }
  10490. .chapter_uploadBox1 {
  10491. text-align: left;
  10492. background-color: rgb(242, 242, 242);
  10493. width: 100%;
  10494. height: 67px;
  10495. padding: 0px 15px;
  10496. border-radius: 8px;
  10497. overflow: hidden;
  10498. font-size: 16px;
  10499. box-sizing: border-box;
  10500. position: relative;
  10501. }
  10502. .chapter_add {
  10503. width: 100%;
  10504. height: 32px;
  10505. margin-top: 15px;
  10506. cursor: pointer;
  10507. }
  10508. .chapter_add_l {
  10509. margin-left: 5px;
  10510. width: 30px;
  10511. height: 30px;
  10512. float: left;
  10513. border: 1px solid #aaa;
  10514. color: #aaa;
  10515. border-radius: 50%;
  10516. font-size: 25px;
  10517. text-align: center;
  10518. }
  10519. .chapter_add_r {
  10520. font-size: 18px;
  10521. height: 40px;
  10522. line-height: 30px;
  10523. text-indent: 10px;
  10524. color: #aaa;
  10525. }
  10526. .chapter_add_r span {
  10527. font-size: 12px;
  10528. color: rgb(204, 204, 204);
  10529. }
  10530. .chapter_add_input {
  10531. display: none;
  10532. }
  10533. .line {
  10534. width: 85%;
  10535. margin: 0 auto;
  10536. border-top: 1px solid #e5e5e5;
  10537. margin-top: 20px;
  10538. }
  10539. .info_btnBox {
  10540. width: calc(100%);
  10541. display: flex;
  10542. justify-content: center;
  10543. height: 80px;
  10544. align-items: center;
  10545. background: #fff;
  10546. margin: 0 auto;
  10547. border-top: 2px solid rgb(228, 232, 237);
  10548. box-sizing: border-box;
  10549. }
  10550. .info_btnBox2 {
  10551. width: calc(100%);
  10552. display: flex;
  10553. justify-content: center;
  10554. height: 20px;
  10555. align-items: center;
  10556. background: #fff;
  10557. margin: 0 auto;
  10558. border-top: 2px solid rgb(228, 232, 237);
  10559. box-sizing: border-box;
  10560. overflow: hidden;
  10561. cursor: pointer;
  10562. }
  10563. .info_btnBox3 {
  10564. width: calc(100%);
  10565. display: flex;
  10566. justify-content: flex-end;
  10567. padding: 0 20px;
  10568. height: 60px;
  10569. align-items: center;
  10570. background: unset;
  10571. margin: 0 auto;
  10572. /* border-top: 1px solid rgb(228, 232, 237); */
  10573. box-sizing: border-box;
  10574. overflow: hidden;
  10575. cursor: pointer;
  10576. background: #fff;
  10577. border-radius: 10px;
  10578. }
  10579. .info_btn+.info_btn {
  10580. margin-left: 15px;
  10581. }
  10582. .info_btn,
  10583. .teacherWord {
  10584. color: #fff;
  10585. background-color: #0f7eff;
  10586. padding: 8px 24px;
  10587. font-size: 0.9375rem;
  10588. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  10589. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  10590. min-width: 64px;
  10591. font-weight: 500;
  10592. border-radius: 4px;
  10593. box-sizing: border-box;
  10594. border: none;
  10595. cursor: pointer;
  10596. }
  10597. .teacherWord {
  10598. width: 105px !important;
  10599. text-align: center !important;
  10600. line-height: 36px !important;
  10601. padding: 0 !important;
  10602. font-size: 14px !important;
  10603. margin: 10px 0 !important;
  10604. }
  10605. .template_box{
  10606. display: flex;
  10607. flex-wrap: wrap;
  10608. }
  10609. .wordTeacher {
  10610. display: flex;
  10611. flex-direction: column;
  10612. width: 100px;
  10613. height: 100px;
  10614. text-align: center;
  10615. font-size: 13px;
  10616. margin: 0 20px 20px 0 ;
  10617. background: #F0F4FA;;
  10618. position: relative;
  10619. border-radius: 5px;
  10620. align-items: center;
  10621. justify-content: center;
  10622. border: 1px solid #CAD1DC;
  10623. color: #0E1E33;
  10624. /* padding: 25px 0px; */
  10625. cursor: pointer;
  10626. }
  10627. .wordTeacher::after{
  10628. content: '';
  10629. display:block;
  10630. position: absolute;
  10631. width: 15px;
  10632. height: 15px;
  10633. right:10px;
  10634. top:10px;
  10635. background-image: url(../../assets/icon/new/choose_a.png);
  10636. background-size:100% 100%;
  10637. }
  10638. .wordTeacherA::after{
  10639. background-image: url(../../assets/icon/new/choose_b.png)
  10640. }
  10641. .wordTeacher:nth-child(5n){
  10642. margin-right: 0px;
  10643. }
  10644. .wordPic {
  10645. margin: 0 auto;
  10646. width: 30px;
  10647. height: 30px;
  10648. cursor: pointer;
  10649. }
  10650. .deleteWord {
  10651. width: 22px;
  10652. height: 22px;
  10653. position: absolute;
  10654. right: 5px;
  10655. top: -15px;
  10656. cursor: pointer;
  10657. display: none;
  10658. z-index: 999;
  10659. }
  10660. .wordPic>img,
  10661. .deleteWord>img,
  10662. .addToolImg>img {
  10663. width: 100%;
  10664. height: 100%;
  10665. }
  10666. .info_btn:hover {
  10667. background-color: #4f7cd5 !important;
  10668. }
  10669. .cru_selectBox {
  10670. display: flex;
  10671. margin: 15px 0;
  10672. flex-wrap: nowrap;
  10673. white-space: nowrap;
  10674. overflow: auto;
  10675. position: relative;
  10676. height: 40px;
  10677. max-width: calc(100% - 175px);
  10678. }
  10679. .cru_selectBox::-webkit-scrollbar {
  10680. /*滚动条整体样式*/
  10681. width: 6px;
  10682. /*高宽分别对应横竖滚动条的尺寸*/
  10683. height: 6px;
  10684. }
  10685. /*定义滚动条轨道 内阴影+圆角*/
  10686. .cru_selectBox::-webkit-scrollbar-track {
  10687. border-radius: 10px;
  10688. background-color: #eee;
  10689. }
  10690. /*定义滑块 内阴影+圆角*/
  10691. .cru_selectBox::-webkit-scrollbar-thumb {
  10692. border-radius: 10px;
  10693. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  10694. background-color: rgba(0, 0, 0, 0.1);
  10695. }
  10696. .cru_line {
  10697. position: absolute;
  10698. bottom: 0px;
  10699. transition: all 0.5s;
  10700. left: 0px;
  10701. width: 50px;
  10702. height: 4px;
  10703. left: 10px;
  10704. border-radius: 2px;
  10705. background: #3681FC;
  10706. }
  10707. .cru_select {
  10708. font-size: 18px;
  10709. margin-right: 20px;
  10710. margin-left: 5px;
  10711. cursor: pointer;
  10712. color: #0E1E33;
  10713. }
  10714. .cru_select:hover {
  10715. color: #3681FC !important;
  10716. }
  10717. .cru_selected {
  10718. color: #3681FC !important;
  10719. font-weight: bold;
  10720. }
  10721. .chapter_box {
  10722. margin-top: 10px;
  10723. width: 100%;
  10724. padding: 10px 20px;
  10725. background: #fff;
  10726. border-radius: 8px;
  10727. box-sizing: border-box;
  10728. }
  10729. .chapter_contentbox {
  10730. display: flex;
  10731. align-items: center;
  10732. /* margin-top: 15px; */
  10733. }
  10734. .chapter_contentbox .cc_title {
  10735. margin: 0px;
  10736. color: black;
  10737. display: block;
  10738. white-space: nowrap;
  10739. overflow: hidden;
  10740. text-overflow: ellipsis;
  10741. margin-right: 20px;
  10742. font-size: 18px;
  10743. height: 20px;
  10744. line-height: 22px;
  10745. min-width: fit-content;
  10746. display: flex;
  10747. }
  10748. .chapter_contentbox .cc_title::before {
  10749. content: '';
  10750. height: 100%;
  10751. width: 3px;
  10752. background: #3681FC;
  10753. border-radius: 3px;
  10754. opacity: 1;
  10755. display: block;
  10756. margin-right: 10px;
  10757. }
  10758. .chapter_contentbox .cc_input {
  10759. width: 100%;
  10760. display: flex;
  10761. }
  10762. .show_taskD {
  10763. min-width: fit-content;
  10764. margin-left: 10px;
  10765. display: flex;
  10766. align-items: center;
  10767. font-size: 14px;
  10768. cursor: pointer;
  10769. color: #717C8D;
  10770. }
  10771. .show_taskD>img {
  10772. width: 15px;
  10773. margin-right: 5px;
  10774. transition: .2s all;
  10775. transform: rotate(-90deg);
  10776. }
  10777. .show_taskD.show>img {
  10778. transform: rotate(0deg);
  10779. }
  10780. .show_toolD {
  10781. min-width: fit-content;
  10782. margin-left: 10px;
  10783. display: flex;
  10784. align-items: center;
  10785. font-size: 14px;
  10786. cursor: pointer;
  10787. color: #717C8D;
  10788. /* position: absolute;
  10789. right: 45px;
  10790. top: 5px; */
  10791. }
  10792. .show_toolD>img {
  10793. width: 15px;
  10794. margin-right: 5px;
  10795. transition: .2s all;
  10796. transform: rotate(-90deg);
  10797. }
  10798. .show_toolD.show>img {
  10799. transform: rotate(0deg);
  10800. }
  10801. .remove {
  10802. background-image: url("../../assets/icon/new/delete_u.png");
  10803. cursor: pointer;
  10804. opacity: 0.5;
  10805. width: 30px;
  10806. min-width: 30px;
  10807. height: 30px;
  10808. background-size: 100% 100%;
  10809. background-repeat: no-repeat;
  10810. margin-left: 10px;
  10811. }
  10812. .remove1 {
  10813. background-image: url("../../assets/remove1.png");
  10814. background-repeat: no-repeat;
  10815. background-position: 5px 10px;
  10816. width: 40px;
  10817. height: 50px;
  10818. cursor: pointer;
  10819. margin-left: 10px;
  10820. }
  10821. .binfo_input {
  10822. width: 100%;
  10823. margin: 0;
  10824. padding: 12px 14px;
  10825. display: block;
  10826. min-width: 0;
  10827. outline: none;
  10828. box-sizing: border-box;
  10829. background: none;
  10830. border: none;
  10831. border-radius: 4px;
  10832. background: #fff;
  10833. font-size: 16px;
  10834. resize: none;
  10835. font-family: 'Microsoft YaHei';
  10836. min-height: 48px;
  10837. /* border: 1px solid #3682fc00; */
  10838. border: 1.5px solid #CAD1DC;
  10839. }
  10840. .binfo_textarea {
  10841. border: 1.5px solid #CAD1DC;
  10842. font-size: 16px;
  10843. resize: none;
  10844. /* background: #f6f6f6; */
  10845. font-family: 'Microsoft YaHei';
  10846. }
  10847. .binfo_input:focus-visible {
  10848. border: 1.5px solid #3681FC !important;
  10849. }
  10850. .time {
  10851. display: flex;
  10852. margin: 35px 0 80px 0;
  10853. }
  10854. .chapter_btnbox {
  10855. width: 160px;
  10856. border-radius: 5px;
  10857. border: 2px dashed gray;
  10858. display: flex;
  10859. padding: 8px 50px;
  10860. align-items: center;
  10861. justify-content: center;
  10862. margin: 30px auto 0;
  10863. cursor: pointer;
  10864. }
  10865. .icon_add {
  10866. position: relative;
  10867. width: 24px;
  10868. padding-top: 20px;
  10869. border-radius: 100%;
  10870. border-width: 2px;
  10871. border-style: solid;
  10872. border-color: gray;
  10873. }
  10874. .icon_add i:nth-child(1) {
  10875. position: absolute;
  10876. left: 50%;
  10877. top: 50%;
  10878. height: 60%;
  10879. transform: translate(-50%, -50%);
  10880. border-width: 1px;
  10881. border-style: solid;
  10882. border-color: inherit;
  10883. }
  10884. .icon_add i:nth-child(2) {
  10885. position: absolute;
  10886. top: 50%;
  10887. left: 50%;
  10888. width: 60%;
  10889. transform: translate(-50%, -50%);
  10890. border-width: 1px;
  10891. border-style: solid;
  10892. border-color: inherit;
  10893. }
  10894. .chapter_btn_w {
  10895. font-size: 0.9375rem;
  10896. font-weight: bold;
  10897. color: gray;
  10898. margin-left: 20px;
  10899. }
  10900. .disUoloadSty>>>.el-icon-plus {
  10901. display: none !important;
  10902. /* 上传按钮隐藏 */
  10903. }
  10904. .imgLeft {
  10905. margin: 15px 0;
  10906. }
  10907. .add_info_box {
  10908. margin: 0 0 0 auto;
  10909. display: flex;
  10910. flex-wrap: wrap;
  10911. }
  10912. .add_info_box button {
  10913. margin: 0 5px 10px 0;
  10914. }
  10915. .add_info_box2 {
  10916. display: flex;
  10917. align-items: center;
  10918. flex-wrap: wrap;
  10919. }
  10920. .add_info_box2::after {
  10921. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  10922. color: red;
  10923. font-size: 14px;
  10924. margin-bottom: 10px;
  10925. }
  10926. .add_chapters_box {
  10927. text-align: left;
  10928. background-color: #fff;
  10929. width: 100%;
  10930. border-radius: 4px;
  10931. font-size: 16px;
  10932. box-sizing: border-box;
  10933. position: relative;
  10934. padding: 0 15px;
  10935. height: auto;
  10936. overflow-y: auto;
  10937. overflow-x: hidden;
  10938. border: 1px solid #CAD1DC;
  10939. }
  10940. .add_chapters_box.add_c_none {
  10941. display: flex;
  10942. justify-content: center;
  10943. align-items: center;
  10944. padding: 15px;
  10945. }
  10946. .add_c_none>img {
  10947. width: 25px;
  10948. }
  10949. .add_chapters_box.add_c_none>span {
  10950. font-size: 14px;
  10951. font-weight: 400;
  10952. margin: 0 0 5px 5px;
  10953. }
  10954. .homework_box {
  10955. display: flex;
  10956. align-items: flex-start;
  10957. flex-wrap: wrap;
  10958. margin: 15px 0 0 0;
  10959. flex-direction: column;
  10960. align-content: flex-start;
  10961. }
  10962. .course_homework {
  10963. display: flex;
  10964. justify-content: center;
  10965. flex-direction: row;
  10966. align-items: center;
  10967. margin: 0 10px 0 0;
  10968. }
  10969. .course_homework>>>.el-input__inner {
  10970. width: 140px;
  10971. margin-left: 15px;
  10972. }
  10973. .chapter_upload_move {
  10974. position: relative;
  10975. background-color: #fff;
  10976. position: absolute;
  10977. width: 100%;
  10978. top: 0px;
  10979. left: 0px;
  10980. border: 1px solid #eee;
  10981. border-radius: 5px;
  10982. transition: width 2s;
  10983. -moz-transition: width 2s;
  10984. -webkit-transition: width 2s;
  10985. -o-transition: width 2s;
  10986. }
  10987. .chapter_upload_l_i {
  10988. background-image: url("../../assets/icon.png");
  10989. background-position: 3px -165px;
  10990. width: 30px;
  10991. height: 30px;
  10992. margin: 10px auto 0 auto;
  10993. }
  10994. .course_input_box {
  10995. display: flex;
  10996. margin-right: 20px;
  10997. width: 100%;
  10998. align-items: center;
  10999. position: relative;
  11000. }
  11001. .course_input_box>.binfo_input {
  11002. width: calc(100% - 0 - 200px - 20px);
  11003. margin: 0 10px;
  11004. }
  11005. .bb_courseIcon {
  11006. width: 57px;
  11007. height: 45px;
  11008. background: #F0F4FA;
  11009. border-radius: 5px 0px 0px 5px;
  11010. display: flex;
  11011. align-items: center;
  11012. justify-content: center;
  11013. border-right: 1.5px solid rgb(202, 209, 220);
  11014. box-sizing: border-box;
  11015. position: absolute;
  11016. left: 1.5px
  11017. }
  11018. .bb_courseIcon>img {
  11019. width: 25px;
  11020. height: auto
  11021. }
  11022. .big_box {
  11023. /* margin-top: 20px; */
  11024. display: flex;
  11025. justify-content: space-between;
  11026. /* border-bottom: 1px solid #E0E2ED; */
  11027. }
  11028. .left_first {
  11029. display: flex;
  11030. flex-direction: column;
  11031. flex-wrap: nowrap;
  11032. width: calc(100% - 310px);
  11033. padding: 20px;
  11034. box-sizing: border-box;
  11035. background: #fff;
  11036. border-radius: 5px;
  11037. }
  11038. .right_first {
  11039. width: 300px;
  11040. display: flex;
  11041. align-items: center;
  11042. justify-content: center;
  11043. /* border-left: 1px solid #E0E2ED; */
  11044. box-sizing: border-box;
  11045. padding: 20px;
  11046. flex-direction: column;
  11047. background: #fff;
  11048. border-radius: 5px;
  11049. }
  11050. .ai_box {
  11051. width: 204px;
  11052. display: flex;
  11053. justify-content: flex-end;
  11054. margin-bottom: 15px;
  11055. }
  11056. .ai_content {
  11057. display: flex;
  11058. align-items: center;
  11059. font-size: 14px;
  11060. padding: 7px 20px;
  11061. box-sizing: border-box;
  11062. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  11063. border-radius: 12px;
  11064. font-weight: 700;
  11065. cursor: pointer;
  11066. }
  11067. .ai_content>img {
  11068. width: 40px;
  11069. margin-right: 5px;
  11070. }
  11071. .c_info_title {
  11072. padding: 15px 0 15px 0;
  11073. font-size: 16px;
  11074. font-weight: bold;
  11075. margin: 0 0 0 20px;
  11076. box-sizing: border-box;
  11077. display: flex;
  11078. align-items: center;
  11079. line-height: 20px;
  11080. }
  11081. .c_info_title::before {
  11082. content: '';
  11083. display: block;
  11084. width: 3px;
  11085. height: 20px;
  11086. background: #0061FF;
  11087. border-radius: 3px;
  11088. margin: 0 5px 0 0;
  11089. }
  11090. .right_title {
  11091. height: 30px;
  11092. padding: 15px 0 15px 20px;
  11093. border-bottom: 1px solid #f2f2f2;
  11094. font-size: 1.5em;
  11095. font-weight: bold;
  11096. color: #0f7eff;
  11097. margin: 0 auto;
  11098. }
  11099. .people {
  11100. border: 1px solid rgb(229 229 229);
  11101. /* height: 495px; */
  11102. height: 350px;
  11103. border-radius: 5px;
  11104. width: 100%;
  11105. overflow: auto;
  11106. }
  11107. .people_top {
  11108. display: flex;
  11109. width: 100%;
  11110. /* justify-content: space-between; */
  11111. /* align-items: center; */
  11112. flex-direction: column;
  11113. padding: 10px 10px 0;
  11114. box-sizing: border-box;
  11115. }
  11116. .people_nav,
  11117. .people_top_right {
  11118. /* padding: 20px 0 0 20px; */
  11119. }
  11120. .people_top_right {
  11121. height: 40px;
  11122. margin-bottom: 10px;
  11123. }
  11124. .people_search {
  11125. display: flex;
  11126. position: relative;
  11127. }
  11128. .people_search>>>.el-input__inner {
  11129. /* height: 25px; */
  11130. width: 100%;
  11131. }
  11132. .search_img {
  11133. width: 20px;
  11134. height: 20px;
  11135. position: absolute;
  11136. right: 10px;
  11137. top: 50%;
  11138. transform: translateY(-50%);
  11139. }
  11140. .search_img>img {
  11141. width: 100%;
  11142. height: 100%;
  11143. }
  11144. .people_name {
  11145. display: flex;
  11146. justify-content: flex-start;
  11147. padding: 20px 10px;
  11148. flex-direction: column;
  11149. flex-wrap: wrap;
  11150. }
  11151. .p_box {
  11152. position: relative;
  11153. }
  11154. .people_name>>>.el-checkbox {
  11155. width: 100%;
  11156. display: flex;
  11157. align-items: center;
  11158. margin-bottom: 10px;
  11159. }
  11160. .people_name>>>.el-checkbox__label {
  11161. text-overflow: ellipsis;
  11162. overflow: hidden;
  11163. width: calc(100%);
  11164. }
  11165. .people_name2>>>.el-checkbox__label {
  11166. width: calc(100% - 130px);
  11167. }
  11168. .inviteCode {
  11169. position: absolute;
  11170. right: 30px;
  11171. color: #237ade;
  11172. top: 0;
  11173. cursor: pointer;
  11174. font-size: 13px;
  11175. }
  11176. .noneInvite {
  11177. color: #a8a8a8;
  11178. }
  11179. .inviteImg {
  11180. position: absolute;
  11181. right: 5px;
  11182. top: 0;
  11183. width: 20px;
  11184. }
  11185. .right_img {
  11186. width: 150px;
  11187. height: 150px;
  11188. margin: 0 auto;
  11189. }
  11190. .right_img>img {
  11191. width: 100%;
  11192. height: 100%;
  11193. }
  11194. .number {
  11195. margin-top: 20px;
  11196. color: #4aa6ff;
  11197. text-decoration: underline;
  11198. }
  11199. .success_button {
  11200. display: flex;
  11201. text-align: center;
  11202. margin: 5% 0 auto;
  11203. flex-direction: row;
  11204. justify-content: center;
  11205. }
  11206. .look_course {
  11207. margin-right: 40px;
  11208. background: #3d67bc;
  11209. width: 200px;
  11210. height: 35px;
  11211. line-height: 35px;
  11212. color: #fff;
  11213. text-align: center;
  11214. font-size: 14px;
  11215. border-radius: 5px;
  11216. cursor: pointer;
  11217. }
  11218. .attend_others {
  11219. width: 250px;
  11220. background: #4fb13c;
  11221. height: 35px;
  11222. line-height: 35px;
  11223. color: #fff;
  11224. text-align: center;
  11225. font-size: 14px;
  11226. border-radius: 5px;
  11227. cursor: pointer;
  11228. }
  11229. .dialog_diy2>>>.el-dialog__body {
  11230. text-align: center;
  11231. }
  11232. .write_togother {
  11233. position: absolute;
  11234. right: 45px;
  11235. display: flex;
  11236. top: 5%;
  11237. }
  11238. .write_people {
  11239. font-size: 14px;
  11240. line-height: 50px;
  11241. padding-right: 10px;
  11242. }
  11243. .end_write {
  11244. background: #3d67bc;
  11245. color: #fff;
  11246. width: 100px;
  11247. height: 35px;
  11248. line-height: 35px;
  11249. text-align: center;
  11250. font-size: 14px;
  11251. border-radius: 5px;
  11252. cursor: pointer;
  11253. }
  11254. .chapter_upload+.chapter_upload {
  11255. /* margin-top: 15px; */
  11256. border-top: 1px solid #E7EBF1;
  11257. }
  11258. .chapter_upload {
  11259. height: 45px;
  11260. position: relative;
  11261. display: flex;
  11262. align-items: center;
  11263. width: 100%;
  11264. min-height: 45px;
  11265. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  11266. /* border-radius: 4px; */
  11267. /* overflow: hidden; */
  11268. box-sizing: border-box;
  11269. }
  11270. .chapter_upload_drag {
  11271. position: absolute;
  11272. cursor: pointer;
  11273. width: 16px;
  11274. height: 16px;
  11275. left: -9px;
  11276. background-image: url("../../assets/icon/new/icon_course_drag.png");
  11277. background-size: 100% 100%;
  11278. z-index: 10;
  11279. display: none;
  11280. }
  11281. .isNavStage > .chapter_upload_drag{
  11282. background-image: url("../../assets/icon/new/icon_course_drag_active2.png");
  11283. }
  11284. .chapter_upload_t {
  11285. background-color: #fff;
  11286. position: absolute;
  11287. height: 100%;
  11288. top: 0px;
  11289. left: 0px;
  11290. box-sizing: border-box;
  11291. }
  11292. .chapter_upload_o {
  11293. width: 100%;
  11294. height: 100%;
  11295. position: relative;
  11296. z-index: 1;
  11297. }
  11298. .chapter_upload_ic {
  11299. margin: 0 15px 0px auto;
  11300. display: flex;
  11301. align-items: center;
  11302. }
  11303. .chapter_upload_ic_l {
  11304. width: 50px;
  11305. height: 50px;
  11306. float: left;
  11307. }
  11308. .chapter_upload_ic_l div {
  11309. width: 30px;
  11310. height: 35px;
  11311. background: url("../../assets/icon/icon.png");
  11312. }
  11313. .chapter_upload_ic_edit {
  11314. height: 100%;
  11315. display: flex;
  11316. align-items: center;
  11317. cursor: pointer;
  11318. margin: 0 10px 0 0;
  11319. }
  11320. .chapter_upload_ic_edit div {
  11321. width: 18px;
  11322. height: 18px;
  11323. background-image: url("../../assets/icon/new/edit_u.png");
  11324. background-size: 100% 100%;
  11325. }
  11326. .chapter_upload_ic_r {
  11327. height: 100%;
  11328. display: flex;
  11329. align-items: center;
  11330. cursor: pointer;
  11331. }
  11332. .chapter_upload_ic_r div {
  11333. width: 18px;
  11334. height: 18px;
  11335. background-image: url("../../assets/icon/new/delete_u.png");
  11336. background-size: 100% 100%;
  11337. }
  11338. .chapter_upload_n {
  11339. display: flex;
  11340. text-indent: 10px;
  11341. text-decoration: none;
  11342. text-overflow: ellipsis;
  11343. white-space: nowrap;
  11344. overflow: hidden;
  11345. width: 55%;
  11346. margin-left: 10px;
  11347. cursor: pointer;
  11348. margin-top: 2px;
  11349. align-items: center;
  11350. }
  11351. .chapter_upload_l_i2,
  11352. .chapter_upload_l_i3,
  11353. .chapter_upload_l_i8,
  11354. .chapter_upload_l_i6,
  11355. .chapter_upload_l_i12,
  11356. .chapter_upload_l_i14,
  11357. .chapter_upload_l_i13 {
  11358. width: 15px;
  11359. height: 15px;
  11360. background-size: 100% 100%;
  11361. }
  11362. .chapter_upload_l_i2 {
  11363. background-image: url("../../assets/icon/new/u_word.png");
  11364. }
  11365. .chapter_upload_l_i3 {
  11366. background-image: url("../../assets/icon/new/u_video.png");
  11367. }
  11368. .chapter_upload_l_i8 {
  11369. background-image: url("../../assets/icon/new/u_url.png");
  11370. }
  11371. .chapter_upload_l_i14 {
  11372. background-image: url("../../assets/icon/new/u_source.png");
  11373. }
  11374. .chapter_upload_l_i6 {
  11375. background-image: url("../../assets/icon/new/u_picture.png");
  11376. }
  11377. .chapter_upload_l_i12 {
  11378. background-image: url("../../assets/icon/new/u_word.png");
  11379. }
  11380. .chapter_upload_l_i13 {
  11381. background-image: url("../../assets/icon/new/u_img.png");
  11382. }
  11383. .chapter_upload_noSee {
  11384. background-image: url("../../assets/icon/new/u_noUpload.png");
  11385. width: 18px;
  11386. height: 18px;
  11387. background-size: 100% 100%;
  11388. display: block;
  11389. margin-right: 10px;
  11390. }
  11391. .chapter_upload_ud {
  11392. display: flex;
  11393. flex-direction: row;
  11394. justify-content: center;
  11395. margin: 0 10px 0 0;
  11396. }
  11397. .chapter_upload_ud>.chapter_upload_up {
  11398. margin-bottom: 0;
  11399. margin-right: 10px;
  11400. }
  11401. .chapter_upload_down,
  11402. .chapter_upload_up {
  11403. width: 20px;
  11404. height: 20px;
  11405. background: #e4eaf2;
  11406. cursor: pointer;
  11407. margin: 0 auto;
  11408. border-radius: 5px;
  11409. display: flex;
  11410. justify-content: center;
  11411. align-items: center;
  11412. }
  11413. .chapter_upload_up::after,
  11414. .chapter_upload_down::after {
  11415. content: '';
  11416. background-image: url('../../assets/icon/new/downBtn.png');
  11417. width: 13px;
  11418. height: 13px;
  11419. background-size: 100% 100%;
  11420. display: block;
  11421. }
  11422. .chapter_upload_up::after {
  11423. background-image: url('../../assets/icon/new/upBtn.png') !important;
  11424. }
  11425. .chapter_upload_up {
  11426. margin-bottom: 5px;
  11427. }
  11428. .chapter_upload_ud2 {
  11429. display: flex;
  11430. flex-direction: row;
  11431. justify-content: center;
  11432. margin: 0 10px 0 0;
  11433. }
  11434. .chapter_upload_ud2>.chapter_upload_up2 {
  11435. margin-bottom: 0;
  11436. margin-right: 10px;
  11437. }
  11438. .chapter_upload_down2,
  11439. .chapter_upload_up2 {
  11440. cursor: pointer;
  11441. margin: 0 auto;
  11442. border-radius: 5px;
  11443. display: flex;
  11444. justify-content: center;
  11445. align-items: center;
  11446. color: #717C8D;
  11447. font-size: 14px;
  11448. }
  11449. .chapter_upload_up2{
  11450. margin-right:10px;
  11451. }
  11452. .chapter_upload_up2::before,
  11453. .chapter_upload_down2::before {
  11454. content: '';
  11455. background-image: url('../../assets/icon/new/c_down.png');
  11456. width: 14px;
  11457. height: 14px;
  11458. background-size: 100% 100%;
  11459. display: block;
  11460. margin-right: 5px;
  11461. }
  11462. .chapter_upload_up2::before {
  11463. background-image: url('../../assets/icon/new/c_up.png') !important;
  11464. }
  11465. .addWordStyle {
  11466. display: flex;
  11467. flex-direction: row;
  11468. justify-content: flex-start;
  11469. overflow-x: auto;
  11470. white-space: nowrap;
  11471. flex-wrap: wrap;
  11472. }
  11473. /* table 样式 */
  11474. .cont>>>table {
  11475. border-top: 1px solid #ccc;
  11476. border-left: 1px solid #ccc;
  11477. }
  11478. .cont>>>table td,
  11479. .cont>>>table th {
  11480. border-bottom: 1px solid #ccc;
  11481. border-right: 1px solid #ccc;
  11482. /* padding: 20px 5px; */
  11483. padding: 5px 10px;
  11484. max-width: 0px;
  11485. height: 30px;
  11486. vertical-align: baseline;
  11487. }
  11488. .cont>>>table th {
  11489. border-bottom: 2px solid #ccc;
  11490. text-align: center;
  11491. }
  11492. /* blockquote 样式 */
  11493. .cont>>>blockquote {
  11494. display: block;
  11495. border-left: 8px solid #d0e5f2;
  11496. padding: 5px 10px;
  11497. margin: 10px 0;
  11498. line-height: 1.4;
  11499. font-size: 100%;
  11500. background-color: #f1f1f1;
  11501. }
  11502. /* code 样式 */
  11503. .cont>>>code {
  11504. display: inline-block;
  11505. /* *display: inline; */
  11506. zoom: 1;
  11507. background-color: #f1f1f1;
  11508. border-radius: 3px;
  11509. padding: 3px 5px;
  11510. margin: 0 3px;
  11511. }
  11512. .cont>>>pre code {
  11513. display: block;
  11514. }
  11515. /* ul ol 样式 */
  11516. .cont>>>ul,
  11517. ol {
  11518. margin: 10px 0 10px 20px;
  11519. }
  11520. .wordbox {
  11521. display: flex;
  11522. flex-wrap: wrap;
  11523. cursor: pointer;
  11524. width: 100%;
  11525. }
  11526. .checkword {
  11527. width: 22px;
  11528. height: 22px;
  11529. margin: 10px auto 0;
  11530. cursor: pointer;
  11531. }
  11532. .checkword img {
  11533. width: 100%;
  11534. }
  11535. .stepBg {
  11536. display: flex;
  11537. justify-content: space-between;
  11538. align-items: center;
  11539. background: #fff;
  11540. width: calc(100%);
  11541. margin: 0 auto;
  11542. }
  11543. .stepBorder {
  11544. height: 3px !important;
  11545. background: #CAD1DC;
  11546. width: 100px !important;
  11547. margin: 0 15px !important;
  11548. position: relative;
  11549. }
  11550. .border-active {
  11551. background: #3681FC !important
  11552. }
  11553. .border-active::before,
  11554. .border-active::after {
  11555. border-color: #3681FC !important
  11556. }
  11557. .stepBorder::before,
  11558. .stepBorder::after {
  11559. content: '';
  11560. width: 9px;
  11561. height: 9px;
  11562. background: #FFFFFF;
  11563. opacity: 1;
  11564. border: 2px solid #ACB4BF;
  11565. display: block;
  11566. box-sizing: border-box;
  11567. border-radius: 50%;
  11568. position: absolute;
  11569. top: 50%;
  11570. transform: translateY(-50%);
  11571. }
  11572. .stepBorder::after {
  11573. right: -9px;
  11574. }
  11575. .stepTop {
  11576. width: 100%;
  11577. /* border-radius: 10px; */
  11578. display: flex;
  11579. justify-content: center;
  11580. align-items: center;
  11581. flex-wrap: nowrap;
  11582. background: #fff;
  11583. /* top: 18%; */
  11584. height: 80px;
  11585. border-bottom: 2px solid rgb(228, 232, 237);
  11586. box-sizing: border-box;
  11587. }
  11588. .stepTop2 {
  11589. width: 100%;
  11590. /* border-radius: 10px; */
  11591. display: flex;
  11592. justify-content: center;
  11593. align-items: center;
  11594. flex-wrap: nowrap;
  11595. background: #fff;
  11596. /* top: 18%; */
  11597. height: 20px;
  11598. border-bottom: 2px solid rgb(228, 232, 237);
  11599. box-sizing: border-box;
  11600. overflow: hidden;
  11601. cursor: pointer;
  11602. }
  11603. .stepTop>div img {
  11604. width: 100%;
  11605. }
  11606. .stepTop>div {
  11607. height: 50px;
  11608. width: 180px;
  11609. cursor: pointer;
  11610. margin: 10px 0;
  11611. border-radius: 10px;
  11612. }
  11613. .first,
  11614. .second,
  11615. .third,
  11616. .four {
  11617. background: #3681FC;
  11618. height: 90px;
  11619. color: #fff;
  11620. display: flex;
  11621. flex-direction: row;
  11622. align-items: center;
  11623. justify-content: center;
  11624. }
  11625. .first>div:nth-child(1),
  11626. .second>div:nth-child(1),
  11627. .third>div:nth-child(1),
  11628. .four>div:nth-child(1) {
  11629. margin: 5px 10px 0 0;
  11630. width: 2rem;
  11631. }
  11632. .firstNo,
  11633. .secondNo,
  11634. .thirdNo,
  11635. .fourNo {
  11636. background: #e7e7e7;
  11637. color: #adadad;
  11638. display: flex;
  11639. flex-direction: row;
  11640. align-items: center;
  11641. justify-content: center;
  11642. }
  11643. .firstNo>div:nth-child(1),
  11644. .secondNo>div:nth-child(1),
  11645. .thirdNo>div:nth-child(1),
  11646. .fourNo>div:nth-child(1) {
  11647. margin: 5px 10px 0 0;
  11648. width: 2rem;
  11649. }
  11650. .uploadWidth>>>.el-upload {
  11651. width: 60px;
  11652. height: 60px;
  11653. position: relative;
  11654. }
  11655. .addPeople {
  11656. background: #fa6060;
  11657. width: 150px;
  11658. height: 40px;
  11659. color: #fff;
  11660. border-radius: 5px;
  11661. text-align: center;
  11662. line-height: 40px;
  11663. font-size: 14px;
  11664. cursor: pointer;
  11665. }
  11666. .kcImg {
  11667. width: 60px;
  11668. margin-left: 10px;
  11669. }
  11670. .zyImg {
  11671. width: 55px;
  11672. margin: 0 10px;
  11673. }
  11674. .deleteZy {
  11675. width: 20px;
  11676. position: absolute;
  11677. top: 5px;
  11678. right: 5px;
  11679. cursor: pointer;
  11680. }
  11681. .kcImg>img,
  11682. .zyImg>img,
  11683. .deleteZy>img {
  11684. width: 100%;
  11685. height: 100%;
  11686. }
  11687. .zyBox {
  11688. display: flex;
  11689. flex-direction: row;
  11690. align-items: center;
  11691. background: #67d37d;
  11692. color: #fff;
  11693. width: 210px;
  11694. margin: 20px 20px 0 0;
  11695. border-radius: 10px;
  11696. height: 70px;
  11697. position: relative;
  11698. }
  11699. .upCss {
  11700. display: flex;
  11701. flex-direction: row;
  11702. justify-content: flex-start;
  11703. }
  11704. .upCss>>>.el-icon-plus {
  11705. position: none !important;
  11706. width: 200px;
  11707. height: 100px;
  11708. display: flex;
  11709. flex-wrap: nowrap;
  11710. flex-direction: column;
  11711. align-items: center;
  11712. justify-content: center;
  11713. border: 1px dashed #ccc;
  11714. min-width: 78px;
  11715. min-height: 100px;
  11716. z-index: 999;
  11717. }
  11718. .upCss>>>.el-upload-list__item-name {
  11719. width: 100px;
  11720. white-space: nowrap;
  11721. overflow: hidden;
  11722. text-overflow: ellipsis;
  11723. }
  11724. .upCss>>>.el-upload-list__item .el-icon-close {
  11725. font-size: 20px;
  11726. z-index: 9999;
  11727. }
  11728. .addStageImg {
  11729. min-width: 20px;
  11730. min-height: 20px;
  11731. width: 20px;
  11732. height: 20px;
  11733. cursor: pointer;
  11734. }
  11735. .addHW {
  11736. width: 28px;
  11737. height: 28px;
  11738. cursor: pointer;
  11739. }
  11740. .addStageImg>img,
  11741. .addHW>img {
  11742. width: 100%;
  11743. height: 100%;
  11744. }
  11745. .addNewPP>>>.el-dialog__body {
  11746. padding: 5px 20px;
  11747. }
  11748. .addNewPP>>>.el-dialog {
  11749. margin-top: 5vh !important;
  11750. }
  11751. .addNewPP2>>>.el-dialog__body {
  11752. padding: 5px 0;
  11753. }
  11754. .addNewPP2>>>.el-dialog {
  11755. margin-top: 5vh !important;
  11756. }
  11757. .isHeight {
  11758. height: 680px;
  11759. }
  11760. .toolChoose {
  11761. display: flex;
  11762. /* width: 100%; */
  11763. flex-direction: row;
  11764. flex-wrap: wrap;
  11765. }
  11766. .tool,
  11767. .isToolChoose {
  11768. display: flex;
  11769. flex-direction: column;
  11770. flex-wrap: nowrap;
  11771. width: fit-content;
  11772. margin: 10px 0 10px 0;
  11773. align-items: center;
  11774. border: 2px solid #dbdbdb00;
  11775. padding: 10px 20px;
  11776. border-radius: 5px;
  11777. cursor: pointer;
  11778. /* box-shadow: 0 0 2px 0px #dedede; */
  11779. position: relative;
  11780. box-sizing: border-box;
  11781. }
  11782. .tool:hover {
  11783. border: 2px solid #a5c7ff;
  11784. }
  11785. .tool:hover>.noCTool {
  11786. display: block;
  11787. opacity: 0.5;
  11788. }
  11789. .isToolChoose {
  11790. border: 2px solid #438aff !important;
  11791. box-shadow: 0 0 2px 0px #438aff;
  11792. opacity: 1 !important;
  11793. }
  11794. .isCTool,
  11795. .noCTool {
  11796. width: 30px;
  11797. height: 30px;
  11798. position: absolute;
  11799. top: -4px;
  11800. right: -4px;
  11801. }
  11802. .noCTool {
  11803. display: none;
  11804. }
  11805. .isCTool>img,
  11806. .noCTool>img {
  11807. width: 100%;
  11808. height: 100%;
  11809. }
  11810. .tool+.tool {
  11811. margin-right: 10px;
  11812. }
  11813. .whiteBIcon {
  11814. width: 80px;
  11815. cursor: pointer;
  11816. display: flex;
  11817. flex-direction: column;
  11818. flex-wrap: nowrap;
  11819. align-items: center;
  11820. font-size: 14px;
  11821. }
  11822. .whiteBIcon>img,
  11823. .toolIcon>img,
  11824. .arrow>img {
  11825. width: 100%;
  11826. height: 100%;
  11827. }
  11828. .check img {
  11829. width: 20px;
  11830. height: 20px;
  11831. }
  11832. .whiteBIcon>img {
  11833. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  11834. border-radius: 15px;
  11835. }
  11836. .whiteBIcon>div:nth-child(2) {
  11837. height: 20px;
  11838. line-height: 20px;
  11839. }
  11840. .check {
  11841. /* width: 20px;
  11842. height: 20px; */
  11843. cursor: pointer;
  11844. margin: 10px 0 0;
  11845. }
  11846. .checkDiv {
  11847. display: flex;
  11848. align-items: center;
  11849. }
  11850. .checkDiv span {
  11851. margin-left: 5px;
  11852. color: #858585;
  11853. }
  11854. .customWidth>>>.el-dialog {
  11855. min-width: 500px !important;
  11856. }
  11857. .a_addBox {
  11858. margin: 10px 0;
  11859. background: #fff;
  11860. padding: 15px;
  11861. /* max-height: 600px; */
  11862. overflow: auto;
  11863. }
  11864. .a_add_box {
  11865. border-bottom: 2px solid #eee;
  11866. padding-bottom: 25px;
  11867. }
  11868. .a_add_head {
  11869. display: flex;
  11870. align-items: center;
  11871. justify-content: space-between;
  11872. margin: 10px 0 0 0;
  11873. font-size: 18px;
  11874. }
  11875. .a_add_checkType {
  11876. margin-top: 10px;
  11877. display: flex;
  11878. font-size: 14px;
  11879. align-items: center;
  11880. }
  11881. .a_add_checkType span {
  11882. box-sizing: border-box;
  11883. padding: 0 0 5px 0;
  11884. cursor: pointer;
  11885. }
  11886. .a_add_checkType span+span {
  11887. margin-left: 10px;
  11888. }
  11889. .a_add_checkType .active {
  11890. border-bottom: 2px solid #409eff;
  11891. color: #409eff;
  11892. }
  11893. .a_add_head .a_add_head_input {
  11894. /* width: 540px; */
  11895. width: 100%;
  11896. }
  11897. .a_add_head .a_add_head_div {
  11898. display: flex;
  11899. align-items: center;
  11900. justify-content: space-between;
  11901. }
  11902. .a_add_body {
  11903. display: flex;
  11904. /* align-items: center; */
  11905. align-items: flex-end;
  11906. }
  11907. .a_add_input {
  11908. display: flex;
  11909. align-items: center;
  11910. flex-wrap: wrap;
  11911. }
  11912. .a_add_input_choice {
  11913. flex-direction: column;
  11914. margin-right: 10px;
  11915. }
  11916. .a_add_input_choice>>>.el-radio {
  11917. display: flex;
  11918. align-items: center;
  11919. flex-direction: row-reverse;
  11920. margin: 30px 0 0 0;
  11921. position: relative;
  11922. }
  11923. .a_add_input_choice>>>.el-checkbox {
  11924. display: flex;
  11925. align-items: center;
  11926. flex-direction: row-reverse;
  11927. margin: 30px 0 0 0;
  11928. position: relative;
  11929. }
  11930. .width100 {
  11931. width: 100%;
  11932. }
  11933. .a_add_input .a_add_persent {
  11934. width: 100%;
  11935. }
  11936. .a_add_persent_div {
  11937. width: 100%;
  11938. display: flex;
  11939. align-items: center;
  11940. }
  11941. .a_add_persent_div span {
  11942. margin: 5px 0;
  11943. }
  11944. .a_add_persent_div span:nth-child(1) {
  11945. width: 30%;
  11946. }
  11947. .a_add_persent_div span:nth-child(2) {
  11948. width: 7%;
  11949. }
  11950. .a_add_persent_div span:nth-child(3) {
  11951. width: 40%;
  11952. }
  11953. .a_add_body_div {
  11954. display: flex;
  11955. align-items: center;
  11956. justify-content: center;
  11957. /* flex-direction: column; */
  11958. position: absolute;
  11959. right: -20px;
  11960. transform: translateX(100%);
  11961. }
  11962. .a_add_body_div>>>.el-button--primary {
  11963. background: #466b99;
  11964. border: none;
  11965. }
  11966. .all_choose {
  11967. display: flex;
  11968. flex-direction: row;
  11969. align-items: flex-start;
  11970. width: 100%;
  11971. }
  11972. .all_choose+.all_choose {
  11973. /* margin-top: 10px */
  11974. }
  11975. .all_choose>span {
  11976. min-width: fit-content;
  11977. display: block;
  11978. white-space: nowrap;
  11979. overflow: hidden;
  11980. text-overflow: ellipsis;
  11981. margin-right: 20px;
  11982. font-weight: bold;
  11983. font-size: 14px;
  11984. }
  11985. .all_choose>>>.el-checkbox-group {
  11986. display: flex;
  11987. flex-direction: row;
  11988. width: 100%;
  11989. flex-wrap: wrap;
  11990. align-content: center;
  11991. justify-content: flex-start;
  11992. align-items: center;
  11993. margin-top: 3px;
  11994. }
  11995. .all_choose>.el-checkbox-group>>>.el-checkbox {
  11996. margin-bottom: 10px;
  11997. display: flex;
  11998. flex-direction: row;
  11999. align-items: center;
  12000. margin-right: 10px;
  12001. }
  12002. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  12003. min-width: 80px;
  12004. overflow: hidden;
  12005. width: 80px;
  12006. text-overflow: ellipsis;
  12007. white-space: nowrap;
  12008. }
  12009. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  12010. width: auto;
  12011. }
  12012. .choose>div:nth-child(3)>span {
  12013. /* letter-spacing: 0 !important; */
  12014. }
  12015. .choose {
  12016. display: flex;
  12017. flex-direction: column;
  12018. flex-wrap: nowrap;
  12019. height: 100%;
  12020. justify-content: space-evenly;
  12021. align-items: flex-start;
  12022. }
  12023. .both {
  12024. display: flex;
  12025. flex-direction: row;
  12026. flex-wrap: wrap;
  12027. width: 100%;
  12028. align-items: center;
  12029. justify-content: flex-start;
  12030. margin: 15px 0;
  12031. }
  12032. .notice>>>.el-dialog {
  12033. width: 500px !important;
  12034. text-align: center;
  12035. }
  12036. .notice>>>.el-button {
  12037. margin-top: 20px;
  12038. }
  12039. .whiteBg {
  12040. /* background: #fff; */
  12041. border-radius: 10px;
  12042. }
  12043. .wb_j_box {
  12044. display: flex;
  12045. width: 100%;
  12046. padding: 0 20px 0;
  12047. box-sizing: border-box;
  12048. }
  12049. .wb_j_box_content {
  12050. width: calc(100% - 55% - 100px);
  12051. display: flex;
  12052. align-items: center;
  12053. }
  12054. .wb_j_box_p_box {
  12055. max-width: calc(100% - 200px);
  12056. word-break: break-all;
  12057. overflow: hidden;
  12058. margin: 0 0 0 10px;
  12059. font-size: 14px;
  12060. color: #6e6e6e;
  12061. z-index: 999;
  12062. }
  12063. .chooseWho {
  12064. display: flex;
  12065. width: 410px;
  12066. flex-direction: row;
  12067. flex-wrap: nowrap;
  12068. justify-content: space-between;
  12069. padding-bottom: 10px;
  12070. }
  12071. .chooseWho>div {
  12072. cursor: pointer;
  12073. padding-bottom: 10px;
  12074. font-weight: bold;
  12075. }
  12076. .isChooseActive {
  12077. color: #3e88f4;
  12078. border-bottom: 2px solid #2f80f3;
  12079. }
  12080. .toolSort {
  12081. display: flex;
  12082. flex-direction: row;
  12083. flex-wrap: wrap;
  12084. justify-content: flex-start;
  12085. align-items: flex-start;
  12086. }
  12087. .toolSort>div {
  12088. margin-right: 10px;
  12089. }
  12090. .tools {
  12091. width: 100%;
  12092. display: flex;
  12093. flex-direction: column;
  12094. flex-wrap: nowrap;
  12095. align-items: flex-start;
  12096. }
  12097. .leftTools,
  12098. .rightTools {
  12099. width: 50%;
  12100. }
  12101. .leftTools+.leftTools {
  12102. border-top: 1px solid #dbdbdb;
  12103. padding-top: 30px;
  12104. }
  12105. .rightTools {
  12106. display: flex;
  12107. flex-direction: row;
  12108. flex-wrap: nowrap;
  12109. justify-content: space-around;
  12110. }
  12111. .firstToolList {
  12112. display: flex;
  12113. flex-direction: column;
  12114. flex-wrap: nowrap;
  12115. align-items: center;
  12116. }
  12117. .iconList {
  12118. display: flex;
  12119. flex-direction: row;
  12120. flex-wrap: wrap;
  12121. justify-content: flex-start;
  12122. align-items: center;
  12123. margin: 20px 0 5px 0;
  12124. width: 240px;
  12125. min-width: 240px;
  12126. }
  12127. .iconTool {
  12128. display: flex;
  12129. flex-direction: column;
  12130. flex-wrap: nowrap;
  12131. align-items: center;
  12132. justify-content: flex-start;
  12133. margin: 15px 10px;
  12134. }
  12135. .toolIcon {
  12136. width: 50px;
  12137. }
  12138. .taskBorder {
  12139. /* border: 1px solid #CAD1DC; */
  12140. border-radius: 10px;
  12141. margin-top: 10px;
  12142. min-height: 670px;
  12143. position: relative;
  12144. background: #fff;
  12145. padding: 20px;
  12146. overflow: hidden;
  12147. box-sizing: border-box;
  12148. }
  12149. .smallTaskBorder {
  12150. height: 405px;
  12151. min-height: 405px !important;
  12152. overflow: hidden;
  12153. }
  12154. /* .taskBorder>div {
  12155. padding: 30px 30px 10px;
  12156. } */
  12157. .addTaskBorder {
  12158. /* border: 2px solid #5E9AFC; */
  12159. border-radius: 8px;
  12160. margin-top: 10px;
  12161. cursor: pointer;
  12162. /* height: 50px;
  12163. line-height: 50px; */
  12164. background: #fff;
  12165. padding: 15px 0;
  12166. display: flex;
  12167. align-items: center;
  12168. justify-content: center;
  12169. }
  12170. /* .addTaskBorder>div {
  12171. margin: 0 auto;
  12172. display: flex;
  12173. align-items: center;
  12174. justify-content: center;
  12175. }
  12176. .addTaskBorder>div>img {
  12177. width: 20px;
  12178. }
  12179. .addTaskBorder>div>span {
  12180. font-size: 16px;
  12181. margin-left: 10px;
  12182. color: #5E9AFC;
  12183. } */
  12184. .funBlock {
  12185. display: flex;
  12186. padding: 15px 0;
  12187. flex-direction: row;
  12188. justify-content: center;
  12189. align-items: center;
  12190. position: absolute;
  12191. right: 0;
  12192. bottom: 0;
  12193. background: #fff;
  12194. width: 100%;
  12195. height: 60px;
  12196. z-index: 9;
  12197. }
  12198. .fold {
  12199. display: flex;
  12200. margin: 0 20px;
  12201. flex-direction: row;
  12202. align-items: center;
  12203. cursor: pointer;
  12204. color: #2b7bff;
  12205. }
  12206. .arrow {
  12207. margin-right: 8px;
  12208. width: 16px;
  12209. height: 16px;
  12210. min-width: 16px;
  12211. min-height: 16px;
  12212. background-size: 100% 100%;
  12213. display: block;
  12214. background-image: url(../../assets/icon/new/u_up.png);
  12215. /* border-left: 7px solid transparent;
  12216. border-bottom: 7px solid #717C8D;
  12217. border-top: 0px solid transparent;
  12218. border-right: 7px solid transparent; */
  12219. /* box-sizing: border-box; */
  12220. transition: all .3s;
  12221. }
  12222. .arrowZ {
  12223. transform: rotate(180deg);
  12224. }
  12225. .addToolFun {
  12226. display: flex;
  12227. width: 150px;
  12228. flex-direction: row;
  12229. align-items: center;
  12230. justify-content: center;
  12231. border: 2px dashed #CAD1DC;
  12232. border-radius: 5px;
  12233. height: 50px;
  12234. margin: 35px auto 0;
  12235. cursor: pointer;
  12236. }
  12237. .addToolFun2 {
  12238. display: flex;
  12239. width: 150px;
  12240. border: 2px dashed #CAD1DC;
  12241. flex-direction: row;
  12242. align-items: center;
  12243. justify-content: center;
  12244. border-radius: 5px;
  12245. height: 50px;
  12246. margin: 0 auto 0;
  12247. cursor: pointer;
  12248. }
  12249. .addToolFun2>div,
  12250. .addToolFun>div {
  12251. display: flex;
  12252. line-height: 50px;
  12253. }
  12254. .addToolImg {
  12255. width: 20px;
  12256. height: 20px;
  12257. margin-right: 10px;
  12258. }
  12259. .addToolsDia>>>.el-dialog__body {
  12260. padding: 20px;
  12261. }
  12262. .addToolsDia>>>.el-dialog__body>.toolChoose {
  12263. padding: 0;
  12264. }
  12265. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  12266. padding: 0;
  12267. border-bottom: none;
  12268. margin-bottom: 0;
  12269. }
  12270. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  12271. width: 100%;
  12272. }
  12273. .lineCss>>>.el-form-item__label {
  12274. width: auto !important;
  12275. }
  12276. .lineCss>>>.el-form-item__content {
  12277. margin-left: 50px !important;
  12278. }
  12279. .newSteps {
  12280. display: flex;
  12281. width: 100% !important;
  12282. /* height: 80px; */
  12283. cursor: pointer;
  12284. margin: 10px 0;
  12285. border-radius: 10px;
  12286. flex-direction: row;
  12287. align-content: center;
  12288. justify-content: center;
  12289. align-items: center;
  12290. margin: 0 !important;
  12291. }
  12292. /* 评价样式 */
  12293. .elist_css {
  12294. padding-bottom: 75px !important;
  12295. }
  12296. .elist_title {
  12297. margin-bottom: 10px;
  12298. }
  12299. .elist_input {
  12300. width: 100%;
  12301. }
  12302. .elist_input_box {
  12303. display: flex;
  12304. align-items: center;
  12305. flex-wrap: wrap;
  12306. }
  12307. .elist_input_box+.elist_input_box {
  12308. margin-top: 30px;
  12309. }
  12310. .elist_input .elist_input_box input {
  12311. font: inherit;
  12312. color: currentColor;
  12313. width: 100%;
  12314. /* max-width: calc(100% - 385px); */
  12315. max-width: calc(100% - 150px);
  12316. padding: 8px 14px;
  12317. display: block;
  12318. min-width: 0;
  12319. outline: none;
  12320. border: 1px solid rgba(0, 0, 0, 0.23);
  12321. border-radius: 4px;
  12322. box-sizing: border-box;
  12323. background: #fff;
  12324. margin: 0 20px 0 0;
  12325. }
  12326. .elist_input .elist_input_box span {
  12327. height: 36px;
  12328. line-height: 36px;
  12329. color: rgb(82, 82, 82);
  12330. min-width: 80px;
  12331. }
  12332. .elist_input .elist_input_box .remove {
  12333. height: 20px;
  12334. width: 20px;
  12335. min-height: 20px;
  12336. min-width: 20px;
  12337. background-size: 100% 100%;
  12338. background-position: unset;
  12339. margin-left: 5px;
  12340. }
  12341. .elist_input_box>>>.el-rate {
  12342. display: flex;
  12343. height: 36px;
  12344. align-items: center;
  12345. }
  12346. .elist_input_box .elist_inptu_text {
  12347. width: 100%;
  12348. display: flex;
  12349. align-items: center;
  12350. margin-top: 10px;
  12351. }
  12352. .elist_input_box .elist_inptu_text input {
  12353. /* width: 500px; */
  12354. width: 100%;
  12355. max-width: unset;
  12356. }
  12357. .elist_input_box>>>.el-rate__icon {
  12358. font-size: 24px;
  12359. }
  12360. .elist_btn {
  12361. margin-top: 10px;
  12362. }
  12363. .lineTitle {
  12364. /* margin-top: 15px; */
  12365. width: 110px;
  12366. font-size: 16px;
  12367. display: flex;
  12368. align-items: center;
  12369. line-height: 20px;
  12370. }
  12371. .lineTitle::before {
  12372. content: '';
  12373. display: block;
  12374. width: 3px;
  12375. height: 20px;
  12376. background: #0061FF;
  12377. border-radius: 3px;
  12378. margin: 0 5px 0 0;
  12379. }
  12380. .clineTitle::before {
  12381. content: '';
  12382. display: block;
  12383. min-width: 10px;
  12384. width: 10px;
  12385. height: 10px;
  12386. background: #0061ff;
  12387. border-radius: 50%;
  12388. margin: 0 5px 0 0;
  12389. }
  12390. .courseTop {
  12391. display: flex;
  12392. flex-direction: row;
  12393. justify-content: space-between;
  12394. align-items: center;
  12395. width: calc(100% - 40px);
  12396. margin: 0 auto;
  12397. padding: 10px 0;
  12398. }
  12399. .stepsNav {
  12400. display: flex;
  12401. flex-direction: row;
  12402. justify-content: flex-start;
  12403. align-items: center;
  12404. }
  12405. .stepsWord {
  12406. font-size: 18px;
  12407. color: #fff;
  12408. font-weight: bold;
  12409. margin-left: auto;
  12410. background: rgb(15, 126, 255);
  12411. border-radius: 5px;
  12412. padding: 3px 25px;
  12413. box-sizing: border-box;
  12414. }
  12415. .stepBox {
  12416. width: calc(100% - 40px);
  12417. height: calc(100% - 50px);
  12418. overflow: hidden;
  12419. border-radius: 5px;
  12420. margin: 0 auto;
  12421. }
  12422. .rightBox {
  12423. width: calc(100%);
  12424. background: #F0F2F5;
  12425. /* border-radius: 10px; */
  12426. overflow: auto;
  12427. height: calc(100% - 150px);
  12428. margin: 0 auto;
  12429. position: relative;
  12430. box-sizing: border-box;
  12431. }
  12432. .e_add_top {
  12433. display: flex;
  12434. justify-content: space-between;
  12435. background: #fff;
  12436. position: absolute;
  12437. right: 20px;
  12438. height: 50px;
  12439. align-items: center;
  12440. }
  12441. .e_add_title2 {
  12442. display: flex;
  12443. align-items: center;
  12444. }
  12445. .e_add_title2 span {
  12446. width: 40px;
  12447. }
  12448. .e_add_title {
  12449. display: flex;
  12450. align-items: center;
  12451. color: #b8b8b8;
  12452. font-size: 18px;
  12453. position: relative;
  12454. height: 40px;
  12455. }
  12456. .e_add_title span {
  12457. margin-right: 10px;
  12458. }
  12459. .e_add_title .el_input {
  12460. width: 300px;
  12461. }
  12462. .e_add_title>>>.el-input__inner {
  12463. width: 400px;
  12464. }
  12465. .e_add_btn {}
  12466. .e_add_content {
  12467. display: flex;
  12468. width: 100%;
  12469. }
  12470. .e_add_list {
  12471. background: #fff;
  12472. height: 500px;
  12473. width: 210px;
  12474. position: relative;
  12475. margin: 15px 5px 0 0;
  12476. flex-shrink: 0;
  12477. display: flex;
  12478. flex-direction: column;
  12479. }
  12480. .e_add_list_title {
  12481. font-size: 20px;
  12482. width: 100%;
  12483. box-sizing: border-box;
  12484. padding: 15px 40px;
  12485. text-align: center;
  12486. border-bottom: 1px solid #eaeaea;
  12487. position: relative;
  12488. display: flex;
  12489. align-items: center;
  12490. justify-content: center;
  12491. height: 57px;
  12492. background: #f6f6f6;
  12493. }
  12494. .e_add_list_title span {
  12495. overflow: hidden;
  12496. white-space: nowrap;
  12497. text-overflow: ellipsis;
  12498. }
  12499. .e_add_list_title img {
  12500. position: absolute;
  12501. right: 15px;
  12502. width: 25px;
  12503. cursor: pointer;
  12504. top: 50%;
  12505. transform: translateY(-50%);
  12506. }
  12507. .e_add_list_body {
  12508. height: calc(100% - 187px);
  12509. overflow: auto;
  12510. }
  12511. .e_add_list_child {
  12512. width: 100%;
  12513. display: flex;
  12514. align-items: center;
  12515. justify-content: center;
  12516. position: relative;
  12517. box-sizing: border-box;
  12518. padding: 15px 40px;
  12519. text-align: center;
  12520. }
  12521. .e_add_list_child span {
  12522. overflow: hidden;
  12523. white-space: nowrap;
  12524. text-overflow: ellipsis;
  12525. cursor: pointer;
  12526. }
  12527. .e_add_list_child img {
  12528. position: absolute;
  12529. right: 10px;
  12530. width: 21px;
  12531. cursor: pointer;
  12532. top: 50%;
  12533. transform: translateY(-50%);
  12534. }
  12535. .e_add_list_child+.e_add_list_child {
  12536. border-top: 1px solid #eaeaea;
  12537. }
  12538. .e_add_list_child .active {
  12539. color: #409eff;
  12540. }
  12541. .e_add_list_btn {
  12542. position: absolute;
  12543. bottom: 0;
  12544. height: 50px;
  12545. background: rgb(120, 120, 254);
  12546. width: 100%;
  12547. color: #fff;
  12548. font-size: 16px;
  12549. text-align: center;
  12550. line-height: 50px;
  12551. cursor: pointer;
  12552. }
  12553. .e_add_list_detail {
  12554. position: absolute;
  12555. bottom: 0;
  12556. height: 130px;
  12557. background: rgb(120, 120, 254);
  12558. width: 100%;
  12559. color: #fff;
  12560. font-size: 16px;
  12561. display: flex;
  12562. align-items: center;
  12563. justify-content: center;
  12564. }
  12565. .e_add_list_detail textarea {
  12566. height: 90%;
  12567. width: 95%;
  12568. border: none;
  12569. resize: none;
  12570. outline: none;
  12571. padding: 5px;
  12572. box-sizing: border-box;
  12573. }
  12574. .e_add_list_pbox {
  12575. width: 100%;
  12576. }
  12577. .e_add_list_pbox_title {
  12578. height: 50px;
  12579. background: #fff;
  12580. display: flex;
  12581. align-items: center;
  12582. width: 100%;
  12583. box-sizing: border-box;
  12584. padding: 0 20px;
  12585. flex-direction: row;
  12586. flex-wrap: wrap;
  12587. }
  12588. .type_title {
  12589. font-size: 18px;
  12590. font-weight: 700;
  12591. }
  12592. .type_content {
  12593. font-size: 16px;
  12594. margin-left: 30px;
  12595. }
  12596. .type_content span+span {
  12597. margin-left: 20px;
  12598. }
  12599. .type_content span {
  12600. cursor: pointer;
  12601. padding-bottom: 5px;
  12602. box-sizing: border-box;
  12603. }
  12604. .type_content .active {
  12605. color: #409eff;
  12606. border-bottom: 2px solid #409eff;
  12607. }
  12608. .e_add_list_pbox_content {
  12609. height: calc(100% - 50px);
  12610. display: flex;
  12611. align-items: center;
  12612. width: 100%;
  12613. background: #fff;
  12614. }
  12615. .mbCss {
  12616. width: 100%;
  12617. display: flex;
  12618. flex-direction: row;
  12619. flex-wrap: nowrap;
  12620. align-content: center;
  12621. align-items: flex-start;
  12622. justify-content: flex-start;
  12623. }
  12624. .pjCss {
  12625. /* width: 42%; */
  12626. width: calc(100% - 55%);
  12627. display: flex;
  12628. flex-direction: column;
  12629. flex-wrap: nowrap;
  12630. align-items: flex-start;
  12631. }
  12632. .e_box {
  12633. /* display: flex; */
  12634. flex-wrap: wrap;
  12635. max-height: 500px;
  12636. align-items: flex-start;
  12637. overflow: auto;
  12638. width:100%;
  12639. }
  12640. .e_card {
  12641. border: 1px solid #ccc;
  12642. background: #fff;
  12643. margin-right: 20px;
  12644. width: 270px;
  12645. display: flex;
  12646. flex-direction: column;
  12647. align-items: center;
  12648. border-radius: 5px;
  12649. margin-top: 10px;
  12650. text-align: center;
  12651. }
  12652. .e_card_picture {
  12653. margin: 10px 0;
  12654. }
  12655. .e_card_picture>img {
  12656. width: 50px;
  12657. }
  12658. .e_card_name {
  12659. width: 100%;
  12660. padding: 0 10px;
  12661. box-sizing: border-box;
  12662. margin-bottom: 10px;
  12663. overflow: hidden;
  12664. text-overflow: ellipsis;
  12665. white-space: nowrap;
  12666. }
  12667. .e_card_time {
  12668. width: 100%;
  12669. padding: 0 10px;
  12670. box-sizing: border-box;
  12671. font-size: 15px;
  12672. color: #c3c3c3;
  12673. margin-bottom: 10px;
  12674. }
  12675. .e_card_btn {
  12676. height: 40px;
  12677. display: flex;
  12678. align-items: center;
  12679. width: 100%;
  12680. background: rgb(244, 244, 244);
  12681. }
  12682. .e_card_btn:hover {
  12683. background: rgb(221 221 221);
  12684. }
  12685. .e_card_btn span {
  12686. flex: 1 1 auto;
  12687. text-align: center;
  12688. cursor: pointer;
  12689. }
  12690. .addEva {
  12691. border: 1px solid #ccc;
  12692. background: #fff;
  12693. margin-right: 20px;
  12694. width: 270px;
  12695. height: 149px;
  12696. display: flex;
  12697. flex-direction: column;
  12698. align-items: center;
  12699. border-radius: 5px;
  12700. margin-top: 10px;
  12701. text-align: center;
  12702. cursor: pointer;
  12703. justify-content: center;
  12704. }
  12705. .addEva>img {
  12706. width: 50px;
  12707. object-fit: cover;
  12708. }
  12709. .uploadFm {
  12710. border: 1px dashed #ccc;
  12711. width: 100%;
  12712. height: 140px;
  12713. position: relative;
  12714. cursor: pointer;
  12715. display: flex;
  12716. flex-direction: column;
  12717. justify-content: center;
  12718. align-items: center;
  12719. font-size: 14px;
  12720. color: #6e6e6e;
  12721. position:relative;
  12722. }
  12723. .cover_p{
  12724. width: 100% !important;
  12725. height: 100%;
  12726. object-fit: cover;
  12727. }
  12728. .uploadFm2:hover .cover_mask{
  12729. display: flex !important;
  12730. }
  12731. .cover_mask{
  12732. display:none;
  12733. width:100%;
  12734. height:100%;
  12735. position:absolute;
  12736. background:#00000054;
  12737. align-items: center;
  12738. justify-content: center;
  12739. flex-direction: column;
  12740. }
  12741. .cover_mask > img{
  12742. width: 30px;
  12743. }
  12744. .cover_mask > span{
  12745. color: #fff;
  12746. font-size: 12px;
  12747. }
  12748. .uploadFm>img {
  12749. width: 50px;
  12750. }
  12751. .fileCss {
  12752. width: 100%;
  12753. display: flex;
  12754. flex-direction: row;
  12755. flex-wrap: nowrap;
  12756. justify-content: space-around;
  12757. align-items: center;
  12758. padding-top: 15px;
  12759. }
  12760. .fileCss>div {
  12761. display: flex;
  12762. flex-direction: column;
  12763. align-items: center;
  12764. }
  12765. .fileCss .spanName {
  12766. margin-top: 10px
  12767. }
  12768. .sysPicBox {
  12769. display: flex;
  12770. flex-direction: row;
  12771. flex-wrap: wrap;
  12772. align-content: flex-start;
  12773. height: 435px;
  12774. overflow: auto;
  12775. position: relative;
  12776. }
  12777. .picNone {
  12778. position: absolute;
  12779. left: 50%;
  12780. top: 45%;
  12781. transform: translate(-50%, -50%);
  12782. width: fit-content;
  12783. color: #9c9c9c;
  12784. }
  12785. .sysPic {
  12786. width: 200px;
  12787. height: 115px;
  12788. margin: 0 20px 20px 0;
  12789. cursor: pointer;
  12790. }
  12791. .sysPic>img,
  12792. .isSysPic>img,
  12793. .deletePic>img {
  12794. width: 100%;
  12795. height: 100%;
  12796. object-fit: cover;
  12797. }
  12798. .isSysPic {
  12799. width: 200px;
  12800. height: 115px;
  12801. position: relative;
  12802. }
  12803. .deletePic {
  12804. width: 20px;
  12805. height: 20px;
  12806. position: absolute;
  12807. top: 0;
  12808. right: 0;
  12809. cursor: pointer;
  12810. }
  12811. .select_box1 {
  12812. height: 100%;
  12813. }
  12814. .select_box1_img {
  12815. background: #fff;
  12816. border-radius: 5px;
  12817. padding: 15px;
  12818. box-sizing: border-box;
  12819. margin-bottom: 20px;
  12820. }
  12821. .select_box1_title {
  12822. padding: 0 0 15px 0;
  12823. border-bottom: 1px solid #eee;
  12824. margin-bottom: 15px;
  12825. }
  12826. .select_box1_title span:nth-child(1) {
  12827. font-size: 16px;
  12828. margin-right: 20px;
  12829. color: #000;
  12830. }
  12831. .select_box1_title span:nth-child(2) {
  12832. font-size: 14px;
  12833. color: rgb(112, 112, 112);
  12834. }
  12835. .select_box1_add_img {}
  12836. .select_box1_select {
  12837. background: #fff;
  12838. border-radius: 5px;
  12839. padding: 15px;
  12840. box-sizing: border-box;
  12841. height: calc(100% - 200px);
  12842. overflow: auto;
  12843. }
  12844. .select_box2 {
  12845. height: 100%;
  12846. }
  12847. .select_box2_title {
  12848. background: #fff;
  12849. border-radius: 5px;
  12850. padding: 5px 10px;
  12851. box-sizing: border-box;
  12852. margin-bottom: 10px;
  12853. }
  12854. .select_box2_box {
  12855. display: flex;
  12856. height: calc(100% - 30px);
  12857. }
  12858. .select_box2_img {
  12859. width: calc(100% - 310px);
  12860. height: 100%;
  12861. overflow: auto;
  12862. background: #fff;
  12863. border-radius: 5px;
  12864. }
  12865. .select_box2_img img {
  12866. width: 100%;
  12867. }
  12868. .select_box2_answer {
  12869. background: #fff;
  12870. margin-left: 10px;
  12871. border-radius: 5px;
  12872. width: 300px;
  12873. overflow: auto;
  12874. height: 100%;
  12875. display: flex;
  12876. flex-direction: column;
  12877. align-items: center;
  12878. padding-top: 10px;
  12879. box-sizing: border-box;
  12880. }
  12881. .select_box2_answer_box {
  12882. margin: 0 0 10px 0;
  12883. width: 85%;
  12884. }
  12885. .rate_textarea {
  12886. font: inherit;
  12887. color: currentColor;
  12888. width: 100%;
  12889. padding: 8px 14px;
  12890. display: block;
  12891. min-width: 0;
  12892. outline: none;
  12893. border: 1px solid rgba(0, 0, 0, 0.23);
  12894. border-radius: 4px;
  12895. box-sizing: border-box;
  12896. background: #fff;
  12897. margin: 0 20px 0 0;
  12898. resize: none;
  12899. }
  12900. .select_answer_title {
  12901. text-align: left;
  12902. width: 85%;
  12903. margin-bottom: 10px;
  12904. font-size: 18px;
  12905. color: #8e8e8e;
  12906. }
  12907. .mask {
  12908. background-color: rgb(0 0 0 / 30%);
  12909. /* position: fixed; */
  12910. position: absolute;
  12911. top: 0;
  12912. left: 0;
  12913. width: 100%;
  12914. height: 100%;
  12915. z-index: 90;
  12916. display: flex;
  12917. align-items: center;
  12918. justify-content: center;
  12919. }
  12920. .progressBox {
  12921. width: 300px;
  12922. height: 150px;
  12923. background: #fff;
  12924. border-radius: 10px;
  12925. box-shadow: 0 0 6px 1px #bfbfbf;
  12926. display: flex;
  12927. align-items: center;
  12928. justify-content: center;
  12929. flex-direction: column;
  12930. position: relative;
  12931. color: #6c6c6c;
  12932. }
  12933. .progressBox>>>.el-progress-bar__outer {
  12934. background-color: #d1dfff !important;
  12935. }
  12936. .progressBox .lbox {
  12937. height: 50px;
  12938. font-size: 19px;
  12939. display: flex;
  12940. align-items: center;
  12941. color: #747474;
  12942. }
  12943. .progressBox .lbox img {
  12944. width: 40px;
  12945. margin-right: 20px;
  12946. }
  12947. .closeCss {
  12948. position: absolute;
  12949. top: 8px;
  12950. right: 8px;
  12951. cursor: pointer;
  12952. width: 20px;
  12953. height: 20px;
  12954. }
  12955. .closeCss>img {
  12956. width: 100%;
  12957. height: 100%;
  12958. }
  12959. .updateTips::before {
  12960. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  12961. font-size: 14px;
  12962. margin-left: 20px;
  12963. font-weight: 400;
  12964. color: #ff3a3a;
  12965. margin-bottom: 10px;
  12966. display: block;
  12967. }
  12968. .updateMask {
  12969. width: 100%;
  12970. z-index: 3;
  12971. top: 0;
  12972. position: absolute;
  12973. /* background-color: rgba(0,0,0,.3); */
  12974. }
  12975. .t_j_box {
  12976. display: flex;
  12977. }
  12978. .t_j_box span:nth-child(1) {
  12979. width: 15%;
  12980. overflow: hidden;
  12981. margin-right: 10px;
  12982. text-overflow: ellipsis;
  12983. white-space: nowrap;
  12984. }
  12985. .t_j_box span:nth-child(2) {
  12986. width: 30%;
  12987. overflow: hidden;
  12988. text-overflow: ellipsis;
  12989. margin-right: 10px;
  12990. }
  12991. .t_j_box span:nth-child(3) {
  12992. max-width: calc(55% - 20px);
  12993. overflow: hidden;
  12994. text-overflow: ellipsis;
  12995. }
  12996. .sentenBox {
  12997. background: #fff;
  12998. height: 600px;
  12999. overflow: auto;
  13000. background-image: url("../../assets/icon/conSentences/csBg.png");
  13001. background-position: 102%;
  13002. background-repeat: no-repeat;
  13003. background-size: 60%;
  13004. }
  13005. .sentenBox>.sentenContent {
  13006. padding-bottom: 10px;
  13007. width: 97%;
  13008. margin: 0 auto;
  13009. }
  13010. .sentenBox>.sentenContent+.sentenContent {
  13011. border-top: 1px solid #cbcbcb;
  13012. }
  13013. .addSen {
  13014. background: #409efe;
  13015. width: 90px;
  13016. color: #fff;
  13017. height: 35px;
  13018. text-align: center;
  13019. line-height: 35px;
  13020. border-radius: 5px;
  13021. float: right;
  13022. margin: 10px 20px 0 0;
  13023. cursor: pointer;
  13024. }
  13025. .sentenTop {
  13026. display: flex;
  13027. flex-direction: row;
  13028. flex-wrap: nowrap;
  13029. align-items: center;
  13030. }
  13031. .sentenTop::before {
  13032. content: attr(index);
  13033. background: #3681fc;
  13034. border-radius: 50%;
  13035. color: #fff;
  13036. width: 25px;
  13037. height: 25px;
  13038. min-width: 25px;
  13039. min-height: 25px;
  13040. text-align: center;
  13041. line-height: 25px;
  13042. margin-right: 5px;
  13043. }
  13044. .sentenTop>div:nth-child(2) {
  13045. width: 300px;
  13046. margin: 0 15px;
  13047. }
  13048. .sentenTop>div:nth-child(3) {
  13049. background: #409efe;
  13050. color: #fff;
  13051. width: 65px;
  13052. height: 35px;
  13053. text-align: center;
  13054. line-height: 35px;
  13055. border-radius: 5px;
  13056. cursor: pointer;
  13057. }
  13058. .cardList {
  13059. padding: 30px 0 20px 0;
  13060. display: flex;
  13061. flex-direction: row;
  13062. flex-wrap: wrap;
  13063. align-items: center;
  13064. box-sizing: border-box;
  13065. border-bottom: 1px solid #f4f4f4;
  13066. width: 98%;
  13067. margin: 0 auto;
  13068. }
  13069. .rightCardList {
  13070. display: flex;
  13071. flex-wrap: wrap;
  13072. }
  13073. .cardBox {
  13074. display: flex;
  13075. flex-direction: row;
  13076. flex-wrap: wrap;
  13077. align-items: center;
  13078. align-content: center;
  13079. }
  13080. .isCard,
  13081. .isCard1 {
  13082. width: auto;
  13083. padding: 0 20px;
  13084. height: 65px;
  13085. text-align: center;
  13086. line-height: 65px;
  13087. font-size: 14px;
  13088. cursor: pointer;
  13089. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  13090. background-size: 100% 100%;
  13091. position: relative;
  13092. z-index: 99;
  13093. }
  13094. .isCard1 {
  13095. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  13096. }
  13097. .isCard:hover .deleteWord {
  13098. display: block;
  13099. }
  13100. .isCard>div:nth-child(1),
  13101. .isCard1>div:nth-child(1) {
  13102. white-space: nowrap;
  13103. overflow: hidden;
  13104. text-overflow: ellipsis;
  13105. width: 100%;
  13106. margin: 0 auto;
  13107. }
  13108. .card {
  13109. width: 140px;
  13110. height: 65px;
  13111. }
  13112. .card>img {
  13113. width: 100%;
  13114. height: 100%;
  13115. }
  13116. .rightCardBox {
  13117. width: 98%;
  13118. margin: 10px auto 0;
  13119. }
  13120. .rightCardBox>div:nth-child(1) {
  13121. margin-bottom: 10px;
  13122. }
  13123. .cardCss {
  13124. display: flex;
  13125. flex-direction: column;
  13126. flex-wrap: nowrap;
  13127. align-items: center;
  13128. border-bottom: 3px solid #b4c3d3;
  13129. padding: 0 0 5px 0;
  13130. /* margin-right: 10px; */
  13131. }
  13132. .cardCss>div:nth-child(2) {
  13133. background: #5b7b9d;
  13134. color: #fff;
  13135. width: 20px;
  13136. height: 20px;
  13137. border-radius: 50%;
  13138. text-align: center;
  13139. line-height: 20px;
  13140. }
  13141. .sentenTopBox {
  13142. display: flex;
  13143. flex-direction: row;
  13144. flex-wrap: nowrap;
  13145. align-items: center;
  13146. justify-content: space-between;
  13147. padding: 55px 0 0 20px;
  13148. box-sizing: border-box;
  13149. width: 85%;
  13150. }
  13151. .stepsBottom {
  13152. width: 100%;
  13153. box-shadow: 0 0 10px 10px #f7f7f7;
  13154. /* background: #f7f7f7; */
  13155. border-radius: 10px;
  13156. overflow: hidden;
  13157. height: 100%
  13158. }
  13159. .navTop {
  13160. background: #53749b;
  13161. color: #fff;
  13162. height: 40px;
  13163. line-height: 40px;
  13164. padding-left: 15px;
  13165. font-size: 18px;
  13166. }
  13167. .navBottom {
  13168. /* background: #6b91b7; */
  13169. height: 100%;
  13170. overflow: auto;
  13171. padding: 10px 0;
  13172. }
  13173. .navStage {
  13174. display: flex;
  13175. flex-direction: row;
  13176. flex-wrap: nowrap;
  13177. align-items: center;
  13178. padding: 10px 10px 10px 0;
  13179. cursor: pointer;
  13180. background: #ffffff;
  13181. width: 95%;
  13182. margin: 5px auto 5px;
  13183. box-sizing: border-box;
  13184. border-radius: 5px;
  13185. flex-wrap: wrap;
  13186. position: relative;
  13187. }
  13188. .navStage:hover > .chapter_upload_drag{
  13189. display: block;
  13190. }
  13191. .navTask:hover > .chapter_upload_drag{
  13192. display: block;
  13193. }
  13194. .chapter_upload:hover > .chapter_upload_drag{
  13195. display: block;
  13196. }
  13197. .navStage::before {
  13198. content: '';
  13199. display: block;
  13200. width: 16px;
  13201. height: 16px;
  13202. background-image: url(../../assets/icon/new/icon_stage.png);
  13203. background-size: 100%;
  13204. margin-left: 25px;
  13205. }
  13206. .navStage .chapter_unit_open {
  13207. content: '';
  13208. display: block;
  13209. width: 16px;
  13210. height: 16px;
  13211. background-image: url(../../assets/icon/new/down.png);
  13212. transform: rotate(-90deg);
  13213. background-size: 100%;
  13214. margin-left: 10px;
  13215. transition: all .5s;
  13216. }
  13217. .isNavStageOpen .chapter_unit_open {
  13218. transform: rotate(0deg);
  13219. }
  13220. .isNavStage {
  13221. background: #0061FF;
  13222. }
  13223. .isNavStage::before{
  13224. background-image: url(../../assets/icon/new/icon_stage_a.png);
  13225. }
  13226. .isNavStage .chapter_unit_open{
  13227. background-image: url(../../assets/icon/new/downC.png);
  13228. }
  13229. .isNavStage .nt_taskName {
  13230. font-weight: bold !important;
  13231. color: #FFFFFF !important;
  13232. }
  13233. .isNavStage .nt_taskTitle {
  13234. font-weight: bold !important;
  13235. color: #fff !important;
  13236. }
  13237. .navStage .nt_taskBox {
  13238. width: calc(100% - 68px);
  13239. padding: 0 0 0 5px;
  13240. box-sizing: border-box;
  13241. box-sizing: border-box;
  13242. display: flex;
  13243. flex-direction: row;
  13244. flex-wrap: nowrap;
  13245. align-items: baseline;
  13246. }
  13247. .navStage .nt_taskTitle {
  13248. color: #060E17;
  13249. line-height: 25px;
  13250. font-size: 16px;
  13251. }
  13252. .navStage .nt_taskName {
  13253. max-width: calc(100% - 82px);
  13254. white-space: nowrap;
  13255. overflow: hidden;
  13256. text-overflow: ellipsis;
  13257. font-size: 16px;
  13258. color: #060E17;
  13259. }
  13260. .navTask {
  13261. display: flex;
  13262. flex-direction: row;
  13263. flex-wrap: nowrap;
  13264. align-items: center;
  13265. padding: 10px 10px 10px 0;
  13266. cursor: pointer;
  13267. background: #ffffff;
  13268. width: 95%;
  13269. margin: 5px auto 5px;
  13270. box-sizing: border-box;
  13271. border-radius: 5px;
  13272. flex-wrap: wrap;
  13273. position: relative;
  13274. }
  13275. .navTask .chapter_upload_open {
  13276. content: '';
  13277. display: block;
  13278. width: 16px;
  13279. height: 16px;
  13280. background-image: url(../../assets/icon/new/icon_arrow.png);
  13281. background-size: 100%;
  13282. margin-left: 23px;
  13283. }
  13284. .noImage .chapter_upload_open {
  13285. display: none;
  13286. background-image: unset !important;
  13287. }
  13288. .isNavOpen .chapter_upload_open {
  13289. /* background-image: url(../../assets/icon/new/icon_arrow_a.png) !important; */
  13290. transform: rotate(90deg);
  13291. }
  13292. .isNavTask .chapter_upload_open {
  13293. background-image: url(../../assets/icon/new/icon_arrow_a.png) !important;
  13294. transform: rotate(-90deg);
  13295. }
  13296. .isNavTask.isNavOpen .chapter_upload_open{
  13297. transform: rotate(0deg);
  13298. }
  13299. .dragOverTop {
  13300. border-top: 2px solid #0061FF !important;
  13301. border-radius: 0 !important;
  13302. margin-top: 10px;
  13303. }
  13304. .dragOverBottom {
  13305. border-bottom: 2px solid #0061FF !important;
  13306. border-radius: 0 !important;
  13307. margin-top: 10px;
  13308. }
  13309. .dragOverTop2 {
  13310. border-top: 2px solid #0061FF !important;
  13311. border-radius: 0 !important;
  13312. }
  13313. .dragOverBottom2 {
  13314. border-bottom: 2px solid #0061FF !important;
  13315. border-radius: 0 !important;
  13316. }
  13317. .isNavTask {
  13318. /* background: #3681FC; */
  13319. background: #EEF3FB;
  13320. }
  13321. .isNavTask>.chapter_upload_drag {
  13322. background-image: url(../../assets/icon/new/icon_course_drag_active.png) !important;
  13323. }
  13324. .isNavTask .nt_taskName {
  13325. /* color: #fff !important; */
  13326. font-weight: bold !important;
  13327. color: #0061FF !important;
  13328. }
  13329. .isNavTask .nt_taskTitle {
  13330. /* color: #AECCFE !important; */
  13331. font-weight: bold !important;
  13332. color: #0061FF !important;
  13333. }
  13334. .navTask .nt_taskBox {
  13335. width: calc(100% - 40px);
  13336. padding: 0 0 0 5px;
  13337. box-sizing: border-box;
  13338. box-sizing: border-box;
  13339. display: flex;
  13340. flex-direction: row;
  13341. flex-wrap: nowrap;
  13342. align-items: baseline;
  13343. }
  13344. .navTask .nt_taskTitle {
  13345. /* color: #717C8D; */
  13346. color: #060E17;
  13347. line-height: 25px;
  13348. font-size: 16px;
  13349. /* min-width: 66px; */
  13350. }
  13351. .navTask .nt_taskName {
  13352. /* color: #fff; */
  13353. /* max-width: 130px; */
  13354. /* width: 100%; */
  13355. max-width: calc(100% - 66px);
  13356. font-size: 16px;
  13357. color: #060E17;
  13358. /* color: #0E1E33; */
  13359. }
  13360. .navTask .nt_taskName span{
  13361. width: 100%;
  13362. white-space: nowrap;
  13363. overflow: hidden;
  13364. text-overflow: ellipsis;
  13365. display:block;
  13366. }
  13367. .gjBox {
  13368. width: calc(100% - 25px);
  13369. padding: 0 0 0 0;
  13370. box-sizing: border-box;
  13371. border-left: 1px solid #CAD1DC;
  13372. margin-left: 25px;
  13373. }
  13374. .gjBox>div {
  13375. display: flex;
  13376. align-items: center;
  13377. }
  13378. .gjBox>div::before {
  13379. content: '';
  13380. height: 1px;
  13381. width: 10px;
  13382. background: #CAD1DC;
  13383. display: block;
  13384. margin-right: 5px;
  13385. }
  13386. .gjCss {
  13387. display: flex;
  13388. flex-direction: row;
  13389. flex-wrap: nowrap;
  13390. align-items: center;
  13391. padding: 15px 0;
  13392. box-sizing: border-box;
  13393. font-size: 14px;
  13394. cursor: pointer;
  13395. }
  13396. .isGjCss {
  13397. color: #0061ff;
  13398. }
  13399. .groupBox {}
  13400. .groupContent+.groupContent {
  13401. margin-top: 30px;
  13402. }
  13403. .groupTitle {
  13404. font-size: 24px;
  13405. color: rgb(80, 80, 80);
  13406. margin-bottom: 20px;
  13407. }
  13408. .groupName {
  13409. display: flex;
  13410. align-items: center;
  13411. }
  13412. .groupn {
  13413. font-size: 15px;
  13414. margin-right: 10px;
  13415. }
  13416. .groupName+.groupName {
  13417. margin-top: 15px;
  13418. }
  13419. .groupBtn {
  13420. margin-left: 10px;
  13421. }
  13422. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  13423. text-align: left;
  13424. }
  13425. .radioBox>div {
  13426. margin: 10px 0 0 10px;
  13427. }
  13428. .radioBox>>>.el-radio__input,
  13429. .radioBox>>>.el-checkbox__inner {
  13430. margin-left: 10px;
  13431. }
  13432. .radioBox>>>.el-radio__label,
  13433. .radioBox>>>.el-checkbox__label {
  13434. display: flex;
  13435. align-items: center;
  13436. }
  13437. .inImg {
  13438. width: 50px;
  13439. }
  13440. .inImg>img {
  13441. width: 100%;
  13442. height: 100%;
  13443. object-fit: cover;
  13444. }
  13445. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  13446. height: auto;
  13447. padding: 10px;
  13448. margin: 0;
  13449. }
  13450. .upCss>>>.el-upload-list {
  13451. width: 100%;
  13452. }
  13453. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  13454. width: 100%;
  13455. height: 120px;
  13456. object-fit: contain;
  13457. background: unset;
  13458. margin-left: 0;
  13459. }
  13460. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  13461. display: none;
  13462. }
  13463. .tcMember+.tcMember::before {
  13464. content: "、";
  13465. }
  13466. .xzUpImg {
  13467. width: 25px;
  13468. height: 25px;
  13469. min-width: 25px;
  13470. min-height: 25px;
  13471. cursor: pointer;
  13472. margin: 0 10px;
  13473. }
  13474. .xzUpImg>img {
  13475. width: 100%;
  13476. height: 100%;
  13477. }
  13478. .closeCss {
  13479. position: absolute;
  13480. top: 8px;
  13481. right: 8px;
  13482. cursor: pointer;
  13483. width: 20px;
  13484. height: 20px;
  13485. }
  13486. .closeCss>img {
  13487. width: 100%;
  13488. height: 100%;
  13489. }
  13490. .moveBtn {
  13491. display: flex;
  13492. flex-direction: row;
  13493. flex-wrap: nowrap;
  13494. align-items: center;
  13495. width: 55px;
  13496. }
  13497. .timuUpImg {
  13498. display: flex;
  13499. flex-direction: row;
  13500. align-items: center;
  13501. width: 100%;
  13502. margin-right: 10px;
  13503. }
  13504. .timuUpImg>div:nth-child(1) {
  13505. margin-right: 10px;
  13506. display: flex;
  13507. align-items: center;
  13508. width: 100%;
  13509. }
  13510. .timuImgBox {
  13511. margin: 10px 0;
  13512. display: flex;
  13513. flex-direction: column;
  13514. flex-wrap: wrap;
  13515. align-items: flex-start;
  13516. }
  13517. .timuImg {
  13518. width: 100px;
  13519. margin: 5px 0;
  13520. cursor: pointer;
  13521. position: relative;
  13522. }
  13523. .timuImg:hover .deleteWord {
  13524. display: block;
  13525. }
  13526. .deleteWord {
  13527. width: 25px;
  13528. height: 25px;
  13529. position: absolute;
  13530. right: -5px;
  13531. top: -5px;
  13532. cursor: pointer;
  13533. display: none;
  13534. }
  13535. .timuImg>img,
  13536. .deleteWord>img {
  13537. width: 100%;
  13538. height: 100%;
  13539. object-fit: cover;
  13540. }
  13541. .e_add_delete {
  13542. cursor: pointer;
  13543. margin-left: 10px;
  13544. }
  13545. .pType_box {
  13546. margin-top: 30px;
  13547. align-items: flex-end;
  13548. }
  13549. .noneBox {
  13550. height: 200px;
  13551. width: 100%;
  13552. display: flex;
  13553. align-items: center;
  13554. justify-content: center;
  13555. flex-direction: column;
  13556. /* margin-top: 150px; */
  13557. }
  13558. .noneBox>img {
  13559. width: 95px;
  13560. }
  13561. .noneBox>span {
  13562. margin-top: 10px;
  13563. color: #717C8D;
  13564. }
  13565. .rb_c_box {
  13566. width: 100%;
  13567. height: 100%;
  13568. display: flex;
  13569. /* padding: 20px; */
  13570. box-sizing: border-box;
  13571. justify-content: space-between;
  13572. }
  13573. .rb_c_box_left {
  13574. height: 100%;
  13575. background: #fff;
  13576. width: 270px;
  13577. min-width: 270px;
  13578. border-radius: 8px;
  13579. margin-right: 10px;
  13580. }
  13581. .rb_c_box_right {
  13582. height: 100%;
  13583. width: calc(100%);
  13584. overflow: hidden;
  13585. }
  13586. .rb_c_box_btn {
  13587. display: flex;
  13588. justify-content: flex-start;
  13589. height: 50px;
  13590. align-items: center;
  13591. }
  13592. .rb_c_box_right>.basic_box {
  13593. /* background: #fff; */
  13594. border-radius: 0;
  13595. height: calc(100% - 0px);
  13596. overflow: auto;
  13597. padding: 0;
  13598. }
  13599. .textarea_css {
  13600. display: block;
  13601. resize: none;
  13602. padding: 10px 15px;
  13603. line-height: 1.5;
  13604. box-sizing: border-box;
  13605. width: 100%;
  13606. font-size: 14px;
  13607. color: #606266;
  13608. background-color: #FFF;
  13609. background-image: none;
  13610. border: 1px solid #DCDFE6;
  13611. border-radius: 4px;
  13612. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  13613. outline: none;
  13614. overflow: hidden;
  13615. height: 46px;
  13616. font-family: 'Microsoft YaHei';
  13617. }
  13618. .textarea_css::-webkit-input-placeholder {
  13619. color: #C0C4CC
  13620. }
  13621. .textarea_css:focus {
  13622. border-color: #409EFF;
  13623. outline: 0;
  13624. }
  13625. .addEditor>>>.text {
  13626. height: auto;
  13627. min-height: 100px;
  13628. }
  13629. .addEditor>>>.w-e-text-container {
  13630. min-height: 100px;
  13631. }
  13632. .moveBtn2 {
  13633. flex-direction: column;
  13634. width: fit-content;
  13635. margin: 0 10px 0 10px;
  13636. }
  13637. .moveBtn2 .chapter_upload_down,
  13638. .moveBtn2 .chapter_upload_up {
  13639. width: 16px;
  13640. height: 16px;
  13641. }
  13642. .moveBtn2 .chapter_upload_up::after,
  13643. .moveBtn2 .chapter_upload_down::after {
  13644. width: 10px;
  13645. height: 10px;
  13646. }
  13647. .fullStyle>>>.el-dialog__body {
  13648. height: calc(100% - 125px) !important;
  13649. box-sizing: border-box;
  13650. }
  13651. .fullStyle1>>>.el-dialog__body {
  13652. height: auto !important;
  13653. }
  13654. .fullStyle>>>.el-dialog {
  13655. width: 100% !important;
  13656. max-width: 100% !important;
  13657. height: 100% !important;
  13658. margin: 0 !important;
  13659. }
  13660. .fullStyle {
  13661. width: 100% !important;
  13662. max-width: 100% !important;
  13663. height: 100% !important;
  13664. margin: 0 auto !important;
  13665. }
  13666. .wb_j_box_btn {
  13667. width: calc(100% - 30px);
  13668. display: flex;
  13669. height: 40px;
  13670. border: 1.5px solid #CAD1DC;
  13671. border-radius: 4px;
  13672. box-sizing: border-box;
  13673. align-items: center;
  13674. font-size: 14px;
  13675. cursor: pointer;
  13676. overflow: hidden;
  13677. }
  13678. .wb_j_box_btn:hover {
  13679. border: 1.5px solid #0061FF;
  13680. }
  13681. .wb_j_box_title {
  13682. background: #F0F4FA;
  13683. height: 100%;
  13684. line-height: 40px;
  13685. width: 90px;
  13686. text-align: center;
  13687. color: #060E17;
  13688. border-right: 1.5px solid #CAD1DC;
  13689. box-sizing: border-box;
  13690. }
  13691. .wb_j_box_btn_c {
  13692. width: calc(100% - 90px);
  13693. padding: 0 35px 0 10px;
  13694. box-sizing: border-box;
  13695. position: relative;
  13696. }
  13697. .wb_j_box_span {
  13698. width: 100%;
  13699. overflow: hidden;
  13700. white-space: nowrap;
  13701. text-overflow: ellipsis;
  13702. word-wrap: break-word;
  13703. color: #717C8D;
  13704. }
  13705. .wb_j_box_arrow {
  13706. content: '';
  13707. width: 14px;
  13708. height: 14px;
  13709. background: url(../../assets/icon/new/u_arrow.png);
  13710. background-size: 100% 100%;
  13711. position: absolute;
  13712. right: 12px;
  13713. top: 50%;
  13714. transform: translateY(-50%);
  13715. }
  13716. .check_classBox {
  13717. height: 400px;
  13718. display: flex;
  13719. border-top: 1.5px solid #E7EBF1;
  13720. border-bottom: 1.5px solid #E7EBF1;
  13721. }
  13722. .check_class_right {
  13723. width: 130px;
  13724. border-right: 1px solid #E7EBF1;
  13725. display: flex;
  13726. align-items: center;
  13727. flex-direction: column;
  13728. height: 100%;
  13729. overflow: auto;
  13730. padding: 15px 0;
  13731. box-sizing: border-box;
  13732. }
  13733. .check_class {
  13734. width: 85%;
  13735. border-radius: 5px;
  13736. height: 30px;
  13737. line-height: 30px;
  13738. text-align: center;
  13739. padding: 0 10px;
  13740. box-sizing: border-box;
  13741. cursor: pointer;
  13742. white-space: nowrap;
  13743. overflow: hidden;
  13744. text-overflow: ellipsis;
  13745. }
  13746. .check_class.activeX {
  13747. background: #E0EAFB;
  13748. color: #3681FC;
  13749. font-weight: 700;
  13750. }
  13751. .check_class+.check_class {
  13752. margin-top: 15px;
  13753. }
  13754. .check_class_left {
  13755. background: #FAFAFA;
  13756. width: calc(100% - 130px);
  13757. padding: 15px;
  13758. box-sizing: border-box;
  13759. }
  13760. .check_class_all_box {
  13761. display: flex;
  13762. margin-bottom: 10px;
  13763. }
  13764. .all_check {
  13765. display: flex;
  13766. align-items: center;
  13767. padding: 2px 0 0;
  13768. margin-left: 10px;
  13769. }
  13770. .all_check>>>.el-checkbox__label {
  13771. line-height: 18px;
  13772. }
  13773. .check_class_left_title {
  13774. font-size: 16px;
  13775. font-weight: 700;
  13776. }
  13777. .check_class_item {
  13778. display: flex;
  13779. flex-wrap: wrap;
  13780. height: calc(100% - 45px);
  13781. overflow: auto;
  13782. justify-content: flex-start;
  13783. align-items: flex-start;
  13784. align-content: flex-start;
  13785. }
  13786. .class_item:first-child {
  13787. /* margin: 0 15px 15px 67px; */
  13788. }
  13789. .class_item {
  13790. margin: 0 15px 15px 0;
  13791. }
  13792. .class_item:hover>>>.el-checkbox__label {
  13793. color: #409EFF;
  13794. }
  13795. .class_item>>>.el-checkbox__label {
  13796. color: #0E1E33;
  13797. }
  13798. .class_item:hover>>>.el-checkbox__inner {
  13799. border-color: #409EFF;
  13800. }
  13801. .class_item>>>.el-checkbox,
  13802. .class_item>>>.el-checkbox__input {
  13803. display: flex;
  13804. align-items: center;
  13805. }
  13806. .taskTitle{
  13807. font-size: 20px;
  13808. font-weight: bold;
  13809. margin-bottom: 35px;
  13810. }
  13811. .taskTitle:after{
  13812. content: '';
  13813. width: 100%;
  13814. display: block;
  13815. height: 1px;
  13816. background: #CAD1DC;
  13817. position: absolute;
  13818. left: 0;
  13819. margin: 15px 0 0;
  13820. }
  13821. .eva_btn_box{
  13822. margin: 20px 0px 0 0;
  13823. display: flex;
  13824. }
  13825. </style>