addCourseXX.vue 736 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195
  1. <template>
  2. <div class="pb_content" style="background: #f0f2f5" v-loading="loading" element-loading-text="小可正在努力生成中,请稍等...">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right" :style="{width:istemplate == 1 ? 'calc(100% - 300px)' : '100%'}">
  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. <!-- @mouseenter="stepDisplay(true)"
  28. @mouseleave="stepDisplay(false)" -->
  29. <div ref="stepBox" class="stepBox" :style="{overflow:istemplate == 1 ? 'auto' : 'hidden'}">
  30. <div class="stepBg" v-if="false">
  31. <div :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }">
  32. <div v-if="steps > 0 && isStepDisplay" class="first" @click="navSteps(1)">
  33. <div>
  34. <img src="../../../assets/icon/first.png" alt />
  35. </div>
  36. <div>填写基本信息</div>
  37. </div>
  38. <div v-else-if="isStepDisplay" class="firstNo" @click="navSteps(1)">
  39. <div>
  40. <img src="../../../assets/icon/firstNo.png" alt />
  41. </div>
  42. <div>填写基本信息</div>
  43. </div>
  44. <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0 && isStepDisplay">
  45. </div>
  46. <!-- <div
  47. v-if="steps > 1 && cidType === 0 && isStepDisplay"
  48. class="second"
  49. @click="navSteps(2)"
  50. >
  51. <div style="margin: 5px 10px 0 0; width: 2rem">
  52. <img src="../../../assets/icon/second.png" alt />
  53. </div>
  54. <div>选择课程模板</div>
  55. </div>
  56. <div
  57. v-else-if="cidType === 0 && isStepDisplay"
  58. class="secondNo"
  59. @click="navSteps(2)"
  60. >
  61. <div>
  62. <img src="../../../assets/icon/secondNo.png" alt />
  63. </div>
  64. <div>选择课程模板</div>
  65. </div> -->
  66. <!-- <div
  67. v-if="isStepDisplay"
  68. class="stepBorder"
  69. :class="{ 'border-active': steps > 2 }"
  70. ></div> -->
  71. <div v-if="steps > 2 && isStepDisplay" class="third" @click="navSteps(3)">
  72. <div>
  73. <img src="../../../assets/icon/third.png" alt />
  74. </div>
  75. <div>上传课程内容</div>
  76. </div>
  77. <div v-else-if="isStepDisplay" class="thirdNo" @click="navSteps(3)">
  78. <div>
  79. <img src="../../../assets/icon/thirdNo.png" alt />
  80. </div>
  81. <div>上传课程内容</div>
  82. </div>
  83. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
  84. <div v-if="steps > 3 && isStepDisplay" class="four">
  85. <div>
  86. <img src="../../../assets/icon/four.png" alt />
  87. </div>
  88. <div>上传完成</div>
  89. </div>
  90. <div v-else-if="isStepDisplay" class="fourNo">
  91. <div>
  92. <img src="../../../assets/icon/fourNo.png" alt />
  93. </div>
  94. <div>上传完成</div>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="rightBox" :key="updateKey" ref='scrollContainer' v-if="steps == 1" @mousewheel="scrollChange"
  99. style="padding: 0" :style="{
  100. height:
  101. !isStepDisplay && !isBtnDisplay
  102. ? istemplate == 1 ? 'auto' : 'calc(100% - 20px)'
  103. : istemplate == 1 ? 'auto' : 'calc(100% - 100px)',
  104. }">
  105. <div class="updateMask" :style="{
  106. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  107. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  108. <div class="whiteBg" style="background: unset; padding: 0">
  109. <div>
  110. <div class="basic_box" style="padding: 0">
  111. <div class="big_box">
  112. <div class="left_first">
  113. <div :class="{
  114. updateTips:
  115. cid && userid != courseUserid && role != '1',
  116. }">
  117. <div style="width: 100%">
  118. <div class="course_input_box">
  119. <div class="bb_courseIcon">
  120. <img src="../../../assets/icon/new/course.png" />
  121. </div>
  122. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName" style="
  123. border: 1.5px solid rgb(202, 209, 220);
  124. margin: 0px 10px 0px 0px;
  125. border-radius: 5px;
  126. font-weight: 600;
  127. padding: 12px 14px 12px 71px;
  128. " @change="setCover" />
  129. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  130. style="justify-content: center; min-width: 150px"></el-switch>
  131. <el-switch v-model="isFileSearch" active-text="是否开启智能检索"
  132. style="justify-content: center; min-width: 175px"></el-switch>
  133. </div>
  134. </div>
  135. </div>
  136. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  137. <span>类型</span>
  138. <!-- 学科+ 主题+ 未来+ -->
  139. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  140. style="display: flex; align-items: center">
  141. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2"
  142. :key="index">
  143. <el-radio :label="item.name">{{
  144. item.name
  145. }}</el-radio>
  146. </div>
  147. </el-radio-group>
  148. </div>
  149. <div class="both">
  150. <div class="choose">
  151. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  152. <span v-if="
  153. CourseTypeJson[item.id].length > 0 &&
  154. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  155. ? pTypeCheck.indexOf(item.id) != -1
  156. : true)
  157. ">{{ item.name }}:</span>
  158. <el-checkbox-group v-model="courseTypeId" v-if="
  159. CourseTypeJson[item.id].length > 0 &&
  160. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  161. ? pTypeCheck.indexOf(item.id) != -1
  162. : true)
  163. ">
  164. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  165. item1.name }}</el-checkbox>
  166. </el-checkbox-group>
  167. <!-- <div
  168. v-else
  169. style="font-size: 14px; margin-left: -8px"
  170. >
  171. 暂无
  172. </div> -->
  173. </div>
  174. </div>
  175. </div>
  176. <div class="info_box_t" v-if="templatePan.includes(templateid)">
  177. <div class="info_box_t_box">
  178. <span>课程节数:</span>
  179. <input type="text" placeholder="请输入课程节数" class="binfo_input" v-model="courseJie" @change="numberPanJie"/>
  180. <span>节</span>
  181. </div>
  182. <div class="info_box_t_box">
  183. <span>课程时长:</span>
  184. <input type="text" placeholder="请输入课程节数" class="binfo_input" v-model="courseTime" @change="numberPanTime"/>
  185. <span>min</span>
  186. </div>
  187. </div>
  188. </div>
  189. <div class="right_first" v-loading="imageloading2">
  190. <!-- <div class="ai_box">
  191. <div class="ai_content" @click="openAI"><img src="../../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  192. </div> -->
  193. <div class="c_info_title" style="padding: 0 0 15px; margin: 0 auto 0 0">
  194. 上传封面
  195. </div>
  196. <div style="width: 100%">
  197. <div class="uploadFm" @click="choosePicVisible = true" :class="{ uploadFm2: cover.length }">
  198. <img src="../../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0" />
  199. <img :src="cover[0].url" alt="" class="cover_p" v-else />
  200. <div v-if="cover.length == 0">点击添加封面</div>
  201. <div class="cover_mask">
  202. <img src="../../../assets/icon/new/cover_update.png" /><span
  203. style="margin-top: 5px">修改封面</span>
  204. </div>
  205. </div>
  206. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  207. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  208. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  209. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  210. <i class="el-icon-plus"></i>
  211. </el-upload> -->
  212. </div>
  213. </div>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. <div class="whiteBg" style="background: #fff; margin: 10px 0;padding: 0 0 15px;">
  219. <div class="whiteBg" style="border-radius: 0">
  220. <div class="c_info_title">
  221. 课程权限设置
  222. </div>
  223. <div class="wb_j_box">
  224. <div class="wb_j_box_content">
  225. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  226. (dialogVisibleClass = true),
  227. (classSearch = ''),
  228. (gradeId = ''),
  229. getClass()
  230. ">添加班级</button>
  231. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  232. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  233. getClassC(tc) }}</span>
  234. </div> -->
  235. <div class="wb_j_box_btn" @click="
  236. (dialogVisibleClass = true),
  237. (classSearch = ''),
  238. (gradeId = ''),
  239. getClass()
  240. ">
  241. <div class="wb_j_box_title">授课班级</div>
  242. <div class="wb_j_box_btn_c">
  243. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  244. v-if="checkboxList2.length" popper-class="text_tooltip2">
  245. <div class="wb_j_box_span">
  246. {{ getListClassC(checkboxList2) }}
  247. </div>
  248. </el-tooltip>
  249. <div v-else class="wb_j_box_span">请选择授课班级</div>
  250. <div class="wb_j_box_arrow"></div>
  251. </div>
  252. </div>
  253. </div>
  254. <div class="wb_j_box_content">
  255. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  256. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  257. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  258. checkBoolean
  259. ? checkboxList3
  260. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  261. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  262. </div> -->
  263. <div class="wb_j_box_btn" @click="openMember">
  264. <div class="wb_j_box_title">协同人员</div>
  265. <div class="wb_j_box_btn_c">
  266. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  267. v-if="checkboxList3.length" popper-class="text_tooltip2">
  268. <div class="wb_j_box_span">
  269. {{ getListMan2(checkboxList3) }}
  270. </div>
  271. </el-tooltip>
  272. <div v-else class="wb_j_box_span">请选择协同人员</div>
  273. <div class="wb_j_box_arrow"></div>
  274. </div>
  275. </div>
  276. </div>
  277. </div>
  278. </div>
  279. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px" v-if="false">
  280. <div class="c_info_title">目标管理</div>
  281. <div style="margin: 0 auto; padding: 0 20px">
  282. <div style="
  283. width: 95%;
  284. min-height: 200px;
  285. border: 1px solid #cad1dc;
  286. border-radius: 4px;
  287. position: relative;
  288. ">
  289. <div class="e_add_top">
  290. <div class="e_add_title">
  291. <button class="c_pub_button_delete pub_btn_delete_img" @click="deleteEva()" v-if="evalua">
  292. 清除
  293. </button>
  294. <button class="c_pub_button_confirm pub_btn_add_img2" @click="dialogVisiblemb = true">
  295. 添加
  296. </button>
  297. <!-- <span>当前使用目标管理</span>
  298. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  299. <img
  300. src="../../../assets/line.png"
  301. class="cru_line"
  302. style="
  303. width: 125px;
  304. height: 20px;
  305. bottom: -10px;
  306. left: 155px;
  307. "
  308. /> -->
  309. </div>
  310. <div style="
  311. display: flex;
  312. flex-direction: row;
  313. align-items: center;
  314. ">
  315. <!-- <el-button
  316. type="primary"
  317. size="small"
  318. @click="dialogVisiblemb = true"
  319. >添加目标管理</el-button
  320. >
  321. <el-button
  322. type="primary"
  323. size="small"
  324. @click="deleteEva()"
  325. >清除内容</el-button
  326. > -->
  327. <!-- <div class="e_add_delete" @click="deleteEva()">
  328. <img src="../../../assets/icon/delete.png" alt="" />
  329. </div> -->
  330. </div>
  331. </div>
  332. <div v-if="evalua == ''">
  333. <div class="noneBox">
  334. <img src="../../../assets/icon/new/eva_none.png" />
  335. <span>请添加目标管理</span>
  336. </div>
  337. </div>
  338. <div class="e_add_content" v-else>
  339. <div class="e_add_list_pbox">
  340. <div class="e_add_list_pbox_title">
  341. <span class="type_title">切换模式</span>
  342. <div class="type_content">
  343. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  344. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  345. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  346. </div>
  347. </div>
  348. <div class="e_add_list_pbox_content">
  349. <Mind :showBar="false" :mindData="data" v-if="typeMode == 1"></Mind>
  350. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  351. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  352. v-if="typeMode == 3">
  353. </SeeBoard>
  354. </div>
  355. </div>
  356. </div>
  357. </div>
  358. </div>
  359. </div>
  360. </div>
  361. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-loading="textLoading" element-loading-text="小可正在努力生成中,请稍等...">
  362. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  363. <div class="c_info_title">
  364. 课程简要描述
  365. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  366. <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;"
  367. @contextmenu.prevent="openAiDialog(1, 'aiDetail')"
  368. @click="openAiDialog(2, 'aiDetail')">AI优化</button>
  369.                   </el-tooltip>
  370. </div>
  371. <div style="width: 100%; padding: 0px 20px; box-sizing: border-box">
  372. <div style="width: calc(100%)">
  373. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText"
  374. placeholder="请输入课程简要描述"></textarea>
  375. </div>
  376. </div>
  377. </div>
  378. </div>
  379. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;">
  380. <!-- <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  381. <div class="c_info_title">
  382. 补充资料
  383. <button class="c_pub_button_add pub_btn_add_img" style="margin: 0 20px 0 auto;">上传补充资料</button>
  384. </div>
  385. <div class="buchong_box">
  386. <span>暂时还没有内容,快去添加吧~</span>
  387. </div>
  388. </div> -->
  389. <div style="position: relative;
  390. background: #fff;
  391. box-sizing: border-box;
  392. padding: 1px 20px 10px;
  393. width: 100%;
  394. border-radius: 10px;">
  395. <div style="
  396. display: flex;
  397. flex-direction: row;
  398. justify-content: space-between;
  399. align-items: center;
  400. " :style="{
  401. margin: true
  402. ? '20px 0 10px'
  403. : '20px 0 0',
  404. }">
  405. <div style="margin-bottom: 10px;width:100%" class="lineTitle">
  406. 补充资料
  407. <div class="add_info_box" style="margin: 0 0 0 auto">
  408. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  409. 上传补充资料
  410. <input type="file" accept=".docx,.doc,.ppt,.pptx,.md,.txt,.pdf" style="display: none" v-if="inputShow" @change="
  411. beforeUploadInfo2(
  412. $event,
  413. 13
  414. )
  415. " />
  416. </button>
  417. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  418. 图文
  419. </button>
  420. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  421. 链接
  422. </button>
  423. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  424. 代码
  425. </button>
  426. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  427. 资源
  428. </button> -->
  429. </div>
  430. </div>
  431. </div>
  432. <div>
  433. <div class="add_chapters_box add_c_none" v-if="
  434. infoData &&
  435. infoData.length == 0
  436. ">
  437. <img src="../../../assets/icon/new/c_none.png" alt /><span>暂时还没有内容,快去添加吧</span>
  438. </div>
  439. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  440. <div @dragstart="
  441. dragStart(item1, index1, 0)
  442. " @dragover.prevent="
  443. dragOver(index1, 0)
  444. " @dragend="dragEnd()" :draggable="isdrag ==
  445. 'chapter-' + 0 + '-' + index1
  446. " class="chapter_upload" v-for="(item1, index1) in infoData" :key="item1.id" @click="
  447. getChapterData(
  448. $event,
  449. index1,
  450. item1.type
  451. )
  452. " :class="{
  453. dragOverTop2:
  454. newIndex === index1 &&
  455. typeIndex ==
  456. 'chapter-' +
  457. 0 +
  458. '-' +
  459. index1 &&
  460. oldIndex > index1 &&
  461. dragType == 'drag',
  462. dragOverBottom2:
  463. newIndex === index1 &&
  464. typeIndex ==
  465. 'chapter-' +
  466. 0 +
  467. '-' +
  468. index1 &&
  469. oldIndex < index1 &&
  470. dragType == 'drag',
  471. }">
  472. <!-- <div @mousedown="
  473. isdrag =
  474. 'chapter-' + 0 + '-' + index1
  475. " @mouseup="isdrag = ''" @touchstart="
  476. isdrag =
  477. 'chapter-' + 0 + '-' + index1
  478. " @touchend="isdrag = ''" class="chapter_upload_drag"></div> -->
  479. <div class="chapter_upload_o" style="
  480. position: relative;
  481. display: flex;
  482. align-items: center;
  483. ">
  484. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  485. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  486. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  487. </div>
  488. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  489. </div>
  490. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  491. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  492. </div>
  493. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  494. </div>
  495. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  496. </div>
  497. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  498. </div>
  499. </div>
  500. <div class="chapter_upload_n">
  501. <input readonly="true" v-if="
  502. item1.type == 2 ||
  503. item1.type == 3 ||
  504. item1.type == 12 ||
  505. item1.type == 13 ||
  506. item1.type == 7
  507. " :placeholder="item1.name" @click="
  508. updataVideoT(
  509. $event,
  510. index1
  511. )
  512. " style="
  513. border: none;
  514. outline: none;
  515. width: 80%;
  516. minwidth: 215px;
  517. z-index: 99;
  518. font-size: 14px;
  519. white-space: nowrap;
  520. overflow: hidden;
  521. text-overflow: ellipsis;
  522. " />
  523. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  524. border: none;
  525. outline: none;
  526. width: 80%;
  527. white-space: nowrap;
  528. overflow: hidden;
  529. text-overflow: ellipsis;
  530. " readonly="true" @click="
  531. selectAttText(index1)
  532. " />
  533. <input :placeholder="item1.title ? item1.title : '链接'
  534. " v-if="item1.type == 8" style="
  535. border: none;
  536. outline: none;
  537. width: 80%;
  538. white-space: nowrap;
  539. overflow: hidden;
  540. text-overflow: ellipsis;
  541. " readonly="true" @click="selectLine(index1)" />
  542. <input :placeholder="item1.title ? item1.title : '链接'
  543. " v-if="item1.type == 14" style="
  544. border: none;
  545. outline: none;
  546. width: 80%;
  547. white-space: nowrap;
  548. overflow: hidden;
  549. text-overflow: ellipsis;
  550. " readonly="true" @click="
  551. openUpdateSource(index1)
  552. " />
  553. </div>
  554. <div class="chapter_upload_ic">
  555. <div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
  556. <!-- <div class="chapter_upload_ud" style="z-index: 99">
  557. <div class="chapter_upload_up" @click="
  558. upCd(
  559. $event,
  560. index1
  561. )
  562. "></div>
  563. <div class="chapter_upload_down" @click="
  564. downCd(
  565. $event,
  566. index1
  567. )
  568. "></div>
  569. </div>
  570. <div class="chapter_upload_ic_edit" v-if="
  571. item1.type == 2 ||
  572. item1.type == 3 ||
  573. item1.type == 12 ||
  574. item1.type == 13 ||
  575. item1.type == 7
  576. " @click.stop="
  577. updataVideoT(
  578. $event,
  579. index1
  580. )
  581. ">
  582. <div></div>
  583. </div>
  584. <div class="chapter_upload_ic_edit" v-if="item1.type == 6" @click="
  585. selectAttText(index1)
  586. ">
  587. <div></div>
  588. </div>
  589. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  590. @click="selectLine(index1)">
  591. <div></div>
  592. </div>
  593. <div class="chapter_upload_ic_edit" v-if="item1.type == 14" @click="
  594. openUpdateSource(index1)
  595. ">
  596. <div></div>
  597. </div> -->
  598. <div class="chapter_upload_ic_r" @click.stop="
  599. deleteInfoData(
  600. $event,
  601. index1
  602. )
  603. ">
  604. <div></div>
  605. </div>
  606. </div>
  607. </div>
  608. </div>
  609. </div>
  610. </div>
  611. <div v-if="
  612. infoproVisible
  613. " class="mask">
  614. <div class="progressBox">
  615. <!-- <div id="closePro" class="closeCss">
  616. <img src="../../../../assets/icon/close.png" alt />
  617. </div> -->
  618. <div class="lbox">
  619. <img src="../../../assets/loading.gif" />上传中,请稍后
  620. </div>
  621. <div style="margin-bottom: 10px">
  622. <span>{{
  623. infoisFinishSize
  624. }}M</span>
  625. /
  626. <span>{{
  627. infoisAllSize
  628. }}M</span>
  629. </div>
  630. <el-progress :text-inside="true" :stroke-width="20" :percentage="infoprogress
  631. ? infoprogress
  632. : 0
  633. " style="width: 80%"></el-progress>
  634. </div>
  635. </div>
  636. </div>
  637. </div>
  638. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-show="false">
  639. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  640. <div class="c_info_title">
  641. 补充描述
  642. <!-- <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;">AI优化</button> -->
  643. </div>
  644. <div style="width: 100%; padding: 0px 20px; box-sizing: border-box">
  645. <div style="width: calc(100%)">
  646. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText2"
  647. placeholder="请输入课程补充描述:例如您期望的课程时长、任务数量、任务难度、任务类型等。"></textarea>
  648. </div>
  649. </div>
  650. </div>
  651. </div>
  652. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="templateid != '4480d65a-1e48-11ef-bee5-005056b86db5' && isOutline">
  653. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  654. <div class="c_info_title">
  655. 课程大纲
  656. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom" v-if="istemplate == 1">
  657. <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;"
  658. @contextmenu.prevent="openAiDialog(1, 'aiOutline')"
  659. @click="openAiDialog(2, 'aiOutline')">生成大纲</button>
  660. </el-tooltip>
  661. <!-- <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;">AI优化</button> -->
  662. </div>
  663. <div class="task_outline">
  664. <div class="outline_box" v-for="(item, index) in unitJson[0].chapterInfo[0].taskJson" :key="index">
  665. <div class="outline_task">
  666. <div class="title">任务{{ index + 1 }}</div>
  667. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  668. v-model="item.task" />
  669. </div>
  670. <div class="outline_detail" v-loading="taskDetailLoading.indexOf('task-' + index) !== -1" element-loading-text="小可正在努力生成中,请稍等...">
  671. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols
  672. placeholder="请输入任务描述" v-model="item.taskDetail2"></textarea>
  673. <div class="op_box">
  674. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  675. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  676. <div class="r_pub_button_op"
  677. @contextmenu.prevent="openAiDialog(1, 'aiDetail1', item, index)"
  678. @click="openAiDialog(2, 'aiDetail1', item, index)">智能优化</div>
  679. </el-tooltip>
  680. </div>
  681. </div>
  682. </div>
  683. </div>
  684. </div>
  685. </div>
  686. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-show="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' && cpoteType > 0">
  687. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  688. <div class="c_info_title">
  689. 概念群
  690. </div>
  691. <div class="task_outline">
  692. <div class="outline_detail" v-loading="cpoteLoading.cpote1" element-loading-text="小可正在努力生成中,请稍等...">
  693. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入概念群"
  694. v-model="cpote.cpote1" v-if="cpote.cpote1s"></textarea>
  695. <div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote1)" v-else></div>
  696. <div class="op_box">
  697. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  698. <div style="display: flex;">
  699. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  700. <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote1')"
  701. @click="openAiDialog(2, 'aiCpote1')">智能优化</div>
  702. </el-tooltip>
  703. <div class="r_pub_button_edit" style="margin-left:10px" @click="editCpote('cpote1s')">{{
  704. cpote.cpote1s ? '确定' : '编辑'}}</div>
  705. </div>
  706. </div>
  707. </div>
  708. </div>
  709. </div>
  710. </div>
  711. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-show="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' && cpoteType > 1">
  712. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  713. <div class="c_info_title">
  714. 问题链
  715. </div>
  716. <div class="task_outline">
  717. <div class="outline_detail" v-loading="cpoteLoading.cpote2" element-loading-text="小可正在努力生成中,请稍等...">
  718. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入问题链"
  719. v-model="cpote.cpote2" v-if="cpote.cpote2s"></textarea>
  720. <div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote2)" v-else></div>
  721. <div class="op_box">
  722. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  723. <div style="display: flex;">
  724. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  725. <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote2')"
  726. @click="openAiDialog(2, 'aiCpote1')">智能优化</div>
  727. </el-tooltip>
  728. <div class="r_pub_button_edit" style="margin-left:10px" @click="editCpote('cpote2s')">{{
  729. cpote.cpote2s ? '确定' : '编辑'}}</div>
  730. </div>
  731. </div>
  732. </div>
  733. </div>
  734. </div>
  735. </div>
  736. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-show="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' && cpoteType > 2">
  737. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  738. <div class="c_info_title">
  739. 目标层
  740. </div>
  741. <div class="task_outline">
  742. <div class="outline_detail" v-loading="cpoteLoading.cpote3" element-loading-text="小可正在努力生成中,请稍等...">
  743. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入目标层"
  744. v-model="cpote.cpote3" v-if="cpote.cpote3s"></textarea>
  745. <div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote3)" v-else></div>
  746. <div class="op_box">
  747. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  748. <div style="display: flex;">
  749. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  750. <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote3')"
  751. @click="openAiDialog(2, 'aiCpote3')">智能优化</div>
  752. </el-tooltip>
  753. <div class="r_pub_button_edit" style="margin-left:10px" @click="editCpote('cpote3s')">{{
  754. cpote.cpote3s ? '确定' : '编辑'}}</div>
  755. </div>
  756. </div>
  757. </div>
  758. </div>
  759. </div>
  760. </div>
  761. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-show="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' && cpoteType > 3">
  762. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  763. <div class="c_info_title">
  764. 任务簇
  765. </div>
  766. <div class="task_outline">
  767. <div class="outline_detail" v-loading="cpoteLoading.cpote4" element-loading-text="小可正在努力生成中,请稍等...">
  768. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入任务簇"
  769. v-model="cpote.cpote4" v-if="cpote.cpote4s"></textarea>
  770. <div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote4)" v-else></div>
  771. <div class="op_box">
  772. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  773. <div style="display: flex;">
  774. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  775. <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote4')"
  776. @click="openAiDialog(2, 'aiCpote4')">智能优化</div>
  777. </el-tooltip>
  778. <div class="r_pub_button_edit" style="margin-left:10px" @click="editCpote('cpote4s')">{{
  779. cpote.cpote4s ? '确定' : '编辑'}}</div>
  780. </div>
  781. </div>
  782. </div>
  783. </div>
  784. </div>
  785. </div>
  786. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="isOutline2">
  787. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  788. <div class="c_info_title">
  789. 教案
  790. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom" v-if="istemplate == 1 && dArray.length">
  791. <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;"
  792. @contextmenu.prevent="openAiDialog(1, 'aiTeacher2')"
  793. @click="openAiDialog(2, 'aiTeacher2')" v-if="istemplate == 1 && dArray.length">生成教案</button>
  794. </el-tooltip>
  795. <!-- <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;">AI优化</button> -->
  796. </div>
  797. <div class="task_outline">
  798. <div class="outline_box" v-for="(item, index) in unitJson[0].chapterInfo[0].taskJson" :key="index">
  799. <div class="outline_task">
  800. <div class="title">任务{{ index + 1 }}</div>
  801. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  802. v-model="item.task" />
  803. </div>
  804. <div class="outline_detail" v-loading="taskDetailLoading5.indexOf('task-' + index) !== -1" element-loading-text="小可正在努力生成中,请稍等...">
  805. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入教案"
  806. v-model="item.taskDetail3" v-if="item.isTask3"></textarea>
  807. <div class="markBox vditor-reset" v-html="MarkdownT(item.taskDetail3)" v-else></div>
  808. <div class="op_box">
  809. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  810. <div style="display: flex;">
  811. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  812. <div class="r_pub_button_op"
  813. @contextmenu.prevent="openAiDialog(1, 'teacherDetail2', item.taskDetail3, index)"
  814. @click="openAiDialog(2, 'teacherDetail2', item.taskDetail3, index)">智能优化</div>
  815. </el-tooltip>
  816. <div class="r_pub_button_edit" style="margin-left:10px" @click="editTask3(index)">{{
  817. item.isTask3 ? '确定' : '编辑'}}</div>
  818. </div>
  819. </div>
  820. </div>
  821. </div>
  822. </div>
  823. </div>
  824. </div>
  825. <div class="info_btnBox3" v-if="istemplate != 1">
  826. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  827. goTo(
  828. '/course?userid=' +
  829. userid +
  830. '&oid=' +
  831. oid +
  832. '&org=' +
  833. org +
  834. '&role=' +
  835. role
  836. )
  837. ">
  838. 返回课程
  839. </button>
  840. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  841. {{ steps == 4 ? "返回课程" : "上一步" }}
  842. </button>
  843. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom" v-if="steps < 4">
  844. <button class="c_pub_button_confirm" @click="nextSteps(2)"
  845. @contextmenu.prevent="nextSteps(1)" v-if="templateid != '4480d65a-1e48-11ef-bee5-005056b86db5'" :class="{
  846. pub_btn_next_img: steps != 3,
  847. pub_btn_finish_img: steps == 3,
  848. }">
  849. {{ steps == 3 ? "确认上传" : !isOutline ? "生成大纲" : !isOutline2 ? "生成教案" : "下一步" }}
  850. </button>
  851. <button class="c_pub_button_confirm" v-else @click="nextSteps(2)"
  852. @contextmenu.prevent="nextSteps(1)" :class="{
  853. pub_btn_next_img: steps != 3,
  854. pub_btn_finish_img: steps == 3,
  855. }">
  856. {{ steps == 3 ? "确认上传" : (templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" && cpoteType < 4) ?
  857. cpoteType < 3 ? cpoteType < 2 ? cpoteType < 1 ? "生成概念群" : "生成问题链" : "生成目标层" : "生成任务簇" : !isOutline2 ? "生成教案"
  858. : "下一步" }}
  859. </button>
  860. </el-tooltip>
  861. </div>
  862. </div>
  863. <div class="rightBox" v-if="steps == 2" :style="{
  864. height:
  865. !isStepDisplay && !isBtnDisplay
  866. ? istemplate == 1 ? 'auto' : 'calc(100% - 40px)'
  867. : istemplate == 1 ? 'auto' : 'calc(100% - 100px)',
  868. }">
  869. <div class="basic_box" style="
  870. padding: 20px 30px 0px !important;
  871. box-sizing: border-box;
  872. height: calc(100% - 80px);
  873. overflow: auto;
  874. background: #fff;
  875. ">
  876. <!-- <div
  877. style="
  878. color: #b8b8b8;
  879. background: #fff;
  880. width: 26%;
  881. height: 40px;
  882. border-radius: 15px;
  883. padding-left: 20px;
  884. line-height: 40px;
  885. font-size: 17px;
  886. box-shadow: 0px 1px 2px 2px #e0e0e0;
  887. "
  888. >-->
  889. <div class="right_title" style="border: none; margin: 0; padding: 0">
  890. 请选择合适的课程模板
  891. </div>
  892. <div class="wordbox">
  893. <div class="wordTeacher" @click="checkTemplate2()">
  894. <div class="wordPic">
  895. <img src="../../../assets/icon/new/template_none.png" alt />
  896. </div>
  897. <div style="
  898. margin-top: 10px;
  899. line-height: 19px;
  900. overflow: hidden;
  901. text-overflow: ellipsis;
  902. white-space: nowrap;
  903. padding: 0 20px;
  904. ">
  905. 空白模板
  906. </div>
  907. </div>
  908. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  909. <div class="wordPic">
  910. <img src="../../../assets/icon/new/template.png" alt />
  911. </div>
  912. <div style="
  913. margin-top: 10px;
  914. line-height: 19px;
  915. overflow: hidden;
  916. text-overflow: ellipsis;
  917. white-space: nowrap;
  918. padding: 0 20px;
  919. ">
  920. {{ aa.title }}
  921. </div>
  922. </div>
  923. <div class="wordTeacher" @click="checkTemplate3()" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  924. <div class="wordPic">
  925. <img src="../../../assets/icon/new/template.png" alt />
  926. </div>
  927. <div style="
  928. margin-top: 10px;
  929. line-height: 19px;
  930. overflow: hidden;
  931. text-overflow: ellipsis;
  932. white-space: nowrap;
  933. padding: 0 20px;
  934. ">
  935. 简易模板
  936. </div>
  937. </div>
  938. <div class="wordTeacher" @click="pasteStage()" v-if="isPasteStage">
  939. <div class="wordPic">
  940. <img src="../../../assets/icon/new/template.png" alt />
  941. </div>
  942. <div style="
  943. margin-top: 10px;
  944. line-height: 19px;
  945. overflow: hidden;
  946. text-overflow: ellipsis;
  947. white-space: nowrap;
  948. padding: 0 20px;
  949. ">
  950. 智能粘贴模式
  951. </div>
  952. </div>
  953. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  954. <div class="wordPic">
  955. <img src="../../../assets/icon/wordMub.png" alt />
  956. </div>
  957. <div style="
  958. margin-top: 10px;
  959. line-height: 19px;
  960. overflow: hidden;
  961. text-overflow: ellipsis;
  962. white-space: nowrap;
  963. padding: 0 20px;
  964. ">
  965. 未来小学课程设计
  966. </div>
  967. </div> -->
  968. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  969. <div class="wordPic">
  970. <img src="../../../assets/icon/wordMub.png" alt />
  971. </div>
  972. <div style="
  973. margin-top: 10px;
  974. line-height: 19px;
  975. overflow: hidden;
  976. text-overflow: ellipsis;
  977. white-space: nowrap;
  978. padding: 0 20px;
  979. ">
  980. 我的课程
  981. </div>
  982. </div> -->
  983. </div>
  984. </div>
  985. <div class="info_btnBox3" style="position: absolute; bottom: 0">
  986. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  987. goTo(
  988. '/course?userid=' +
  989. userid +
  990. '&oid=' +
  991. oid +
  992. '&org=' +
  993. org +
  994. '&role=' +
  995. role
  996. )
  997. ">
  998. 返回课程
  999. </button>
  1000. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  1001. {{ steps == 4 ? "返回课程" : "上一步" }}
  1002. </button>
  1003. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps" :class="{
  1004. pub_btn_next_img: steps != 3,
  1005. pub_btn_finish_img: steps == 3,
  1006. }">
  1007. {{ steps == 3 ? "确认上传" : !isOutline ? "生成大纲" : "下一步" }}
  1008. </button>
  1009. </div>
  1010. </div>
  1011. <div class="rightBox" v-if="steps == 3 || istemplate == 1" ref="rightboxR" :style="{
  1012. height:
  1013. !isStepDisplay && !isBtnDisplay
  1014. ? istemplate == 1 ? 'auto' : 'calc(100% - 40px)'
  1015. : istemplate == 1 ? 'auto' : 'calc(100% - 100px)',
  1016. }">
  1017. <div class="rb_c_box">
  1018. <div class="rb_c_box_left" v-if="(steps == 3 || istemplate == 1) && unitJson[unitIndex].easy != 1">
  1019. <div class="rb_c_nav">
  1020. <span :class="{ active: stepsNav == 1 }" @click="stepsNav = 1">目录</span>
  1021. <span :class="{ active: stepsNav == 2 }" @click="stepsNav = 2">AI助手</span>
  1022. </div>
  1023. <div class="stepsBottom" v-if="stepsNav == 1" :style="{
  1024. height:istemplate == 1 ? 'calc(100vh - 300px)' : 'calc(100% - 55px)',
  1025. position: istemplate == 1 ? 'sticky' : 'unset',
  1026. top: istemplate == 1 ? '0' : 'unset'
  1027. }">
  1028. <!-- <div class="navTop">辅助导航</div> -->
  1029. <div class="navBottom" v-if="courseState == 4 || courseState == 5">
  1030. <!-- <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  1031. <div class="nt_taskBox" style="width: 100%;">
  1032. <div class="nt_taskTitle"
  1033. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  1034. unitIndex + 1 }}</div>
  1035. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  1036. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  1037. <span>{{ unitJson[unitIndex].dyName }}</span>
  1038. </el-tooltip>
  1039. </div>
  1040. </div>
  1041. </div> -->
  1042. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  1043. .taskJson" :key="tIndex" :class="{
  1044. dragOverTop:
  1045. newIndex === tIndex &&
  1046. typeIndex == 'task-' + tIndex &&
  1047. oldIndex > tIndex &&
  1048. dragType == 'task',
  1049. dragOverBottom:
  1050. newIndex === tIndex &&
  1051. typeIndex == 'task-' + tIndex &&
  1052. oldIndex < tIndex &&
  1053. dragType == 'task',
  1054. }">
  1055. <div @dragstart="dragTaskStart(t, tIndex, 0)" @dragover.prevent="dragTaskOver(tIndex, 0)"
  1056. @dragend="dragTaskEnd()" :draggable="isdrag == 'task-' + tIndex" @click="goToTask(tIndex)"
  1057. class="navTask" :class="{
  1058. isNavTask:
  1059. isClickColor > 0 && isClickColor == tIndex + 1,
  1060. isNavOpen: t.toolOpen,
  1061. }">
  1062. <div @click.stop="taskOpen(tIndex, 0)" class="chapter_upload_open"></div>
  1063. <div @mousedown="isdrag = 'task-' + tIndex" @mouseup="isdrag = ''"
  1064. @touchstart="isdrag = 'task-' + tIndex" @touchend="isdrag = ''" style="left: 8px"
  1065. class="chapter_upload_drag"></div>
  1066. <div class="nt_taskBox">
  1067. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  1068. <div class="nt_taskName">
  1069. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  1070. <span>{{ t.task ? t.task : "未命名任务" }}</span>
  1071. </el-tooltip>
  1072. </div>
  1073. </div>
  1074. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  1075. 1
  1076. ">
  1077. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  1078. @click.stop="taskMove(1, tIndex)"></div>
  1079. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  1080. @click.stop="taskMove(2, tIndex)"></div>
  1081. </div> -->
  1082. </div>
  1083. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  1084. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  1085. @click="jumpGj(tIndex, toolIndex2)">
  1086. <div class="gjCss" :class="{
  1087. isGjCss:
  1088. toolIndexType == `gj${tIndex}${toolIndex2}`,
  1089. }">
  1090. <div>工具{{ toolIndex2 + 1 }}:</div>
  1091. <div>
  1092. {{
  1093. toolsData[tool.tool[0]] &&
  1094. toolsData[tool.tool[0]].name
  1095. }}
  1096. </div>
  1097. </div>
  1098. </div>
  1099. </div>
  1100. </div>
  1101. </div>
  1102. <div class="navBottom" v-if="courseState == 1">
  1103. <div v-for="(stage, stageIndex) in unitJson" :key="stageIndex" class="stageBox" :class="{
  1104. dragOverTop:
  1105. newIndex === stageIndex &&
  1106. typeIndex == 'Unit-' + stageIndex &&
  1107. oldIndex > stageIndex &&
  1108. dragType == 'Unit',
  1109. dragOverBottom:
  1110. newIndex === stageIndex &&
  1111. typeIndex == 'Unit-' + stageIndex &&
  1112. oldIndex < stageIndex &&
  1113. dragType == 'Unit',
  1114. }">
  1115. <div @dragstart="dragUnitStart(stage, stageIndex)" @dragover.prevent="dragUnitOver(stageIndex)"
  1116. @dragend="dragUnitEnd()" :draggable="isdrag == 'unit-' + stageIndex"
  1117. @click="unitSet2(stageIndex)" class="navStage" :class="{
  1118. isNavStage: stageIndex == unitIndex,
  1119. isNavStageOpen: stage.toolOpen,
  1120. }">
  1121. <div @mousedown="isdrag = 'unit-' + stageIndex" @mouseup="isdrag = ''"
  1122. @touchstart="isdrag = 'unit-' + stageIndex" @touchend="isdrag = ''" style="left: 8px"
  1123. class="chapter_upload_drag"></div>
  1124. <div class="nt_taskBox">
  1125. <div class="nt_taskTitle">
  1126. 第{{ stageIndex + 1 }}阶段:
  1127. </div>
  1128. <div class="nt_taskName">
  1129. <el-tooltip effect="light" :content="stage.dyName ? stage.dyName : '未命名阶段'
  1130. " placement="top">
  1131. <span>{{
  1132. stage.dyName ? stage.dyName : "未命名阶段"
  1133. }}</span>
  1134. </el-tooltip>
  1135. </div>
  1136. </div>
  1137. <div @click.stop="unitOpen(stageIndex)" class="chapter_unit_open"></div>
  1138. </div>
  1139. <div v-for="(t, tIndex) in unitJson[stageIndex]
  1140. .chapterInfo[0].taskJson" :key="`${stageIndex}-${tIndex}`" :class="{
  1141. dragOverTop:
  1142. newIndex === tIndex &&
  1143. typeIndex == 'task-' + tIndex &&
  1144. ((oldIndex > tIndex &&
  1145. stageIndex == checkUnitIndex) ||
  1146. (oldIndex == tIndex &&
  1147. stageIndex == checkUnitIndex &&
  1148. checkUnitIndex != oldUnitIndex)) &&
  1149. dragType == 'task',
  1150. dragOverBottom:
  1151. newIndex === tIndex &&
  1152. typeIndex == 'task-' + tIndex &&
  1153. oldIndex < tIndex &&
  1154. stageIndex == checkUnitIndex &&
  1155. dragType == 'task',
  1156. }" :style="{ display: stage.toolOpen ? 'block' : 'none' }">
  1157. <div @dragstart="dragTaskStart(t, tIndex, stageIndex)"
  1158. @dragover.prevent="dragTaskOver(tIndex, stageIndex)" @dragend="dragTaskEnd()" :draggable="isdrag == 'task-' + stageIndex + '-' + tIndex
  1159. " @click="goToTask2(tIndex, stageIndex)" class="navTask" style="padding-left: 12px" :class="{
  1160. isNavTask:
  1161. isClickColor > 0 &&
  1162. isClickColor == tIndex + 1 &&
  1163. stageIndex == unitIndex,
  1164. isNavOpen: t.toolOpen,
  1165. }">
  1166. <div @click.stop="taskOpen(tIndex, stageIndex)" class="chapter_upload_open"></div>
  1167. <div @mousedown="
  1168. isdrag = 'task-' + stageIndex + '-' + tIndex
  1169. " @mouseup="isdrag = ''" @touchstart="
  1170. isdrag = 'task-' + stageIndex + '-' + tIndex
  1171. " @touchend="isdrag = ''" style="left: 20px" class="chapter_upload_drag"></div>
  1172. <div class="nt_taskBox" style="width: calc(100% - 52px)">
  1173. <div class="nt_taskTitle">
  1174. 任务{{ tIndex + 1 }}:
  1175. </div>
  1176. <div class="nt_taskName">
  1177. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  1178. <span>{{
  1179. t.task ? t.task : "未命名任务"
  1180. }}</span>
  1181. </el-tooltip>
  1182. </div>
  1183. </div>
  1184. </div>
  1185. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  1186. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  1187. @click="jumpGj2(tIndex, toolIndex2, stageIndex)">
  1188. <div class="gjCss" :class="{
  1189. isGjCss:
  1190. toolIndexType ==
  1191. `gj${tIndex}${toolIndex2}${stageIndex}`,
  1192. }">
  1193. <div>工具{{ toolIndex2 + 1 }}:</div>
  1194. <div>
  1195. {{
  1196. toolsData[tool.tool[0]] &&
  1197. toolsData[tool.tool[0]].name
  1198. }}
  1199. </div>
  1200. </div>
  1201. </div>
  1202. </div>
  1203. </div>
  1204. </div>
  1205. </div>
  1206. </div>
  1207. <div class="rb_c_ai_box" v-if="stepsNav == 2">
  1208. <aiBox @setUnitJson="setUnitJson" :courseId="courseId" :unitJson="unitJson"></aiBox>
  1209. </div>
  1210. </div>
  1211. <div class="rb_c_box_right">
  1212. <!-- <div class="rb_c_box_btn">
  1213. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  1214. </div> -->
  1215. <div class="basic_box" ref="unitBox">
  1216. <div v-if="false" style="
  1217. display: flex;
  1218. flex-direction: row;
  1219. align-items: center;
  1220. position: sticky;
  1221. top: 0;
  1222. z-index: 99;
  1223. width: 100%;
  1224. padding: 0 20px 0 20px;
  1225. box-sizing: border-box;
  1226. background: #fff;
  1227. border-radius: 8px;
  1228. ">
  1229. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  1230. <div class="cru_selectBox" :style="{
  1231. maxWidth: isPasteTask
  1232. ? 'calc(100% - 335px)'
  1233. : 'calc(100% - 190px)',
  1234. }" v-if="courseState == 1">
  1235. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  1236. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  1237. <!-- item.dyName ? item.dyName : -->
  1238. <span v-if="
  1239. unitJson[unitJson.length - 1].easy == 4 ||
  1240. unitJson[unitJson.length - 1].easy == 6
  1241. ">{{
  1242. item.dyName
  1243. ? item.dyName
  1244. : "第" + (index + 1) + "阶段"
  1245. }}</span>
  1246. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  1247. </div>
  1248. <div class="cru_line" :style="{
  1249. left: offsetLetfPx + 'px',
  1250. }"></div>
  1251. </div>
  1252. <div class="addStageImg" @click="addunit()" v-if="
  1253. !(unitJson[unitJson.length - 1].easy == 4) &&
  1254. !(unitJson[unitJson.length - 1].easy == 6) &&
  1255. courseState == 1
  1256. ">
  1257. <img src="../../../assets/icon/new/addStage.png" alt />
  1258. </div>
  1259. <button class="c_pub_button_add pub_btn_add_img" @click="updateCourseState(1)"
  1260. v-if="courseState == 2" style="margin: 15px 0">
  1261. 新建阶段
  1262. </button>
  1263. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  1264. <button class="c_pub_button_add" @click="openStageBox" v-show="false" style="margin: 0 0 0 auto">
  1265. 阶段顺序
  1266. </button>
  1267. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask()"
  1268. v-if="(steps == 3 || istemplate == 1) && isPasteTask" style="margin: 0 0 0 auto">
  1269. 智能粘贴
  1270. </button>
  1271. <button class="c_pub_button_confirm pub_btn_template_img" @click="openTemplate" :style="{
  1272. margin: isPasteTask ? '0 0 0 20px' : '0 0 0 auto',
  1273. }" style="padding: 0 12px">
  1274. 选择课程模板
  1275. </button>
  1276. </div>
  1277. <div style="margin: 0 0 10px 0; padding: 0" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  1278. :key="index">
  1279. <div v-if="courseState == 4" style="position: relative;
  1280. background: #fff;
  1281. box-sizing: border-box;
  1282. padding: 1px 20px 10px;
  1283. width: 100%;
  1284. border-radius: 10px;">
  1285. <div style="
  1286. display: flex;
  1287. flex-direction: row;
  1288. justify-content: space-between;
  1289. align-items: center;
  1290. " :style="{
  1291. margin: !item.taskJson[0].isFoldchapter
  1292. ? '20px 0 10px'
  1293. : '20px 0 0',
  1294. }">
  1295. <div style="margin-bottom: 10px;width: 100%;" class="lineTitle">
  1296. 学习内容
  1297. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom" v-if="istemplate == 1">
  1298. <button class="c_pub_button_confirm" style="margin: 0 0 0 auto;"
  1299. @contextmenu.prevent="openAiDialog(1, 'aiTask',()=>{loading = false})"
  1300. @click="openAiDialog(2, 'aiTask',()=>{loading = false})">生成任务</button>
  1301. </el-tooltip>
  1302. </div>
  1303. </div>
  1304. <div>
  1305. <div class="add_chapters_box add_c_none" v-if="
  1306. item.taskJson[0].chapterData &&
  1307. item.taskJson[0].chapterData.length == 0
  1308. ">
  1309. <img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span>
  1310. </div>
  1311. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1312. <div @dragstart="
  1313. dragStart(item1, index1, 0)
  1314. " @dragover.prevent="
  1315. dragOver(index1, 0)
  1316. " @dragend="dragEnd()" :draggable="isdrag ==
  1317. 'chapter-' + 0 + '-' + index1
  1318. " class="chapter_upload" v-for="(item1, index1) in item.taskJson[0].chapterData"
  1319. :key="item1.id" @click="
  1320. getChapterData(
  1321. $event,
  1322. unitIndex,
  1323. index,
  1324. index1,
  1325. item1.type
  1326. )
  1327. " :class="{
  1328. dragOverTop2:
  1329. newIndex === index1 &&
  1330. typeIndex ==
  1331. 'chapter-' +
  1332. 0 +
  1333. '-' +
  1334. index1 &&
  1335. oldIndex > index1 &&
  1336. dragType == 'drag',
  1337. dragOverBottom2:
  1338. newIndex === index1 &&
  1339. typeIndex ==
  1340. 'chapter-' +
  1341. 0 +
  1342. '-' +
  1343. index1 &&
  1344. oldIndex < index1 &&
  1345. dragType == 'drag',
  1346. }">
  1347. <div @mousedown="
  1348. isdrag =
  1349. 'chapter-' + 0 + '-' + index1
  1350. " @mouseup="isdrag = ''" @touchstart="
  1351. isdrag =
  1352. 'chapter-' + 0 + '-' + index1
  1353. " @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  1354. <div class="chapter_upload_o" style="
  1355. position: relative;
  1356. display: flex;
  1357. align-items: center;
  1358. ">
  1359. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1360. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  1361. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  1362. </div>
  1363. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  1364. </div>
  1365. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1366. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  1367. </div>
  1368. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  1369. </div>
  1370. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  1371. </div>
  1372. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  1373. </div>
  1374. </div>
  1375. <div class="chapter_upload_n">
  1376. <input readonly="true" v-if="
  1377. item1.type == 2 ||
  1378. item1.type == 3 ||
  1379. item1.type == 12 ||
  1380. item1.type == 13 ||
  1381. item1.type == 7
  1382. " :placeholder="item1.name" @click="
  1383. updataVideoT(
  1384. $event,
  1385. unitIndex,
  1386. 0,
  1387. index1
  1388. )
  1389. " style="
  1390. border: none;
  1391. outline: none;
  1392. width: 80%;
  1393. minwidth: 215px;
  1394. z-index: 99;
  1395. font-size: 14px;
  1396. white-space: nowrap;
  1397. overflow: hidden;
  1398. text-overflow: ellipsis;
  1399. " />
  1400. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1401. border: none;
  1402. outline: none;
  1403. width: 80%;
  1404. white-space: nowrap;
  1405. overflow: hidden;
  1406. text-overflow: ellipsis;
  1407. " readonly="true" @click="
  1408. selectAttText(0, index1)
  1409. " />
  1410. <input :placeholder="item1.title ? item1.title : '链接'
  1411. " v-if="item1.type == 8" style="
  1412. border: none;
  1413. outline: none;
  1414. width: 80%;
  1415. white-space: nowrap;
  1416. overflow: hidden;
  1417. text-overflow: ellipsis;
  1418. " readonly="true" @click="selectLine(0, index1)" />
  1419. <input :placeholder="item1.title ? item1.title : '链接'
  1420. " v-if="item1.type == 14" style="
  1421. border: none;
  1422. outline: none;
  1423. width: 80%;
  1424. white-space: nowrap;
  1425. overflow: hidden;
  1426. text-overflow: ellipsis;
  1427. " readonly="true" @click="
  1428. openUpdateSource(0, index1)
  1429. " />
  1430. </div>
  1431. <div class="chapter_upload_ic">
  1432. <div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
  1433. <div class="chapter_upload_ud" style="z-index: 99">
  1434. <div class="chapter_upload_up" @click="
  1435. upCd(
  1436. $event,
  1437. unitIndex,
  1438. index,
  1439. 0,
  1440. index1
  1441. )
  1442. "></div>
  1443. <div class="chapter_upload_down" @click="
  1444. downCd(
  1445. $event,
  1446. unitIndex,
  1447. index,
  1448. 0,
  1449. index1
  1450. )
  1451. "></div>
  1452. </div>
  1453. <div class="chapter_upload_ic_edit" v-if="
  1454. item1.type == 2 ||
  1455. item1.type == 3 ||
  1456. item1.type == 12 ||
  1457. item1.type == 13 ||
  1458. item1.type == 7
  1459. " @click.stop="
  1460. updataVideoT(
  1461. $event,
  1462. unitIndex,
  1463. 0,
  1464. index1
  1465. )
  1466. ">
  1467. <div></div>
  1468. </div>
  1469. <div class="chapter_upload_ic_edit" v-if="item1.type == 6" @click="
  1470. selectAttText(0, index1)
  1471. ">
  1472. <div></div>
  1473. </div>
  1474. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1475. @click="selectLine(0, index1)">
  1476. <div></div>
  1477. </div>
  1478. <div class="chapter_upload_ic_edit" v-if="item1.type == 14" @click="
  1479. openUpdateSource(0, index1)
  1480. ">
  1481. <div></div>
  1482. </div>
  1483. <div class="chapter_upload_ic_r" @click.stop="
  1484. deleteChapterData(
  1485. $event,
  1486. unitIndex,
  1487. index,
  1488. index1,
  1489. 0
  1490. )
  1491. ">
  1492. <div></div>
  1493. </div>
  1494. </div>
  1495. </div>
  1496. </div>
  1497. </div>
  1498. </div>
  1499. <div class="add_info_box" style="margin: 10px 0 0">
  1500. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1501. 文件
  1502. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  1503. beforeUpload2(
  1504. $event,
  1505. unitIndex,
  1506. 13,
  1507. 0
  1508. )
  1509. " />
  1510. </button>
  1511. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  1512. 图文
  1513. </button>
  1514. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  1515. 链接
  1516. </button>
  1517. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  1518. 代码
  1519. </button>
  1520. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  1521. 资源
  1522. </button>
  1523. <button class="c_pub_button_add pub_btn_add_img" @click="openAiCreate(0)">
  1524. AI生成PPT
  1525. </button>
  1526. <button class="c_pub_button_add pub_btn_add_img" @click="createTeacherAn(0)">
  1527. AI生成教案
  1528. </button>
  1529. <button class="c_pub_button_add pub_btn_add_img" @click="openAiCreateVideo(0)">
  1530. 智能检索视频
  1531. </button>
  1532. </div>
  1533. <div v-if="
  1534. unitJson[unitIndex].chapterInfo[0].taskJson[
  1535. 0
  1536. ].proVisible
  1537. " class="mask">
  1538. <div class="progressBox">
  1539. <!-- <div id="closePro" class="closeCss">
  1540. <img src="../../../../assets/icon/close.png" alt />
  1541. </div> -->
  1542. <div class="lbox">
  1543. <img src="../../../assets/loading.gif" />上传中,请稍后
  1544. </div>
  1545. <div style="margin-bottom: 10px">
  1546. <span>{{
  1547. unitJson[unitIndex].chapterInfo[0].taskJson[
  1548. 0
  1549. ].isFinishSize
  1550. }}M</span>
  1551. /
  1552. <span>{{
  1553. unitJson[unitIndex].chapterInfo[0].taskJson[
  1554. 0
  1555. ].isAllSize
  1556. }}M</span>
  1557. </div>
  1558. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1559. 0
  1560. ].progress
  1561. ? unitJson[unitIndex].chapterInfo[0]
  1562. .taskJson[0].progress
  1563. : 0
  1564. " style="width: 80%"></el-progress>
  1565. </div>
  1566. </div>
  1567. </div>
  1568. <div class="chapter_box" v-if="courseState == 1">
  1569. <div class="chapter_contentbox">
  1570. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  1571. <div class="cc_input">
  1572. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  1573. v-model="unitJson[unitIndex].dyName" />
  1574. </div>
  1575. <div class="remove" v-if="
  1576. (unitJson.length > 1 || courseState != 2) &&
  1577. !(unitJson[unitJson.length - 1].easy == 4) &&
  1578. !(unitJson[unitJson.length - 1].easy == 6)
  1579. " @click="deleteUnit(unitIndex)"></div>
  1580. </div>
  1581. </div>
  1582. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  1583. margin: 50px 0px 10px;
  1584. font-size: 1.5em;
  1585. font-weight: 700;
  1586. color: #0f7eff;
  1587. ">
  1588. 添加任务
  1589. </div> -->
  1590. <div class="taskBorder" :style="{
  1591. minHeight: unitJson[unitIndex].easy && 'unset',
  1592. }" :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  1593. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  1594. <div style="background: #fff; border-radius: 5px">
  1595. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  1596. <!-- padding: 20px; -->
  1597. <div v-if="unitJson[unitIndex].easy != 1">
  1598. <div :style="{
  1599. marginBottom:
  1600. unitJson[unitIndex].easy == 3 ||
  1601. (unitJson[unitIndex].easy == 5 &&
  1602. itemTask.taskType == 1)
  1603. ? '75px'
  1604. : '0',
  1605. }">
  1606. <div style="
  1607. display: flex;
  1608. margin: 0px 0 20px;
  1609. flex-direction: row;
  1610. justify-content: flex-start;
  1611. align-items: center;
  1612. ">
  1613. <div class="lineTitle">任务概述</div>
  1614. </div>
  1615. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  1616. flex-direction: row;
  1617. justify-content: flex-start;
  1618. align-items: center;
  1619. margin: 0;
  1620. ">
  1621. <!-- <div class="cc_title">
  1622. 任务{{ itemTaskIndex + 1 }}
  1623. </div> -->
  1624. <div class="cc_input">
  1625. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  1626. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1627. itemTaskIndex
  1628. ].task
  1629. " />
  1630. </div>
  1631. <div class="remove" v-if="
  1632. item.taskJson.length > 1 &&
  1633. (!unitJson[unitIndex].easy ||
  1634. unitJson[unitIndex].easy == 6)
  1635. " @click="deleteTask(itemTaskIndex)"></div>
  1636. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
  1637. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  1638. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  1639. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  1640. @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述
  1641. </div> -->
  1642. </div>
  1643. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  1644. display: flex;
  1645. margin: 20px 0;
  1646. flex-direction: row;
  1647. justify-content: flex-start;
  1648. align-items: center;
  1649. ">
  1650. <div class="lineTitle">任务描述</div>
  1651. </div> && !itemTask.isFold2-->
  1652. <div v-if="
  1653. easyArray.indexOf(unitJson[unitIndex].easy) ==
  1654. -1
  1655. " style="margin-top: 20px" class="op_task_box"
  1656. v-loading="taskDetailLoading2.indexOf('task-' + itemTaskIndex) !== -1" element-loading-text="小可正在努力生成中,请稍等...">
  1657. <!-- <editor-bar class="addEditor" style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1658. itemTaskIndex
  1659. ].taskDetail
  1660. " @change="change"></editor-bar> -->
  1661. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols
  1662. placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1663. itemTaskIndex
  1664. ].taskDetail
  1665. "></textarea>
  1666. <!-- <textarea rows="6" class="binfo_input" placeholder="请输入任务描述" cols
  1667. style="width: 70.5% !important; height: 120px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1668. itemTaskIndex
  1669. ].taskDetail
  1670. "></textarea> -->
  1671. <div class="op_box">
  1672. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  1673. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  1674. <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiDetail2', unitJson[unitIndex].chapterInfo[0].taskJson[
  1675. itemTaskIndex
  1676. ], itemTaskIndex)" @click="openAiDialog(2, 'aiDetail2', unitJson[unitIndex].chapterInfo[0].taskJson[
  1677. itemTaskIndex
  1678. ], itemTaskIndex)">智能优化</div>
  1679. </el-tooltip>
  1680. </div>
  1681. </div>
  1682. </div>
  1683. </div>
  1684. <div
  1685. style="position: relative"
  1686. v-if="courseState == 5"
  1687. >
  1688. <div
  1689. style="
  1690. display: flex;
  1691. flex-direction: row;
  1692. justify-content: space-between;
  1693. align-items: center;
  1694. "
  1695. :style="{
  1696. margin: !itemTask.isFoldchapter
  1697. ? '20px 0 10px'
  1698. : '20px 0 0',
  1699. }"
  1700. >
  1701. <div
  1702. style="margin-bottom: 10px"
  1703. class="lineTitle clineTitle"
  1704. >
  1705. 学习内容
  1706. </div>
  1707. <!-- <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  1708. @click="foldC(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  1709. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  1710. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div> -->
  1711. <!-- <div class="line"></div> -->
  1712. </div>
  1713. <!-- v-if="!itemTask.isFoldchapter" -->
  1714. <div>
  1715. <div
  1716. class="add_chapters_box add_c_none"
  1717. v-if="
  1718. itemTask.chapterData &&
  1719. itemTask.chapterData.length == 0
  1720. "
  1721. >
  1722. <img
  1723. src="../../../assets/icon/new/c_none.png"
  1724. alt
  1725. /><span>请添加学习内容</span>
  1726. </div>
  1727. <div
  1728. v-else
  1729. class="add_chapters_box"
  1730. style="display: flex; flex-direction: column"
  1731. >
  1732. <div
  1733. @dragstart="
  1734. dragStart(item1, index1, itemTaskIndex)
  1735. "
  1736. @dragover.prevent="
  1737. dragOver(index1, itemTaskIndex)
  1738. "
  1739. @dragend="dragEnd()"
  1740. :draggable="
  1741. isdrag ==
  1742. 'chapter-' + itemTaskIndex + '-' + index1
  1743. "
  1744. class="chapter_upload"
  1745. v-for="(item1, index1) in itemTask.chapterData"
  1746. :key="item1.id"
  1747. @click="
  1748. getChapterData(
  1749. $event,
  1750. unitIndex,
  1751. index,
  1752. index1,
  1753. item1.type
  1754. )
  1755. "
  1756. :class="{
  1757. dragOverTop2:
  1758. newIndex === index1 &&
  1759. typeIndex ==
  1760. 'chapter-' +
  1761. itemTaskIndex +
  1762. '-' +
  1763. index1 &&
  1764. oldIndex > index1 &&
  1765. dragType == 'drag',
  1766. dragOverBottom2:
  1767. newIndex === index1 &&
  1768. typeIndex ==
  1769. 'chapter-' +
  1770. itemTaskIndex +
  1771. '-' +
  1772. index1 &&
  1773. oldIndex < index1 &&
  1774. dragType == 'drag',
  1775. }"
  1776. >
  1777. <div
  1778. @mousedown="
  1779. isdrag =
  1780. 'chapter-' + itemTaskIndex + '-' + index1
  1781. "
  1782. @mouseup="isdrag = ''"
  1783. @touchstart="
  1784. isdrag =
  1785. 'chapter-' + itemTaskIndex + '-' + index1
  1786. "
  1787. @touchend="isdrag = ''"
  1788. class="chapter_upload_drag"
  1789. ></div>
  1790. <div
  1791. class="chapter_upload_o"
  1792. style="
  1793. position: relative;
  1794. display: flex;
  1795. align-items: center;
  1796. "
  1797. >
  1798. <div
  1799. class="chapter_upload_l"
  1800. style="padding: 1px 0 0 10px"
  1801. >
  1802. <div
  1803. v-if="item1.type == 2"
  1804. class="chapter_upload_l_i2"
  1805. ></div>
  1806. <div
  1807. v-if="item1.type == 3"
  1808. class="chapter_upload_l_i3"
  1809. style="margin-left: 1px"
  1810. ></div>
  1811. <div
  1812. v-if="item1.type == 6"
  1813. class="chapter_upload_l_i6"
  1814. style="margin-left: 1px"
  1815. ></div>
  1816. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1817. <div
  1818. v-if="item1.type == 8"
  1819. class="chapter_upload_l_i8"
  1820. style="margin-left: 1px"
  1821. ></div>
  1822. <div
  1823. v-if="item1.type == 14"
  1824. class="chapter_upload_l_i14"
  1825. style="margin-left: 1px"
  1826. ></div>
  1827. <div
  1828. v-if="item1.type == 12"
  1829. class="chapter_upload_l_i12"
  1830. style="margin-left: 1px"
  1831. ></div>
  1832. <div
  1833. v-if="item1.type == 13"
  1834. class="chapter_upload_l_i13"
  1835. style="margin-left: 1px"
  1836. ></div>
  1837. </div>
  1838. <div class="chapter_upload_n">
  1839. <input
  1840. readonly="true"
  1841. v-if="
  1842. item1.type == 2 ||
  1843. item1.type == 3 ||
  1844. item1.type == 12 ||
  1845. item1.type == 13 ||
  1846. item1.type == 7
  1847. "
  1848. :placeholder="item1.name"
  1849. @click="
  1850. updataVideoT(
  1851. $event,
  1852. unitIndex,
  1853. itemTaskIndex,
  1854. index1
  1855. )
  1856. "
  1857. style="
  1858. border: none;
  1859. outline: none;
  1860. width: 80%;
  1861. minwidth: 215px;
  1862. z-index: 99;
  1863. font-size: 14px;
  1864. white-space: nowrap;
  1865. overflow: hidden;
  1866. text-overflow: ellipsis;
  1867. "
  1868. />
  1869. <input
  1870. :placeholder="item1.name"
  1871. v-if="item1.type == 6"
  1872. style="
  1873. border: none;
  1874. outline: none;
  1875. width: 80%;
  1876. white-space: nowrap;
  1877. overflow: hidden;
  1878. text-overflow: ellipsis;
  1879. "
  1880. readonly="true"
  1881. @click="
  1882. selectAttText(itemTaskIndex, index1)
  1883. "
  1884. />
  1885. <input
  1886. :placeholder="
  1887. item1.title ? item1.title : '链接'
  1888. "
  1889. v-if="item1.type == 8"
  1890. style="
  1891. border: none;
  1892. outline: none;
  1893. width: 80%;
  1894. white-space: nowrap;
  1895. overflow: hidden;
  1896. text-overflow: ellipsis;
  1897. "
  1898. readonly="true"
  1899. @click="selectLine(itemTaskIndex, index1)"
  1900. />
  1901. <input
  1902. :placeholder="
  1903. item1.title ? item1.title : '链接'
  1904. "
  1905. v-if="item1.type == 14"
  1906. style="
  1907. border: none;
  1908. outline: none;
  1909. width: 80%;
  1910. white-space: nowrap;
  1911. overflow: hidden;
  1912. text-overflow: ellipsis;
  1913. "
  1914. readonly="true"
  1915. @click="
  1916. openUpdateSource(itemTaskIndex, index1)
  1917. "
  1918. />
  1919. </div>
  1920. <div class="chapter_upload_ic">
  1921. <div
  1922. class="chapter_upload_noSee"
  1923. v-if="item1.type == 12"
  1924. ></div>
  1925. <div
  1926. class="chapter_upload_ud"
  1927. style="z-index: 99"
  1928. >
  1929. <div
  1930. class="chapter_upload_up"
  1931. @click="
  1932. upCd(
  1933. $event,
  1934. unitIndex,
  1935. index,
  1936. itemTaskIndex,
  1937. index1
  1938. )
  1939. "
  1940. ></div>
  1941. <div
  1942. class="chapter_upload_down"
  1943. @click="
  1944. downCd(
  1945. $event,
  1946. unitIndex,
  1947. index,
  1948. itemTaskIndex,
  1949. index1
  1950. )
  1951. "
  1952. ></div>
  1953. </div>
  1954. <div
  1955. class="chapter_upload_ic_edit"
  1956. v-if="
  1957. item1.type == 2 ||
  1958. item1.type == 3 ||
  1959. item1.type == 12 ||
  1960. item1.type == 13 ||
  1961. item1.type == 7
  1962. "
  1963. @click.stop="
  1964. updataVideoT(
  1965. $event,
  1966. unitIndex,
  1967. itemTaskIndex,
  1968. index1
  1969. )
  1970. "
  1971. >
  1972. <div></div>
  1973. </div>
  1974. <div
  1975. class="chapter_upload_ic_edit"
  1976. v-if="item1.type == 6"
  1977. @click="
  1978. selectAttText(itemTaskIndex, index1)
  1979. "
  1980. >
  1981. <div></div>
  1982. </div>
  1983. <div
  1984. class="chapter_upload_ic_edit"
  1985. v-if="item1.type == 8"
  1986. @click="selectLine(itemTaskIndex, index1)"
  1987. >
  1988. <div></div>
  1989. </div>
  1990. <div
  1991. class="chapter_upload_ic_edit"
  1992. v-if="item1.type == 14"
  1993. @click="
  1994. openUpdateSource(itemTaskIndex, index1)
  1995. "
  1996. >
  1997. <div></div>
  1998. </div>
  1999. <div
  2000. class="chapter_upload_ic_r"
  2001. @click.stop="
  2002. deleteChapterData(
  2003. $event,
  2004. unitIndex,
  2005. index,
  2006. index1,
  2007. itemTaskIndex
  2008. )
  2009. "
  2010. >
  2011. <div></div>
  2012. </div>
  2013. </div>
  2014. </div>
  2015. </div>
  2016. </div>
  2017. </div>
  2018. <!-- v-if="!itemTask.isFoldchapter" -->
  2019. <div class="add_info_box" style="margin: 10px 0 0">
  2020. <button
  2021. class="c_pub_button_add pub_btn_add_img"
  2022. @click="addImg($event)"
  2023. >
  2024. 文件
  2025. <input
  2026. type="file"
  2027. accept="*"
  2028. style="display: none"
  2029. v-if="inputShow"
  2030. @change="
  2031. beforeUpload2(
  2032. $event,
  2033. unitIndex,
  2034. 13,
  2035. itemTaskIndex
  2036. )
  2037. "
  2038. />
  2039. </button>
  2040. <button
  2041. class="c_pub_button_add pub_btn_add_img"
  2042. @click="addAttText(itemTaskIndex)"
  2043. >
  2044. 图文
  2045. </button>
  2046. <button
  2047. class="c_pub_button_add pub_btn_add_img"
  2048. @click="openLine(itemTaskIndex)"
  2049. >
  2050. 链接
  2051. </button>
  2052. <button
  2053. class="c_pub_button_add pub_btn_add_img"
  2054. @click="pasteLine(itemTaskIndex)"
  2055. >
  2056. 代码
  2057. </button>
  2058. <button
  2059. class="c_pub_button_add pub_btn_add_img"
  2060. @click="openSource(itemTaskIndex)"
  2061. >
  2062. 资源
  2063. </button>
  2064. <button class="c_pub_button_add pub_btn_add_img" @click="openAiCreate(itemTaskIndex)">
  2065. AI生成PPT
  2066. </button>
  2067. <button class="c_pub_button_add pub_btn_add_img" @click="createTeacherAn(itemTaskIndex)">
  2068. AI生成教案
  2069. </button>
  2070. <button class="c_pub_button_add pub_btn_add_img" @click="openAiCreateVideo(itemTaskIndex)">
  2071. 智能检索视频
  2072. </button>
  2073. </div>
  2074. <div
  2075. v-if="
  2076. unitJson[unitIndex].chapterInfo[0].taskJson[
  2077. itemTaskIndex
  2078. ].proVisible
  2079. "
  2080. class="mask"
  2081. >
  2082. <div class="progressBox">
  2083. <!-- <div id="closePro" class="closeCss">
  2084. <img src="../../../../assets/icon/close.png" alt />
  2085. </div> -->
  2086. <div class="lbox">
  2087. <img
  2088. src="../../../assets/loading.gif"
  2089. />上传中,请稍后
  2090. </div>
  2091. <div style="margin-bottom: 10px">
  2092. <span
  2093. >{{
  2094. unitJson[unitIndex].chapterInfo[0].taskJson[
  2095. itemTaskIndex
  2096. ].isFinishSize
  2097. }}M</span
  2098. >
  2099. /
  2100. <span
  2101. >{{
  2102. unitJson[unitIndex].chapterInfo[0].taskJson[
  2103. itemTaskIndex
  2104. ].isAllSize
  2105. }}M</span
  2106. >
  2107. </div>
  2108. <el-progress
  2109. :text-inside="true"
  2110. :stroke-width="20"
  2111. :percentage="
  2112. unitJson[unitIndex].chapterInfo[0].taskJson[
  2113. itemTaskIndex
  2114. ].progress
  2115. ? unitJson[unitIndex].chapterInfo[0]
  2116. .taskJson[itemTaskIndex].progress
  2117. : 0
  2118. "
  2119. style="width: 80%"
  2120. ></el-progress>
  2121. </div>
  2122. </div>
  2123. </div>
  2124. <div v-if="
  2125. unitJson[unitIndex].easy == 1 ||
  2126. (unitJson[unitIndex].easy == 5 &&
  2127. itemTask.taskType == 2)
  2128. ">
  2129. <div>
  2130. <div class="add_chapters_box add_c_none" v-if="
  2131. itemTask.chapterData &&
  2132. itemTask.chapterData.length == 0
  2133. ">
  2134. <img src="../../../assets/icon/new/c_none.png" alt />
  2135. </div>
  2136. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  2137. <div @dragstart="dragStart(item1, index1, index)" @dragover.prevent="
  2138. dragOver(index1, itemTaskIndex)
  2139. " @dragend="dragEnd()" :draggable="isdrag ==
  2140. 'chapter-' + itemTaskIndex + '-' + index1
  2141. " class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData"
  2142. :key="item1.id" @click="
  2143. getChapterData(
  2144. $event,
  2145. unitIndex,
  2146. index,
  2147. index1,
  2148. item1.type
  2149. )
  2150. " :class="{
  2151. dragOverTop2:
  2152. newIndex === index1 &&
  2153. typeIndex ==
  2154. 'chapter-' +
  2155. itemTaskIndex +
  2156. '-' +
  2157. index1 &&
  2158. oldIndex > index1,
  2159. dragOverBottom2:
  2160. newIndex === index1 &&
  2161. typeIndex ==
  2162. 'chapter-' +
  2163. itemTaskIndex +
  2164. '-' +
  2165. index1 &&
  2166. oldIndex < index1,
  2167. }">
  2168. <div @mousedown="
  2169. isdrag =
  2170. 'chapter-' + itemTaskIndex + '-' + index1
  2171. " @mouseup="isdrag = ''" @touchstart="
  2172. isdrag =
  2173. 'chapter-' + itemTaskIndex + '-' + index1
  2174. " @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  2175. <div class="chapter_upload_t" style="width: 100%"></div>
  2176. <div class="chapter_upload_o" style="
  2177. position: relative;
  2178. display: flex;
  2179. align-items: center;
  2180. ">
  2181. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  2182. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  2183. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  2184. </div>
  2185. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  2186. </div>
  2187. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  2188. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  2189. </div>
  2190. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  2191. </div>
  2192. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  2193. </div>
  2194. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  2195. </div>
  2196. </div>
  2197. <div class="chapter_upload_n">
  2198. <span style="
  2199. font-size: 14px;
  2200. color: rgb(109, 109, 109);
  2201. height: 14px;
  2202. line-height: 14px;
  2203. " v-if="
  2204. item1.type == 2 ||
  2205. item1.type == 3 ||
  2206. item1.type == 7
  2207. ">{{ item1.text }}-</span>
  2208. <input readonly="true" v-if="
  2209. item1.type == 2 ||
  2210. item1.type == 3 ||
  2211. item1.type == 7
  2212. " :placeholder="item1.name" @click="
  2213. updataVideoT(
  2214. $event,
  2215. unitIndex,
  2216. itemTaskIndex,
  2217. index1
  2218. )
  2219. " style="
  2220. border: none;
  2221. outline: none;
  2222. width: 80%;
  2223. minwidth: 215px;
  2224. z-index: 99;
  2225. font-size: 14px;
  2226. white-space: nowrap;
  2227. overflow: hidden;
  2228. text-overflow: ellipsis;
  2229. " />
  2230. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  2231. border: none;
  2232. outline: none;
  2233. width: 80%;
  2234. white-space: nowrap;
  2235. overflow: hidden;
  2236. text-overflow: ellipsis;
  2237. " readonly="true" @click="
  2238. selectAttText(itemTaskIndex, index1)
  2239. " />
  2240. <input :placeholder="item1.title ? item1.title : '链接'
  2241. " v-if="item1.type == 8 || item1.type == 14" style="
  2242. border: none;
  2243. outline: none;
  2244. width: 80%;
  2245. white-space: nowrap;
  2246. overflow: hidden;
  2247. text-overflow: ellipsis;
  2248. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  2249. </div>
  2250. <div class="chapter_upload_ic">
  2251. <div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
  2252. <div class="chapter_upload_ud" style="z-index: 99">
  2253. <div class="chapter_upload_up" @click="
  2254. upCd(
  2255. $event,
  2256. unitIndex,
  2257. index,
  2258. itemTaskIndex,
  2259. index1
  2260. )
  2261. "></div>
  2262. <div class="chapter_upload_down" @click="
  2263. downCd(
  2264. $event,
  2265. unitIndex,
  2266. index,
  2267. itemTaskIndex,
  2268. index1
  2269. )
  2270. "></div>
  2271. </div>
  2272. <div class="chapter_upload_ic_edit" v-if="
  2273. item1.type == 2 ||
  2274. item1.type == 3 ||
  2275. item1.type == 12 ||
  2276. item1.type == 13 ||
  2277. item1.type == 7
  2278. " @click.stop="
  2279. updataVideoT(
  2280. $event,
  2281. unitIndex,
  2282. itemTaskIndex,
  2283. index1
  2284. )
  2285. ">
  2286. <div></div>
  2287. </div>
  2288. <div class="chapter_upload_ic_edit" v-if="item1.type == 6" @click="
  2289. selectAttText(itemTaskIndex, index1)
  2290. ">
  2291. <div></div>
  2292. </div>
  2293. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  2294. @click="selectLine(itemTaskIndex, index1)">
  2295. <div></div>
  2296. </div>
  2297. <div class="chapter_upload_ic_edit" v-if="item1.type == 14" @click="
  2298. openUpdateSource(itemTaskIndex, index1)
  2299. ">
  2300. <div></div>
  2301. </div>
  2302. <div class="chapter_upload_ic_r" @click.stop="
  2303. deleteChapterData(
  2304. $event,
  2305. unitIndex,
  2306. index,
  2307. index1,
  2308. itemTaskIndex
  2309. )
  2310. ">
  2311. <div></div>
  2312. </div>
  2313. </div>
  2314. </div>
  2315. </div>
  2316. </div>
  2317. </div>
  2318. <div class="add_info_box" style="margin: 10px 0 0">
  2319. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  2320. <span style="color: red">*</span>
  2321. 教学设计
  2322. <input type="file"
  2323. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2324. style="display: none" v-if="inputShow" @change="
  2325. beforeUpload3(
  2326. $event,
  2327. unitIndex,
  2328. 3,
  2329. itemTaskIndex,
  2330. '教学设计'
  2331. )
  2332. " />
  2333. </button>
  2334. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  2335. <span style="color: red">*</span>
  2336. 教学课件
  2337. <input type="file"
  2338. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2339. style="display: none" v-if="inputShow" @change="
  2340. beforeUpload3(
  2341. $event,
  2342. unitIndex,
  2343. 3,
  2344. itemTaskIndex,
  2345. '教学课件'
  2346. )
  2347. " />
  2348. </button>
  2349. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  2350. 教学视频
  2351. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo"
  2352. style="display: none" v-if="inputShow" @change="
  2353. beforeUpload3(
  2354. $event,
  2355. unitIndex,
  2356. 2,
  2357. itemTaskIndex,
  2358. '教学视频'
  2359. )
  2360. " />
  2361. </button>
  2362. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  2363. 教学音频
  2364. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  2365. beforeUpload3(
  2366. $event,
  2367. unitIndex,
  2368. 2,
  2369. itemTaskIndex,
  2370. '教学音频'
  2371. )
  2372. " />
  2373. </button>
  2374. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  2375. 学习单
  2376. <input type="file"
  2377. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2378. style="display: none" v-if="inputShow" @change="
  2379. beforeUpload3(
  2380. $event,
  2381. unitIndex,
  2382. 3,
  2383. itemTaskIndex,
  2384. '学习单'
  2385. )
  2386. " />
  2387. </button>
  2388. </div>
  2389. <div v-if="
  2390. unitJson[unitIndex].chapterInfo[0].taskJson[
  2391. itemTaskIndex
  2392. ].proVisible
  2393. " class="mask">
  2394. <div class="progressBox">
  2395. <!-- <div id="closePro" class="closeCss">
  2396. <img src="../../../../assets/icon/close.png" alt />
  2397. </div> -->
  2398. <div class="lbox">
  2399. <img src="../../../assets/loading.gif" />上传中,请稍后
  2400. </div>
  2401. <div style="margin-bottom: 10px">
  2402. <span>{{
  2403. unitJson[unitIndex].chapterInfo[0].taskJson[
  2404. itemTaskIndex
  2405. ].isFinishSize
  2406. }}M</span>
  2407. /
  2408. <span>{{
  2409. unitJson[unitIndex].chapterInfo[0].taskJson[
  2410. itemTaskIndex
  2411. ].isAllSize
  2412. }}M</span>
  2413. </div>
  2414. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  2415. itemTaskIndex
  2416. ].progress
  2417. ? unitJson[unitIndex].chapterInfo[0]
  2418. .taskJson[itemTaskIndex].progress
  2419. : 0
  2420. " style="width: 80%"></el-progress>
  2421. </div>
  2422. </div>
  2423. </div>
  2424. </div>
  2425. <!-- padding: 20px; -->
  2426. <div style="
  2427. background: #fff;
  2428. border-radius: 5px;
  2429. margin-top: 15px;
  2430. ">
  2431. <div v-if="
  2432. unitJson[unitIndex].easy != 3 &&
  2433. !(
  2434. unitJson[unitIndex].easy == 5 &&
  2435. itemTask.taskType == 1
  2436. )
  2437. " style="
  2438. flex-direction: row;
  2439. justify-content: flex-start;
  2440. align-items: center;
  2441. ">
  2442. <div style="
  2443. display: flex;
  2444. flex-direction: row;
  2445. align-items: center;
  2446. margin: 5px 0 20px;
  2447. ">
  2448. <div class="lineTitle clineTitle">
  2449. {{
  2450. !unitJson[unitIndex].easy ||
  2451. unitJson[unitIndex].easy == 6 ||
  2452. easyArray.indexOf(unitJson[unitIndex].easy) !=
  2453. -1
  2454. ? "练习内容"
  2455. : "评价内容"
  2456. }}
  2457. </div>
  2458. <!-- <div class="line" style="width: 90%"></div> -->
  2459. </div>
  2460. </div>
  2461. <div v-if="
  2462. unitJson[unitIndex].easy == 6 ||
  2463. !unitJson[unitIndex].easy
  2464. " class="toolChoose">
  2465. <div class="tools">
  2466. <div class="leftTools" style="width: 100%" v-for="(
  2467. itemTool, toolIndex
  2468. ) in itemTask.toolChoose" :key="toolIndex">
  2469. <div style="
  2470. display: flex;
  2471. flex-direction: row;
  2472. align-items: baseline;
  2473. flex-wrap: nowrap;
  2474. justify-content: flex-start;
  2475. position: relative;
  2476. ">
  2477. <div style="margin-right: 20px; font-weight: bold"
  2478. :id="'gj' + itemTaskIndex + '' + toolIndex">
  2479. 工具 {{ toolIndex + 1 }} :
  2480. </div>
  2481. <div class="chooseWho">
  2482. <div :class="itemTool.toolType == 0
  2483. ? 'isChooseActive'
  2484. : ''
  2485. " @click="
  2486. (itemTool.toolType = 0),
  2487. (itemTool.isFold3 = false),
  2488. $forceUpdate()
  2489. ">
  2490. 互动类
  2491. </div>
  2492. <div :class="itemTool.toolType == 1
  2493. ? 'isChooseActive'
  2494. : ''
  2495. " @click="
  2496. (itemTool.toolType = 1),
  2497. (itemTool.isFold3 = false),
  2498. $forceUpdate()
  2499. ">
  2500. 思维类
  2501. </div>
  2502. <div :class="itemTool.toolType == 6
  2503. ? 'isChooseActive'
  2504. : ''
  2505. " @click="
  2506. (itemTool.toolType = 6),
  2507. (itemTool.isFold3 = false),
  2508. $forceUpdate()
  2509. ">
  2510. 协作类
  2511. </div>
  2512. <div :class="itemTool.toolType == 2
  2513. ? 'isChooseActive'
  2514. : ''
  2515. " @click="
  2516. (itemTool.toolType = 2),
  2517. (itemTool.isFold3 = false),
  2518. $forceUpdate()
  2519. ">
  2520. 测评类
  2521. </div>
  2522. <div :class="itemTool.toolType == 7
  2523. ? 'isChooseActive'
  2524. : ''
  2525. " @click="
  2526. (itemTool.toolType = 7),
  2527. (itemTool.isFold3 = false),
  2528. $forceUpdate()
  2529. ">
  2530. 评价类
  2531. </div>
  2532. <div :class="itemTool.toolType == 3
  2533. ? 'isChooseActive'
  2534. : ''
  2535. " @click="
  2536. (itemTool.toolType = 3),
  2537. (itemTool.isFold3 = false),
  2538. $forceUpdate()
  2539. ">
  2540. 编程类
  2541. </div>
  2542. <div :class="itemTool.toolType == 5
  2543. ? 'isChooseActive'
  2544. : ''
  2545. " @click="
  2546. (itemTool.toolType = 5),
  2547. (itemTool.isFold3 = false),
  2548. $forceUpdate()
  2549. ">
  2550. 学科类
  2551. </div>
  2552. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  2553. " @click="(itemTool.toolType = 4), $forceUpdate()">
  2554. 其他
  2555. </div> -->
  2556. </div>
  2557. <div class="chapter_upload_ud2" style="z-index: 9; margin: 0 0 0 auto" :style="{
  2558. margin:
  2559. itemTask.toolChoose.length > 1
  2560. ? '0px 35px 0px auto'
  2561. : '0 0 0 auto',
  2562. }" v-if="itemTask.toolChoose.length > 1">
  2563. <div class="chapter_upload_up2" @click.stop="
  2564. upTool(
  2565. $event,
  2566. unitIndex,
  2567. itemTaskIndex,
  2568. toolIndex
  2569. )
  2570. ">
  2571. 上移
  2572. </div>
  2573. <div class="chapter_upload_down2" @click.stop="
  2574. downTool(
  2575. $event,
  2576. unitIndex,
  2577. itemTaskIndex,
  2578. toolIndex
  2579. )
  2580. ">
  2581. 下移
  2582. </div>
  2583. </div>
  2584. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  2585. @click="fold3(itemTaskIndex, toolIndex)"
  2586. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  2587. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  2588. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  2589. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  2590. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  2591. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2592. v-if="itemTask.toolChoose.length > 1" style="
  2593. position: absolute;
  2594. right: 0;
  2595. top: -5px;
  2596. "></div>
  2597. </div>
  2598. <!-- v-show="!itemTool.isFold3" -->
  2599. <div style="min-height: 163px">
  2600. <div class="toolSort" v-if="itemTool.toolType == 0">
  2601. <!-- <div class="tool">
  2602. <div
  2603. class="whiteBIcon"
  2604. @click="addTools(8, itemTaskIndex, toolIndex)"
  2605. >
  2606. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2607. <div style="margin: 5px 0">素材库</div>
  2608. </div>
  2609. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2610. <img
  2611. src="../../../assets/icon/checkNo.png"
  2612. alt
  2613. v-if="itemTool.tool.indexOf(8) == -1"
  2614. />
  2615. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2616. alt /><span>已选择</span></div>
  2617. </div>
  2618. </div>-->
  2619. <!-- <div class="tool">
  2620. <div
  2621. class="whiteBIcon"
  2622. @click="addTools(17, itemTaskIndex, toolIndex)"
  2623. >
  2624. <img
  2625. src="../../../assets/icon/secondToolList/library.png"
  2626. alt
  2627. />
  2628. <div style="margin: 5px 0">学习资料</div>
  2629. </div>
  2630. <div
  2631. class="check"
  2632. @click="addTools(17, itemTaskIndex, toolIndex)"
  2633. >
  2634. <img
  2635. src="../../../assets/icon/checkNo.png"
  2636. alt
  2637. v-if="itemTool.tool.indexOf(17) == -1"
  2638. />
  2639. <img
  2640. src="../../../assets/icon/checkedIs.png"
  2641. alt
  2642. v-else
  2643. />
  2644. </div>10
  2645. </div> -->
  2646. <div class="tool" :class="{
  2647. isToolChoose:
  2648. itemTool.tool.indexOf(10) != -1,
  2649. }" @click="
  2650. addTools(10, itemTaskIndex, toolIndex)
  2651. ">
  2652. <div class="whiteBIcon" @click.stop="
  2653. openTools(itemTaskIndex, 10, toolIndex)
  2654. ">
  2655. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  2656. <div style="margin: 5px 0">倒计时</div>
  2657. </div>
  2658. <div class="noCTool">
  2659. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2660. </div>
  2661. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1">
  2662. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2663. </div>
  2664. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2665. <img src="../../../assets/icon/checkNo.png" alt
  2666. v-if="itemTool.tool.indexOf(10) == -1" />
  2667. <div class="checkDiv" v-else>
  2668. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2669. </div>
  2670. </div> -->
  2671. </div>
  2672. <div class="tool" :class="{
  2673. isToolChoose:
  2674. itemTool.tool.indexOf(65) != -1,
  2675. }" @click="
  2676. addTools(65, itemTaskIndex, toolIndex)
  2677. ">
  2678. <div class="whiteBIcon" @click.stop="
  2679. addTools(65, itemTaskIndex, toolIndex)
  2680. ">
  2681. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  2682. <div style="margin: 5px 0">挑人</div>
  2683. </div>
  2684. <div class="noCTool">
  2685. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2686. </div>
  2687. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1">
  2688. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2689. </div>
  2690. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  2691. <img src="../../../assets/icon/checkNo.png" alt
  2692. v-if="itemTool.tool.indexOf(65) == -1" />
  2693. <div class="checkDiv" v-else>
  2694. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2695. </div>
  2696. </div> -->
  2697. </div>
  2698. <!-- <div class="tool">
  2699. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2700. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2701. <div style="margin: 5px 0">学生分组</div>
  2702. </div>
  2703. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2704. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2705. <div class="checkDiv" v-else>
  2706. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2707. </div>
  2708. </div>
  2709. </div> -->
  2710. <!-- <div class="tool">
  2711. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2712. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2713. <div style="margin: 5px 0">交互视频</div>
  2714. </div>
  2715. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2716. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2717. <div class="checkDiv" v-else>
  2718. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2719. </div>
  2720. </div>
  2721. </div> -->
  2722. </div>
  2723. <div class="toolSort" v-if="itemTool.toolType == 1">
  2724. <div class="tool" :class="{
  2725. isToolChoose:
  2726. itemTool.tool.indexOf(7) != -1,
  2727. }" @click="
  2728. addTools(7, itemTaskIndex, toolIndex)
  2729. ">
  2730. <div class="whiteBIcon" @click.stop="
  2731. addTools(7, itemTaskIndex, toolIndex)
  2732. ">
  2733. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2734. <div style="margin: 5px 0">思维网格</div>
  2735. </div>
  2736. <div class="noCTool">
  2737. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2738. </div>
  2739. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1">
  2740. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2741. </div>
  2742. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2743. <img src="../../../assets/icon/checkNo.png" alt
  2744. v-if="itemTool.tool.indexOf(7) == -1" />
  2745. <div class="checkDiv" v-else>
  2746. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2747. </div>
  2748. </div> -->
  2749. </div>
  2750. <div class="tool" :class="{
  2751. isToolChoose:
  2752. itemTool.tool.indexOf(1) != -1,
  2753. }" @click="
  2754. addTools(1, itemTaskIndex, toolIndex)
  2755. ">
  2756. <div class="whiteBIcon" @click.stop="
  2757. openTools(itemTaskIndex, 1, toolIndex)
  2758. ">
  2759. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2760. <div style="margin: 5px 0">电子白板</div>
  2761. </div>
  2762. <div class="noCTool">
  2763. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2764. </div>
  2765. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1">
  2766. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2767. </div>
  2768. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2769. <img src="../../../assets/icon/checkNo.png" alt
  2770. v-if="itemTool.tool.indexOf(1) == -1" />
  2771. <div class="checkDiv" v-else>
  2772. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2773. </div>
  2774. </div> -->
  2775. </div>
  2776. <!-- <div class="tool">
  2777. <div
  2778. class="whiteBIcon"
  2779. @click="addTools(2, itemTaskIndex, toolIndex)"
  2780. >
  2781. <img
  2782. src="../../../assets/icon/secondToolList/note.png"
  2783. alt
  2784. />
  2785. <div style="margin: 5px 0">便签</div>
  2786. </div>
  2787. <div
  2788. class="check"
  2789. @click="addTools(2, itemTaskIndex, toolIndex)"
  2790. >
  2791. <img
  2792. src="../../../assets/icon/checkNo.png"
  2793. alt
  2794. v-if="itemTool.tool.indexOf(2) == -1"
  2795. />
  2796. <div class="checkDiv" v-else>
  2797. <img
  2798. src="../../../assets/icon/checkedIs.png"
  2799. alt
  2800. /><span>已选择</span>
  2801. </div>
  2802. </div>
  2803. </div> -->
  2804. <!-- <div class="tool">
  2805. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2806. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2807. <div style="margin: 5px 0">协同文档</div>
  2808. </div>
  2809. <div
  2810. class="check"
  2811. @click="addTools(6, itemTaskIndex, toolIndex)"
  2812. >
  2813. <img
  2814. src="../../../assets/icon/checkNo.png"
  2815. alt
  2816. v-if="itemTool.tool.indexOf(6) == -1"
  2817. />
  2818. <div class="checkDiv" v-else>
  2819. <img
  2820. src="../../../assets/icon/checkedIs.png"
  2821. alt
  2822. /><span>已选择</span>
  2823. </div>
  2824. </div>
  2825. </div> -->
  2826. <div class="tool" :class="{
  2827. isToolChoose:
  2828. itemTool.tool.indexOf(52) != -1,
  2829. }" @click="
  2830. addTools(52, itemTaskIndex, toolIndex)
  2831. ">
  2832. <div class="whiteBIcon" @click.stop="
  2833. openTools(itemTaskIndex, 52, toolIndex)
  2834. ">
  2835. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2836. <div style="margin: 5px 0">文档</div>
  2837. </div>
  2838. <div class="noCTool">
  2839. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2840. </div>
  2841. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1">
  2842. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2843. </div>
  2844. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2845. <img src="../../../assets/icon/checkNo.png" alt
  2846. v-if="itemTool.tool.indexOf(52) == -1" />
  2847. <div class="checkDiv" v-else>
  2848. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2849. </div>
  2850. </div> -->
  2851. </div>
  2852. <div class="tool" :class="{
  2853. isToolChoose:
  2854. itemTool.tool.indexOf(3) != -1,
  2855. }" @click="
  2856. addTools(3, itemTaskIndex, toolIndex)
  2857. ">
  2858. <div class="whiteBIcon" @click.stop="
  2859. openTools(itemTaskIndex, 3, toolIndex)
  2860. ">
  2861. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2862. <div style="margin: 5px 0">思维导图</div>
  2863. </div>
  2864. <div class="noCTool">
  2865. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2866. </div>
  2867. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1">
  2868. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2869. </div>
  2870. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2871. <img src="../../../assets/icon/checkNo.png" alt
  2872. v-if="itemTool.tool.indexOf(3) == -1" />
  2873. <div class="checkDiv" v-else>
  2874. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2875. </div>
  2876. </div> -->
  2877. </div>
  2878. <div class="tool" :class="{
  2879. isToolChoose:
  2880. itemTool.tool.indexOf(48) != -1,
  2881. }" @click="
  2882. addTools(48, itemTaskIndex, toolIndex)
  2883. ">
  2884. <div class="whiteBIcon" @click.stop="
  2885. openTools(itemTaskIndex, 48, toolIndex)
  2886. ">
  2887. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2888. <div style="margin: 5px 0">表格</div>
  2889. </div>
  2890. <div class="noCTool">
  2891. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2892. </div>
  2893. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1">
  2894. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2895. </div>
  2896. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2897. <img src="../../../assets/icon/checkNo.png" alt
  2898. v-if="itemTool.tool.indexOf(48) == -1" />
  2899. <div class="checkDiv" v-else>
  2900. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2901. </div>
  2902. </div> -->
  2903. </div>
  2904. </div>
  2905. <div class="toolSort" v-if="itemTool.toolType == 6">
  2906. <div class="tool" :class="{
  2907. isToolChoose:
  2908. itemTool.tool.indexOf(49) != -1,
  2909. }" @click="
  2910. addTools(49, itemTaskIndex, toolIndex)
  2911. ">
  2912. <div class="whiteBIcon" @click.stop="
  2913. openTools(itemTaskIndex, 49, toolIndex)
  2914. ">
  2915. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2916. <div style="margin: 5px 0">学生分组</div>
  2917. </div>
  2918. <div class="noCTool">
  2919. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2920. </div>
  2921. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1">
  2922. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2923. </div>
  2924. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2925. <img src="../../../assets/icon/checkNo.png" alt
  2926. v-if="itemTool.tool.indexOf(49) == -1" />
  2927. <div class="checkDiv" v-else>
  2928. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2929. </div>
  2930. </div> -->
  2931. </div>
  2932. </div>
  2933. <div class="toolSort" v-if="itemTool.toolType == 2">
  2934. <!-- <div class="tool">
  2935. <div
  2936. class="whiteBIcon"
  2937. @click="addTools(5, itemTaskIndex, toolIndex)"
  2938. >
  2939. <img
  2940. src="../../../assets/icon/thirdToolList/score.png"
  2941. alt
  2942. />
  2943. <div style="margin: 5px 0">量规评分</div>
  2944. </div>
  2945. <div
  2946. class="check"
  2947. @click="addTools(5, itemTaskIndex, toolIndex)"
  2948. >
  2949. <img
  2950. src="../../../assets/icon/checkNo.png"
  2951. alt
  2952. v-if="itemTool.tool.indexOf(5) == -1"
  2953. />
  2954. <img
  2955. src="../../../assets/icon/checkedIs.png"
  2956. alt
  2957. v-else
  2958. />
  2959. </div>
  2960. </div>-->
  2961. <div class="tool" :class="{
  2962. isToolChoose:
  2963. itemTool.tool.indexOf(4) != -1,
  2964. }" @click="
  2965. addTools(4, itemTaskIndex, toolIndex)
  2966. ">
  2967. <div class="whiteBIcon" @click.stop="
  2968. openTools(itemTaskIndex, 4, toolIndex)
  2969. ">
  2970. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2971. <div style="margin: 5px 0">问卷调查</div>
  2972. </div>
  2973. <div class="noCTool">
  2974. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2975. </div>
  2976. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1">
  2977. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2978. </div>
  2979. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2980. <img src="../../../assets/icon/checkNo.png" alt
  2981. v-if="itemTool.tool.indexOf(4) == -1" />
  2982. <div class="checkDiv" v-else>
  2983. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2984. </div>
  2985. </div> -->
  2986. </div>
  2987. <div class="tool" :class="{
  2988. isToolChoose:
  2989. itemTool.tool.indexOf(45) != -1,
  2990. }" @click="
  2991. addTools(45, itemTaskIndex, toolIndex)
  2992. ">
  2993. <div class="whiteBIcon" @click="
  2994. openTools(itemTaskIndex, 45, toolIndex)
  2995. ">
  2996. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  2997. <div style="margin: 5px 0">选择题</div>
  2998. </div>
  2999. <div class="noCTool">
  3000. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3001. </div>
  3002. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1">
  3003. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3004. </div>
  3005. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  3006. <img src="../../../assets/icon/checkNo.png" alt
  3007. v-if="itemTool.tool.indexOf(45) == -1" />
  3008. <div class="checkDiv" v-else>
  3009. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3010. </div>
  3011. </div> -->
  3012. </div>
  3013. <div class="tool" :class="{
  3014. isToolChoose:
  3015. itemTool.tool.indexOf(15) != -1,
  3016. }" @click="
  3017. addTools(15, itemTaskIndex, toolIndex)
  3018. ">
  3019. <div class="whiteBIcon" @click.stop="
  3020. openTools(itemTaskIndex, 15, toolIndex)
  3021. ">
  3022. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3023. <div style="margin: 5px 0">问答</div>
  3024. </div>
  3025. <div class="noCTool">
  3026. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3027. </div>
  3028. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1">
  3029. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3030. </div>
  3031. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  3032. <img src="../../../assets/icon/checkNo.png" alt
  3033. v-if="itemTool.tool.indexOf(15) == -1" />
  3034. <div class="checkDiv" v-else>
  3035. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3036. </div>
  3037. </div> -->
  3038. </div>
  3039. <div class="tool" :class="{
  3040. isToolChoose:
  3041. itemTool.tool.indexOf(16) != -1,
  3042. }" @click="
  3043. addTools(16, itemTaskIndex, toolIndex)
  3044. ">
  3045. <div class="whiteBIcon" @click.stop="
  3046. addTools(16, itemTaskIndex, toolIndex)
  3047. ">
  3048. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  3049. <div style="margin: 5px 0">作业提交</div>
  3050. </div>
  3051. <div class="noCTool">
  3052. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3053. </div>
  3054. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1">
  3055. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3056. </div>
  3057. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  3058. <img src="../../../assets/icon/checkNo.png" alt
  3059. v-if="itemTool.tool.indexOf(16) == -1" />
  3060. <div class="checkDiv" v-else>
  3061. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3062. </div>
  3063. </div> -->
  3064. </div>
  3065. <div class="tool" :class="{
  3066. isToolChoose:
  3067. itemTool.tool.indexOf(50) != -1,
  3068. }" @click="
  3069. addTools(50, itemTaskIndex, toolIndex)
  3070. ">
  3071. <div class="whiteBIcon" @click.stop="
  3072. addTools(50, itemTaskIndex, toolIndex)
  3073. ">
  3074. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3075. <div style="margin: 5px 0">批量上传</div>
  3076. </div>
  3077. <div class="noCTool">
  3078. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3079. </div>
  3080. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1">
  3081. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3082. </div>
  3083. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3084. <img src="../../../assets/icon/checkNo.png" alt
  3085. v-if="itemTool.tool.indexOf(50) == -1" />
  3086. <div class="checkDiv" v-else>
  3087. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3088. </div>
  3089. </div> -->
  3090. </div>
  3091. <!-- <div class="tool">
  3092. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  3093. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  3094. <div style="margin: 5px 0">个人评价</div>
  3095. </div>
  3096. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  3097. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  3098. <div class="checkDiv" v-else>
  3099. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3100. </div>
  3101. </div>
  3102. </div> -->
  3103. <div class="tool" :class="{
  3104. isToolChoose:
  3105. itemTool.tool.indexOf(41) != -1,
  3106. }" @click="
  3107. addTools(41, itemTaskIndex, toolIndex)
  3108. ">
  3109. <div class="whiteBIcon" @click.stop="
  3110. openTools(itemTaskIndex, 41, toolIndex)
  3111. ">
  3112. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  3113. <div style="margin: 5px 0">选择匹配</div>
  3114. </div>
  3115. <div class="noCTool">
  3116. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3117. </div>
  3118. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1">
  3119. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3120. </div>
  3121. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  3122. <img src="../../../assets/icon/checkNo.png" alt
  3123. v-if="itemTool.tool.indexOf(41) == -1" />
  3124. <div class="checkDiv" v-else>
  3125. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3126. </div>
  3127. </div> -->
  3128. </div>
  3129. <div class="tool" :class="{
  3130. isToolChoose:
  3131. itemTool.tool.indexOf(47) != -1,
  3132. }" @click="
  3133. addTools(47, itemTaskIndex, toolIndex)
  3134. ">
  3135. <div class="whiteBIcon" @click.stop="
  3136. openTools(itemTaskIndex, 47, toolIndex)
  3137. ">
  3138. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  3139. <div style="margin: 5px 0">排序</div>
  3140. </div>
  3141. <div class="noCTool">
  3142. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3143. </div>
  3144. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1">
  3145. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3146. </div>
  3147. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  3148. <img src="../../../assets/icon/checkNo.png" alt
  3149. v-if="itemTool.tool.indexOf(47) == -1" />
  3150. <div class="checkDiv" v-else>
  3151. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3152. </div>
  3153. </div> -->
  3154. </div>
  3155. <!-- <div class="tool">
  3156. <div
  3157. class="whiteBIcon"
  3158. @click="openTools(itemTaskIndex, 42, toolIndex)"
  3159. >
  3160. <img
  3161. src="../../../assets/icon/thirdToolList/mp3.png"
  3162. alt
  3163. />
  3164. <div style="margin: 5px 0">上传音频</div>
  3165. </div>
  3166. <div
  3167. class="check"
  3168. @click="addTools(42, itemTaskIndex, toolIndex)"
  3169. >
  3170. <img
  3171. src="../../../assets/icon/checkNo.png"
  3172. alt
  3173. v-if="itemTool.tool.indexOf(42) == -1"
  3174. />
  3175. <img
  3176. src="../../../assets/icon/checkedIs.png"
  3177. alt
  3178. v-else
  3179. />
  3180. </div>
  3181. </div> -->
  3182. </div>
  3183. <div class="toolSort" v-if="itemTool.toolType == 3">
  3184. <div class="tool" :class="{
  3185. isToolChoose:
  3186. itemTool.tool.indexOf(18) != -1,
  3187. }" @click="
  3188. addTools(18, itemTaskIndex, toolIndex)
  3189. ">
  3190. <div class="whiteBIcon" @click.stop="
  3191. addTools(18, itemTaskIndex, toolIndex)
  3192. ">
  3193. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  3194. <div style="margin: 5px 0">训练平台</div>
  3195. </div>
  3196. <div class="noCTool">
  3197. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3198. </div>
  3199. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1">
  3200. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3201. </div>
  3202. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  3203. <img src="../../../assets/icon/checkNo.png" alt
  3204. v-if="itemTool.tool.indexOf(18) == -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="{
  3211. isToolChoose:
  3212. itemTool.tool.indexOf(21) != -1,
  3213. }" @click="
  3214. addTools(21, itemTaskIndex, toolIndex)
  3215. ">
  3216. <div class="whiteBIcon" @click.stop="
  3217. addTools(21, itemTaskIndex, toolIndex)
  3218. ">
  3219. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  3220. <div style="margin: 5px 0">
  3221. AIoT Blockly
  3222. </div>
  3223. </div>
  3224. <div class="noCTool">
  3225. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3226. </div>
  3227. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1">
  3228. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3229. </div>
  3230. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  3231. <img src="../../../assets/icon/checkNo.png" alt
  3232. v-if="itemTool.tool.indexOf(21) == -1" />
  3233. <div class="checkDiv" v-else>
  3234. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3235. </div>
  3236. </div> -->
  3237. </div>
  3238. <!-- <div class="tool">
  3239. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  3240. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  3241. <div style="margin: 5px 0">AI体验</div>
  3242. </div>
  3243. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  3244. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  3245. <div class="checkDiv" v-else>
  3246. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3247. </div>
  3248. </div>
  3249. </div> -->
  3250. <div class="tool" :class="{
  3251. isToolChoose:
  3252. itemTool.tool.indexOf(23) != -1,
  3253. }" @click="
  3254. addTools(23, itemTaskIndex, toolIndex)
  3255. ">
  3256. <div class="whiteBIcon" @click.stop="
  3257. addTools(23, itemTaskIndex, toolIndex)
  3258. ">
  3259. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  3260. <div style="margin: 5px 0">AI Python</div>
  3261. </div>
  3262. <div class="noCTool">
  3263. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3264. </div>
  3265. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1">
  3266. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3267. </div>
  3268. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  3269. <img src="../../../assets/icon/checkNo.png" alt
  3270. v-if="itemTool.tool.indexOf(23) == -1" />
  3271. <div class="checkDiv" v-else>
  3272. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3273. </div>
  3274. </div> -->
  3275. </div>
  3276. <div class="tool" :class="{
  3277. isToolChoose:
  3278. itemTool.tool.indexOf(24) != -1,
  3279. }" @click="
  3280. addTools(24, itemTaskIndex, toolIndex)
  3281. ">
  3282. <div class="whiteBIcon" @click.stop="
  3283. addTools(24, itemTaskIndex, toolIndex)
  3284. ">
  3285. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  3286. <div style="margin: 5px 0">
  3287. AI Blockly
  3288. </div>
  3289. </div>
  3290. <div class="noCTool">
  3291. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3292. </div>
  3293. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1">
  3294. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3295. </div>
  3296. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  3297. <img src="../../../assets/icon/checkNo.png" alt
  3298. v-if="itemTool.tool.indexOf(24) == -1" />
  3299. <div class="checkDiv" v-else>
  3300. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3301. </div>
  3302. </div> -->
  3303. </div>
  3304. <div class="tool" :class="{
  3305. isToolChoose:
  3306. itemTool.tool.indexOf(32) != -1,
  3307. }" @click="
  3308. addTools(32, itemTaskIndex, toolIndex)
  3309. ">
  3310. <div class="whiteBIcon" @click.stop="
  3311. addTools(32, itemTaskIndex, toolIndex)
  3312. ">
  3313. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  3314. <div style="margin: 5px 0">源码编辑</div>
  3315. </div>
  3316. <div class="noCTool">
  3317. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3318. </div>
  3319. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1">
  3320. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3321. </div>
  3322. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  3323. <img src="../../../assets/icon/checkNo.png" alt
  3324. v-if="itemTool.tool.indexOf(32) == -1" />
  3325. <div class="checkDiv" v-else>
  3326. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3327. </div>
  3328. </div> -->
  3329. </div>
  3330. <div class="tool" :class="{
  3331. isToolChoose:
  3332. itemTool.tool.indexOf(57) != -1,
  3333. }" @click="
  3334. addTools(57, itemTaskIndex, toolIndex)
  3335. ">
  3336. <div class="whiteBIcon" @click.stop="
  3337. openTools(itemTaskIndex, 57, toolIndex)
  3338. ">
  3339. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  3340. <div style="margin: 5px 0">CocoPi</div>
  3341. </div>
  3342. <div class="noCTool">
  3343. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3344. </div>
  3345. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1">
  3346. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3347. </div>
  3348. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  3349. <img src="../../../assets/icon/checkNo.png" alt
  3350. v-if="itemTool.tool.indexOf(57) == -1" />
  3351. <div class="checkDiv" v-else>
  3352. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3353. </div>
  3354. </div> -->
  3355. </div>
  3356. <div class="tool" :class="{
  3357. isToolChoose:
  3358. itemTool.tool.indexOf(63) != -1,
  3359. }" @click="
  3360. addTools(63, itemTaskIndex, toolIndex)
  3361. ">
  3362. <div class="whiteBIcon" @click.stop="
  3363. addTools(63, itemTaskIndex, toolIndex)
  3364. ">
  3365. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  3366. <div style="margin: 5px 0">海龟编程</div>
  3367. </div>
  3368. <div class="noCTool">
  3369. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3370. </div>
  3371. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1">
  3372. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3373. </div>
  3374. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  3375. <img src="../../../assets/icon/checkNo.png" alt
  3376. v-if="itemTool.tool.indexOf(63) == -1" />
  3377. <div class="checkDiv" v-else>
  3378. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3379. </div>
  3380. </div> -->
  3381. </div>
  3382. <div class="tool" :class="{
  3383. isToolChoose:
  3384. itemTool.tool.indexOf(71) != -1,
  3385. }" @click="
  3386. addTools(71, itemTaskIndex, toolIndex)
  3387. ">
  3388. <div class="whiteBIcon" @click.stop="
  3389. addTools(71, itemTaskIndex, toolIndex)
  3390. ">
  3391. <img src="../../../assets/icon/fourthToolList/chatgpt.png" alt />
  3392. <div style="margin: 5px 0">AI智能体</div>
  3393. </div>
  3394. <div class="noCTool">
  3395. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3396. </div>
  3397. <div class="isCTool" v-if="itemTool.tool.indexOf(71) != -1">
  3398. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3399. </div>
  3400. </div>
  3401. </div>
  3402. <div class="toolSort" v-if="itemTool.toolType == 7">
  3403. <div class="tool" :class="{
  3404. isToolChoose:
  3405. itemTool.tool.indexOf(40) != -1,
  3406. }" @click.stop="
  3407. addTools(40, itemTaskIndex, toolIndex)
  3408. ">
  3409. <div class="whiteBIcon" @click.stop="
  3410. openTools(itemTaskIndex, 40, toolIndex)
  3411. ">
  3412. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  3413. <div style="margin: 5px 0">个人评价</div>
  3414. </div>
  3415. <div class="noCTool">
  3416. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3417. </div>
  3418. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1">
  3419. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3420. </div>
  3421. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  3422. <img src="../../../assets/icon/checkNo.png" alt
  3423. v-if="itemTool.tool.indexOf(40) == -1" />
  3424. <div class="checkDiv" v-else>
  3425. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3426. </div>
  3427. </div> -->
  3428. </div>
  3429. </div>
  3430. <div class="toolSort" v-if="itemTool.toolType == 5">
  3431. <div class="tool" :class="{
  3432. isToolChoose:
  3433. itemTool.tool.indexOf(28) != -1,
  3434. }" @click="
  3435. addTools(28, itemTaskIndex, toolIndex)
  3436. ">
  3437. <div class="whiteBIcon" @click.stop="
  3438. addTools(28, itemTaskIndex, toolIndex)
  3439. ">
  3440. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  3441. <div style="margin: 5px 0">翻译</div>
  3442. </div>
  3443. <div class="noCTool">
  3444. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3445. </div>
  3446. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1">
  3447. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3448. </div>
  3449. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3450. <img src="../../../assets/icon/checkNo.png" alt
  3451. v-if="itemTool.tool.indexOf(28) == -1" />
  3452. <div class="checkDiv" v-else>
  3453. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3454. </div>
  3455. </div> -->
  3456. </div>
  3457. <div class="tool" :class="{
  3458. isToolChoose:
  3459. itemTool.tool.indexOf(31) != -1,
  3460. }" @click="
  3461. addTools(31, itemTaskIndex, toolIndex)
  3462. ">
  3463. <div class="whiteBIcon" @click.stop="
  3464. addTools(31, itemTaskIndex, toolIndex)
  3465. ">
  3466. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3467. <div style="margin: 5px 0">数字画板</div>
  3468. </div>
  3469. <div class="noCTool">
  3470. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3471. </div>
  3472. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1">
  3473. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3474. </div>
  3475. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3476. <img src="../../../assets/icon/checkNo.png" alt
  3477. v-if="itemTool.tool.indexOf(31) == -1" />
  3478. <div class="checkDiv" v-else>
  3479. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3480. </div>
  3481. </div> -->
  3482. </div>
  3483. <div class="tool" :class="{
  3484. isToolChoose:
  3485. itemTool.tool.indexOf(39) != -1,
  3486. }" @click="
  3487. addTools(39, itemTaskIndex, toolIndex)
  3488. ">
  3489. <div class="whiteBIcon" @click.stop="
  3490. addTools(39, itemTaskIndex, toolIndex)
  3491. ">
  3492. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  3493. <div style="margin: 5px 0">GeoGebra</div>
  3494. </div>
  3495. <div class="noCTool">
  3496. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3497. </div>
  3498. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1">
  3499. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3500. </div>
  3501. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3502. <img src="../../../assets/icon/checkNo.png" alt
  3503. v-if="itemTool.tool.indexOf(39) == -1" />
  3504. <div class="checkDiv" v-else>
  3505. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3506. </div>
  3507. </div> -->
  3508. </div>
  3509. <div class="tool" :class="{
  3510. isToolChoose:
  3511. itemTool.tool.indexOf(66) != -1,
  3512. }" @click="
  3513. addTools(66, itemTaskIndex, toolIndex)
  3514. ">
  3515. <div class="whiteBIcon" @click.stop="
  3516. addTools(66, itemTaskIndex, toolIndex)
  3517. ">
  3518. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  3519. <div style="margin: 5px 0">公式编辑</div>
  3520. </div>
  3521. <div class="noCTool">
  3522. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3523. </div>
  3524. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1">
  3525. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3526. </div>
  3527. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  3528. <img src="../../../assets/icon/checkNo.png" alt
  3529. v-if="itemTool.tool.indexOf(66) == -1" />
  3530. <div class="checkDiv" v-else>
  3531. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3532. </div>
  3533. </div> -->
  3534. </div>
  3535. <!-- <div class="tool">
  3536. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  3537. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  3538. <div style="margin: 5px 0">分子结构</div>
  3539. </div>
  3540. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  3541. <img src="../../../assets/icon/checkNo.png" alt
  3542. v-if="itemTool.tool.indexOf(67) == -1" />
  3543. <div class="checkDiv" v-else>
  3544. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3545. </div>
  3546. </div>
  3547. </div> -->
  3548. <div class="tool" :class="{
  3549. isToolChoose:
  3550. itemTool.tool.indexOf(68) != -1,
  3551. }" @click="
  3552. addTools(68, itemTaskIndex, toolIndex)
  3553. ">
  3554. <div class="whiteBIcon" @click.stop="
  3555. addTools(68, itemTaskIndex, toolIndex)
  3556. ">
  3557. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  3558. <div style="margin: 5px 0">时间轴</div>
  3559. </div>
  3560. <div class="noCTool">
  3561. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3562. </div>
  3563. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1">
  3564. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3565. </div>
  3566. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  3567. <img src="../../../assets/icon/checkNo.png" alt
  3568. v-if="itemTool.tool.indexOf(68) == -1" />
  3569. <div class="checkDiv" v-else>
  3570. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3571. </div>
  3572. </div> -->
  3573. </div>
  3574. <div class="tool" :class="{
  3575. isToolChoose:
  3576. itemTool.tool.indexOf(69) != -1,
  3577. }" @click="
  3578. addTools(69, itemTaskIndex, toolIndex)
  3579. ">
  3580. <div class="whiteBIcon" @click.stop="
  3581. openTools(itemTaskIndex, 69, toolIndex)
  3582. ">
  3583. <img src="../../../assets/icon/thirdToolList/english.png" alt />
  3584. <div style="margin: 5px 0">英语写作</div>
  3585. </div>
  3586. <div class="noCTool">
  3587. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3588. </div>
  3589. <div class="isCTool" v-if="itemTool.tool.indexOf(69) != -1">
  3590. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3591. </div>
  3592. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  3593. <img src="../../../assets/icon/checkNo.png" alt
  3594. v-if="itemTool.tool.indexOf(4) == -1" />
  3595. <div class="checkDiv" v-else>
  3596. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3597. </div>
  3598. </div> -->
  3599. </div>
  3600. <div class="tool" :class="{
  3601. isToolChoose:
  3602. itemTool.tool.indexOf(70) != -1,
  3603. }" @click="
  3604. addTools(70, itemTaskIndex, toolIndex)
  3605. ">
  3606. <div class="whiteBIcon" @click.stop="
  3607. openTools(itemTaskIndex, 70, toolIndex)
  3608. ">
  3609. <img src="../../../assets/icon/thirdToolList/englishVoice.png" alt />
  3610. <div style="margin: 5px 0">英语口语</div>
  3611. </div>
  3612. <div class="noCTool">
  3613. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3614. </div>
  3615. <div class="isCTool" v-if="itemTool.tool.indexOf(70) != -1">
  3616. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3617. </div>
  3618. </div>
  3619. <!-- <div class="tool">
  3620. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  3621. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  3622. <div style="margin: 5px 0">翻译</div>
  3623. </div>
  3624. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3625. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  3626. <div class="checkDiv" v-else>
  3627. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3628. </div>
  3629. </div>
  3630. </div>
  3631. <div class="tool">
  3632. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  3633. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  3634. <div style="margin: 5px 0">魔盒识字</div>
  3635. </div>
  3636. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  3637. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  3638. <div class="checkDiv" v-else>
  3639. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3640. </div>
  3641. </div>
  3642. </div>
  3643. <div class="tool">
  3644. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  3645. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  3646. <div style="margin: 5px 0">24点</div>
  3647. </div>
  3648. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  3649. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  3650. <div class="checkDiv" v-else>
  3651. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3652. </div>
  3653. </div>
  3654. </div>
  3655. <div class="tool">
  3656. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  3657. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3658. <div style="margin: 5px 0">数学画板</div>
  3659. </div>
  3660. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3661. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  3662. <div class="checkDiv" v-else>
  3663. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3664. </div>
  3665. </div>
  3666. </div>
  3667. <div class="tool">
  3668. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  3669. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  3670. <div style="margin: 5px 0">GeoGebra</div>
  3671. </div>
  3672. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3673. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  3674. <div class="checkDiv" v-else>
  3675. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3676. </div>
  3677. </div>
  3678. </div>
  3679. <div class="tool">
  3680. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  3681. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  3682. <div style="margin: 5px 0">模拟驾驶</div>
  3683. </div>
  3684. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  3685. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  3686. <div class="checkDiv" v-else>
  3687. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3688. </div>
  3689. </div>
  3690. </div>
  3691. <div class="tool">
  3692. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  3693. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  3694. <div style="margin: 5px 0">路径搜索</div>
  3695. </div>
  3696. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  3697. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  3698. <div class="checkDiv" v-else>
  3699. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3700. </div>
  3701. </div>
  3702. </div>
  3703. <div class="tool">
  3704. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  3705. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  3706. <div style="margin: 5px 0">深度学习</div>
  3707. </div>
  3708. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  3709. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  3710. <div class="checkDiv" v-else>
  3711. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3712. </div>
  3713. </div>
  3714. </div>
  3715. <div class="tool">
  3716. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  3717. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  3718. <div style="margin: 5px 0">全历史</div>
  3719. </div>
  3720. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  3721. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  3722. <div class="checkDiv" v-else>
  3723. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3724. </div>
  3725. </div>
  3726. </div>
  3727. </div>
  3728. <div class="toolSort" v-if="itemTool.toolType == 4">
  3729. <div class="tool">
  3730. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  3731. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  3732. <div style="margin: 5px 0">课程设计</div>
  3733. </div>
  3734. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  3735. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  3736. <div class="checkDiv" v-else>
  3737. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3738. </div>
  3739. </div>
  3740. </div>
  3741. <div class="tool">
  3742. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  3743. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  3744. <div style="margin: 5px 0">目标管理</div>
  3745. </div>
  3746. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  3747. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  3748. <div class="checkDiv" v-else>
  3749. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3750. </div>
  3751. </div>
  3752. </div> -->
  3753. <!-- <div class="tool">
  3754. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  3755. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  3756. <div style="margin: 5px 0">汉字宫</div>
  3757. </div>
  3758. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  3759. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  3760. <div class="checkDiv" v-else>
  3761. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3762. </div>
  3763. </div>
  3764. </div> -->
  3765. </div>
  3766. </div>
  3767. <!-- v-show="!itemTool.isFold3" -->
  3768. <div class="op_tool_box"
  3769. v-loading="taskDetailLoading3.indexOf('task-' + itemTaskIndex + toolIndex) !== -1" element-loading-text="小可正在努力生成中,请稍等...">
  3770. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述"
  3771. class="binfo_input" style="
  3772. margin: 0 0 20px 0;
  3773. width: 100% !important;
  3774. " v-model="itemTool.toolDetail"></textarea>
  3775. <div class="op_box">
  3776. <div class="op_remark">*可以将需要优化的建议添加在工具描述后,点击“智能优化”,自动进行修改</div>
  3777. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  3778. <div class="r_pub_button_op"
  3779. @contextmenu.prevent="openAiDialog(1, 'aiDetail3', itemTool, itemTaskIndex, toolIndex)"
  3780. @click="openAiDialog(2, 'aiDetail3', itemTool.toolDetail, itemTaskIndex, toolIndex)">
  3781. 智能优化</div>
  3782.                              
  3783. </el-tooltip>
  3784. </div>
  3785. </div>
  3786. </div>
  3787. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  3788. <div class="addToolImg">
  3789. <img src="../../../assets/icon/add.png" alt />
  3790. </div>
  3791. <div>添加工具</div>
  3792. </div> -->
  3793. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="
  3794. margin: 0 auto;
  3795. padding: 0 30px;
  3796. height: 45px;
  3797. ">
  3798. 添加工具
  3799. </button>
  3800. </div>
  3801. </div>
  3802. <div v-else-if="
  3803. unitJson[unitIndex].easy == 2 ||
  3804. unitJson[unitIndex].easy == 4
  3805. " class="toolChoose" style="padding: 0 0 40px">
  3806. <div class="tools">
  3807. <div class="leftTools" style="width: 100%" v-for="(
  3808. itemTool, toolIndex
  3809. ) in itemTask.toolChoose" :key="toolIndex">
  3810. <div>
  3811. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input" style="
  3812. margin: 0 0 20px 0;
  3813. width: 100% !important;
  3814. " v-model="itemTool.toolDetail"></textarea>
  3815. </div>
  3816. <div style="
  3817. display: flex;
  3818. flex-direction: row;
  3819. align-items: baseline;
  3820. flex-wrap: nowrap;
  3821. justify-content: flex-start;
  3822. position: relative;
  3823. ">
  3824. <div style="margin-right: 20px; font-weight: bold"
  3825. :id="'gj' + itemTaskIndex + '' + toolIndex">
  3826. 工具 {{ toolIndex + 1 }} :
  3827. </div>
  3828. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  3829. v-if="itemTask.toolChoose.length > 1" style="right: 0"></div>
  3830. </div>
  3831. <div style="min-height: 163px">
  3832. <div class="toolSort">
  3833. <div class="tool">
  3834. <div class="whiteBIcon" @click="
  3835. openTools(itemTaskIndex, 1, toolIndex)
  3836. ">
  3837. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  3838. <div style="margin: 5px 0">电子白板</div>
  3839. </div>
  3840. <div class="check" @click="
  3841. addTools(1, itemTaskIndex, toolIndex)
  3842. ">
  3843. <img src="../../../assets/icon/checkNo.png" alt
  3844. v-if="itemTool.tool.indexOf(1) == -1" />
  3845. <div class="checkDiv" v-else>
  3846. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3847. </div>
  3848. </div>
  3849. </div>
  3850. <div class="tool">
  3851. <div class="whiteBIcon" @click="
  3852. openTools(itemTaskIndex, 52, toolIndex)
  3853. ">
  3854. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  3855. <div style="margin: 5px 0">文档</div>
  3856. </div>
  3857. <div class="check" @click="
  3858. addTools(52, itemTaskIndex, toolIndex)
  3859. ">
  3860. <img src="../../../assets/icon/checkNo.png" alt
  3861. v-if="itemTool.tool.indexOf(52) == -1" />
  3862. <div class="checkDiv" v-else>
  3863. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3864. </div>
  3865. </div>
  3866. </div>
  3867. <div class="tool">
  3868. <div class="whiteBIcon" @click="
  3869. openTools(itemTaskIndex, 3, toolIndex)
  3870. ">
  3871. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  3872. <div style="margin: 5px 0">思维导图</div>
  3873. </div>
  3874. <div class="check" @click="
  3875. addTools(3, itemTaskIndex, toolIndex)
  3876. ">
  3877. <img src="../../../assets/icon/checkNo.png" alt
  3878. v-if="itemTool.tool.indexOf(3) == -1" />
  3879. <div class="checkDiv" v-else>
  3880. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3881. </div>
  3882. </div>
  3883. </div>
  3884. <div class="tool">
  3885. <div class="whiteBIcon" @click="
  3886. openTools(itemTaskIndex, 4, toolIndex)
  3887. ">
  3888. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3889. <div style="margin: 5px 0">问卷调查</div>
  3890. </div>
  3891. <div class="check" @click="
  3892. addTools(4, itemTaskIndex, toolIndex)
  3893. ">
  3894. <img src="../../../assets/icon/checkNo.png" alt
  3895. v-if="itemTool.tool.indexOf(4) == -1" />
  3896. <div class="checkDiv" v-else>
  3897. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3898. </div>
  3899. </div>
  3900. </div>
  3901. <div class="tool">
  3902. <div class="whiteBIcon" @click="
  3903. openTools(itemTaskIndex, 45, toolIndex)
  3904. ">
  3905. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  3906. <div style="margin: 5px 0">选择题</div>
  3907. </div>
  3908. <div class="check" @click="
  3909. addTools(45, itemTaskIndex, toolIndex)
  3910. ">
  3911. <img src="../../../assets/icon/checkNo.png" alt
  3912. v-if="itemTool.tool.indexOf(45) == -1" />
  3913. <div class="checkDiv" v-else>
  3914. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3915. </div>
  3916. </div>
  3917. </div>
  3918. <div class="tool">
  3919. <div class="whiteBIcon" @click="
  3920. openTools(itemTaskIndex, 15, toolIndex)
  3921. ">
  3922. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3923. <div style="margin: 5px 0">问答</div>
  3924. </div>
  3925. <div class="check" @click="
  3926. addTools(15, itemTaskIndex, toolIndex)
  3927. ">
  3928. <img src="../../../assets/icon/checkNo.png" alt
  3929. v-if="itemTool.tool.indexOf(15) == -1" />
  3930. <div class="checkDiv" v-else>
  3931. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3932. </div>
  3933. </div>
  3934. </div>
  3935. <div class="tool">
  3936. <div class="whiteBIcon" @click="
  3937. addTools(16, itemTaskIndex, toolIndex)
  3938. ">
  3939. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  3940. <div style="margin: 5px 0">作业提交</div>
  3941. </div>
  3942. <div class="check" @click="
  3943. addTools(16, itemTaskIndex, toolIndex)
  3944. ">
  3945. <img src="../../../assets/icon/checkNo.png" alt
  3946. v-if="itemTool.tool.indexOf(16) == -1" />
  3947. <div class="checkDiv" v-else>
  3948. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3949. </div>
  3950. </div>
  3951. </div>
  3952. <div class="tool">
  3953. <div class="whiteBIcon" @click="
  3954. openTools(itemTaskIndex, 50, toolIndex)
  3955. ">
  3956. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3957. <div style="margin: 5px 0">批量上传</div>
  3958. </div>
  3959. <div class="check" @click="
  3960. addTools(50, itemTaskIndex, toolIndex)
  3961. ">
  3962. <img src="../../../assets/icon/checkNo.png" alt
  3963. v-if="itemTool.tool.indexOf(50) == -1" />
  3964. <div class="checkDiv" v-else>
  3965. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3966. </div>
  3967. </div>
  3968. </div>
  3969. <div class="tool">
  3970. <div class="whiteBIcon" @click="
  3971. openTools(itemTaskIndex, 41, toolIndex)
  3972. ">
  3973. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  3974. <div style="margin: 5px 0">选择匹配</div>
  3975. </div>
  3976. <div class="check" @click="
  3977. addTools(41, itemTaskIndex, toolIndex)
  3978. ">
  3979. <img src="../../../assets/icon/checkNo.png" alt
  3980. v-if="itemTool.tool.indexOf(41) == -1" />
  3981. <div class="checkDiv" v-else>
  3982. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3983. </div>
  3984. </div>
  3985. </div>
  3986. <div class="tool">
  3987. <div class="whiteBIcon" @click="
  3988. openTools(itemTaskIndex, 47, toolIndex)
  3989. ">
  3990. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  3991. <div style="margin: 5px 0">排序</div>
  3992. </div>
  3993. <div class="check" @click="
  3994. addTools(47, itemTaskIndex, toolIndex)
  3995. ">
  3996. <img src="../../../assets/icon/checkNo.png" alt
  3997. v-if="itemTool.tool.indexOf(47) == -1" />
  3998. <div class="checkDiv" v-else>
  3999. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4000. </div>
  4001. </div>
  4002. </div>
  4003. <div class="tool">
  4004. <div class="whiteBIcon" @click="
  4005. openTools(itemTaskIndex, 48, toolIndex)
  4006. ">
  4007. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  4008. <div style="margin: 5px 0">表格</div>
  4009. </div>
  4010. <div class="check" @click="
  4011. addTools(48, itemTaskIndex, toolIndex)
  4012. ">
  4013. <img src="../../../assets/icon/checkNo.png" alt
  4014. v-if="itemTool.tool.indexOf(48) == -1" />
  4015. <div class="checkDiv" v-else>
  4016. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4017. </div>
  4018. </div>
  4019. </div>
  4020. </div>
  4021. </div>
  4022. </div>
  4023. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  4024. <div class="addToolImg">
  4025. <img src="../../../assets/icon/add.png" alt />
  4026. </div>
  4027. <div>添加工具</div>
  4028. </div> -->
  4029. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)"
  4030. style="margin: 35px auto 20px">
  4031. 添加工具
  4032. </button>
  4033. </div>
  4034. </div>
  4035. <div v-else-if="
  4036. unitJson[unitIndex].easy == 1 ||
  4037. (unitJson[unitIndex].easy == 5 &&
  4038. itemTask.taskType == 2)
  4039. " class="toolChoose" style="padding: 0 0 40px">
  4040. <div class="tools">
  4041. <div class="leftTools" style="width: 100%; padding: 0 0 15px 0" v-for="(
  4042. itemTool, toolIndex
  4043. ) in itemTask.toolChoose" :key="toolIndex">
  4044. <div style="min-height: 163px">
  4045. <div class="toolSort">
  4046. <div class="tool">
  4047. <div class="whiteBIcon" @click="
  4048. openTools(itemTaskIndex, 50, toolIndex)
  4049. ">
  4050. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  4051. <div style="margin: 5px 0">批量上传</div>
  4052. </div>
  4053. <div class="check" @click="
  4054. addTools(50, itemTaskIndex, toolIndex)
  4055. ">
  4056. <img src="../../../assets/icon/checkNo.png" alt
  4057. v-if="itemTool.tool.indexOf(50) == -1" />
  4058. <div class="checkDiv" v-else>
  4059. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4060. </div>
  4061. </div>
  4062. </div>
  4063. </div>
  4064. </div>
  4065. </div>
  4066. </div>
  4067. </div>
  4068. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  4069. v-loading="taskDetailLoading4.indexOf('task-' + itemTaskIndex) !== -1" element-loading-text="小可正在努力生成中,请稍等...">
  4070. <div class="elist_title">
  4071. <div style="
  4072. display: flex;
  4073. flex-direction: row;
  4074. align-items: center;
  4075. margin: 20px 0;
  4076. ">
  4077. <div class="lineTitle clineTitle">评价设置</div>
  4078. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  4079. <div class="r_pub_button_op" style="margin-left:auto;"
  4080. @contextmenu.prevent="openAiDialog(1, 'aiDetail4', itemTask.eList, itemTaskIndex)"
  4081. @click="openAiDialog(2, 'aiDetail4', itemTask.eList, itemTaskIndex)">智能优化</div>
  4082. </el-tooltip>
  4083. <!-- <div class="line" style="width: 90%"></div> -->
  4084. </div>
  4085. </div>
  4086. <div class="mbCss">
  4087. <div class="pjCss" :style="{
  4088. width: itemTask.isEvaFold
  4089. ? 'calc(100% - 55%)'
  4090. : 'calc(100% - 120px)',
  4091. }">
  4092. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  4093. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  4094. <span>评价维度:</span>
  4095. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价维度'" placement="top" popper-class="text_tooltip2"> -->
  4096. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价维度" />
  4097. <!-- </el-tooltip> -->
  4098. <!-- <span>评星等级:</span>
  4099. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  4100. disabled></el-rate> -->
  4101. <div class="remove" @click="
  4102. deletEList(
  4103. unitIndex,
  4104. itemTaskIndex,
  4105. eIndex
  4106. )
  4107. "></div>
  4108. <div class="elist_inptu_text">
  4109. <span>维度描述:</span>
  4110. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写维度描述'" placement="top" popper-class="text_tooltip2"> -->
  4111. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写维度描述" />
  4112. <!-- </el-tooltip> -->
  4113. </div>
  4114. <div class="elist_inptu_text" v-if="evalua">
  4115. <span>目标:</span>
  4116. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写维度描述" /> -->
  4117. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  4118. @change="forceUpdate()">
  4119. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  4120. :value="e.name">
  4121. </el-option>
  4122. </el-select> -->
  4123. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  4124. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  4125. </div>
  4126. </div>
  4127. </div>
  4128. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  4129. style="margin: 35px 35px 0 0">
  4130. <div class="addToolImg">
  4131. <img src="../../../assets/icon/add.png" alt />
  4132. </div>
  4133. <div>添加</div>
  4134. </div> -->
  4135. <div class="eva_btn_box">
  4136. <div class="eva_btn_left_box">
  4137. <button class="c_pub_button_add pub_btn_eval_img"
  4138. @click="addEList(unitIndex, itemTaskIndex)">
  4139. 添加
  4140. </button>
  4141. <button class="c_pub_button_add pub_btn_eval_source_img"
  4142. @click="openEList(unitIndex, itemTaskIndex)">
  4143. 资源
  4144. </button>
  4145. </div>
  4146. <button class="c_pub_button_add" @click="addCET(unitIndex, itemTaskIndex)"
  4147. v-if="itemTask.eList && itemTask.eList.length">
  4148. 添加资源模板
  4149. </button>
  4150. </div>
  4151. </div>
  4152. <div v-if="evalua" style="
  4153. border: 1px solid #e5e5e5;
  4154. box-shadow: 3px 1px 15px 3px #e0e0e0;
  4155. " :style="{
  4156. width: itemTask.isEvaFold ? '55%' : '116px',
  4157. }" class="evaCss">
  4158. <!-- <div class="e_add_top">
  4159. <div class="e_add_title">
  4160. <span>当前使用目标管理</span>
  4161. <span>{{ eTitle }}</span>
  4162. <img src="../../../assets/line.png" class="cru_line" style="
  4163. width: 125px;
  4164. height: 20px;
  4165. bottom: -10px;
  4166. left: 155px;
  4167. " />
  4168. </div>
  4169. </div> -->
  4170. <div class="e_add_content" style="width: 100%">
  4171. <div class="e_add_list_pbox" style="width: 100%">
  4172. <div class="e_add_list_pbox_title">
  4173. <span class="type_title" v-if="itemTask.isEvaFold">切换模式</span>
  4174. <div class="type_content" v-if="itemTask.isEvaFold">
  4175. <span :class="{ active: typeMode == 1 }"
  4176. @click="OtherMb(1, itemTaskIndex)">目标树</span>
  4177. <span :class="{ active: typeMode == 2 }"
  4178. @click="OtherMb(2, itemTaskIndex)">目标罗盘</span>
  4179. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  4180. </div>
  4181. <div v-if="itemTask.isEvaFold" class="show_taskD show" style="margin: 0 0 0 auto"
  4182. @click="foldEva(itemTaskIndex)">
  4183. <img src="../../../assets/icon/new/icon-slide.png" />收起目标
  4184. </div>
  4185. <div v-else style="margin: 0 0 0 auto" class="show_taskD"
  4186. @click="foldEva(itemTaskIndex)">
  4187. <img src="../../../assets/icon/new/icon-slide.png" />展开目标
  4188. </div>
  4189. </div>
  4190. <div class="e_add_list_pbox_content" v-if="itemTask.isEvaFold"
  4191. style="min-height: 200px">
  4192. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  4193. " v-if="typeMode == 1"></Mind>
  4194. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  4195. </Sunburst>
  4196. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  4197. v-if="typeMode == 3"></SeeBoard>
  4198. </div>
  4199. </div>
  4200. </div>
  4201. </div>
  4202. </div>
  4203. </div>
  4204. <div class="funBlock" style="padding: 0">
  4205. <div class="fold" @click="fold(itemTaskIndex, $event)">
  4206. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }"></div>
  4207. <div>
  4208. {{
  4209. itemTask.isFold === 1 ? "展开任务" : "收起任务"
  4210. }}
  4211. </div>
  4212. </div>
  4213. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  4214. <div>展开</div>
  4215. <div class="arrow">
  4216. <img src="../../../assets/icon/expand.png" alt />
  4217. </div>
  4218. </div> -->
  4219. </div>
  4220. </div>
  4221. </div>
  4222. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  4223. <!-- <div>
  4224. <img src="../../../../assets/icon/new/addStage.png" alt />
  4225. <span>添加任务</span>
  4226. </div> -->
  4227. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  4228. 添加任务
  4229. </button>
  4230. </div>
  4231. </div>
  4232. <div class="info_btnBox3">
  4233. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  4234. goTo(
  4235. '/course?userid=' +
  4236. userid +
  4237. '&oid=' +
  4238. oid +
  4239. '&org=' +
  4240. org +
  4241. '&role=' +
  4242. role
  4243. )
  4244. ">
  4245. 返回课程
  4246. </button>
  4247. <button class="c_pub_button_return pub_btn_last_img"
  4248. v-if="steps > 1 && steps != 5 && istemplate != 1" @click="lastSteps" style="background: #dbdbdb">
  4249. {{ steps == 4 ? "返回课程" : "上一步" }}
  4250. </button>
  4251. <button class="c_pub_button_confirm" v-if="steps < 4 && istemplate != 1" @click="nextSteps" :class="{
  4252. pub_btn_next_img: steps != 3,
  4253. pub_btn_finish_img: steps == 3,
  4254. }">
  4255. {{ steps == 3 ? "确认上传" : "下一步" }}
  4256. </button>
  4257. <button class="c_pub_button_confirm" v-if="istemplate == 1" @click="openSaveTips">{{ templateid ?
  4258. '修改模板' : '保存模板'}}</button>
  4259. </div>
  4260. </div>
  4261. </div>
  4262. </div>
  4263. </div>
  4264. <div style="
  4265. width: calc(100% - 20px);
  4266. background: rgb(255, 255, 255);
  4267. border-radius: 10px;
  4268. " v-if="steps == 4">
  4269. <div class="basic_box_success">
  4270. <div class="right_img">
  4271. <img src="../../../assets/icon/right.png" alt />
  4272. </div>
  4273. <div style="font-weight: bold">成功</div>
  4274. <!-- <div>您的课程编号</div>
  4275. <div class="number">{{ number }}</div>-->
  4276. <!-- <div class="success_button">
  4277. <div class="look_course" @click="isNoFinsh">
  4278. 邀请老师协同编辑
  4279. </div>
  4280. <div class="attend_others" @click="goCourse">预览课程</div>
  4281. </div> -->
  4282. </div>
  4283. </div>
  4284. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  4285. @mouseleave="btnDisplay(false)" v-if="false">
  4286. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1 && isBtnDisplay" @click="
  4287. goTo(
  4288. '/course?userid=' +
  4289. userid +
  4290. '&oid=' +
  4291. oid +
  4292. '&org=' +
  4293. org +
  4294. '&role=' +
  4295. role
  4296. )
  4297. ">
  4298. 返回课程
  4299. </button>
  4300. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5 && isBtnDisplay"
  4301. @click="lastSteps">
  4302. {{ steps == 4 ? "返回课程" : "上一步" }}
  4303. </button>
  4304. <button class="c_pub_button_confirm" v-if="steps < 4 && isBtnDisplay" @click="nextSteps" :class="{
  4305. pub_btn_next_img: steps != 3,
  4306. pub_btn_finish_img: steps == 3,
  4307. }">
  4308. {{ steps == 3 ? "确认上传" : "下一步" }}
  4309. </button>
  4310. </div>
  4311. </div>
  4312. </div>
  4313. <div class="leftBar" v-if="istemplate == 1">
  4314. <aiTips ttitle="基础资料" title="课程描述优化" :detail="aiJson.aiDetail" pan="aiDetail" @setAiJson="setAiJson" />
  4315. <aiTips ttitle="基础资料" title="生成大纲按钮" :detail="aiJson.aiOutline" pan="aiOutline" @setAiJson="setAiJson" />
  4316. <aiTips ttitle="课程大纲" title="大纲描述优化" :detail="aiJson.aiDetail1" pan="aiDetail1" @setAiJson="setAiJson" />
  4317. <!-- <aiTips ttitle="课程大纲" title="生成教案按钮" :detail="aiJson.aiTeacher" pan="aiTeacher" @setAiJson="setAiJson" /> -->
  4318. <!-- <aiTips ttitle="生成教案" title="教案描述优化" :detail="aiJson.teacherDetail" pan="teacherDetail"
  4319. @setAiJson="setAiJson" /> -->
  4320. <aiTips ttitle="生成教案" title="教案描述优化" :detail="aiJson.teacherDetail2" pan="teacherDetail2"
  4321. @setAiJson="setAiJson" />
  4322. <aiTips ttitle="生成教案" title="生成任务按钮" :detail="aiJson.aiTask" pan="aiTask" @setAiJson="setAiJson" />
  4323. <aiTips ttitle="任务详情" title="任务描述优化" :detail="aiJson.aiDetail2" pan="aiDetail2" @setAiJson="setAiJson" />
  4324. <aiTips ttitle="任务详情" title="工具描述优化" :detail="aiJson.aiDetail3" pan="aiDetail3" @setAiJson="setAiJson" />
  4325. <aiTips ttitle="任务详情" title="任务评价优化" :detail="aiJson.aiDetail4" pan="aiDetail4" @setAiJson="setAiJson" />
  4326. </div>
  4327. </div>
  4328. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  4329. class="dialog_diy2 customWidth">
  4330. <div>请复制该链接邀请协同编辑</div>
  4331. <div>http://www.boomyon.com/index-zhang.com</div>
  4332. <span slot="footer" class="dialog-footer">
  4333. <el-button type="primary">复制链接分享</el-button>
  4334. <el-button @click="dialogVisible = false">取消</el-button>
  4335. </span>
  4336. </el-dialog>
  4337. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true"
  4338. width="25%" :before-close="handleClose" class="dialog_diy2 customWidth">
  4339. <el-form>
  4340. <el-form-item label="文档标题">
  4341. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  4342. </el-form-item>
  4343. <div>文档简介</div>
  4344. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  4345. </el-form>
  4346. <span slot="footer" class="dialog-footer">
  4347. <el-button @click="dialogVisible1 = false">取 消</el-button>
  4348. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  4349. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  4350. </span>
  4351. </el-dialog>
  4352. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  4353. :before-close="handleClose" class="dialog_diy">
  4354. <el-form>
  4355. <el-form-item label="文档标题">
  4356. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  4357. </el-form-item>
  4358. <div>文档内容</div>
  4359. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  4360. </el-form>
  4361. <span slot="footer" class="dialog-footer">
  4362. <el-button @click="clearChoose">取 消</el-button>
  4363. <el-button type="primary" @click="wordNext()">确定</el-button>
  4364. </span>
  4365. </el-dialog>
  4366. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  4367. :before-close="handleClose" class="dialog_diy">
  4368. <el-form>
  4369. <el-form-item label="文本标题">
  4370. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  4371. placeholder="请输入文本标题..."></el-input>
  4372. </el-form-item>
  4373. <!-- <div>富文本内容</div> -->
  4374. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  4375. </el-form>
  4376. <span slot="footer" class="dialog-footer">
  4377. <el-button @click="clearAttText">取 消</el-button>
  4378. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  4379. </span>
  4380. </el-dialog>
  4381. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  4382. :before-close="handleClose" class="dialog_diy lineCss">
  4383. <el-form>
  4384. <el-form-item label="标题" :label-width="formLabelWidth">
  4385. <span>
  4386. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  4387. </span>
  4388. </el-form-item>
  4389. <el-form-item label="链接" :label-width="formLabelWidth">
  4390. <span>
  4391. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  4392. </span>
  4393. </el-form-item>
  4394. </el-form>
  4395. <span slot="footer" class="dialog-footer">
  4396. <el-button @click="clearLine">取 消</el-button>
  4397. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  4398. </span>
  4399. </el-dialog>
  4400. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  4401. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  4402. <div>
  4403. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  4404. </div>
  4405. <span slot="footer" class="dialog-footer">
  4406. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  4407. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  4408. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  4409. </span>
  4410. </el-dialog>
  4411. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  4412. :before-close="handleClose" class="addNewPP customWidth">
  4413. <div class="people">
  4414. <div class="people_top">
  4415. <div class="people_nav">选择成员</div>
  4416. <div class="people_top_right">
  4417. <div class="people_search">
  4418. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  4419. <div class="search_img" @click="searchStudent">
  4420. <img src="../../../assets/icon/search.png" alt />
  4421. </div>
  4422. </div>
  4423. </div>
  4424. </div>
  4425. <el-checkbox-group v-model="checkboxList" class="people_name">
  4426. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  4427. "暂无学生可选" }}</el-checkbox>
  4428. </el-checkbox-group>
  4429. </div>
  4430. <span slot="footer" class="dialog-footer">
  4431. <el-button @click="dialogVisible3 = false">取 消</el-button>
  4432. <el-button type="primary" @click="isAddPP">确定</el-button>
  4433. </span>
  4434. </el-dialog>
  4435. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  4436. :before-close="handleClose" class="addNewPP2">
  4437. <div class="check_classBox">
  4438. <div class="check_class_right">
  4439. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="(gradeId = ''), getClass()">
  4440. 全部
  4441. </div>
  4442. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  4443. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="(gradeId = item.id), getClass()">
  4444. {{ item.name }}
  4445. </div>
  4446. </el-tooltip>
  4447. </div>
  4448. <div class="check_class_left">
  4449. <div class="check_class_all_box">
  4450. <div class="check_class_left_title">选择班级</div>
  4451. <div style="display: flex; align-items: center; margin-left: auto">
  4452. <el-checkbox v-model="checkAll" @change="handleCheckAllChange" class="all_check">全选</el-checkbox>
  4453. </div>
  4454. </div>
  4455. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  4456. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  4457. </div> -->
  4458. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange"
  4459. v-if="grade2.length">
  4460. <div v-for="item in grade2" :key="item.id" class="class_item">
  4461. <el-checkbox :label="item.id">
  4462. {{ item.name }}
  4463. </el-checkbox>
  4464. </div>
  4465. </el-checkbox-group>
  4466. <div v-if="!grade2.length">暂无数据</div>
  4467. </div>
  4468. </div>
  4469. <span slot="footer" class="dialog-footer">
  4470. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  4471. <el-button type="primary" @click="isAddClass">确定</el-button>
  4472. </span>
  4473. </el-dialog>
  4474. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  4475. :before-close="handleClose" class="addNewPP customWidth">
  4476. <div style="display: flex;justify-content: space-between;">
  4477. <div style="width: 100px;overflow: auto;overflow-x: hidden; height: 350px;flex-shrink:0;padding-right: 10px;">
  4478. <div class="CollaborativeCss" :class="{CollaborativeCss2:collid == ''}" @click="getTeacher('')">
  4479. 全部
  4480. </div>
  4481. <div class="CollaborativeCss" :class="{CollaborativeCss2:i.id == collid}" @click="getTeacher(i.id)"
  4482. v-for="(i) in CollaborativeTeaList" :key="i.id">
  4483. <el-tooltip placement="top" :content="i.name">
  4484. <span>{{i.name}}</span>
  4485. </el-tooltip>
  4486. </div>
  4487. <div class="CollaborativeCss" :class="{CollaborativeCss2:collid == '1xpz'}" @click="getTeacherCopy()">
  4488. 其他
  4489. </div>
  4490. </div>
  4491. <div style="width: calc(100% - 100px);" v-loading="CollLoading">
  4492. <div class="people">
  4493. <div class="people_top">
  4494. <div class="people_top_right">
  4495. <div class="people_search">
  4496. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher(collid)"></el-input>
  4497. <div class="search_img" @click="getTeacher(collid)">
  4498. <img src="../../../assets/icon/search.png" alt />
  4499. </div>
  4500. </div>
  4501. </div>
  4502. <div class="people_nav" style="display: flex; align-items: center">
  4503. <div class="check_class_left_title">选择成员</div>
  4504. <div style="display: flex; align-items: center; margin-left: auto">
  4505. <el-checkbox v-model="checkAll2" @change="handleCheckAllChange2" class="all_check">全选</el-checkbox>
  4506. </div>
  4507. </div>
  4508. </div>
  4509. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length"
  4510. @change="InviteChange2">
  4511. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  4512. <div class="t_j_box">
  4513. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  4514. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  4515. </el-tooltip>
  4516. <el-tooltip placement="top" :content="item.username.split('@')[0]">
  4517. <span>{{ item.username.split('@')[0] }}</span>
  4518. </el-tooltip>
  4519. <el-tooltip placement="top" :content="item.school">
  4520. <span>{{ item.school }}</span>
  4521. </el-tooltip>
  4522. </div>
  4523. </el-checkbox>
  4524. </el-checkbox-group>
  4525. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  4526. </div>
  4527. </div>
  4528. </div>
  4529. <span slot="footer" class="dialog-footer">
  4530. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  4531. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  4532. </span>
  4533. </el-dialog>
  4534. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px" :before-close="(done) => {
  4535. closePan(4);
  4536. }
  4537. " class="dialog_diy fullStyle">
  4538. <div style="height: 100%">
  4539. <div class="a_add_title" style="
  4540. display: flex;
  4541. flex-direction: row;
  4542. align-items: center;
  4543. justify-content: center;
  4544. ">
  4545. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  4546. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  4547. </div>
  4548. <div class="a_addBox" style="height: calc(100% - 50px)">
  4549. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  4550. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  4551. <div class="a_add_checkType">
  4552. <span :class="{
  4553. active:
  4554. askJson.askJson[index1].type == '1' ||
  4555. !askJson.askJson[index1].type,
  4556. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  4557. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  4558. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  4559. </div>
  4560. <div class="a_add_head">
  4561. <div style="
  4562. display: flex;
  4563. align-items: center;
  4564. width: 100%;
  4565. margin-right: 20px;
  4566. ">
  4567. <span style="min-width: fit-content">{{
  4568. index1 + 1 + "、"
  4569. }}</span>
  4570. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  4571. v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目" @change="() => {
  4572. $forceUpdate();
  4573. }
  4574. "></textarea>
  4575. </div>
  4576. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px" v-if="askJson.askCount != 1">
  4577. <div class="chapter_upload_up" @click.stop="askMove(1, index1)"></div>
  4578. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  4579. </div>
  4580. <div class="a_add_head_div">
  4581. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  4582. </el-button>
  4583. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  4584. </div>
  4585. </div>
  4586. <div class="a_add_body">
  4587. <div class="a_add_input" style="flex-direction: column">
  4588. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex" style="
  4589. margin: 20px 10px 0 0;
  4590. display: flex;
  4591. align-items: center;
  4592. position: relative;
  4593. ">
  4594. <div style="margin-right: 10px">选项{{ checkIndex + 1 }}</div>
  4595. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  4596. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项" style="width: 300px"
  4597. @change="() => {
  4598. $forceUpdate();
  4599. }
  4600. "></textarea>
  4601. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px"
  4602. v-if="askJson.askJson[index1].askItem != 1">
  4603. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)"></div>
  4604. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  4605. </div>
  4606. <div class="a_add_body_div">
  4607. <el-button type="primary" size="small"
  4608. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  4609. <el-button type="primary" size="small" @click="
  4610. deletecheckList(askJson.askJson[index1], checkIndex)
  4611. " v-if="askJson.askJson[index1].askItem != 1">删除
  4612. </el-button>
  4613. </div>
  4614. </div>
  4615. </div>
  4616. <!-- <div class="a_add_body_div">
  4617. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  4618. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  4619. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  4620. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  4621. </el-button>
  4622. </div> -->
  4623. </div>
  4624. </div>
  4625. </div>
  4626. </div>
  4627. <span slot="footer" class="dialog-footer">
  4628. <el-button @click="closePan(4)">取 消</el-button>
  4629. <el-button type="primary" @click="addAsk">确 定</el-button>
  4630. </span>
  4631. </el-dialog>
  4632. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px" :before-close="(done) => {
  4633. closePan(45);
  4634. }
  4635. " class="dialog_diy fullStyle">
  4636. <div style="height: 100%">
  4637. <!-- <div class="a_add_title" style="
  4638. display: flex;
  4639. flex-direction: row;
  4640. align-items: center;
  4641. justify-content: center;
  4642. ">
  4643. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  4644. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  4645. </div> -->
  4646. <div class="a_addBox" style="height: 100%">
  4647. <div style="
  4648. font-size: 16px;
  4649. color: #c7c7c7;
  4650. display: flex;
  4651. align-items: center;
  4652. ">
  4653. <!-- 请输入题目内容 -->
  4654. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  4655. v-if="isPasteChoice">
  4656. 智能粘贴
  4657. </button>
  4658. </div>
  4659. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  4660. <div class="a_add_checkType">
  4661. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  4662. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  4663. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  4664. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  4665. </div>
  4666. <div class="a_add_head">
  4667. <div class="timuUpImg">
  4668. <div style="display: flex; align-items: center">
  4669. <span style="min-width: fit-content">{{
  4670. index1 + 1 + "、"
  4671. }}</span>
  4672. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  4673. placeholder="请输入题目">
  4674. </el-input> -->
  4675. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  4676. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目" @change="() => {
  4677. $forceUpdate();
  4678. }
  4679. "></textarea>
  4680. </div>
  4681. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  4682. <div class="chapter_upload_up" @click.stop="testMove(1, index1)"></div>
  4683. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  4684. </div>
  4685. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px">
  4686. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4687. <input type="file" accept="image/*" style="display: none"
  4688. @change="beforeUploadTiMu($event, index1)" />
  4689. </div>
  4690. </div>
  4691. <div class="a_add_head_div">
  4692. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  4693. </el-button>
  4694. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  4695. </div>
  4696. </div>
  4697. <div class="timuImgBox" v-if="
  4698. testJson.testJson[index1].timuList &&
  4699. testJson.testJson[index1].timuList.length
  4700. ">
  4701. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  4702. @click.stop="previewImg(timg.src)">
  4703. <img :src="timg.src" alt="" />
  4704. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  4705. <img src="../../../assets/icon/delete.png" alt="" />
  4706. </div>
  4707. </div>
  4708. </div>
  4709. <div class="a_add_body">
  4710. <div class="a_add_input a_add_input_choice">
  4711. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  4712. @change="() => {
  4713. $forceUpdate();
  4714. }
  4715. ">
  4716. <div class="radioBox">
  4717. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  4718. .testItem" :key="checkIndex" :label="checkIndex">
  4719. <div style="margin-right: 10px">
  4720. 选项{{ checkIndex + 1 }}
  4721. </div>
  4722. <div style="margin-right: 10px; width: 300px" v-if="
  4723. testJson.testJson[index1].checkList[checkIndex] &&
  4724. testJson.testJson[index1].checkList[checkIndex]
  4725. .imgType &&
  4726. testJson.testJson[index1].checkList[checkIndex]
  4727. .imgType == 1
  4728. ">
  4729. <div class="inImg" @click.stop="
  4730. previewImg(
  4731. testJson.testJson[index1].checkList[checkIndex]
  4732. .src
  4733. )
  4734. ">
  4735. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  4736. .src
  4737. " lazy />
  4738. <!-- <img :src="
  4739. testJson.testJson[index1].checkList[checkIndex]
  4740. .src
  4741. " alt="" /> -->
  4742. </div>
  4743. </div>
  4744. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  4745. " placeholder="请输入选项" style="width: 300px; margin-right: 10px" @change="() => {
  4746. $forceUpdate();
  4747. }
  4748. "></textarea>
  4749. <div class="xzUpImg" @click.stop="addImg($event)">
  4750. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4751. <input type="file" accept="image/*" style="display: none"
  4752. @change="beforeUploadTi($event, index1, checkIndex)" />
  4753. </div>
  4754. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4755. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)"></div>
  4756. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  4757. </div>
  4758. <div class="a_add_body_div">
  4759. <el-button type="primary" size="small" @click.stop="
  4760. addTcheckList(testJson.testJson[index1], checkIndex)
  4761. ">添加</el-button>
  4762. <el-button type="primary" size="small" @click.stop="
  4763. deleteTcheckList(
  4764. testJson.testJson[index1],
  4765. checkIndex
  4766. )
  4767. " v-if="testJson.testJson[index1].testItem != 1">删除
  4768. </el-button>
  4769. </div>
  4770. </el-radio>
  4771. </div>
  4772. </el-radio-group>
  4773. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  4774. v-if="testJson.testJson[index1].type == '2'" @change="() => {
  4775. $forceUpdate();
  4776. }
  4777. ">
  4778. <div class="radioBox">
  4779. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  4780. .testItem" :key="checkIndex1" :label="checkIndex1">
  4781. <div style="margin-right: 10px">
  4782. 选项{{ checkIndex1 + 1 }}
  4783. </div>
  4784. <div style="margin-right: 10px; width: 300px" v-if="
  4785. testJson.testJson[index1].checkList[checkIndex1] &&
  4786. testJson.testJson[index1].checkList[checkIndex1]
  4787. .imgType &&
  4788. testJson.testJson[index1].checkList[checkIndex1]
  4789. .imgType == 1
  4790. ">
  4791. <div class="inImg" @click.stop="
  4792. previewImg(
  4793. testJson.testJson[index1].checkList[checkIndex1]
  4794. .src
  4795. )
  4796. ">
  4797. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  4798. .src
  4799. " lazy />
  4800. <!-- <img :src="
  4801. testJson.testJson[index1].checkList[checkIndex1]
  4802. .src
  4803. " alt="" /> -->
  4804. </div>
  4805. </div>
  4806. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  4807. " placeholder="请输入选项" style="width: 300px; margin-right: 10px" @change="() => {
  4808. $forceUpdate();
  4809. }
  4810. "></textarea>
  4811. <div class="xzUpImg" @click.stop="addImg($event)">
  4812. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4813. <input type="file" accept="image/*" style="display: none"
  4814. @change="beforeUploadTi($event, index1, checkIndex1)" />
  4815. </div>
  4816. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4817. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)"></div>
  4818. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  4819. </div>
  4820. <div class="a_add_body_div">
  4821. <el-button type="primary" size="small" @click.stop="
  4822. addTcheckList(
  4823. testJson.testJson[index1],
  4824. checkIndex1
  4825. )
  4826. ">添加</el-button>
  4827. <el-button type="primary" size="small" @click.stop="
  4828. deleteTcheckList(
  4829. testJson.testJson[index1],
  4830. checkIndex1
  4831. )
  4832. " v-if="testJson.testJson[index1].testItem != 1">删除
  4833. </el-button>
  4834. </div>
  4835. </el-checkbox>
  4836. </div>
  4837. </el-checkbox-group>
  4838. </div>
  4839. <!-- <div class="a_add_body_div">
  4840. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  4841. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  4842. v-if="testJson.testJson[index1].testItem != 1">删除
  4843. </el-button>
  4844. </div> -->
  4845. </div>
  4846. </div>
  4847. </div>
  4848. </div>
  4849. <span slot="footer" class="dialog-footer">
  4850. <el-button @click="closePan(45)">取 消</el-button>
  4851. <el-button type="primary" @click="addTest">确 定</el-button>
  4852. </span>
  4853. </el-dialog>
  4854. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  4855. :before-close="handleClose" class="dialog_diy addToolsDia">
  4856. <div class="toolChoose">
  4857. <div class="tools">
  4858. <div class="leftTools" style="width: 100%; padding: 0 0 15px 0"
  4859. v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  4860. <div style="
  4861. display: flex;
  4862. flex-direction: row;
  4863. align-items: baseline;
  4864. flex-wrap: nowrap;
  4865. justify-content: flex-start;
  4866. position: relative;
  4867. ">
  4868. <div class="chooseWho">
  4869. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  4870. 互动类
  4871. </div>
  4872. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  4873. 思维类
  4874. </div>
  4875. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4876. 评价类
  4877. </div>
  4878. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4879. 其他
  4880. </div>
  4881. </div>
  4882. </div>
  4883. <div style="min-height: 163px">
  4884. <div class="toolSort" v-if="chapToolsType == 0">
  4885. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }" @click="chapAddTools(8)">
  4886. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  4887. <img src="../../../assets/icon/secondToolList/library.png" alt />
  4888. <div style="margin: 5px 0">素材库</div>
  4889. </div>
  4890. <div class="noCTool">
  4891. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4892. </div>
  4893. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1">
  4894. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4895. </div>
  4896. <!-- <div class="check" @click="chapAddTools(8)">
  4897. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  4898. <div class="checkDiv" v-else>
  4899. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4900. </div>
  4901. </div> -->
  4902. </div>
  4903. </div>
  4904. <div class="toolSort" v-if="chapToolsType == 1">
  4905. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }" @click="chapAddTools(7)">
  4906. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  4907. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  4908. <div style="margin: 5px 0">思维网格</div>
  4909. </div>
  4910. <div class="noCTool">
  4911. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4912. </div>
  4913. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1">
  4914. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4915. </div>
  4916. <!-- <div class="check" @click="chapAddTools(7)">
  4917. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  4918. <div class="checkDiv" v-else>
  4919. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4920. </div>
  4921. </div> -->
  4922. </div>
  4923. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }" @click="chapAddTools(1)">
  4924. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  4925. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  4926. <div style="margin: 5px 0">电子白板</div>
  4927. </div>
  4928. <div class="noCTool">
  4929. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4930. </div>
  4931. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1">
  4932. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4933. </div>
  4934. <!-- <div class="check" @click="chapAddTools(1)">
  4935. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  4936. <div class="checkDiv" v-else>
  4937. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4938. </div>
  4939. </div> -->
  4940. </div>
  4941. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }" @click="chapAddTools(2)">
  4942. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  4943. <img src="../../../assets/icon/secondToolList/note.png" alt />
  4944. <div style="margin: 5px 0">便签</div>
  4945. </div>
  4946. <div class="noCTool">
  4947. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4948. </div>
  4949. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1">
  4950. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4951. </div>
  4952. <!-- <div class="check" @click="chapAddTools(2)">
  4953. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  4954. <div class="checkDiv" v-else>
  4955. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4956. </div>
  4957. </div> -->
  4958. </div>
  4959. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }" @click="chapAddTools(6)">
  4960. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  4961. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  4962. <div style="margin: 5px 0">协同文档</div>
  4963. </div>
  4964. <div class="noCTool">
  4965. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4966. </div>
  4967. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1">
  4968. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4969. </div>
  4970. <!-- <div class="check" @click="chapAddTools(6)">
  4971. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  4972. <div class="checkDiv" v-else>
  4973. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4974. </div>
  4975. </div> -->
  4976. </div>
  4977. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }" @click="chapAddTools(3)">
  4978. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  4979. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  4980. <div style="margin: 5px 0">思维导图</div>
  4981. </div>
  4982. <div class="noCTool">
  4983. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4984. </div>
  4985. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1">
  4986. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4987. </div>
  4988. <!-- <div class="check" @click="chapAddTools(3)">
  4989. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  4990. <div class="checkDiv" v-else>
  4991. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4992. </div>
  4993. </div> -->
  4994. </div>
  4995. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }"
  4996. @click="chapAddTools(31)">
  4997. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  4998. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  4999. <div style="margin: 5px 0">数学画板</div>
  5000. </div>
  5001. <div class="noCTool">
  5002. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  5003. </div>
  5004. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1">
  5005. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  5006. </div>
  5007. <!-- <div class="check" @click="chapAddTools(31)">
  5008. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  5009. <div class="checkDiv" v-else>
  5010. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  5011. </div>
  5012. </div> -->
  5013. </div>
  5014. </div>
  5015. <div class="toolSort" v-if="chapToolsType == 2">
  5016. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }" @click="chapAddTools(5)">
  5017. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  5018. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  5019. <div style="margin: 5px 0">量规评分</div>
  5020. </div>
  5021. <div class="noCTool">
  5022. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  5023. </div>
  5024. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1">
  5025. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  5026. </div>
  5027. <!-- <div class="check" @click="chapAddTools(5)">
  5028. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  5029. <div class="checkDiv" v-else>
  5030. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  5031. </div>
  5032. </div> -->
  5033. </div>
  5034. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }" @click="chapAddTools(4)">
  5035. <div class="whiteBIcon" @click.stop="openTools(chapCount, 4, null)">
  5036. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  5037. <div style="margin: 5px 0">问卷调查</div>
  5038. </div>
  5039. <div class="noCTool">
  5040. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  5041. </div>
  5042. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1">
  5043. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  5044. </div>
  5045. <!-- <div class="check" @click="chapAddTools(4)">
  5046. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  5047. <div class="checkDiv" v-else>
  5048. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  5049. </div>
  5050. </div> -->
  5051. </div>
  5052. </div>
  5053. </div>
  5054. <div>
  5055. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  5056. v-model="itemTools.toolDetail" />
  5057. </div>
  5058. </div>
  5059. </div>
  5060. </div>
  5061. <span slot="footer" class="dialog-footer">
  5062. <el-button @click="dialogVisible4 = false">取 消</el-button>
  5063. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  5064. </span>
  5065. </el-dialog>
  5066. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px" :before-close="(done) => {
  5067. closePan(15);
  5068. }
  5069. " class="dialog_diy">
  5070. <div>
  5071. <div class="a_add_title" style="
  5072. display: flex;
  5073. flex-direction: column;
  5074. align-items: flex-start;
  5075. justify-content: center;
  5076. ">
  5077. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  5078. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  5079. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  5080. style="width: 100% !important; border: 1px solid #dcdfe6" v-model="answerQ"></textarea>
  5081. </div>
  5082. </div>
  5083. <span slot="footer" class="dialog-footer">
  5084. <el-button @click="closePan(15)">取 消</el-button>
  5085. <el-button type="primary" @click="addAnswer">确 定</el-button>
  5086. </span>
  5087. </el-dialog>
  5088. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  5089. :before-close="handleClose" class="dialog_diy">
  5090. <div>
  5091. <div class="a_add_title" style="
  5092. display: flex;
  5093. flex-direction: column;
  5094. align-items: flex-start;
  5095. justify-content: center;
  5096. ">
  5097. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  5098. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  5099. </div>
  5100. </div>
  5101. <span slot="footer" class="dialog-footer">
  5102. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  5103. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  5104. </span>
  5105. </el-dialog>
  5106. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  5107. :before-close="handleClose" class="dialog_diy">
  5108. <div>
  5109. <div class="fileCss" style="padding-top: 20px">
  5110. <div>
  5111. <button class="info_btn" @click="addImg($event)">
  5112. 选择本地文件
  5113. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  5114. </button>
  5115. <div class="spanName">选择本地文件</div>
  5116. </div>
  5117. <!-- <div>
  5118. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  5119. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  5120. <img :src="cover[0].url" alt="" />
  5121. <div class="deletePic" @click="deleteSysPic">
  5122. <img src="../../../assets/icon/delete.png" alt="" />
  5123. </div>
  5124. </div>
  5125. <div class="spanName">选择系统文件</div>
  5126. </div> -->
  5127. <div>
  5128. <el-button @click="(searchImageValue = courseName), resetImage()"
  5129. v-if="isSysPic2 == false">选择网络文件</el-button>
  5130. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  5131. <img :src="cover[0].url" alt="" />
  5132. <div class="deletePic" @click="deleteSysPic">
  5133. <img src="../../../assets/icon/delete.png" alt="" />
  5134. </div>
  5135. </div>
  5136. <div class="spanName">选择网络文件</div>
  5137. </div>
  5138. </div>
  5139. <!-- <div class="fileCss">
  5140. </div> -->
  5141. </div>
  5142. <span slot="footer" class="dialog-footer">
  5143. <el-button @click="choosePicVisible = false">取 消</el-button>
  5144. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  5145. </span>
  5146. </el-dialog>
  5147. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  5148. :before-close="handleClose" class="dialog_diy">
  5149. <div class="cru_selectBox" style="margin: 0">
  5150. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  5151. 绘画
  5152. </div>
  5153. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  5154. 科技
  5155. </div>
  5156. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  5157. 人文
  5158. </div>
  5159. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  5160. 艺术
  5161. </div>
  5162. </div>
  5163. <div class="sysPicBox">
  5164. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  5165. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  5166. </div>
  5167. </div>
  5168. </el-dialog>
  5169. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  5170. :before-close="handleClose" class="dialog_diy">
  5171. <div>
  5172. <div class="people_top_right" style="display: flex; align-items: center">
  5173. <div style="position: relative; width: 100%">
  5174. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  5175. @keyup.enter.native="resetImage()"></el-input>
  5176. <div class="search_img" @click="resetImage" style="right: 10px">
  5177. <img src="../../../assets/icon/search.png" alt />
  5178. </div>
  5179. </div>
  5180. <el-button type="primary" size="default" style="margin-left: 10px" @click="changePicture">换一组</el-button>
  5181. </div>
  5182. <div class="sysPicBox" v-loading="imageloading">
  5183. <div class="picNone" v-if="!imageList.length">
  5184. 请输入关键词搜索图片
  5185. </div>
  5186. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  5187. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  5188. </div>
  5189. </div>
  5190. </div>
  5191. </el-dialog>
  5192. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px" :before-close="(done) => {
  5193. closePan(41);
  5194. }
  5195. " class="dialog_diy dialog_diy3 fullStyle">
  5196. <div v-if="selectJson" style="height: 100%">
  5197. <div class="select_box1" v-if="selectSteps == 1">
  5198. <div class="select_box1_img">
  5199. <div class="select_box1_title">
  5200. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  5201. </div>
  5202. <div class="select_box1_add_img">
  5203. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  5204. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  5205. <img src="../../../assets/icon/addPoster.png" alt="" />
  5206. </div>
  5207. <div class="isSysPic" v-else>
  5208. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  5209. <div class="deletePic" @click="deleteSelectPic">
  5210. <img src="../../../assets/icon/delete.png" alt="" />
  5211. </div>
  5212. </div>
  5213. </div>
  5214. </div>
  5215. <div class="select_box1_select">
  5216. <div class="select_box1_title">
  5217. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  5218. </div>
  5219. <div class="select_box1_select_box">
  5220. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  5221. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  5222. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  5223. <div class="select_box1_select_box_add">
  5224. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  5225. 添加</el-button>
  5226. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  5227. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  5228. </div>
  5229. </div>
  5230. </div>
  5231. </div>
  5232. <div v-if="selectSteps == 2" style="height: 100%">
  5233. <div class="select_box2">
  5234. <div class="select_box2_title">设置每道题目的正确选项</div>
  5235. <div class="select_box2_box">
  5236. <div class="select_box2_img">
  5237. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  5238. </div>
  5239. <div class="select_box2_answer">
  5240. <div class="select_answer_title">根据题目选择对应答案</div>
  5241. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  5242. <span>{{ checkIndex + 1 }}、</span>
  5243. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  5244. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  5245. </el-option>
  5246. </el-select>
  5247. </div>
  5248. </div>
  5249. </div>
  5250. </div>
  5251. </div>
  5252. </div>
  5253. <span slot="footer" class="dialog-footer">
  5254. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  5255. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  5256. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  5257. </span>
  5258. </el-dialog>
  5259. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  5260. :before-close="handleClose" class="dialog_diy">
  5261. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  5262. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  5263. <div class="pjCss" style="width: 100%">
  5264. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  5265. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  5266. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  5267. <input type="input" v-model="eItem.value" placeholder="填写评价维度" />
  5268. <div class="remove" @click="deletRateList(eIndex)"></div>
  5269. <div style="width: 100%; display: flex">
  5270. <span style="min-width: 100px; text-align: right">评星等级:</span>
  5271. <el-rate v-model="eItem.score" disabled></el-rate>
  5272. </div>
  5273. <div class="elist_inptu_text" style="align-items: flex-start">
  5274. <span style="min-width: 100px; text-align: right">描述:</span>
  5275. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写维度描述"></textarea>
  5276. </div>
  5277. </div>
  5278. </div>
  5279. <div class="addToolFun" @click="addRateList()">
  5280. <div class="addToolImg">
  5281. <img src="../../../assets/icon/add.png" alt />
  5282. </div>
  5283. <div>添加</div>
  5284. </div>
  5285. </div>
  5286. </div>
  5287. <span slot="footer" class="dialog-footer">
  5288. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  5289. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  5290. </span>
  5291. </el-dialog>
  5292. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px" :before-close="(done) => {
  5293. closePan(47);
  5294. }
  5295. " class="dialog_diy dialog_diy3 fullStyle">
  5296. <div style="height: 100%">
  5297. <div class="sentenBox" style="height: 100%">
  5298. <div class="addSen" @click="addSt">添加题目</div>
  5299. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  5300. <div class="sentenTopBox">
  5301. <div class="sentenTop" :index="stIndex + 1">
  5302. <div>题目设置</div>
  5303. <div>
  5304. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  5305. </div>
  5306. <div @click="addSen(stIndex)">添加</div>
  5307. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  5308. </div>
  5309. </div>
  5310. <div class="cardList">
  5311. <div v-if="st.addSentence.length > 0" class="cardBox">
  5312. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  5313. @click="setRightAnswer(s, stIndex, sIndex)">
  5314. <el-tooltip class="item" effect="light" :content="s" placement="top">
  5315. <div>{{ s }}</div>
  5316. </el-tooltip>
  5317. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  5318. <img src="../../../assets/icon/delete.png" alt="" />
  5319. </div>
  5320. </div>
  5321. </div>
  5322. <div class="card">
  5323. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  5324. </div>
  5325. </div>
  5326. <div class="rightCardBox">
  5327. <div>正确顺序</div>
  5328. <div class="rightCardList">
  5329. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  5330. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  5331. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  5332. <el-tooltip class="item" effect="light" :content="r" placement="top">
  5333. <div>{{ r }}</div>
  5334. </el-tooltip>
  5335. </div>
  5336. <div>{{ rIndex + 1 }}</div>
  5337. </div>
  5338. </div>
  5339. <div class="card" v-if="st.rightAnswer.length == 0">
  5340. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  5341. </div>
  5342. <div class="card" v-else>
  5343. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  5344. </div>
  5345. </div>
  5346. </div>
  5347. </div>
  5348. </div>
  5349. </div>
  5350. <span slot="footer" class="dialog-footer">
  5351. <el-button @click="closePan(47)">取 消</el-button>
  5352. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  5353. </span>
  5354. </el-dialog>
  5355. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  5356. :before-close="handleClose" class="dialog_diy">
  5357. <el-form>
  5358. <!-- <el-form-item label="文本标题">
  5359. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  5360. </el-form-item> -->
  5361. <div>表格内容</div>
  5362. <Table v-model="tableJson.text" @change="change"></Table>
  5363. </el-form>
  5364. <span slot="footer" class="dialog-footer">
  5365. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  5366. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  5367. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  5368. </span>
  5369. </el-dialog>
  5370. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%"
  5371. :before-close="handleClose" class="dialog_diy">
  5372. <el-form>
  5373. <!-- <el-form-item label="文本标题">
  5374. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  5375. </el-form-item> -->
  5376. <div>文档内容</div>
  5377. <editor-bar v-model="wordJson.text" class="text_panel"></editor-bar>
  5378. </el-form>
  5379. <span slot="footer" class="dialog-footer">
  5380. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  5381. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  5382. </span>
  5383. </el-dialog>
  5384. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  5385. :before-close="handleClose" class="dialog_diy">
  5386. <div style="
  5387. width: 100%;
  5388. display: flex;
  5389. flex-direction: row;
  5390. flex-wrap: nowrap;
  5391. align-items: center;
  5392. justify-content: center;
  5393. ">
  5394. <div>班级:</div>
  5395. <el-select multiple v-model="uploadJson" placeholder="请选择">
  5396. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  5397. </el-option>
  5398. </el-select>
  5399. </div>
  5400. <span slot="footer" class="dialog-footer">
  5401. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  5402. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  5403. </span>
  5404. </el-dialog>
  5405. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  5406. :before-close="handleClose" class="dialog_diy">
  5407. <div style="
  5408. width: 100%;
  5409. display: flex;
  5410. flex-direction: row;
  5411. flex-wrap: nowrap;
  5412. align-items: center;
  5413. justify-content: center;
  5414. ">
  5415. <div>随机码:</div>
  5416. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  5417. </div>
  5418. <span slot="footer" class="dialog-footer">
  5419. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  5420. <el-button type="primary" @click="addInvite">确定</el-button>
  5421. </span>
  5422. </el-dialog>
  5423. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  5424. :before-close="handleClose" class="dialog_diy">
  5425. <div>
  5426. <div style="margin-bottom: 20px; color: #999">
  5427. 提示:点击“+”或“-”修改倒计时时长。
  5428. </div>
  5429. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  5430. </div>
  5431. <span slot="footer" class="dialog-footer">
  5432. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  5433. <el-button type="primary" @click="addPreTime">确定</el-button>
  5434. </span>
  5435. </el-dialog>
  5436. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%"
  5437. :before-close="handleClose" class="dialog_diy">
  5438. <div>
  5439. <div style="
  5440. width: 100%;
  5441. display: flex;
  5442. flex-direction: row;
  5443. flex-wrap: nowrap;
  5444. align-content: center;
  5445. align-items: center;
  5446. justify-content: space-between;
  5447. ">
  5448. <div style="
  5449. display: flex;
  5450. flex-flow: row nowrap;
  5451. align-items: flex-start;
  5452. width: 100%;
  5453. flex-direction: column;
  5454. flex-wrap: nowrap;
  5455. position: relative;
  5456. ">
  5457. <div class="e_box">
  5458. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  5459. <div class="e_card_picture">
  5460. <img src="../../../assets/e_picture.png" />
  5461. </div>
  5462. <div class="e_card_name">
  5463. <span>{{ item.title }}</span>
  5464. </div>
  5465. <div class="e_card_btn">
  5466. <span @click="checkEva(item.id, 2)">导入</span>
  5467. </div>
  5468. </div> -->
  5469. <!-- <div class="addEva" @click="openT">
  5470. <img src="../../../assets/icon/addEva.png" alt="" />
  5471. </div> -->
  5472. <div style="
  5473. display: flex;
  5474. justify-content: flex-end;
  5475. margin-bottom: 10px;
  5476. ">
  5477. <el-button @click="openT" type="primary" size="small">添加目标</el-button>
  5478. </div>
  5479. <el-table v-if="evaJuri.length" ref="table" :data="evaJuri" border :fit="true" style="width: 100%"
  5480. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }" :row-class-name="tableRowClassName">
  5481. <el-table-column label="目标名称" min-width="15" align="center" prop="title">
  5482. </el-table-column>
  5483. <el-table-column prop="username" label="负责人" min-width="15" align="center">
  5484. </el-table-column>
  5485. <el-table-column label="操作" width="250px">
  5486. <template slot-scope="scope">
  5487. <div class="btnBox">
  5488. <el-button type="primary" size="small" @click="checkEva(scope.row.id, 2)">导入</el-button>
  5489. </div>
  5490. </template>
  5491. </el-table-column>
  5492. </el-table>
  5493. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  5494. 暂无数据
  5495. </div>
  5496. </div>
  5497. </div>
  5498. </div>
  5499. </div>
  5500. <span slot="footer" class="dialog-footer">
  5501. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  5502. </span>
  5503. </el-dialog>
  5504. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  5505. :before-close="handleClose" class="dialog_diy">
  5506. <div class="groupBox">
  5507. <div v-if="groupJson.group" class="groupContent">
  5508. <div class="groupTitle">请设置小组数量及名称</div>
  5509. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  5510. <span class="groupn">第{{ index + 1 }}组名称:</span>
  5511. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  5512. <div class="groupBtn">
  5513. <el-button type="primary" size="small" @click="addGroup(index)"
  5514. v-if="groupJson.group.length - 1 == index">
  5515. 添加</el-button>
  5516. <el-button type="primary" size="small" @click="deleteGroup(index)"
  5517. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  5518. </div>
  5519. </div>
  5520. </div>
  5521. <div class="groupContent">
  5522. <div class="groupTitle">请设置每组人数</div>
  5523. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  5524. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  5525. <el-input v-model="groupJson.number" style="width: 150px" placeholder="请输入2-10的数字"
  5526. @change="numberPan"></el-input>
  5527. </div>
  5528. </div>
  5529. <span slot="footer" class="dialog-footer">
  5530. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  5531. <el-button type="primary" @click="addGroupJson">确定</el-button>
  5532. </span>
  5533. </el-dialog>
  5534. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  5535. :before-close="handleClose" class="dialog_diy">
  5536. <div style="
  5537. width: 100%;
  5538. display: flex;
  5539. flex-direction: row;
  5540. flex-wrap: nowrap;
  5541. align-items: center;
  5542. justify-content: center;
  5543. ">
  5544. <div style="min-width: fit-content">文件名称:</div>
  5545. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  5546. </div>
  5547. <span slot="footer" class="dialog-footer">
  5548. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  5549. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  5550. </span>
  5551. </el-dialog>
  5552. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px" :before-close="(done) => {
  5553. closePan(69);
  5554. }
  5555. " class="dialog_diy fullStyle fullStyle1">
  5556. <englishRight :englishList="englishList" :oid="oid" ref="engJson" @setJson="addEnglish"></englishRight>
  5557. <span slot="footer" class="dialog-footer">
  5558. <el-button @click="englishDialogVisible = false">取 消</el-button>
  5559. <el-button type="primary" @click="addEnglish">确 定</el-button>
  5560. </span>
  5561. </el-dialog>
  5562. <el-dialog title="选择课程模板" :visible.sync="templateDialog" :append-to-body="true" width="630px"
  5563. :before-close="handleClose" class="dialog_diy">
  5564. <div class="template_box">
  5565. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkctJson(aa)"
  5566. :class="{ wordTeacherA: ctJson.id == aa.id }">
  5567. <div class="wordPic">
  5568. <img src="../../../assets/icon/new/course_template.png" alt />
  5569. </div>
  5570. <el-tooltip effect="dark" :content="aa.title" placement="top">
  5571. <div style="
  5572. margin-top: 10px;
  5573. line-height: 19px;
  5574. overflow: hidden;
  5575. text-overflow: ellipsis;
  5576. white-space: nowrap;
  5577. padding: 0 10px;
  5578. box-sizing: border-box;
  5579. width: 100%;
  5580. ">
  5581. {{ aa.title }}
  5582. </div>
  5583. </el-tooltip>
  5584. </div>
  5585. <div class="wordTeacher" @click="checkctJson({ id: 1 })" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  5586. :class="{ wordTeacherA: ctJson.id == 1 }">
  5587. <div class="wordPic">
  5588. <img src="../../../assets/icon/new/course_template.png" alt />
  5589. </div>
  5590. <div style="
  5591. margin-top: 10px;
  5592. line-height: 19px;
  5593. overflow: hidden;
  5594. text-overflow: ellipsis;
  5595. white-space: nowrap;
  5596. padding: 0 20px;
  5597. ">
  5598. 简易模板
  5599. </div>
  5600. </div>
  5601. <div class="wordTeacher" @click="checkctJson({ id: 2 })" v-if="isPasteStage"
  5602. :class="{ wordTeacherA: ctJson.id == 2 }">
  5603. <div class="wordPic">
  5604. <img src="../../../assets/icon/new/course_template.png" alt />
  5605. </div>
  5606. <div style="
  5607. margin-top: 10px;
  5608. line-height: 19px;
  5609. overflow: hidden;
  5610. text-overflow: ellipsis;
  5611. white-space: nowrap;
  5612. padding: 0 20px;
  5613. ">
  5614. 智能粘贴模式
  5615. </div>
  5616. </div>
  5617. </div>
  5618. <span slot="footer" class="dialog-footer">
  5619. <el-button @click="templateDialog = false">取 消</el-button>
  5620. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  5621. </span>
  5622. </el-dialog>
  5623. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  5624. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  5625. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  5626. <div class="change_stageBox">
  5627. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  5628. <div class="nt_taskBox">
  5629. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  5630. <div class="nt_taskName">
  5631. <el-tooltip effect="light" :content="t.dyName" placement="top">
  5632. <span>{{ t.dyName }}</span>
  5633. </el-tooltip>
  5634. </div>
  5635. </div>
  5636. <div class="moveBtn" v-if="unitJson3.length > 1">
  5637. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)"></div>
  5638. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  5639. </div>
  5640. </div>
  5641. </div>
  5642. <span slot="footer" class="dialog-footer">
  5643. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  5644. <el-button type="primary" @click="updateChange">确定</el-button>
  5645. </span>
  5646. </el-dialog>
  5647. <el-dialog title="添加资源模板" :visible.sync="cetBoxDialog" :append-to-body="true" width="400px"
  5648. :before-close="handleClose" class="dialog_diy">
  5649. <div class="addTypeChoose" style="justify-content: center">
  5650. <div style="min-width: 100px">模板名称:</div>
  5651. <el-input v-model="templateName" style="width: 200px"></el-input>
  5652. </div>
  5653. <div class="addTypeBox">
  5654. <div class="addTypeChoose">
  5655. <div style="min-width: 100px">选择一级分类:</div>
  5656. <el-select v-model="setTypeJson.one" placeholder="请选择" @change="getTwoType(setTypeJson.one)"
  5657. style="width: 200px">
  5658. <el-option v-for="(item, index) in oneJson" :key="index" :label="item.name" :value="item.id">
  5659. </el-option>
  5660. </el-select>
  5661. </div>
  5662. <div class="addTypeChoose" v-if="setTypeJson.one != ''">
  5663. <div style="min-width: 100px">选择二级分类:</div>
  5664. <el-select v-model="setTypeJson.two" placeholder="请选择" style="width: 200px">
  5665. <el-option v-for="(item1, index1) in twoJson" :key="index1" :label="item1.name" :value="item1.id">
  5666. </el-option>
  5667. </el-select>
  5668. </div>
  5669. </div>
  5670. <span slot="footer" class="dialog-footer">
  5671. <el-button type="primary" @click="addCETemplate()">确 认</el-button>
  5672. <el-button @click="close()">关 闭</el-button>
  5673. </span>
  5674. </el-dialog>
  5675. <evaBox :userid="userid" :oid="oid" :org="org" :dialogVisibleEva.sync="evaBoxDialog" @updateEvaJson="updateEvaJson">
  5676. </evaBox>
  5677. <EnglishVoice :oid="oid" :org="org" :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  5678. :englishVoiceJson="englishVoiceJson" @setEnglishVoiceJson="setEnglishVoiceJson"></EnglishVoice>
  5679. <aiDialog :dialogVisibleAiD.sync="dialogVisibleAiD" :aiText="aiText" @aiConfirm="aiConfirm" :clickType="clickType">
  5680. </aiDialog>
  5681. <tipsDialog :dialogVisibleTips.sync="dialogVisibleTips" :tipsJson.sync="tipsJson" :aiJson="aiJson" :userid="userid"
  5682. @retrunCourse="retrunCourse" :templateid="templateid"></tipsDialog>
  5683. <aiCreateDialog :dialogVisibleAiCreate.sync="dialogVisibleAiCreate" :courseName="courseName" @createAiPpt="createAiPpt" :infoData="infoData" :courseTypeId="courseTypeId" :CourseTypeJson="CourseTypeJson" :courseState="courseState" :lineCount="lineCount" :unitJson="unitJson"></aiCreateDialog>
  5684. <aiCreateVideoDialog :dialogVisibleAiCreateVideo.sync="dialogVisibleAiCreateVideo" :courseName="courseName" @createAiVideo="createAiVideo" :courseState="courseState" :lineCount="lineCount" :unitJson="unitJson"></aiCreateVideoDialog>
  5685. </div>
  5686. </template>
  5687. <script>
  5688. import "../../../common/aws-sdk-2.235.1.min.js";
  5689. import { tools as toolsData } from "../../../common/tools.js";
  5690. // import "../../../common/aws-sdk-2.99.0.min.js";
  5691. import $ from "jquery";
  5692. import EditorBar from "../../../components/tools/wangEnduit";
  5693. import Table from "../../../components/tools/table";
  5694. import Mind from "../../tools/jsmind2";
  5695. import Time from "../../tools/time.vue";
  5696. import Sunburst from "../../tools/sunburst";
  5697. import SeeBoard from "../../tools/seeBoard";
  5698. import weilaiData from "../components/weilai.js";
  5699. import sourceDialog from "../teacherSource/dialog.vue";
  5700. import interVideo from "../interVideo/index.vue";
  5701. import englishRight from "../components/englishRight.vue";
  5702. import evaBox from "../evaBox/index.vue";
  5703. import EnglishVoice from "../EnglishVoice/index.vue";
  5704. import aiBox from './aiBox.vue'
  5705. import aiDialog from './aiDialog'
  5706. import aiTips from './aiTips.vue'
  5707. import tipsDialog from './tipsDialog.vue'
  5708. import { v4 as uuidv4 } from "uuid";
  5709. import MarkdownIt from "markdown-it";
  5710. import aiCreateDialog from './aiCreateDialog.vue'
  5711. import aiCreateVideoDialog from './aiCreateVideoDialog.vue'
  5712. var OpenCC = require("opencc-js");
  5713. let converter = OpenCC.Converter({
  5714. from:'hk',
  5715. to:'cn'
  5716. })
  5717. export default {
  5718. components: {
  5719. EditorBar,
  5720. Mind,
  5721. Time,
  5722. Sunburst,
  5723. SeeBoard,
  5724. Table,
  5725. sourceDialog,
  5726. interVideo,
  5727. englishRight,
  5728. evaBox,
  5729. EnglishVoice,
  5730. aiBox,
  5731. aiDialog,
  5732. aiTips,
  5733. tipsDialog,
  5734. aiCreateDialog,
  5735. aiCreateVideoDialog
  5736. },
  5737. data() {
  5738. return {
  5739. checkAll: false,
  5740. checkAll2: false,
  5741. chooseType: 1,
  5742. checkedCities: [],
  5743. isIndeterminate: true,
  5744. isIndeterminate2: true,
  5745. isSysPic: false,
  5746. isSysPic2: false,
  5747. steps: 1,
  5748. stepsNav: 1,
  5749. nbOrder: 0,
  5750. courseId: "",
  5751. chapToolsType: 0,
  5752. chapTools: [
  5753. {
  5754. tools: [],
  5755. toolDetail: "",
  5756. },
  5757. ],
  5758. line: "",
  5759. lineTitle: "",
  5760. sysPic: [],
  5761. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5762. sentenceList2: [],
  5763. isPushTitleList: [],
  5764. lineCount: 0,
  5765. lineType: 0,
  5766. chapCount: 0,
  5767. courseName: "",
  5768. isTeacherSee: false,
  5769. courseText: "",
  5770. textLoading: false,
  5771. ttextLoading: false,
  5772. courseText2: "",
  5773. preTime: 0,
  5774. formLabelWidth: "100px",
  5775. choosePicVisible: false,
  5776. sysPicVisible: false,
  5777. sysPicVisible2: false,
  5778. uploadLoading1: false,
  5779. noneBtnImg: false,
  5780. updateBoolean2: false,
  5781. unitIndex: 0,
  5782. taskCount: 0,
  5783. dialogVisible: false,
  5784. dialogVisible1: false,
  5785. dialogVisible2: false,
  5786. dialogVisible3: false,
  5787. dialogVisible4: false,
  5788. dialogVisible5: false,
  5789. dialogVisible6: false,
  5790. dialogVisible7: false,
  5791. dialogVisible8: false,
  5792. dialogVisible9: false,
  5793. dialogVisibleClass: false,
  5794. dialogVisibleMember: false,
  5795. dialogVisibleMp3: false,
  5796. dialogVisibleSelect: false,
  5797. dialogVisibleSentence: false,
  5798. dialogVisibleRate: false,
  5799. dialogVisibleChoice: false,
  5800. dialogVisiblemb: false,
  5801. dialogVisibleInvite: false,
  5802. dialogVisibleSource: false,
  5803. dialogVisibleVideo: false,
  5804. dialogVisibleStageChange: false,
  5805. dialogVisibleupdataVideoT: false,
  5806. englishDialogVisible: false,
  5807. templateDialog: false,
  5808. ctJson: {},
  5809. isClickColor: 1,
  5810. toolIndexType: "",
  5811. publicTool: 0,
  5812. searchPeople: "",
  5813. searchTN: "",
  5814. collid: '',
  5815. CollLoading: false,
  5816. userid: this.$route.query.userid,
  5817. oid: this.$route.query.oid,
  5818. org: this.$route.query.org,
  5819. role: this.$route.query.role,
  5820. aiId: this.$route.query.aiId != undefined ? this.$route.query.aiId : "",
  5821. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  5822. dialogVisibleTable: false,
  5823. dialogVisibleWord: false,
  5824. tableJson: { text: "" },
  5825. wordJson: { text: "" },
  5826. dialogVisibleMoreUpload: false,
  5827. dialogVisiblePreTime: false,
  5828. uploadJson: [],
  5829. classJuri: [],
  5830. gradeList: [],
  5831. cover: [], //课程封面
  5832. myWord: [],
  5833. evaJuri: [],
  5834. evalua: "",
  5835. targetArray: [],
  5836. eTitle: "",
  5837. eJson: {},
  5838. fid: "", //一级
  5839. sid: "", //二级
  5840. tid: "", //二级
  5841. typeMode: 1,
  5842. eJSONNum: 0,
  5843. data: {
  5844. meta: {
  5845. name: "example",
  5846. author: "dd@163.com",
  5847. version: "0.2",
  5848. },
  5849. format: "node_array",
  5850. data: [{ id: "root", isroot: true, topic: "" }],
  5851. },
  5852. askJson: {
  5853. askCount: 1,
  5854. askTitle: "",
  5855. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5856. },
  5857. askJson2: {},
  5858. testJson: {},
  5859. testJson2: {},
  5860. selectJson: {},
  5861. selectJson2: {},
  5862. rateJson: [],
  5863. unitJson2: [],
  5864. unitJson3: [],
  5865. unitJson: [
  5866. {
  5867. dyName: "", //单元标题
  5868. chapterInfo: [
  5869. {
  5870. isread: false,
  5871. chapterid: this.guid(),
  5872. title: "",
  5873. courseName: "",
  5874. taskJson: [
  5875. {
  5876. task: "",
  5877. taskDetail: "",
  5878. chapterData: [],
  5879. toolText: "",
  5880. toolChoose: [
  5881. {
  5882. tool: [],
  5883. toolDetail: "",
  5884. toolType: 0,
  5885. askCount: 1,
  5886. askTitle: "",
  5887. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5888. },
  5889. ],
  5890. isShowTools: false,
  5891. askCount: 1,
  5892. isFold: 1,
  5893. askTitle: "",
  5894. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5895. checkJson: [{ checkCount: [], checkPerent: [] }],
  5896. homeworkList: [],
  5897. },
  5898. ],
  5899. itemCount: 1,
  5900. fileList1: [],
  5901. video: [],
  5902. testData: [],
  5903. pData: [],
  5904. templateArray: [],
  5905. },
  5906. ],
  5907. },
  5908. ],
  5909. templateArray: [],
  5910. studentJuri: [],
  5911. teacherJuri: [],
  5912. CollaborativeTeaList: [],
  5913. checkboxList: [],
  5914. checkboxList2: [],
  5915. checkboxList3: [],
  5916. classSearch: "",
  5917. gradeId: "",
  5918. number: "",
  5919. tTitle: "",
  5920. tdetail: "",
  5921. templateC: {},
  5922. AttText: {},
  5923. AttTextType: 0,
  5924. AttTextIndex: 0,
  5925. cTemplate: "",
  5926. CourseType: [],
  5927. CourseType1: [],
  5928. CourseType2: [],
  5929. CourseTypeJson: {},
  5930. CourseTypeJson1: {},
  5931. courseTypeId: [],
  5932. courseTypeId1: [],
  5933. courseTypeSon: [],
  5934. clearArray: [],
  5935. pTypeCheck: [],
  5936. pTypeCheckName: [],
  5937. loading: false,
  5938. toolType: 0,
  5939. inputShow: true,
  5940. inputShow2: true,
  5941. toolIndex: 0,
  5942. cidType: 0,
  5943. answerQ: "",
  5944. answerQ2: "",
  5945. grade: [],
  5946. grade2: [],
  5947. courseUserid: "",
  5948. timer: null,
  5949. timer2: null,
  5950. pasteTimer: null,
  5951. checkId: "",
  5952. isDelete: 1,
  5953. addindex: 0,
  5954. selectSteps: 1,
  5955. groupJson: {},
  5956. dialogVisibleGroup: false,
  5957. rightBoxHeight: 0,
  5958. ManAarray: [],
  5959. checkBoolean: false,
  5960. inviteCode: [],
  5961. inviteId: "",
  5962. icode: "",
  5963. easyArray: [2, 4],
  5964. sourceData: {},
  5965. updateSourcePan: false,
  5966. videoJson: {},
  5967. isBtnDisplay: false,
  5968. isStepDisplay: false,
  5969. isPasteStage: false,
  5970. isPasteTask: false,
  5971. isPasteChoice: false,
  5972. imageList: [],
  5973. imageloading: false,
  5974. imageloading2: false,
  5975. searchImageValue: "",
  5976. ppage: 1,
  5977. toolsData: JSON.parse(converter(JSON.stringify(toolsData))),
  5978. oldIndex: 0,
  5979. dragType: "",
  5980. oldUnitIndex: 0,
  5981. oldData: null,
  5982. newIndex: "",
  5983. englishList: {},
  5984. typeIndex: "",
  5985. courseState: 4,
  5986. taskJSONa: [
  5987. {
  5988. task: "",
  5989. taskDetail: "",
  5990. chapterData: [],
  5991. toolText: "",
  5992. toolChoose: [
  5993. {
  5994. tool: [],
  5995. toolDetail: "",
  5996. toolType: 0,
  5997. askCount: 1,
  5998. askTitle: "",
  5999. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6000. },
  6001. ],
  6002. isShowTools: false,
  6003. askCount: 1,
  6004. isFold: 1,
  6005. askTitle: "",
  6006. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6007. checkJson: [{ checkCount: [], checkPerent: [] }],
  6008. homeworkList: [],
  6009. },
  6010. ],
  6011. checkUnitIndex: 0,
  6012. isdrag: "",
  6013. evaIndex: "",
  6014. evatIndex: "",
  6015. evaBoxDialog: false,
  6016. EnglishVoiceDialog: false,
  6017. englishVoiceJson: {},
  6018. cetIndex: "",
  6019. cettIndex: "",
  6020. cetBoxDialog: false,
  6021. templateName: "",
  6022. setTypeJson: {
  6023. one: "",
  6024. two: "",
  6025. },
  6026. twoJson: [],
  6027. oneJson: [],
  6028. updateKey: 1,
  6029. isOutline: false,
  6030. isOutline2: false,
  6031. infoData: [],
  6032. infoproVisible: false,
  6033. infoisFinishSize: 0,
  6034. infoisAllSize: 0,
  6035. infoprogress: 0,
  6036. taskDetailLoading: [],
  6037. ttaskDetailLoading: [],
  6038. taskDetailLoading2: [],
  6039. ttaskDetailLoading2: [],
  6040. taskDetailLoading3: [],
  6041. ttaskDetailLoading3: [],
  6042. taskDetailLoading4: [],
  6043. taskDetailLoading5: [],
  6044. ttaskDetailLoading5: [],
  6045. dArray: [],
  6046. dialogVisibleAiD: false,
  6047. aitype: "",
  6048. aiJson: {
  6049. "aiDetail": "请根据<课程简要描述>设计一个名为<课程名字>的<课程学科>学科的,面向<面向年级>的项目式学习课程。",
  6050. "aiOutline": "请为这个名为<课程名字>的<课程学科>学科的,面向<面向年级>学生的项目式学习课程设计序列教学活动(需要每个任务都需要至少100个token的详细描述)。你需要参考课程简要描述<课程简要描述>,并产出每个教学任务的设计(可以直接使用文件内容)以及每个教学活动的评价量规(学生能做到...)。",
  6051. "aiTask": "请根据<教学任务教案>。",
  6052. "aiDetail1": "请根据<课程描述>,重新设计该教学任务。任务需要至少50个token的详细描述,包含任务设计,评价标准。",
  6053. "aiDetail2": "请你在考虑到整个课程的情况下,优化该任务描述和任务名:<任务名>:<任务描述>",
  6054. "aiDetail3": "请你在考虑到整个课程的情况下,**重点考虑该任务及工具名和工具内容的情况下**,优化工具指引。",
  6055. "aiDetail4": "请你在考虑到整个课程的情况下,**重点考虑该任务详情**以及工具的情况下,优化评价标准。",
  6056. "aiTeacher": "请根据<任务大纲>为每个教学任务设计详细的教案,教案需要包含该任务的教学目标,教学过程(包含分步骤的教师活动和学生活动,教师活动与学生活动应该一一对应),相关知识点的讲解,练习(练习需要包含实例答案。",
  6057. "teacherDetail": "请根据<任务大纲>,以及# 其他教学任务教案,为本教学任务设计详细的教案,教案需要包含该任务的教学目标,教学过程(包含分步骤的教师活动和学生活动),相关知识点的讲解,练习(练习需要包含实例答案。注意,你绝对不能重复其他教学任务教案中的内容",
  6058. "teacherDetail2": "请根据<任务名>、<任务描述>,<课程简要描述>,为该任务设计详细的教案,教案需要包含该任务的教学目标,教学过程(包含分步骤的教师活动和学生活动,教师活动与学生活动应该一一对应),相关知识点的讲解,练习(练习需要包含示例答案)。"
  6059. },
  6060. aiText: "",
  6061. aiCallBack: "",
  6062. aiIndex: "",
  6063. clickType: 1,
  6064. promptShow: false,
  6065. templateid: this.$route.query.templateid != undefined ? this.$route.query.templateid : "",
  6066. istemplate: this.$route.query.istemplate != undefined && this.$route.query.istemplate ? 1 : 2,
  6067. dialogVisibleTips: false,
  6068. tipsJson: {},
  6069. cpote:{
  6070. cpote1: '',
  6071. cpote2: '',
  6072. cpote3: '',
  6073. cpote4: '',
  6074. },
  6075. cpoteLoading:{
  6076. cpote1: false,
  6077. cpote2: false,
  6078. cpote3: false,
  6079. cpote4: false,
  6080. },
  6081. cpotetLoading:{
  6082. cpote1: false,
  6083. cpote2: false,
  6084. cpote3: false,
  6085. cpote4: false,
  6086. },
  6087. cpoteType: 0,
  6088. dialogVisibleAiCreate: false,
  6089. dialogVisibleAiCreateVideo: false,
  6090. teacherText: [],
  6091. isFileSearch: true,
  6092. fileIds: ['file-A81p1q02HHpJhus4nYYwtAmM'],
  6093. templatePan: ['0e7966d6-1e49-11ef-bee5-005056b86db5','60d153e3-1e49-11ef-bee5-005056b86db5','7f3e28b7-1e66-11ef-bee5-005056b86db5','9dd4bb76-1e48-11ef-bee5-005056b86db5','ab317f23-1e66-11ef-bee5-005056b86db5'],
  6094. courseJie:1,
  6095. courseTime:45,
  6096. };
  6097. },
  6098. directives: {
  6099. autoHeight: {
  6100. update(el, binding) {
  6101. const { value } = binding;
  6102. if (value && typeof value === "number") {
  6103. el.style.height = `${value}px`;
  6104. } else {
  6105. el.style.height = "auto";
  6106. }
  6107. },
  6108. componentUpdated(el) {
  6109. el.style.height = `${el.scrollHeight + 25}px`;
  6110. },
  6111. },
  6112. },
  6113. computed: {
  6114. // rightBoxHeight: function () {
  6115. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  6116. // },
  6117. offsetLetfPx: function () {
  6118. //addnum可以直接在模板语法里面用,相当于data内的值
  6119. return (
  6120. $(".cru_select")[this.unitIndex] &&
  6121. $(".cru_select")[this.unitIndex].offsetLeft + 5
  6122. );
  6123. },
  6124. getMan2() {
  6125. return function (people) {
  6126. let _people = people;
  6127. let _people2 = "";
  6128. if (this.ManAarray.length) {
  6129. for (var i = 0; i < this.ManAarray.length; i++) {
  6130. if (this.ManAarray[i].userid == people) {
  6131. _people2 = this.ManAarray[i].name;
  6132. break;
  6133. }
  6134. }
  6135. }
  6136. if (people == this.courseUserid) {
  6137. return "";
  6138. }
  6139. return this.ManAarray.length ? _people2 : "";
  6140. };
  6141. },
  6142. getListMan2() {
  6143. return function (list) {
  6144. let _people2 = [];
  6145. if (this.ManAarray.length) {
  6146. for (var j = 0; j < list.length; j++) {
  6147. let people = list[j];
  6148. for (var i = 0; i < this.ManAarray.length; i++) {
  6149. if (
  6150. this.ManAarray[i].userid == people &&
  6151. people != this.courseUserid
  6152. ) {
  6153. _people2.push(this.ManAarray[i].name);
  6154. break;
  6155. }
  6156. }
  6157. }
  6158. }
  6159. return this.ManAarray.length ? _people2.join("、") : "";
  6160. };
  6161. },
  6162. isInvite() {
  6163. return function (cid) {
  6164. let array = [];
  6165. for (var i = 0; i < this.inviteCode.length; i++) {
  6166. array.push(this.inviteCode[i].cid);
  6167. }
  6168. return array.indexOf(cid) != -1;
  6169. };
  6170. },
  6171. getInviteCodeC() {
  6172. return function (cid) {
  6173. let array = [];
  6174. for (var i = 0; i < this.inviteCode.length; i++) {
  6175. array.push(this.inviteCode[i].cid);
  6176. }
  6177. return this.inviteCode[array.indexOf(cid)].ic;
  6178. };
  6179. },
  6180. getClassC() {
  6181. return function (c) {
  6182. let _c2 = "";
  6183. if (this.grade.length) {
  6184. for (var i = 0; i < this.grade.length; i++) {
  6185. if (this.grade[i].id == c) {
  6186. _c2 = this.grade[i].name;
  6187. break;
  6188. }
  6189. }
  6190. }
  6191. return this.grade.length ? _c2 : "";
  6192. };
  6193. },
  6194. getListClassC() {
  6195. return function (list) {
  6196. let _c2 = [];
  6197. if (this.grade.length) {
  6198. for (var j = 0; j < list.length; j++) {
  6199. let c = list[j];
  6200. for (var i = 0; i < this.grade.length; i++) {
  6201. if (this.grade[i].id == c) {
  6202. _c2.push(this.grade[i].name);
  6203. break;
  6204. }
  6205. }
  6206. }
  6207. }
  6208. return this.grade.length ? _c2.join("、") : "";
  6209. };
  6210. },
  6211. MarkdownT() {
  6212. return function (c) {
  6213. let md = new MarkdownIt();
  6214. return c
  6215. ? md.render(c) : "";
  6216. };
  6217. },
  6218. },
  6219. watch: {
  6220. unitIndex(newValue, oldValue) {
  6221. // return;
  6222. if (this.isDelete == 2) {
  6223. this.isDelete = 1;
  6224. return;
  6225. }
  6226. if (this.cid != "") {
  6227. let _unitIndex = oldValue;
  6228. if (
  6229. JSON.stringify(this.unitJson2[_unitIndex]) ==
  6230. JSON.stringify(this.unitJson[_unitIndex])
  6231. ) {
  6232. this.$refs.rightboxR.scrollTop = 0;
  6233. return;
  6234. }
  6235. let cPan = 1;
  6236. for (
  6237. var j = 0;
  6238. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6239. j++
  6240. ) {
  6241. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6242. j
  6243. ].proVisible = false;
  6244. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6245. j
  6246. ].proVisible2 = false;
  6247. if (
  6248. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6249. .length > 1
  6250. ) {
  6251. for (
  6252. var z = 0;
  6253. z <
  6254. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6255. .length;
  6256. z++
  6257. ) {
  6258. if (
  6259. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  6260. .toolChoose[z].tool.length
  6261. ) {
  6262. this.$message.error("请把工具添加完整");
  6263. cPan = 2;
  6264. break;
  6265. }
  6266. }
  6267. }
  6268. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6269. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6270. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6271. (ele) => {
  6272. return ele.value != "";
  6273. }
  6274. );
  6275. }
  6276. }
  6277. if (cPan == 2) {
  6278. this.unitIndex = oldValue;
  6279. return;
  6280. }
  6281. for (var i = 0; i < this.unitJson.length; i++) {
  6282. if (this.addindex != i) {
  6283. delete this.unitJson[i].isUpdate;
  6284. }
  6285. }
  6286. this.$refs.rightboxR.scrollTop = 0;
  6287. this.addindex = -1;
  6288. let params = [
  6289. {
  6290. cid: this.cid,
  6291. chapters: JSON.stringify(this.unitJson),
  6292. uid: this.userid,
  6293. unitIndex: _unitIndex,
  6294. },
  6295. ];
  6296. this.ajax
  6297. .post(this.$store.state.api + "updateWorkNew4", params)
  6298. .then((res) => {
  6299. // this.$message({
  6300. // message: "修改成功",
  6301. // type: "success",
  6302. // });
  6303. // this.courseId = this.cid;
  6304. this.addtips()
  6305. })
  6306. .catch((err) => {
  6307. this.$message.error("网络不佳");
  6308. console.error(err);
  6309. });
  6310. }
  6311. },
  6312. steps(newValue, old) {
  6313. if (newValue == 4) {
  6314. let cPan = 1;
  6315. for (var i = 0; i < this.unitJson.length; i++) {
  6316. for (
  6317. var j = 0;
  6318. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6319. j++
  6320. ) {
  6321. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6322. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6323. if (
  6324. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6325. ) {
  6326. for (
  6327. var z = 0;
  6328. z <
  6329. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6330. z++
  6331. ) {
  6332. if (
  6333. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z]
  6334. .tool.length
  6335. ) {
  6336. this.$message.error("请把工具添加完整");
  6337. cPan = 2;
  6338. break;
  6339. }
  6340. }
  6341. }
  6342. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6343. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6344. i
  6345. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6346. return ele.value != "";
  6347. });
  6348. }
  6349. }
  6350. }
  6351. this.inputShow = true;
  6352. if (cPan == 2) {
  6353. this.steps = old;
  6354. return;
  6355. }
  6356. this.goTo(
  6357. "/course?userid=" +
  6358. this.userid +
  6359. "&oid=" +
  6360. this.oid +
  6361. "&org=" +
  6362. this.org +
  6363. "&role=" +
  6364. this.role
  6365. );
  6366. }
  6367. },
  6368. },
  6369. methods: {
  6370. tableRowClassName({ row, rowIndex }) {
  6371. if ((rowIndex + 1) % 2 === 0) {
  6372. return "even_row";
  6373. } else {
  6374. return "";
  6375. }
  6376. },
  6377. close() {
  6378. this.cetIndex = "";
  6379. this.cettIndex = "";
  6380. this.templateName = "";
  6381. this.cetBoxDialog = false;
  6382. },
  6383. openAI() {
  6384. top.postMessage({ tools: "64" }, "*");
  6385. },
  6386. setMan() {
  6387. // let teacherJuri = this.teacherJuri2;
  6388. this.ManAarray = [];
  6389. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  6390. if (_user.indexOf(this.userid) == -1) {
  6391. _user.push(this.userid);
  6392. }
  6393. if (_user.indexOf(this.courseUserid) == -1) {
  6394. _user.push(this.courseUserid);
  6395. }
  6396. let params = {
  6397. uid: _user.join(","),
  6398. };
  6399. this.ajax
  6400. .get(this.$store.state.api + "getAllUserById", params)
  6401. .then((res) => {
  6402. let teacherJuri = res.data[0];
  6403. this.ManAarray = teacherJuri;
  6404. })
  6405. .catch((err) => {
  6406. console.error(err);
  6407. });
  6408. },
  6409. previewImg(url) {
  6410. this.$hevueImgPreview(url);
  6411. },
  6412. btnDisplay(bool) {
  6413. this.isBtnDisplay = bool;
  6414. },
  6415. stepDisplay(bool) {
  6416. this.isStepDisplay = bool;
  6417. },
  6418. scrollChange() {
  6419. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  6420. },
  6421. addHw(e) {
  6422. var el = e.currentTarget;
  6423. el.getElementsByTagName("input")[0].click();
  6424. },
  6425. change(val) {
  6426. if (this.dialogVisible1) {
  6427. this.tdetail = val;
  6428. } else if (this.dialogVisible6) {
  6429. this.AttText.text = val;
  6430. } else if (this.dialogVisible2) {
  6431. this.cTemplate = val;
  6432. } else if (this.dialogVisibleTable) {
  6433. this.tableJson.text = val;
  6434. }
  6435. this.$forceUpdate();
  6436. console.log(val);
  6437. },
  6438. change2(val) {
  6439. console.log(val);
  6440. this.$forceUpdate();
  6441. },
  6442. handleClose(done) {
  6443. done();
  6444. },
  6445. closePan(tool) {
  6446. if (tool == 15) {
  6447. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  6448. this.dialogVisible8 = false;
  6449. } else {
  6450. this.closeConfirm(tool);
  6451. }
  6452. } else if (tool == 4) {
  6453. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  6454. this.dialogVisible5 = false;
  6455. } else {
  6456. this.closeConfirm(tool);
  6457. }
  6458. } else if (tool == 45) {
  6459. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  6460. this.dialogVisibleChoice = false;
  6461. } else {
  6462. this.closeConfirm(tool);
  6463. }
  6464. } else if (tool == 41) {
  6465. if (
  6466. JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)
  6467. ) {
  6468. this.dialogVisibleSelect = false;
  6469. } else {
  6470. this.closeConfirm(tool);
  6471. }
  6472. } else if (tool == 47) {
  6473. if (
  6474. JSON.stringify(this.sentenceList) ==
  6475. JSON.stringify(this.sentenceList2)
  6476. ) {
  6477. this.dialogVisibleSentence = false;
  6478. } else {
  6479. this.closeConfirm(tool);
  6480. }
  6481. } else if (tool == 69) {
  6482. if (
  6483. JSON.stringify(this.englishList) == JSON.stringify(this.englishList)
  6484. ) {
  6485. this.englishDialogVisible = false;
  6486. } else {
  6487. this.closeConfirm(tool);
  6488. }
  6489. }
  6490. },
  6491. closeConfirm(tool) {
  6492. this.$confirm("是否保存已编辑内容?", "提示", {
  6493. confirmButtonText: "保存",
  6494. cancelButtonText: "不保存",
  6495. type: "warning",
  6496. })
  6497. .then(() => {
  6498. if (tool == 15) {
  6499. this.addAnswer();
  6500. } else if (tool == 4) {
  6501. this.addAsk();
  6502. } else if (tool == 45) {
  6503. this.addTest();
  6504. } else if (tool == 41) {
  6505. this.addSelectAnswer();
  6506. } else if (tool == 47) {
  6507. this.addSentenceTool();
  6508. } else if (tool == 69) {
  6509. this.addEnglish();
  6510. }
  6511. })
  6512. .catch(() => {
  6513. if (tool == 15) {
  6514. this.dialogVisible8 = false;
  6515. } else if (tool == 4) {
  6516. this.dialogVisible5 = false;
  6517. } else if (tool == 45) {
  6518. this.dialogVisibleChoice = false;
  6519. } else if (tool == 41) {
  6520. this.dialogVisibleSelect = false;
  6521. } else if (tool == 47) {
  6522. this.dialogVisibleSentence = false;
  6523. } else if (tool == 69) {
  6524. this.englishDialogVisible = false;
  6525. }
  6526. });
  6527. },
  6528. addEnglish(jsonType) {
  6529. this.englishList.engTitle = this.$refs["engJson"].engList.engTitle;
  6530. this.englishList.englishText = this.$refs["engJson"].engList.englishText;
  6531. this.englishList.textJson = this.$refs["engJson"].engList.textJson;
  6532. if (
  6533. this.englishList.engTitle == "" ||
  6534. this.englishList.englishText == ""
  6535. ) {
  6536. this.$message.error("请将内容填写完整!");
  6537. return;
  6538. }
  6539. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6540. this.taskCount
  6541. ].toolChoose[this.toolIndex].englishList = this.englishList;
  6542. this.englishList = {};
  6543. if (jsonType && jsonType == 1) {
  6544. this.englishDialogVisible = true;
  6545. } else {
  6546. this.englishDialogVisible = false;
  6547. }
  6548. if (
  6549. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6550. .toolChoose[this.toolIndex].tool != 69
  6551. ) {
  6552. this.addTools(69, this.taskCount, this.toolIndex);
  6553. }
  6554. },
  6555. imgChange2(i, j) {
  6556. var _tmp = this.testJson.testJson[i].checkList[j];
  6557. this.noneBtnImg = _tmp.length >= 1;
  6558. },
  6559. imgChange3(i) {
  6560. var _tmp = this.testJson.testJson[i];
  6561. this.noneBtnImg = _tmp.length >= 1;
  6562. },
  6563. imgChange1(file, fileList, type, itemTaskIndex) {
  6564. if (type == 1) {
  6565. var _tmp = this.cover;
  6566. } else if (
  6567. type == 2 ||
  6568. type == 3 ||
  6569. type == 6 ||
  6570. type == 7 ||
  6571. type == 8
  6572. ) {
  6573. var _tmp =
  6574. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6575. .chapterData;
  6576. } else if (type == 4) {
  6577. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  6578. } else {
  6579. var _tmp =
  6580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6581. .homeworkList;
  6582. }
  6583. this.noneBtnImg = _tmp.length >= 1;
  6584. },
  6585. goTo(path) {
  6586. this.$router.push(path);
  6587. },
  6588. guid() {
  6589. var _num,
  6590. i,
  6591. _guid = "";
  6592. for (i = 0; i < 32; i++) {
  6593. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6594. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6595. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6596. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6597. _guid += "-";
  6598. }
  6599. }
  6600. return _guid;
  6601. },
  6602. retrunCourse() {
  6603. if(this.istemplate == 1){
  6604. this.goTo(
  6605. "/course?userid=" +
  6606. this.userid +
  6607. "&oid=" +
  6608. this.oid +
  6609. "&org=" +
  6610. this.org +
  6611. "&role=" +
  6612. this.role
  6613. );
  6614. return
  6615. }
  6616. this.$confirm("是否保存已编辑内容?", "提示", {
  6617. confirmButtonText: "保存",
  6618. cancelButtonText: "不保存",
  6619. distinguishCancelAndClose: true,
  6620. type: "warning",
  6621. })
  6622. .then(() => {
  6623. if (this.cid == "" || this.cid == undefined) {
  6624. if (this.courseName == "") {
  6625. this.$message.error("请补充填写课程名称");
  6626. return;
  6627. } else {
  6628. this.addWork();
  6629. }
  6630. this.steps = 4;
  6631. } else {
  6632. if (this.courseName == "") {
  6633. this.$message.error("请补充填写课程名称");
  6634. return;
  6635. } else {
  6636. if (this.userid != this.courseUserid && this.role != "1") {
  6637. this.updateWork2();
  6638. } else {
  6639. this.updateWork();
  6640. }
  6641. this.steps = 4;
  6642. }
  6643. }
  6644. })
  6645. .catch((v) => {
  6646. console.log(v);
  6647. if (v == "cancel") {
  6648. this.goTo(
  6649. "/course?userid=" +
  6650. this.userid +
  6651. "&oid=" +
  6652. this.oid +
  6653. "&org=" +
  6654. this.org +
  6655. "&role=" +
  6656. this.role
  6657. );
  6658. }
  6659. });
  6660. },
  6661. lastSteps() {
  6662. if (this.steps == 4) {
  6663. this.goTo(
  6664. "/course?userid=" +
  6665. this.userid +
  6666. "&oid=" +
  6667. this.oid +
  6668. "&org=" +
  6669. this.org +
  6670. "&role=" +
  6671. this.role
  6672. );
  6673. } else {
  6674. // if (this.cidType == 0) {
  6675. // this.steps--;
  6676. // if (this.steps == 1) {
  6677. // setTimeout(() => {
  6678. // this.checkEva(this.checkId);
  6679. // setTimeout(() => {
  6680. // this.checkEva(this.checkId);
  6681. // }, 100);
  6682. // }, 100);
  6683. // }
  6684. // } else {
  6685. if (this.steps == 3) {
  6686. this.steps = 1;
  6687. setTimeout(() => {
  6688. this.checkEva(this.checkId);
  6689. setTimeout(() => {
  6690. this.checkEva(this.checkId);
  6691. }, 100);
  6692. }, 100);
  6693. }
  6694. // }
  6695. }
  6696. },
  6697. navSteps(s) {
  6698. if (this.courseName == "") {
  6699. this.$message.error("请补充填写课程名称");
  6700. return;
  6701. }
  6702. if (this.cidType == 0) {
  6703. if (this.steps == 1) {
  6704. if (this.cid == "" || this.cid == undefined) {
  6705. this.addWork();
  6706. } else {
  6707. if (this.userid != this.courseUserid && this.role != "1") {
  6708. this.updateWork2();
  6709. } else {
  6710. this.updateWork();
  6711. }
  6712. }
  6713. }
  6714. if (s == 1) {
  6715. this.steps = 1;
  6716. setTimeout(() => {
  6717. this.checkEva(this.checkId);
  6718. setTimeout(() => {
  6719. this.checkEva(this.checkId);
  6720. }, 100);
  6721. }, 100);
  6722. }
  6723. if (s == 2) {
  6724. this.steps = 2;
  6725. }
  6726. if (s == 3) {
  6727. this.cTemplate = this.templateC.content;
  6728. this.dialogVisible2 = false;
  6729. this.steps = 3;
  6730. this.isClickColor = 1;
  6731. this.unitJson[
  6732. this.unitIndex
  6733. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6734. this.$forceUpdate();
  6735. setTimeout(() => {
  6736. this.checkEva(this.checkId);
  6737. setTimeout(() => {
  6738. this.checkEva(this.checkId);
  6739. }, 100);
  6740. }, 1000);
  6741. }
  6742. } else {
  6743. if (this.steps == 1) {
  6744. if (this.cid == "" || this.cid == undefined) {
  6745. this.addWork();
  6746. } else {
  6747. if (this.userid != this.courseUserid && this.role != "1") {
  6748. this.updateWork2();
  6749. } else {
  6750. this.updateWork();
  6751. }
  6752. }
  6753. }
  6754. if (s == 1) {
  6755. this.steps = 1;
  6756. setTimeout(() => {
  6757. this.checkEva(this.checkId);
  6758. setTimeout(() => {
  6759. this.checkEva(this.checkId);
  6760. }, 100);
  6761. }, 100);
  6762. }
  6763. if (s == 3) {
  6764. this.cTemplate = this.templateC.content;
  6765. this.dialogVisible2 = false;
  6766. this.steps = 3;
  6767. this.isClickColor = 1;
  6768. this.unitJson[
  6769. this.unitIndex
  6770. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6771. this.$forceUpdate();
  6772. setTimeout(() => {
  6773. this.checkEva(this.checkId);
  6774. setTimeout(() => {
  6775. this.checkEva(this.checkId);
  6776. }, 100);
  6777. }, 1000);
  6778. }
  6779. }
  6780. this.$refs.stepBox.scrollTop = 0;
  6781. },
  6782. nextSteps(clickType) {
  6783. // if (this.cidType == 1) {
  6784. if (this.steps == 1) {
  6785. if (this.courseName != "") {
  6786. if (this.ttaskDetailLoading5.indexOf('task-') !== -1 || this.cpotetLoading.cpote1 || this.cpotetLoading.cpote2 || this.cpotetLoading.cpote3 || this.cpotetLoading.cpote4) {
  6787. this.$message({
  6788. message: "请回答完毕后再次发送",
  6789. type: "warning"
  6790. });
  6791. return;
  6792. }
  6793. if (this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" && !this.isOutline) {
  6794. this.openAiDialog(clickType, 'aiOutline')
  6795. return;
  6796. }
  6797. if(this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" && this.cpoteType != 4){
  6798. let _type = ''
  6799. if(this.cpoteType == 0){
  6800. _type = 'aiCpote1'
  6801. }else if(this.cpoteType == 1){
  6802. _type = 'aiCpote2'
  6803. }else if(this.cpoteType == 2){
  6804. _type = 'aiCpote3'
  6805. }else if(this.cpoteType == 3){
  6806. _type = 'aiCpote4'
  6807. }
  6808. this.cpoteType++
  6809. this.openAiDialog(clickType, _type)
  6810. return;
  6811. }
  6812. if (!this.isOutline2 && this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5") {
  6813. this.openAiDialog(clickType, 'aiTeacher')
  6814. return;
  6815. }
  6816. if (!this.isOutline2 && this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5") {
  6817. this.openAiDialog(clickType, 'aiTeacher2')
  6818. return;
  6819. }
  6820. const functionA = () => {
  6821. setTimeout(() => {
  6822. this.loading = false
  6823. this.steps = 3;
  6824. }, 0)
  6825. this.isClickColor = 1;
  6826. this.unitJson[
  6827. this.unitIndex
  6828. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6829. this.$forceUpdate();
  6830. setTimeout(() => {
  6831. this.checkEva(this.checkId);
  6832. setTimeout(() => {
  6833. this.checkEva(this.checkId);
  6834. }, 100);
  6835. }, 1000);
  6836. if (this.cid == "" || this.cid == undefined) {
  6837. this.addWork();
  6838. } else {
  6839. if (this.userid != this.courseUserid && this.role != "1") {
  6840. this.updateWork2();
  6841. } else {
  6842. this.updateWork();
  6843. }
  6844. }
  6845. }
  6846. if (this.cid) {
  6847. this.loading = true
  6848. functionA()
  6849. } else {
  6850. this.openAiDialog(clickType, "aiTask", functionA)
  6851. }
  6852. } else {
  6853. this.$message.error("请补充填写课程名称");
  6854. return;
  6855. }
  6856. } else if (this.steps == 3) {
  6857. if (this.cid == "" || this.cid == undefined) {
  6858. if (this.courseName == "") {
  6859. this.$message.error("请补充填写课程名称");
  6860. return;
  6861. } else {
  6862. this.addWork();
  6863. this.steps++;
  6864. }
  6865. } else {
  6866. if (this.courseName == "") {
  6867. this.$message.error("请补充填写课程名称");
  6868. return;
  6869. } else {
  6870. if (this.userid != this.courseUserid && this.role != "1") {
  6871. this.updateWork2();
  6872. } else {
  6873. this.updateWork();
  6874. }
  6875. this.steps++;
  6876. }
  6877. }
  6878. }
  6879. // } else {
  6880. // if (this.steps == 1) {
  6881. // if (this.courseName != "") {
  6882. // if (this.cid == "" || this.cid == undefined) {
  6883. // this.addWork();
  6884. // } else {
  6885. // if (this.userid != this.courseUserid && this.role != "1") {
  6886. // // this.updateWork2();
  6887. // } else {
  6888. // this.updateWork();
  6889. // }
  6890. // }
  6891. // this.steps++;
  6892. // } else {
  6893. // this.$message.error("请补充填写课程名称");
  6894. // return;
  6895. // }
  6896. // } else if (this.steps == 2) {
  6897. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  6898. // this.cTemplate = this.templateC.content;
  6899. // }
  6900. // this.dialogVisible2 = false;
  6901. // this.steps++;
  6902. // setTimeout(() => {
  6903. // this.checkEva(this.checkId);
  6904. // setTimeout(() => {
  6905. // this.checkEva(this.checkId);
  6906. // }, 100);
  6907. // }, 1000);
  6908. // } else if (this.steps == 3) {
  6909. // if (this.cid == "" || this.cid == undefined) {
  6910. // if (this.courseName == "") {
  6911. // this.$message.error("请补充填写课程名称");
  6912. // return;
  6913. // } else {
  6914. // this.addWork();
  6915. // this.steps++;
  6916. // }
  6917. // } else {
  6918. // if (this.courseName == "") {
  6919. // this.$message.error("请补充填写课程名称");
  6920. // return;
  6921. // } else {
  6922. // if (this.userid != this.courseUserid && this.role != "1") {
  6923. // this.updateWork2();
  6924. // } else {
  6925. // this.updateWork();
  6926. // }
  6927. // this.steps++;
  6928. // }
  6929. // }
  6930. // }
  6931. // }
  6932. this.$refs.stepBox.scrollTop = 0;
  6933. },
  6934. unitSet(i) {
  6935. if (this.unitIndex == i) {
  6936. return;
  6937. }
  6938. this.unitIndex = i;
  6939. this.isClickColor = 1;
  6940. // this.$refs.rightboxR.scrollTop = 0;
  6941. this.$refs.unitBox.scrollTop = 0;
  6942. },
  6943. panUnitJson() {
  6944. let _unitIndex = this.unitIndex;
  6945. let cPan = 1;
  6946. for (
  6947. var j = 0;
  6948. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6949. j++
  6950. ) {
  6951. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6952. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6953. j
  6954. ].proVisible2 = false;
  6955. if (
  6956. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6957. .length > 1
  6958. ) {
  6959. for (
  6960. var z = 0;
  6961. z <
  6962. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6963. .length;
  6964. z++
  6965. ) {
  6966. if (
  6967. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6968. z
  6969. ].tool.length
  6970. ) {
  6971. this.$message.error("请把工具添加完整");
  6972. cPan = 2;
  6973. break;
  6974. }
  6975. }
  6976. }
  6977. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6978. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6979. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6980. (ele) => {
  6981. return ele.value != "";
  6982. }
  6983. );
  6984. }
  6985. }
  6986. return cPan;
  6987. },
  6988. unitOpen(i) {
  6989. if (this.unitJson[i].toolOpen) {
  6990. this.unitJson[i].toolOpen = false;
  6991. } else {
  6992. this.unitJson[i].toolOpen = true;
  6993. }
  6994. this.updateWork();
  6995. this.$forceUpdate();
  6996. },
  6997. unitSet2(i) {
  6998. if (this.panUnitJson() == 2) {
  6999. return;
  7000. }
  7001. // if(this.unitJson[i].toolOpen){
  7002. // this.unitJson[i].toolOpen = false
  7003. // this.updateWork()
  7004. // this.$forceUpdate()
  7005. // return
  7006. // }else {
  7007. this.unitJson[i].toolOpen = true;
  7008. // }
  7009. this.$forceUpdate();
  7010. if (this.unitIndex == i) {
  7011. return;
  7012. }
  7013. this.unitIndex = i;
  7014. this.isClickColor = 1;
  7015. // this.$refs.rightboxR.scrollTop = 0;
  7016. this.$refs.unitBox.scrollTop = 0;
  7017. },
  7018. updateCourseState(i) {
  7019. let params = [
  7020. {
  7021. cid: this.cid,
  7022. state: i,
  7023. },
  7024. ];
  7025. this.ajax
  7026. .post(this.$store.state.api + "updateCourseMode", params)
  7027. .then((res) => {
  7028. this.courseState = i;
  7029. })
  7030. .catch((err) => {
  7031. this.$message.error("网络不佳");
  7032. console.error(err);
  7033. });
  7034. },
  7035. addtips(){
  7036. let params = [
  7037. {
  7038. cid: this.cid,
  7039. tips: JSON.stringify(this.aiJson),
  7040. tid: this.templateid
  7041. },
  7042. ];
  7043. this.ajax
  7044. .post(this.$store.state.api + "addTips", params)
  7045. .then((res) => {
  7046. })
  7047. .catch((err) => {
  7048. this.$message.error("网络不佳");
  7049. console.error(err);
  7050. });
  7051. },
  7052. openSaveTips(){
  7053. this.dialogVisibleTips = true
  7054. },
  7055. time() {
  7056. if (!this.now) {
  7057. this.now = new Date().getTime();
  7058. return true;
  7059. } else {
  7060. let time = new Date().getTime();
  7061. if (time - this.now > 3000) {
  7062. this.now = time;
  7063. return true;
  7064. } else {
  7065. return false;
  7066. }
  7067. }
  7068. },
  7069. deleteUnit(i) {
  7070. var _this = this;
  7071. if (i == 0 && _this.unitJson.length == 1) {
  7072. _this
  7073. .$confirm("确定切换成任务模式吗?", "提示", {
  7074. confirmButtonText: "确定",
  7075. cancelButtonText: "取消",
  7076. type: "warning",
  7077. })
  7078. .then(() => {
  7079. _this.unitJson[i].dyName = "";
  7080. // _this.updateCourseState(2);
  7081. })
  7082. .catch(() => {
  7083. return;
  7084. });
  7085. } else {
  7086. _this
  7087. .$confirm("确定删除此阶段吗?", "提示", {
  7088. confirmButtonText: "确定",
  7089. cancelButtonText: "取消",
  7090. type: "warning",
  7091. })
  7092. .then(() => {
  7093. _this.isDelete = 2;
  7094. // _this.unitIndex = _this.unitIndex - 1;
  7095. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  7096. // _this.$message.success("删除成功");
  7097. })
  7098. .catch(() => {
  7099. return;
  7100. });
  7101. }
  7102. },
  7103. deleteWork(chapid) {
  7104. let params = [
  7105. {
  7106. cid: this.cid,
  7107. chapters: JSON.stringify(this.unitJson),
  7108. uid: this.userid,
  7109. chapid: chapid,
  7110. },
  7111. ];
  7112. this.ajax
  7113. .post(this.$store.state.api + "deleteWork", params)
  7114. .then((res) => {
  7115. this.$message({
  7116. message: "删除成功",
  7117. type: "success",
  7118. });
  7119. let task = JSON.parse(
  7120. JSON.stringify(
  7121. this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  7122. )
  7123. );
  7124. this.unitJson.splice(this.unitIndex, 1);
  7125. if (this.unitIndex == 0) {
  7126. this.unitIndex = 0;
  7127. } else {
  7128. this.unitIndex = this.unitIndex - 1;
  7129. }
  7130. if (JSON.stringify(task) != JSON.stringify(this.taskJSONa)) {
  7131. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [
  7132. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson,
  7133. ...task,
  7134. ];
  7135. }
  7136. })
  7137. .catch((err) => {
  7138. this.$message.error("网络不佳");
  7139. console.error(err);
  7140. });
  7141. },
  7142. deleteTool(itemTaskIndex, i) {
  7143. var _this = this;
  7144. if (_this.time()) {
  7145. _this
  7146. .$confirm("确定删除此工具吗?", "提示", {
  7147. confirmButtonText: "确定",
  7148. cancelButtonText: "取消",
  7149. type: "warning",
  7150. })
  7151. .then(() => {
  7152. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7153. itemTaskIndex
  7154. ].toolChoose.splice(i, 1);
  7155. _this.$message.success("删除成功");
  7156. })
  7157. .catch(() => {
  7158. return;
  7159. });
  7160. }
  7161. },
  7162. deleteSentence(i) {
  7163. var _this = this;
  7164. _this
  7165. .$confirm("确定删除此题目吗?", "提示", {
  7166. confirmButtonText: "确定",
  7167. cancelButtonText: "取消",
  7168. type: "warning",
  7169. })
  7170. .then(() => {
  7171. _this.sentenceList.splice(i, 1);
  7172. _this.$message.success("删除成功");
  7173. })
  7174. .catch(() => {
  7175. return;
  7176. });
  7177. },
  7178. deleteS(s, i, j) {
  7179. this.sentenceList[i].addSentence.splice(j, 1);
  7180. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  7181. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  7182. this.sentenceList[i].rightAnswer.splice(a, 1);
  7183. }
  7184. },
  7185. openT() {
  7186. top.postMessage({ tools: "25" }, "*");
  7187. },
  7188. deleteTask(i) {
  7189. var _this = this;
  7190. if (_this.time()) {
  7191. _this
  7192. .$confirm(
  7193. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  7194. 1 ==
  7195. i
  7196. ? "确定删除此任务吗?"
  7197. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  7198. "提示",
  7199. {
  7200. confirmButtonText: "确定",
  7201. cancelButtonText: "取消",
  7202. type: "warning",
  7203. }
  7204. )
  7205. .then(() => {
  7206. if (i == 0) {
  7207. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7208. i + 1
  7209. ].chapterData = JSON.parse(
  7210. JSON.stringify(
  7211. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  7212. .chapterData
  7213. )
  7214. );
  7215. }
  7216. _this.$forceUpdate();
  7217. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  7218. i,
  7219. 1
  7220. );
  7221. _this.$message.success("删除成功");
  7222. })
  7223. .catch(() => {
  7224. return;
  7225. });
  7226. }
  7227. },
  7228. handlePictureCardPreview(file) {
  7229. this.dialogImageUrl = file.url;
  7230. },
  7231. clean(i, c) {
  7232. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  7233. },
  7234. handle_remove1(file, fileList, type) {
  7235. var _tmp = this.cover;
  7236. // for (var i = 0, len = _tmp.length; i < len; i++) {
  7237. // if (_tmp[i].uid == file.uid) {
  7238. // _tmp.splice(i, 1);
  7239. // break;
  7240. // }
  7241. // this.cover = _tmp;
  7242. // }
  7243. this.cover = [];
  7244. this.noneBtnImg = this.cover.length >= 1;
  7245. this.isSysPic = false;
  7246. this.isSysPic2 = false;
  7247. this.$forceUpdate();
  7248. },
  7249. addImg(e) {
  7250. var el = e.currentTarget;
  7251. el.getElementsByTagName("input")[0].click();
  7252. e.target.value = "";
  7253. },
  7254. addChaptersTools(i) {
  7255. this.chapTools = [
  7256. {
  7257. tools: [],
  7258. toolDetail: "",
  7259. },
  7260. ];
  7261. this.chapCount = i;
  7262. this.dialogVisible4 = true;
  7263. },
  7264. isNoFinsh() {
  7265. this.$message.warning("功能正在开发中");
  7266. },
  7267. addAttText(i) {
  7268. this.AttText = {
  7269. title: "",
  7270. text: "",
  7271. };
  7272. this.taskCount = i;
  7273. this.AttTextType = 0;
  7274. this.$forceUpdate();
  7275. this.dialogVisible6 = true;
  7276. setTimeout(() => {
  7277. this.$refs["fuInput"].focus();
  7278. }, 100);
  7279. },
  7280. openLine(i) {
  7281. this.line = "";
  7282. this.lineCount = i;
  7283. this.lineType = 0;
  7284. this.$forceUpdate();
  7285. this.dialogVisible7 = true;
  7286. },
  7287. pasteLine(i) {
  7288. navigator.clipboard
  7289. .readText()
  7290. .then((v) => {
  7291. console.log("获取剪贴板成功:", v);
  7292. const html = v;
  7293. const regex = /src="(.*?)"/g;
  7294. const match = regex.exec(html);
  7295. if (match && match[1]) {
  7296. console.log(match[1]);
  7297. this.$message.success("粘贴成功");
  7298. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7299. i
  7300. ].chapterData.push({
  7301. name: "链接",
  7302. title: "嵌入代码",
  7303. url: match[1],
  7304. type: 8,
  7305. });
  7306. } else {
  7307. // console.log("未找到包含 src 属性的 iframe");
  7308. this.$message.error(
  7309. "系统没有找到粘贴对象,请首先复制可用于粘贴的链接。"
  7310. );
  7311. }
  7312. })
  7313. .catch((v) => {
  7314. console.log("获取剪贴板失败: ", v);
  7315. });
  7316. },
  7317. openSource(i) {
  7318. this.lineCount = i;
  7319. this.sourceData = {};
  7320. this.dialogVisibleSource = true;
  7321. this.updateSourcePan = false;
  7322. },
  7323. openAiCreate(i){
  7324. this.lineCount = i;
  7325. this.dialogVisibleAiCreate = true;
  7326. },
  7327. createAiPpt(json){
  7328. this.unitJson[0].chapterInfo[0].taskJson[this.lineCount].chapterData.push(json);
  7329. this.dialogVisibleAiCreate = false;
  7330. },
  7331. openAiCreateVideo(i){
  7332. this.lineCount = i;
  7333. this.dialogVisibleAiCreateVideo = true;
  7334. },
  7335. createAiVideo(json){
  7336. this.unitJson[0].chapterInfo[0].taskJson[this.lineCount].chapterData.push(json);
  7337. // this.dialogVisibleAiCreateVideo = false;
  7338. },
  7339. async createTeacherAn(index){
  7340. this.lineCount = index;
  7341. this.loading = true
  7342. let md = new MarkdownIt();
  7343. if(this.courseState == 4){
  7344. for(var i = 0; i < this.unitJson[0].chapterInfo[0].taskJson.length; i++){
  7345. let _task = this.unitJson[0].chapterInfo[0].taskJson[i]
  7346. let name = _task.task+'-教案'
  7347. let _html = _task.taskDetail3 ? md.render(_task.taskDetail3) : ''
  7348. await this.generate(name, _html, i)
  7349. }
  7350. }else if(this.courseState == 5){
  7351. let _task = this.unitJson[0].chapterInfo[0].taskJson[index]
  7352. let name = _task.task+'-教案'
  7353. let _html = _task.taskDetail3 ? md.render(_task.taskDetail3) : ''
  7354. await this.generate(name, _html, index)
  7355. }
  7356. },
  7357. async generate(a, html, index) {
  7358. // 将html文件中需要用到的数据挂载到store上
  7359. const content = `<!DOCTYPE html>
  7360. <html lang="en">
  7361. <head>
  7362. <meta charset="UTF-8">
  7363. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7364. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7365. <title>${a}</title>
  7366. <style>
  7367. </style>
  7368. </head>
  7369. <body>
  7370. ${html}
  7371. </body>
  7372. </html>`;
  7373. // debugger
  7374. let dname = a + ".doc";
  7375. // 创建文件流
  7376. // 创建bolb实例时,内容一定要放在[]中
  7377. const blob = new Blob([content], {
  7378. type: "text/plain;charset='utf-8'",
  7379. });
  7380. const file = new File([blob], dname, { type: 'application/msword' });
  7381. await this.beforeUploadHtml(file, index)
  7382. },
  7383. beforeUploadHtml(event, index) {
  7384. var file = event;
  7385. var credentials = {
  7386. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7387. secretAccessKey: "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",
  7388. }; //秘钥形式的登录上传
  7389. window.AWS.config.update(credentials);
  7390. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7391. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7392. var _this = this;
  7393. if (file) {
  7394. var params = {
  7395. Key:
  7396. file.name.split(".")[0] +
  7397. new Date().getTime() +
  7398. "." +
  7399. file.name.split(".")[file.name.split(".").length - 1],
  7400. ContentType: file.type,
  7401. Body: file,
  7402. "Access-Control-Allow-Credentials": "*",
  7403. ACL: "public-read",
  7404. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7405. var options = {
  7406. partSize: 2048 * 1024 * 1024,
  7407. queueSize: 2,
  7408. leavePartsOnError: true,
  7409. };
  7410. bucket
  7411. .upload(params, options)
  7412. .on("httpUploadProgress", function (evt) {
  7413. //这里可以写进度条
  7414. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7415. })
  7416. .send(function (err, data) {
  7417. if(index == (_this.unitJson[0].chapterInfo[0].taskJson.length - 1) && _this.courseState == 4){
  7418. _this.loading = false
  7419. }
  7420. if(_this.courseState == 5){
  7421. _this.loading = false
  7422. }
  7423. if (err) {
  7424. _this.$message.error("上传失败");
  7425. } else {
  7426. let _index = 0
  7427. if(_this.lineCount == 0 || _this.lineCount){
  7428. _index = _this.lineCount
  7429. }else {
  7430. _index = index
  7431. }
  7432. _this.unitJson[0].chapterInfo[0].taskJson[_index].chapterData.push({
  7433.                   name: file.name,
  7434.                   url: data.Location,
  7435.                   type: 3,
  7436.                 })
  7437. console.log(data.Location);
  7438. }
  7439. });
  7440. }
  7441. },
  7442. addSource() {
  7443. if (!Object.keys(this.sourceData).length) {
  7444. this.$message.error("请选择要上传的资源");
  7445. return;
  7446. }
  7447. let keys = Object.keys(this.sourceData);
  7448. for (var i = 0; i < keys.length; i++) {
  7449. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7450. this.lineCount
  7451. ].chapterData.push({
  7452. name: "链接",
  7453. title: this.sourceData[keys[i]].name,
  7454. url: this.sourceData[keys[i]].url,
  7455. type: 14,
  7456. id: keys[i],
  7457. });
  7458. }
  7459. this.$forceUpdate();
  7460. this.dialogVisibleSource = false;
  7461. },
  7462. updateSource() {
  7463. if (!Object.keys(this.sourceData).length) {
  7464. this.$message.error("请选择要上传的资源");
  7465. return;
  7466. }
  7467. let keys = Object.keys(this.sourceData);
  7468. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7469. this.taskCount
  7470. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  7471. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7472. this.taskCount
  7473. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  7474. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7475. this.taskCount
  7476. ].chapterData[this.lineCount].id = keys[0];
  7477. this.updateSourcePan = false;
  7478. this.$forceUpdate();
  7479. this.dialogVisibleSource = false;
  7480. },
  7481. deleteM(i, j) {
  7482. this.testJson.testJson[i].timuList.splice(j, 1);
  7483. },
  7484. beforeUploadTiMu(event, i) {
  7485. const loading = this.openLoading();
  7486. var file = event.target.files[0];
  7487. var credentials = {
  7488. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7489. secretAccessKey: "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",
  7490. }; //秘钥形式的登录上传
  7491. window.AWS.config.update(credentials);
  7492. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7493. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7494. var _this = this;
  7495. if (file) {
  7496. var params = {
  7497. Key:
  7498. file.name.split(".")[0] +
  7499. new Date().getTime() +
  7500. "." +
  7501. file.name.split(".")[file.name.split(".").length - 1],
  7502. ContentType: file.type,
  7503. Body: file,
  7504. "Access-Control-Allow-Credentials": "*",
  7505. ACL: "public-read",
  7506. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7507. var options = {
  7508. partSize: 2048 * 1024 * 1024,
  7509. queueSize: 2,
  7510. leavePartsOnError: true,
  7511. };
  7512. bucket
  7513. .upload(params, options)
  7514. .on("httpUploadProgress", function (evt) {
  7515. //这里可以写进度条
  7516. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7517. })
  7518. .send(function (err, data) {
  7519. loading.close();
  7520. if (err) {
  7521. _this.$message.error("上传失败");
  7522. } else {
  7523. if (_this.testJson.testJson[i].timuList) {
  7524. _this.testJson.testJson[i].timuList.push({
  7525. src: data.Location,
  7526. });
  7527. } else {
  7528. _this.testJson.testJson[i].timuList = [];
  7529. _this.testJson.testJson[i].timuList.push({
  7530. src: data.Location,
  7531. });
  7532. }
  7533. _this.imgChange3(i);
  7534. _this.$forceUpdate();
  7535. }
  7536. });
  7537. }
  7538. },
  7539. beforeUploadTi(event, i, j) {
  7540. const loading = this.openLoading();
  7541. var file = event.target.files[0];
  7542. var credentials = {
  7543. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7544. secretAccessKey: "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",
  7545. }; //秘钥形式的登录上传
  7546. window.AWS.config.update(credentials);
  7547. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7548. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7549. var _this = this;
  7550. if (file) {
  7551. var params = {
  7552. Key:
  7553. file.name.split(".")[0] +
  7554. new Date().getTime() +
  7555. "." +
  7556. file.name.split(".")[file.name.split(".").length - 1],
  7557. ContentType: file.type,
  7558. Body: file,
  7559. "Access-Control-Allow-Credentials": "*",
  7560. ACL: "public-read",
  7561. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7562. var options = {
  7563. partSize: 2048 * 1024 * 1024,
  7564. queueSize: 2,
  7565. leavePartsOnError: true,
  7566. };
  7567. bucket
  7568. .upload(params, options)
  7569. .on("httpUploadProgress", function (evt) {
  7570. //这里可以写进度条
  7571. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7572. })
  7573. .send(function (err, data) {
  7574. loading.close();
  7575. if (err) {
  7576. _this.$message.error("上传失败");
  7577. } else {
  7578. _this.testJson.testJson[i].checkList[j] = {};
  7579. _this.testJson.testJson[i].checkList[j].src = data.Location;
  7580. _this.testJson.testJson[i].checkList[j].imgType = 1;
  7581. _this.imgChange2(i, j);
  7582. _this.$forceUpdate();
  7583. }
  7584. });
  7585. }
  7586. },
  7587. beforeUpload1(event, type) {
  7588. // const loading = this.openLoading();
  7589. var file = event.target.files[0];
  7590. var credentials = {
  7591. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7592. secretAccessKey: "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",
  7593. }; //秘钥形式的登录上传
  7594. window.AWS.config.update(credentials);
  7595. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7596. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7597. var _this = this;
  7598. if (file) {
  7599. var params = {
  7600. Key:
  7601. file.name.split(".")[0] +
  7602. new Date().getTime() +
  7603. "." +
  7604. file.name.split(".")[file.name.split(".").length - 1],
  7605. ContentType: file.type,
  7606. Body: file,
  7607. "Access-Control-Allow-Credentials": "*",
  7608. ACL: "public-read",
  7609. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7610. var options = {
  7611. partSize: 2048 * 1024 * 1024,
  7612. queueSize: 2,
  7613. leavePartsOnError: true,
  7614. };
  7615. bucket
  7616. .upload(params, options)
  7617. .on("httpUploadProgress", function (evt) {
  7618. //这里可以写进度条
  7619. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7620. })
  7621. .send(function (err, data) {
  7622. // loading.close();
  7623. if (err) {
  7624. // var a = _this.$refs.upload1.uploadFiles;
  7625. // a.splice(a.length - 1, a.length);
  7626. _this.$message.error("上传失败");
  7627. } else {
  7628. // _this.cover.push({
  7629. // name: file.name,
  7630. // url: data.Location,
  7631. // uid: file.uid,
  7632. // });
  7633. _this.cover = [
  7634. {
  7635. name: file.name,
  7636. url: data.Location,
  7637. uid: file.uid,
  7638. },
  7639. ];
  7640. _this.imgChange1(null, null, 1, null);
  7641. _this.choosePicVisible = false;
  7642. console.log(data.Location);
  7643. }
  7644. });
  7645. }
  7646. },
  7647. beforeUploadSelect(event, type) {
  7648. // const loading = this.openLoading();
  7649. var file = event.target.files[0];
  7650. var credentials = {
  7651. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7652. secretAccessKey: "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",
  7653. }; //秘钥形式的登录上传
  7654. window.AWS.config.update(credentials);
  7655. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7656. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7657. var _this = this;
  7658. if (file) {
  7659. var params = {
  7660. Key:
  7661. file.name.split(".")[0] +
  7662. new Date().getTime() +
  7663. "." +
  7664. file.name.split(".")[file.name.split(".").length - 1],
  7665. ContentType: file.type,
  7666. Body: file,
  7667. "Access-Control-Allow-Credentials": "*",
  7668. ACL: "public-read",
  7669. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7670. var options = {
  7671. partSize: 2048 * 1024 * 1024,
  7672. queueSize: 2,
  7673. leavePartsOnError: true,
  7674. };
  7675. bucket
  7676. .upload(params, options)
  7677. .on("httpUploadProgress", function (evt) {
  7678. //这里可以写进度条
  7679. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7680. })
  7681. .send(function (err, data) {
  7682. // loading.close();
  7683. if (err) {
  7684. _this.$message.error("上传失败");
  7685. } else {
  7686. _this.selectJson.url = data.Location;
  7687. console.log(data.Location);
  7688. }
  7689. });
  7690. }
  7691. },
  7692. chooseSysPic(p) {
  7693. this.cover = [];
  7694. setTimeout(() => {
  7695. this.cover[0] = {
  7696. name: "系统图片.png",
  7697. url: p,
  7698. };
  7699. this.imgChange1(null, null, 1, null);
  7700. this.$forceUpdate();
  7701. }, 0);
  7702. this.isSysPic = true;
  7703. this.isSysPic2 = false;
  7704. this.sysPicVisible = false;
  7705. this.$forceUpdate();
  7706. },
  7707. chooseSysPic2(p) {
  7708. this.cover = [];
  7709. setTimeout(() => {
  7710. this.cover[0] = {
  7711. name: "网络图片.png",
  7712. url: p,
  7713. };
  7714. this.imgChange1(null, null, 1, null);
  7715. this.$forceUpdate();
  7716. }, 0);
  7717. this.isSysPic2 = true;
  7718. this.isSysPic = false;
  7719. this.sysPicVisible2 = false;
  7720. this.$forceUpdate();
  7721. },
  7722. beforeUpload(data) {
  7723. this.$refs.upload1.uploadFiles;
  7724. this.uploadLoading1 = true;
  7725. var file = data.file;
  7726. var credentials = {
  7727. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7728. secretAccessKey: "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",
  7729. }; //秘钥形式的登录上传
  7730. window.AWS.config.update(credentials);
  7731. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7732. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7733. var _this = this;
  7734. if (file) {
  7735. var params = {
  7736. Key:
  7737. file.name.split(".")[0] +
  7738. new Date().getTime() +
  7739. "." +
  7740. file.name.split(".")[file.name.split(".").length - 1],
  7741. ContentType: file.type,
  7742. Body: file,
  7743. "Access-Control-Allow-Credentials": "*",
  7744. ACL: "public-read",
  7745. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7746. var options = {
  7747. partSize: 2048 * 1024 * 1024,
  7748. queueSize: 2,
  7749. leavePartsOnError: true,
  7750. };
  7751. bucket
  7752. .upload(params, options)
  7753. .on("httpUploadProgress", function (evt) {
  7754. //这里可以写进度条
  7755. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7756. })
  7757. .send(function (err, data) {
  7758. _this.uploadLoading1 = false;
  7759. if (err) {
  7760. // var a = _this.$refs.upload1.uploadFiles;
  7761. // a.splice(a.length - 1, a.length);
  7762. _this.$message.error("上传失败");
  7763. } else {
  7764. //上传成功处理
  7765. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  7766. name: file.name,
  7767. url: data.Location,
  7768. uid: file.uid,
  7769. });
  7770. _this.imgChange();
  7771. console.log(data.Location);
  7772. }
  7773. });
  7774. }
  7775. },
  7776. onExceed() {
  7777. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  7778. },
  7779. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  7780. // const loading = this.openLoading();
  7781. var file = event.target.files[0];
  7782. var credentials = {
  7783. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7784. secretAccessKey: "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",
  7785. }; //秘钥形式的登录上传
  7786. window.AWS.config.update(credentials);
  7787. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7788. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7789. var _this = this;
  7790. if (type == 3) {
  7791. var b = [
  7792. "DOC",
  7793. "DOCX",
  7794. "DOCM",
  7795. "DOTM",
  7796. "DOTX",
  7797. "PPTX",
  7798. "PPSX",
  7799. "PPT",
  7800. "PPS",
  7801. "PPTM",
  7802. "POTM",
  7803. "PPAM",
  7804. "POTX",
  7805. "PPSM",
  7806. ];
  7807. if (
  7808. b.indexOf(
  7809. file.name
  7810. .split(".")
  7811. [file.name.split(".").length - 1].toLocaleUpperCase()
  7812. ) != -1
  7813. ) {
  7814. if (file.size / 1024 / 1024 > 80) {
  7815. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7816. this.inputShow = true;
  7817. // var a = _this.$refs.upload1.uploadFiles;
  7818. // a.splice(a.length - 1, a.length);
  7819. // loading.close();
  7820. return;
  7821. }
  7822. } else if (
  7823. file.name
  7824. .split(".")
  7825. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7826. ) {
  7827. if (file.size / 1024 / 1024 > 80) {
  7828. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7829. this.inputShow = true;
  7830. // var a = _this.$refs.upload1.uploadFiles;
  7831. // a.splice(a.length - 1, a.length);
  7832. // loading.close();
  7833. return;
  7834. }
  7835. }
  7836. }
  7837. this.inputShow = false;
  7838. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7839. itemTaskIndex
  7840. ].progress = 0;
  7841. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7842. itemTaskIndex
  7843. ].proVisible = true;
  7844. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7845. itemTaskIndex
  7846. ].isFinishSize = 0;
  7847. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7848. itemTaskIndex
  7849. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7850. _this.$forceUpdate();
  7851. if (file) {
  7852. var params = {
  7853. Key:
  7854. file.name.split(".")[0] +
  7855. new Date().getTime() +
  7856. "." +
  7857. file.name.split(".")[file.name.split(".").length - 1],
  7858. ContentType: file.type,
  7859. Body: file,
  7860. "Access-Control-Allow-Credentials": "*",
  7861. ACL: "public-read",
  7862. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7863. var options = {
  7864. partSize: 2048 * 1024 * 1024,
  7865. queueSize: 2,
  7866. leavePartsOnError: true,
  7867. };
  7868. bucket
  7869. .upload(params, options)
  7870. .on("httpUploadProgress", function (evt) {
  7871. //这里可以写进度条
  7872. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7873. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7874. itemTaskIndex
  7875. ].progress = parseInt((evt.loaded / evt.total) * 100);
  7876. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7877. itemTaskIndex
  7878. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7879. _this.$forceUpdate();
  7880. })
  7881. .send(function (err, data) {
  7882. // loading.close();
  7883. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7884. itemTaskIndex
  7885. ].progress = 100;
  7886. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7887. itemTaskIndex
  7888. ].isFinishSize =
  7889. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7890. itemTaskIndex
  7891. ].isAllSize;
  7892. _this.$forceUpdate();
  7893. setTimeout(() => {
  7894. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7895. itemTaskIndex
  7896. ].proVisible = false;
  7897. _this.$forceUpdate();
  7898. }, 1000);
  7899. _this.inputShow = true;
  7900. if (err) {
  7901. // var a = _this.$refs.upload1.uploadFiles;
  7902. // a.splice(a.length - 1, a.length);
  7903. _this.$message.error("上传失败");
  7904. } else {
  7905. if (type == 13) {
  7906. let _type = 2;
  7907. var imgA = [
  7908. "png",
  7909. "jpg",
  7910. "jpeg",
  7911. "bmp",
  7912. "gif",
  7913. "webp",
  7914. "psd",
  7915. "svg",
  7916. "tiff",
  7917. ];
  7918. var fileA = [
  7919. "PDF",
  7920. "DOC",
  7921. "DOCX",
  7922. "DOCM",
  7923. "DOTM",
  7924. "DOTX",
  7925. "PPTX",
  7926. "PPSX",
  7927. "PPT",
  7928. "PPS",
  7929. "PPTM",
  7930. "POTM",
  7931. "PPAM",
  7932. "POTX",
  7933. "PPSM",
  7934. "XLSX",
  7935. "XLS",
  7936. ];
  7937. var videoA = [
  7938. "AVI",
  7939. "NAVI",
  7940. "MPEG",
  7941. "ASF",
  7942. "MOV",
  7943. "WMV",
  7944. "3GP",
  7945. "RM",
  7946. "RMVB",
  7947. "FLV",
  7948. "F4V",
  7949. "H.264",
  7950. "H.265",
  7951. "REAL VIDEO",
  7952. "MKV",
  7953. "WebM",
  7954. "HDDVD",
  7955. "MP4",
  7956. "MPG",
  7957. "M4V",
  7958. "MGV",
  7959. "OGV",
  7960. "QTM",
  7961. "STR",
  7962. "AMC",
  7963. "DVX",
  7964. "EVO",
  7965. "DAT",
  7966. "OGG",
  7967. "OGM",
  7968. ];
  7969. if (
  7970. fileA.indexOf(
  7971. data.Location.split(".")[
  7972. data.Location.split(".").length - 1
  7973. ].toLocaleUpperCase()
  7974. ) != -1
  7975. ) {
  7976. _type = 3;
  7977. } else if (
  7978. videoA.indexOf(
  7979. data.Location.split(".")[
  7980. data.Location.split(".").length - 1
  7981. ].toLocaleUpperCase()
  7982. ) != -1
  7983. ) {
  7984. _type = 2;
  7985. } else if (
  7986. imgA.indexOf(
  7987. data.Location.split(".")[
  7988. data.Location.split(".").length - 1
  7989. ].toLocaleLowerCase()
  7990. ) != -1
  7991. ) {
  7992. _type = 13;
  7993. } else {
  7994. _type = 12;
  7995. }
  7996. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7997. itemTaskIndex
  7998. ].chapterData.push({
  7999. name: file.name,
  8000. url: data.Location,
  8001. uid: file.uid,
  8002. type: _type,
  8003. });
  8004. _this.imgChange1(null, null, _type, itemTaskIndex);
  8005. } else if (type == 2 || type == 3 || type == 12) {
  8006. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8007. itemTaskIndex
  8008. ].chapterData.push({
  8009. name: file.name,
  8010. url: data.Location,
  8011. uid: file.uid,
  8012. type: type,
  8013. });
  8014. _this.imgChange1(null, null, type, itemTaskIndex);
  8015. } else if (type == 4) {
  8016. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8017. itemTaskIndex
  8018. ].fileList1.push({
  8019. name: file.name,
  8020. url: data.Location,
  8021. uid: file.uid,
  8022. });
  8023. _this.imgChange1(null, null, type, itemTaskIndex);
  8024. } else if (type == 5) {
  8025. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8026. itemTaskIndex
  8027. ].homeworkList.push({
  8028. name: file.name,
  8029. url: data.Location,
  8030. uid: file.uid,
  8031. });
  8032. _this.imgChange1(null, null, type, itemTaskIndex);
  8033. }
  8034. console.log(data.Location);
  8035. }
  8036. });
  8037. }
  8038. },
  8039. beforeUploadInfo2(event, type) {
  8040. // const loading = this.openLoading();
  8041. var file = event.target.files[0];
  8042. var credentials = {
  8043. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8044. secretAccessKey: "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",
  8045. }; //秘钥形式的登录上传
  8046. window.AWS.config.update(credentials);
  8047. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8048. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8049. var _this = this;
  8050. var xianObj = ['DOCX','DOC','PPT','PPTX','MD','TXT','PDF']
  8051. if (
  8052. xianObj.indexOf(
  8053. file.name
  8054. .split(".")
  8055. [file.name.split(".").length - 1].toLocaleUpperCase()
  8056. ) == -1
  8057. ) {
  8058. this.$message.error("请上传.doc,.docx,.ppt,.pptx,.md,.txt,.pdf文件!");
  8059. this.inputShow = true;
  8060. // var a = _this.$refs.upload1.uploadFiles;
  8061. // a.splice(a.length - 1, a.length);
  8062. // loading.close();
  8063. return;
  8064. }
  8065. if (type == 3) {
  8066. var b = [
  8067. "DOC",
  8068. "DOCX",
  8069. "DOCM",
  8070. "DOTM",
  8071. "DOTX",
  8072. "PPTX",
  8073. "PPSX",
  8074. "PPT",
  8075. "PPS",
  8076. "PPTM",
  8077. "POTM",
  8078. "PPAM",
  8079. "POTX",
  8080. "PPSM",
  8081. ];
  8082. if (
  8083. b.indexOf(
  8084. file.name
  8085. .split(".")
  8086. [file.name.split(".").length - 1].toLocaleUpperCase()
  8087. ) != -1
  8088. ) {
  8089. if (file.size / 1024 / 1024 > 80) {
  8090. this.$message.error("上传文件大于80兆,请重新选择文件!");
  8091. this.inputShow = true;
  8092. // var a = _this.$refs.upload1.uploadFiles;
  8093. // a.splice(a.length - 1, a.length);
  8094. // loading.close();
  8095. return;
  8096. }
  8097. } else if (
  8098. file.name
  8099. .split(".")
  8100. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  8101. ) {
  8102. if (file.size / 1024 / 1024 > 80) {
  8103. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  8104. this.inputShow = true;
  8105. // var a = _this.$refs.upload1.uploadFiles;
  8106. // a.splice(a.length - 1, a.length);
  8107. // loading.close();
  8108. return;
  8109. }
  8110. }
  8111. }
  8112. this.inputShow = false;
  8113. _this.infoprogress = 0;
  8114. _this.infoproVisible = true;
  8115. _this.infoisFinishSize = 0;
  8116. _this.infoisAllSize = (file.size / 1024 / 1024).toFixed(2);
  8117. _this.$forceUpdate();
  8118. if (file) {
  8119. var params = {
  8120. Key:
  8121. file.name.split(".")[0] +
  8122. new Date().getTime() +
  8123. "." +
  8124. file.name.split(".")[file.name.split(".").length - 1],
  8125. ContentType: file.type,
  8126. Body: file,
  8127. "Access-Control-Allow-Credentials": "*",
  8128. ACL: "public-read",
  8129. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8130. var options = {
  8131. partSize: 2048 * 1024 * 1024,
  8132. queueSize: 2,
  8133. leavePartsOnError: true,
  8134. };
  8135. bucket
  8136. .upload(params, options)
  8137. .on("httpUploadProgress", function (evt) {
  8138. //这里可以写进度条
  8139. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8140. _this.infoprogress = parseInt((evt.loaded / evt.total) * 100);
  8141. _this.infoisFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  8142. _this.$forceUpdate();
  8143. })
  8144. .send(async function (err, data) {
  8145. // loading.close();
  8146. _this.infoprogress = 100;
  8147. _this.infoisFinishSize = _this.infoisAllSize;
  8148. _this.$forceUpdate();
  8149. _this.inputShow = true;
  8150. if (err) {
  8151. setTimeout(() => {
  8152. _this.infoproVisible = false;
  8153. _this.$forceUpdate();
  8154. }, 1000);
  8155. // var a = _this.$refs.upload1.uploadFiles;
  8156. // a.splice(a.length - 1, a.length);
  8157. _this.$message.error("上传失败");
  8158. } else {
  8159. let fileid = await _this.createFileid(data.Location)
  8160. if(fileid){
  8161. _this.infoproVisible = false;
  8162. _this.$forceUpdate();
  8163. }
  8164. if (type == 13) {
  8165. let _type = 2;
  8166. var imgA = [
  8167. "png",
  8168. "jpg",
  8169. "jpeg",
  8170. "bmp",
  8171. "gif",
  8172. "webp",
  8173. "psd",
  8174. "svg",
  8175. "tiff",
  8176. ];
  8177. var fileA = [
  8178. "PDF",
  8179. "DOC",
  8180. "DOCX",
  8181. "DOCM",
  8182. "DOTM",
  8183. "DOTX",
  8184. "PPTX",
  8185. "PPSX",
  8186. "PPT",
  8187. "PPS",
  8188. "PPTM",
  8189. "POTM",
  8190. "PPAM",
  8191. "POTX",
  8192. "PPSM",
  8193. "XLSX",
  8194. "XLS",
  8195. ];
  8196. var videoA = [
  8197. "AVI",
  8198. "NAVI",
  8199. "MPEG",
  8200. "ASF",
  8201. "MOV",
  8202. "WMV",
  8203. "3GP",
  8204. "RM",
  8205. "RMVB",
  8206. "FLV",
  8207. "F4V",
  8208. "H.264",
  8209. "H.265",
  8210. "REAL VIDEO",
  8211. "MKV",
  8212. "WebM",
  8213. "HDDVD",
  8214. "MP4",
  8215. "MPG",
  8216. "M4V",
  8217. "MGV",
  8218. "OGV",
  8219. "QTM",
  8220. "STR",
  8221. "AMC",
  8222. "DVX",
  8223. "EVO",
  8224. "DAT",
  8225. "OGG",
  8226. "OGM",
  8227. ];
  8228. if (
  8229. fileA.indexOf(
  8230. data.Location.split(".")[
  8231. data.Location.split(".").length - 1
  8232. ].toLocaleUpperCase()
  8233. ) != -1
  8234. ) {
  8235. _type = 3;
  8236. } else if (
  8237. videoA.indexOf(
  8238. data.Location.split(".")[
  8239. data.Location.split(".").length - 1
  8240. ].toLocaleUpperCase()
  8241. ) != -1
  8242. ) {
  8243. _type = 2;
  8244. } else if (
  8245. imgA.indexOf(
  8246. data.Location.split(".")[
  8247. data.Location.split(".").length - 1
  8248. ].toLocaleLowerCase()
  8249. ) != -1
  8250. ) {
  8251. _type = 13;
  8252. } else {
  8253. _type = 12;
  8254. }
  8255. _this.infoData.push({
  8256. name: file.name,
  8257. url: data.Location,
  8258. uid: file.uid,
  8259. type: _type,
  8260. fileid: fileid,
  8261. });
  8262. _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
  8263. name: file.name,
  8264. url: data.Location,
  8265. uid: file.uid,
  8266. type: _type,
  8267. fileid: fileid,
  8268. })
  8269. } else if (type == 2 || type == 3 || type == 12) {
  8270. _this.infoData.push({
  8271. name: file.name,
  8272. url: data.Location,
  8273. uid: file.uid,
  8274. type: type,
  8275. fileid: fileid,
  8276. });
  8277. _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
  8278. name: file.name,
  8279. url: data.Location,
  8280. uid: file.uid,
  8281. type: type,
  8282. fileid: fileid,
  8283. })
  8284. }
  8285. console.log(data.Location);
  8286. console.log(fileid);
  8287. }
  8288. });
  8289. }
  8290. },
  8291. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  8292. // const loading = this.openLoading();
  8293. var file = event.target.files[0];
  8294. var credentials = {
  8295. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8296. secretAccessKey: "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",
  8297. }; //秘钥形式的登录上传
  8298. window.AWS.config.update(credentials);
  8299. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8300. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8301. var _this = this;
  8302. if (type == 3) {
  8303. var b = [
  8304. "DOC",
  8305. "DOCX",
  8306. "DOCM",
  8307. "DOTM",
  8308. "DOTX",
  8309. "PPTX",
  8310. "PPSX",
  8311. "PPT",
  8312. "PPS",
  8313. "PPTM",
  8314. "POTM",
  8315. "PPAM",
  8316. "POTX",
  8317. "PPSM",
  8318. ];
  8319. if (
  8320. b.indexOf(
  8321. file.name
  8322. .split(".")
  8323. [file.name.split(".").length - 1].toLocaleUpperCase()
  8324. ) != -1
  8325. ) {
  8326. if (file.size / 1024 / 1024 > 80) {
  8327. this.$message.error("上传文件大于80兆,请重新选择文件!");
  8328. this.inputShow = true;
  8329. // var a = _this.$refs.upload1.uploadFiles;
  8330. // a.splice(a.length - 1, a.length);
  8331. // loading.close();
  8332. return;
  8333. }
  8334. } else if (
  8335. file.name
  8336. .split(".")
  8337. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  8338. ) {
  8339. if (file.size / 1024 / 1024 > 80) {
  8340. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  8341. this.inputShow = true;
  8342. // var a = _this.$refs.upload1.uploadFiles;
  8343. // a.splice(a.length - 1, a.length);
  8344. // loading.close();
  8345. return;
  8346. }
  8347. }
  8348. }
  8349. this.inputShow = false;
  8350. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8351. itemTaskIndex
  8352. ].progress = 0;
  8353. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8354. itemTaskIndex
  8355. ].proVisible = true;
  8356. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8357. itemTaskIndex
  8358. ].isFinishSize = 0;
  8359. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8360. itemTaskIndex
  8361. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  8362. _this.$forceUpdate();
  8363. if (file) {
  8364. var params = {
  8365. Key:
  8366. file.name.split(".")[0] +
  8367. new Date().getTime() +
  8368. "." +
  8369. file.name.split(".")[file.name.split(".").length - 1],
  8370. ContentType: file.type,
  8371. Body: file,
  8372. "Access-Control-Allow-Credentials": "*",
  8373. ACL: "public-read",
  8374. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8375. var options = {
  8376. partSize: 2048 * 1024 * 1024,
  8377. queueSize: 2,
  8378. leavePartsOnError: true,
  8379. };
  8380. bucket
  8381. .upload(params, options)
  8382. .on("httpUploadProgress", function (evt) {
  8383. //这里可以写进度条
  8384. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8385. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8386. itemTaskIndex
  8387. ].progress = parseInt((evt.loaded / evt.total) * 100);
  8388. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8389. itemTaskIndex
  8390. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  8391. _this.$forceUpdate();
  8392. })
  8393. .send(function (err, data) {
  8394. // loading.close();
  8395. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8396. itemTaskIndex
  8397. ].progress = 100;
  8398. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8399. itemTaskIndex
  8400. ].isFinishSize =
  8401. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8402. itemTaskIndex
  8403. ].isAllSize;
  8404. _this.$forceUpdate();
  8405. setTimeout(() => {
  8406. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8407. itemTaskIndex
  8408. ].proVisible = false;
  8409. _this.$forceUpdate();
  8410. }, 1000);
  8411. _this.inputShow = true;
  8412. if (err) {
  8413. // var a = _this.$refs.upload1.uploadFiles;
  8414. // a.splice(a.length - 1, a.length);
  8415. _this.$message.error("上传失败");
  8416. } else {
  8417. if (type == 2 || type == 3) {
  8418. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8419. itemTaskIndex
  8420. ].chapterData.push({
  8421. name: file.name,
  8422. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8423. // itemTaskIndex
  8424. // ].chapterData.length+1),
  8425. url: data.Location,
  8426. uid: file.uid,
  8427. type: type,
  8428. text: string,
  8429. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8430. // itemTaskIndex
  8431. // ].chapterData.length + 1),
  8432. });
  8433. _this.imgChange1(null, null, type, itemTaskIndex);
  8434. } else if (type == 4) {
  8435. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8436. itemTaskIndex
  8437. ].fileList1.push({
  8438. name: file.name,
  8439. url: data.Location,
  8440. uid: file.uid,
  8441. });
  8442. _this.imgChange1(null, null, type, itemTaskIndex);
  8443. } else if (type == 5) {
  8444. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8445. itemTaskIndex
  8446. ].homeworkList.push({
  8447. name: file.name,
  8448. url: data.Location,
  8449. uid: file.uid,
  8450. });
  8451. _this.imgChange1(null, null, type, itemTaskIndex);
  8452. }
  8453. console.log(data.Location);
  8454. }
  8455. });
  8456. }
  8457. },
  8458. addunit() {
  8459. this.unitJson.push({
  8460. dyName: "", //单元标题
  8461. isUpdate: 1,
  8462. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  8463. chapterInfo: [
  8464. {
  8465. isread: false,
  8466. chapterid: this.guid(),
  8467. title: "",
  8468. courseName: "",
  8469. taskJson: [
  8470. {
  8471. task: "",
  8472. taskDetail: "",
  8473. chapterData: [],
  8474. toolText: "",
  8475. toolChoose: [
  8476. {
  8477. tool: [],
  8478. toolDetail: "",
  8479. toolType: 0,
  8480. askCount: 1,
  8481. askTitle: "",
  8482. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8483. },
  8484. ],
  8485. isShowTools: false,
  8486. askCount: 1,
  8487. isFold: 1,
  8488. askTitle: "",
  8489. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8490. checkJson: [{ checkCount: [], checkPerent: [] }],
  8491. homeworkList: [],
  8492. },
  8493. ],
  8494. itemCount: 1,
  8495. fileList1: [],
  8496. video: [],
  8497. testData: [],
  8498. pData: [],
  8499. templateArray: [],
  8500. },
  8501. ],
  8502. });
  8503. this.addindex = this.unitJson.length - 1;
  8504. setTimeout(() => {
  8505. this.unitIndex = this.unitJson.length - 1;
  8506. setTimeout(() => {
  8507. console.log(this.$refs.dyInput);
  8508. this.$refs.dyInput[0].focus();
  8509. }, 100);
  8510. this.unitSet(this.unitIndex);
  8511. }, 0);
  8512. },
  8513. addToolFun(itemTaskIndex) {
  8514. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8515. itemTaskIndex
  8516. ].toolChoose.push({
  8517. tool: [],
  8518. toolDetail: "",
  8519. toolType: 0,
  8520. askCount: 1,
  8521. askTitle: "",
  8522. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8523. });
  8524. },
  8525. addTaskBorder() {
  8526. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  8527. task: "",
  8528. taskDetail: "",
  8529. chapterData: [],
  8530. toolText: "",
  8531. toolChoose: [
  8532. {
  8533. tool: [],
  8534. toolDetail: "",
  8535. toolType: 0,
  8536. askCount: 1,
  8537. askTitle: "",
  8538. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8539. },
  8540. ],
  8541. isShowTools: false,
  8542. askCount: 1,
  8543. isFold: 1, //任务收起状态
  8544. askTitle: "",
  8545. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8546. checkJson: [{ checkCount: [], checkPerent: [] }],
  8547. homeworkList: [],
  8548. });
  8549. setTimeout(() => {
  8550. this.checkEva(this.checkId);
  8551. setTimeout(() => {
  8552. this.checkEva(this.checkId);
  8553. }, 100);
  8554. }, 100);
  8555. },
  8556. add(e, i) {
  8557. var el = e.currentTarget;
  8558. el.getElementsByTagName("input")[0].click();
  8559. },
  8560. fold(i, e) {
  8561. if (
  8562. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0
  8563. ) {
  8564. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  8565. } else {
  8566. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  8567. }
  8568. },
  8569. fold2(i) {
  8570. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  8571. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8572. i
  8573. ].isFold2 = false;
  8574. } else {
  8575. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  8576. }
  8577. this.$forceUpdate();
  8578. },
  8579. foldEva(i) {
  8580. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  8581. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8582. i
  8583. ].isEvaFold = false;
  8584. } else {
  8585. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8586. i
  8587. ].isEvaFold = true;
  8588. setTimeout(() => {
  8589. this.checkEva(this.checkId);
  8590. setTimeout(() => {
  8591. this.checkEva(this.checkId);
  8592. }, 500);
  8593. }, 0);
  8594. }
  8595. this.$forceUpdate();
  8596. },
  8597. foldC(i) {
  8598. if (
  8599. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter
  8600. ) {
  8601. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8602. i
  8603. ].isFoldchapter = false;
  8604. } else {
  8605. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8606. i
  8607. ].isFoldchapter = true;
  8608. }
  8609. this.$forceUpdate();
  8610. },
  8611. fold3(i, ti) {
  8612. if (
  8613. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti]
  8614. .isFold3
  8615. ) {
  8616. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  8617. ti
  8618. ].isFold3 = false;
  8619. } else {
  8620. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  8621. ti
  8622. ].isFold3 = true;
  8623. }
  8624. this.$forceUpdate();
  8625. },
  8626. deleteHomeworkBox(unitIndex, index, i) {
  8627. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  8628. this.taskCount
  8629. ].homeworkList.splice(i, 1);
  8630. },
  8631. getStudent() {
  8632. let params = {
  8633. oid: this.oid,
  8634. cu: "",
  8635. cn: this.searchPeople,
  8636. };
  8637. this.ajax
  8638. .get(this.$store.state.api + "selectStudentAdd", params)
  8639. .then((res) => {
  8640. this.studentJuri = res.data[0];
  8641. })
  8642. .catch((err) => {
  8643. this.isLoading = false;
  8644. console.error(err);
  8645. });
  8646. },
  8647. // 添加协同成员其他选项按钮
  8648. getTeacherCopy(){
  8649. this.CollLoading=true
  8650. this.collid = ''
  8651. this.collid = '1xpz'
  8652. let params = {
  8653. oid:
  8654. this.org && this.org != "undefined" && this.org != "null"
  8655. ? this.org
  8656. : this.oid,
  8657. cu: "",
  8658. cn: this.searchTN,
  8659. coll: ''
  8660. };
  8661. this.ajax
  8662. .get(
  8663. this.$store.state.api +
  8664. (this.org && this.org != "undefined" && this.org != "null"
  8665. ? "selectCollaborativeMembersOrg"
  8666. : "selectCollaborativeMembers"),
  8667. params
  8668. )
  8669. .then((res) => {
  8670. let teacherJuri = res.data[0];
  8671. this.CollaborativeTeaList = res.data[1];
  8672. for (var i = 0; i < teacherJuri.length; i++) {
  8673. if (teacherJuri[i].userid == this.userid) {
  8674. teacherJuri.splice(i, 1);
  8675. break;
  8676. }
  8677. }
  8678. this.teacherJuri = teacherJuri.filter((i,index)=>{
  8679. return (i.cclassid == '' || i.cclassid == null)
  8680. })
  8681. console.log(' this.teacherJuri', this.teacherJuri);
  8682. let _check = [];
  8683. let _check2 = [];
  8684. for (var i = 0; i < this.teacherJuri.length; i++) {
  8685. var gid = this.teacherJuri[i].userid;
  8686. _check.push(gid);
  8687. }
  8688. for (var i = 0; i < this.checkboxList3.length; i++) {
  8689. var _id = this.checkboxList3[i];
  8690. if (_check.indexOf(_id) !== -1) {
  8691. _check2.push(_id);
  8692. }
  8693. }
  8694. if (_check2.length==0 && _check.length==0) {
  8695. }else{
  8696. this.checkAll2 = _check2.length === _check.length;
  8697. }
  8698. this.CollLoading=false
  8699. })
  8700. .catch((err) => {
  8701. console.error(err);
  8702. this.CollLoading=false
  8703. });
  8704. },
  8705. getTeacher(val) {
  8706. this.CollLoading=true
  8707. this.collid = ''
  8708. this.collid = !val ? '' : val
  8709. let params = {
  8710. oid:
  8711. this.org && this.org != "undefined" && this.org != "null"
  8712. ? this.org
  8713. : this.oid,
  8714. cu: "",
  8715. cn: this.searchTN,
  8716. coll: this.collid
  8717. };
  8718. this.ajax
  8719. .get(
  8720. this.$store.state.api +
  8721. (this.org && this.org != "undefined" && this.org != "null"
  8722. ? "selectCollaborativeMembersOrg"
  8723. : "selectCollaborativeMembers"),
  8724. params
  8725. )
  8726. .then((res) => {
  8727. let teacherJuri = res.data[0];
  8728. this.CollaborativeTeaList = res.data[1];
  8729. for (var i = 0; i < teacherJuri.length; i++) {
  8730. if (teacherJuri[i].userid == this.userid) {
  8731. teacherJuri.splice(i, 1);
  8732. break;
  8733. }
  8734. }
  8735. this.teacherJuri = teacherJuri;
  8736. let _check = [];
  8737. let _check2 = [];
  8738. for (var i = 0; i < this.teacherJuri.length; i++) {
  8739. var gid = this.teacherJuri[i].userid;
  8740. _check.push(gid);
  8741. }
  8742. for (var i = 0; i < this.checkboxList3.length; i++) {
  8743. var _id = this.checkboxList3[i];
  8744. if (_check.indexOf(_id) !== -1) {
  8745. _check2.push(_id);
  8746. }
  8747. }
  8748. if (_check2.length==0 && _check.length==0) {
  8749. }else{
  8750. this.checkAll2 = _check2.length === _check.length;
  8751. }
  8752. this.CollLoading=false
  8753. })
  8754. .catch((err) => {
  8755. console.error(err);
  8756. this.CollLoading=false
  8757. });
  8758. },
  8759. searchStudent() {
  8760. this.getStudent();
  8761. },
  8762. selectGrage() {
  8763. let params = {
  8764. oid: this.oid,
  8765. };
  8766. this.ajax
  8767. .get(this.$store.state.api + "selectGrageBySchool", params)
  8768. .then((res) => {
  8769. this.gradeList = res.data[0];
  8770. })
  8771. .catch((err) => {
  8772. this.isLoading = false;
  8773. console.error(err);
  8774. });
  8775. },
  8776. //获取班级列表
  8777. getClass() {
  8778. let params = {
  8779. oid: this.oid,
  8780. gid: this.gradeId,
  8781. cn: this.classSearch,
  8782. };
  8783. this.ajax
  8784. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  8785. .then((res) => {
  8786. if (!this.grade.length) {
  8787. this.grade = res.data[0];
  8788. }
  8789. this.grade2 = res.data[0];
  8790. this.classJuri = res.data[0];
  8791. let _check = [];
  8792. let _check2 = [];
  8793. for (var i = 0; i < this.grade2.length; i++) {
  8794. var gid = this.grade2[i].id;
  8795. _check.push(gid);
  8796. }
  8797. for (var i = 0; i < this.checkboxList2.length; i++) {
  8798. var _id = this.checkboxList2[i];
  8799. if (_check.indexOf(_id) !== -1) {
  8800. _check2.push(_id);
  8801. }
  8802. }
  8803. this.checkAll = _check2.length === _check.length;
  8804. })
  8805. .catch((err) => {
  8806. this.isLoading = false;
  8807. console.error(err);
  8808. });
  8809. },
  8810. CourseType2Change(val) {
  8811. this.pTypeCheck = [];
  8812. for (var i = 0; i < this.CourseType2.length; i++) {
  8813. let typeA = this.CourseType2[i];
  8814. if (val.indexOf(typeA.name) != -1) {
  8815. this.pTypeCheck.push(...typeA.id);
  8816. }
  8817. }
  8818. },
  8819. getChapterData(e, i, j, ic, type) {
  8820. e.stopPropagation();
  8821. this.updataC = true;
  8822. this.icc = ic;
  8823. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  8824. console.log("还不能下载图片喔");
  8825. }
  8826. },
  8827. deleteChapterData(e, i, j, ic, taskI) {
  8828. e.stopPropagation();
  8829. let _this = this;
  8830. _this
  8831. .$confirm("确定删除此项?", "提示", {
  8832. confirmButtonText: "确定",
  8833. cancelButtonText: "取消",
  8834. type: "warning",
  8835. })
  8836. .then(() => {
  8837. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
  8838. ic,
  8839. 1
  8840. );
  8841. })
  8842. .catch(() => {
  8843. return;
  8844. });
  8845. },
  8846. deleteInfoData(e, ic) {
  8847. e.stopPropagation();
  8848. let _this = this;
  8849. _this
  8850. .$confirm("确定删除此项?", "提示", {
  8851. confirmButtonText: "确定",
  8852. cancelButtonText: "取消",
  8853. type: "warning",
  8854. })
  8855. .then(() => {
  8856. _this.infoData.splice(
  8857. ic,
  8858. 1
  8859. );
  8860. })
  8861. .catch(() => {
  8862. return;
  8863. });
  8864. },
  8865. updataVideoT(e, i, j, ic) {
  8866. // e.stopPropagation();
  8867. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  8868. // ic
  8869. // ].name = JSON.parse(JSON.stringify(e.target.value));
  8870. this.line =
  8871. this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[ic].name;
  8872. this.taskCount = j;
  8873. this.lineCount = ic;
  8874. this.dialogVisibleupdataVideoT = true;
  8875. this.$forceUpdate();
  8876. },
  8877. updataVideoC() {
  8878. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8879. this.taskCount
  8880. ].chapterData[this.lineCount].name = JSON.parse(
  8881. JSON.stringify(this.line)
  8882. );
  8883. this.dialogVisibleupdataVideoT = false;
  8884. this.$forceUpdate();
  8885. },
  8886. upCd(e, i, j, taskCount, ic) {
  8887. e.stopPropagation();
  8888. if (ic == 0) {
  8889. return;
  8890. }
  8891. var a = JSON.parse(
  8892. JSON.stringify(
  8893. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  8894. ic - 1
  8895. ]
  8896. )
  8897. );
  8898. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  8899. JSON.parse(
  8900. JSON.stringify(
  8901. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  8902. )
  8903. );
  8904. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8905. this.$forceUpdate();
  8906. },
  8907. downCd(e, i, j, taskCount, ic) {
  8908. e.stopPropagation();
  8909. if (
  8910. ic ==
  8911. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  8912. 1
  8913. ) {
  8914. return;
  8915. }
  8916. var a = JSON.parse(
  8917. JSON.stringify(
  8918. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  8919. ic + 1
  8920. ]
  8921. )
  8922. );
  8923. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  8924. JSON.parse(
  8925. JSON.stringify(
  8926. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  8927. )
  8928. );
  8929. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8930. this.$forceUpdate();
  8931. },
  8932. async upTool(e, i, j, tooli) {
  8933. e.stopPropagation();
  8934. if (tooli == 0) {
  8935. return;
  8936. }
  8937. let count1 = await this.getWorksCount(3, i, j, tooli - 1);
  8938. let count2 = await this.getWorksCount(3, i, j, tooli);
  8939. if (count1 > 0 || count2 > 0) {
  8940. this.$confirm(
  8941. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  8942. "提示",
  8943. {
  8944. confirmButtonText: "确定",
  8945. cancelButtonText: "取消",
  8946. type: "warning",
  8947. }
  8948. )
  8949. .then(() => {
  8950. var a = JSON.parse(
  8951. JSON.stringify(
  8952. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  8953. tooli - 1
  8954. ]
  8955. )
  8956. );
  8957. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  8958. JSON.parse(
  8959. JSON.stringify(
  8960. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8961. )
  8962. );
  8963. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8964. this.$forceUpdate();
  8965. })
  8966. .catch(() => {
  8967. return;
  8968. });
  8969. } else {
  8970. var a = JSON.parse(
  8971. JSON.stringify(
  8972. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  8973. )
  8974. );
  8975. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  8976. JSON.parse(
  8977. JSON.stringify(
  8978. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8979. )
  8980. );
  8981. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8982. this.$forceUpdate();
  8983. }
  8984. },
  8985. async downTool(e, i, j, tooli) {
  8986. e.stopPropagation();
  8987. if (
  8988. tooli ==
  8989. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length - 1
  8990. ) {
  8991. return;
  8992. }
  8993. let count1 = await this.getWorksCount(3, i, j, tooli + 1);
  8994. let count2 = await this.getWorksCount(3, i, j, tooli);
  8995. if (count1 > 0 || count2 > 0) {
  8996. this.$confirm(
  8997. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  8998. "提示",
  8999. {
  9000. confirmButtonText: "确定",
  9001. cancelButtonText: "取消",
  9002. type: "warning",
  9003. }
  9004. )
  9005. .then(() => {
  9006. var a = JSON.parse(
  9007. JSON.stringify(
  9008. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  9009. tooli + 1
  9010. ]
  9011. )
  9012. );
  9013. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  9014. JSON.parse(
  9015. JSON.stringify(
  9016. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  9017. )
  9018. );
  9019. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  9020. this.$forceUpdate();
  9021. })
  9022. .catch(() => {
  9023. return;
  9024. });
  9025. } else {
  9026. var a = JSON.parse(
  9027. JSON.stringify(
  9028. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  9029. )
  9030. );
  9031. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  9032. JSON.parse(
  9033. JSON.stringify(
  9034. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  9035. )
  9036. );
  9037. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  9038. this.$forceUpdate();
  9039. }
  9040. },
  9041. addWork() {
  9042. let cPan = 1;
  9043. for (var i = 0; i < this.unitJson.length; i++) {
  9044. for (
  9045. var j = 0;
  9046. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  9047. j++
  9048. ) {
  9049. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  9050. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  9051. if (
  9052. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  9053. ) {
  9054. for (
  9055. var z = 0;
  9056. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  9057. z++
  9058. ) {
  9059. if (
  9060. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  9061. .length
  9062. ) {
  9063. this.$message.error("请把工具添加完整");
  9064. cPan = 2;
  9065. break;
  9066. }
  9067. }
  9068. }
  9069. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  9070. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  9071. i
  9072. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  9073. return ele.value != "";
  9074. });
  9075. }
  9076. }
  9077. }
  9078. this.inputShow = true;
  9079. if (cPan == 2) {
  9080. this.steps--;
  9081. return;
  9082. }
  9083. for (var i = 0; i < this.unitJson.length; i++) {
  9084. delete this.unitJson[i].isUpdate;
  9085. }
  9086. let params = [
  9087. {
  9088. uid: this.userid,
  9089. title: this.courseName,
  9090. brief: this.courseText,
  9091. cover:
  9092. this.cover.length > 0
  9093. ? JSON.stringify(this.cover)
  9094. : JSON.stringify([
  9095. {
  9096. name: "noBanner.jpg",
  9097. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  9098. uid: 1656409780264,
  9099. status: "success",
  9100. },
  9101. ]),
  9102. evaId: this.evalua,
  9103. astudent:
  9104. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  9105. see: this.isTeacherSee == true ? 1 : 0,
  9106. chapters: JSON.stringify(this.unitJson),
  9107. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  9108. courseType: JSON.stringify(this.courseTypeId),
  9109. ateacher:
  9110. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  9111. inviteCode: JSON.stringify(this.inviteCode),
  9112. refile: JSON.stringify(this.infoData),
  9113. reBrief: this.courseText2,
  9114. cpote: JSON.stringify(this.cpote),
  9115. setting: JSON.stringify({courseJie: this.courseJie, courseTime: this.courseTime}),
  9116. iresearch: this.isFileSearch ? 1 : 2,
  9117. },
  9118. ];
  9119. this.ajax
  9120. .post(this.$store.state.api + "addWorkNew2AI3", params)
  9121. .then((res) => {
  9122. console.log(this.steps);
  9123. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  9124. this.$message({
  9125. message: "新增成功",
  9126. type: "success",
  9127. });
  9128. }
  9129. this.number = res.data.ordernumber;
  9130. this.courseId = res.data.courseId;
  9131. this.cid = res.data.courseId;
  9132. this.courseUserid = this.userid;
  9133. this.islogin = true;
  9134. // this.updateCourseState(4);
  9135. this.updateCourseState(5);
  9136. this.addtips()
  9137. })
  9138. .catch((err) => {
  9139. this.$message.error("网络不佳");
  9140. console.error(err);
  9141. });
  9142. },
  9143. goCourse() {
  9144. top.postMessage({ cid: this.courseId, type: "1" }, "*");
  9145. },
  9146. updateWork2() {
  9147. let _unitIndex = this.unitIndex;
  9148. let cPan = 1;
  9149. for (
  9150. var j = 0;
  9151. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  9152. j++
  9153. ) {
  9154. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  9155. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  9156. j
  9157. ].proVisible2 = false;
  9158. if (
  9159. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  9160. .length > 1
  9161. ) {
  9162. for (
  9163. var z = 0;
  9164. z <
  9165. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  9166. .length;
  9167. z++
  9168. ) {
  9169. if (
  9170. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  9171. z
  9172. ].tool.length
  9173. ) {
  9174. this.$message.error("请把工具添加完整");
  9175. cPan = 2;
  9176. break;
  9177. }
  9178. }
  9179. }
  9180. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  9181. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  9182. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  9183. (ele) => {
  9184. return ele.value != "";
  9185. }
  9186. );
  9187. }
  9188. }
  9189. this.inputShow = true;
  9190. if (cPan == 2) {
  9191. this.steps--;
  9192. return;
  9193. }
  9194. let params = [
  9195. {
  9196. cid: this.cid,
  9197. chapters: JSON.stringify(this.unitJson),
  9198. uid: this.userid,
  9199. unitIndex: _unitIndex,
  9200. },
  9201. ];
  9202. this.ajax
  9203. .post(this.$store.state.api + "updateWorkNew4", params)
  9204. .then((res) => {
  9205. this.$message({
  9206. message: "修改成功",
  9207. type: "success",
  9208. });
  9209. this.courseId = this.cid;
  9210. this.addtips();
  9211. })
  9212. .catch((err) => {
  9213. this.$message.error("网络不佳");
  9214. console.error(err);
  9215. });
  9216. },
  9217. updateWork3(unitIndex) {
  9218. let _unitIndex = unitIndex;
  9219. let cPan = 1;
  9220. for (
  9221. var j = 0;
  9222. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  9223. j++
  9224. ) {
  9225. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  9226. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  9227. j
  9228. ].proVisible2 = false;
  9229. if (
  9230. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  9231. .length > 1
  9232. ) {
  9233. for (
  9234. var z = 0;
  9235. z <
  9236. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  9237. .length;
  9238. z++
  9239. ) {
  9240. if (
  9241. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  9242. z
  9243. ].tool.length
  9244. ) {
  9245. this.$message.error("请把工具添加完整");
  9246. cPan = 2;
  9247. break;
  9248. }
  9249. }
  9250. }
  9251. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  9252. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  9253. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  9254. (ele) => {
  9255. return ele.value != "";
  9256. }
  9257. );
  9258. }
  9259. }
  9260. this.inputShow = true;
  9261. if (cPan == 2) {
  9262. this.steps--;
  9263. return;
  9264. }
  9265. let params = [
  9266. {
  9267. cid: this.cid,
  9268. chapters: JSON.stringify(this.unitJson),
  9269. uid: this.userid,
  9270. unitIndex: _unitIndex,
  9271. },
  9272. ];
  9273. this.ajax
  9274. .post(this.$store.state.api + "updateWorkNew4", params)
  9275. .then((res) => {
  9276. // this.$message({
  9277. // message: "修改成功",
  9278. // type: "success",
  9279. // });
  9280. this.courseId = this.cid;
  9281. this.addtips()
  9282. })
  9283. .catch((err) => {
  9284. this.$message.error("网络不佳");
  9285. console.error(err);
  9286. });
  9287. },
  9288. updateWork() {
  9289. let cPan = 1;
  9290. for (var i = 0; i < this.unitJson.length; i++) {
  9291. for (
  9292. var j = 0;
  9293. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  9294. j++
  9295. ) {
  9296. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  9297. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  9298. if (
  9299. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  9300. ) {
  9301. for (
  9302. var z = 0;
  9303. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  9304. z++
  9305. ) {
  9306. if (
  9307. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  9308. .length
  9309. ) {
  9310. this.$message.error("请把工具添加完整");
  9311. cPan = 2;
  9312. break;
  9313. }
  9314. }
  9315. }
  9316. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  9317. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  9318. i
  9319. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  9320. return ele.value != "";
  9321. });
  9322. }
  9323. }
  9324. }
  9325. this.inputShow = true;
  9326. if (cPan == 2) {
  9327. this.steps--;
  9328. return;
  9329. }
  9330. for (var i = 0; i < this.unitJson.length; i++) {
  9331. delete this.unitJson[i].isUpdate;
  9332. }
  9333. let params = [
  9334. {
  9335. cid: this.cid,
  9336. title: this.courseName,
  9337. brief: this.courseText,
  9338. cover:
  9339. this.cover.length > 0
  9340. ? JSON.stringify(this.cover)
  9341. : JSON.stringify([
  9342. {
  9343. name: "noBanner.jpg",
  9344. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  9345. uid: 1656409780264,
  9346. status: "success",
  9347. },
  9348. ]),
  9349. evaId: this.evalua,
  9350. astudent:
  9351. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  9352. see: this.isTeacherSee == true ? 1 : 0,
  9353. chapters: JSON.stringify(this.unitJson),
  9354. template: this.myWord != "undefined" ? this.myWord : [],
  9355. uid: this.userid,
  9356. courseType: JSON.stringify(this.courseTypeId),
  9357. ateacher:
  9358. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  9359. inviteCode: JSON.stringify(this.inviteCode),
  9360. refile: JSON.stringify(this.infoData),
  9361. reBrief: this.courseText2,
  9362. cpote: JSON.stringify(this.cpote),
  9363. setting: JSON.stringify({courseJie: this.courseJie, courseTime: this.courseTime}),
  9364. iresearch: this.isFileSearch ? 1 : 2,
  9365. },
  9366. ];
  9367. this.ajax
  9368. .post(this.$store.state.api + "updateWorkNew2AI3", params)
  9369. .then((res) => {
  9370. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  9371. if (this.cidType == 1) {
  9372. this.$message({
  9373. message: "修改成功",
  9374. type: "success",
  9375. });
  9376. } else {
  9377. this.$message({
  9378. message: "新增成功",
  9379. type: "success",
  9380. });
  9381. }
  9382. }
  9383. this.number = this.nbOrder;
  9384. this.courseId = this.cid;
  9385. this.addtips()
  9386. })
  9387. .catch((err) => {
  9388. this.$message.error("网络不佳");
  9389. console.error(err);
  9390. });
  9391. },
  9392. insertWord() {
  9393. this.dialogVisible1 = true;
  9394. this.updateBoolean2 = false;
  9395. this.tTitle = "";
  9396. this.tdetail = "";
  9397. },
  9398. addWord() {
  9399. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  9400. name: this.tTitle,
  9401. content: this.tdetail,
  9402. uid: this.guid(),
  9403. });
  9404. this.dialogVisible1 = false;
  9405. },
  9406. upWord() { },
  9407. selectWord(uid, i, c) {
  9408. this.dialogVisible1 = true;
  9409. this.updateBoolean2 = true;
  9410. if (
  9411. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  9412. ) {
  9413. this.tTitle =
  9414. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  9415. this.tdetail =
  9416. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  9417. }
  9418. },
  9419. isAddPP() {
  9420. if (this.checkboxList.length > 0) {
  9421. this.$message({
  9422. message: "添加成功",
  9423. type: "success",
  9424. });
  9425. this.dialogVisible3 = false;
  9426. } else {
  9427. this.$message({
  9428. message: "请添加课程成员",
  9429. type: "error",
  9430. });
  9431. }
  9432. },
  9433. isAddClass() {
  9434. this.dialogVisibleClass = false;
  9435. },
  9436. isAddPPTeacher() {
  9437. this.dialogVisibleMember = false;
  9438. this.setMan();
  9439. },
  9440. getTipsTemplate(){
  9441. if(this.templateid){
  9442. let params = {
  9443. id: this.templateid
  9444. }
  9445. this.ajax
  9446. .get(this.$store.state.api + "selectTipsTemplateById", params)
  9447. .then((res) => {
  9448. if(res.data[0].length){
  9449. this.tipsJson = res.data[0][0]
  9450. this.aiJson = JSON.parse(res.data[0][0].tips)
  9451. this.aiJson.teacherDetail2 = this.aiJson.teacherDetail2 ? this.aiJson.teacherDetail2 : '请根据<任务名>、<任务描述>,<课程简要描述>,为该任务设计详细的教案,教案需要包含该任务的教学目标,教学过程(包含分步骤的教师活动和学生活动,教师活动与学生活动应该一一对应),相关知识点的讲解,练习(练习需要包含示例答案)。'
  9452. this.$forceUpdate();
  9453. }
  9454. })
  9455. .catch((err) => { });
  9456. }
  9457. },
  9458. getTemplate() {
  9459. this.ajax
  9460. .get(this.$store.state.api + "getCourseTemplateT", "")
  9461. .then((res) => {
  9462. this.templateArray = res.data[0];
  9463. this.getTemplateOid();
  9464. this.$forceUpdate();
  9465. })
  9466. .catch((err) => { });
  9467. },
  9468. getTemplateOid() {
  9469. let params = {
  9470. oid: this.oid,
  9471. };
  9472. this.ajax
  9473. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  9474. .then((res) => {
  9475. if (res.data[0].length) {
  9476. this.templateArray = [...res.data[0], ...this.templateArray];
  9477. }
  9478. this.getTemplateOrg();
  9479. this.$forceUpdate();
  9480. })
  9481. .catch((err) => { });
  9482. },
  9483. getTemplateOrg() {
  9484. let params = {
  9485. oid: this.org,
  9486. };
  9487. this.ajax
  9488. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  9489. .then((res) => {
  9490. if (res.data[0].length) {
  9491. this.templateArray = [...res.data[0], ...this.templateArray];
  9492. }
  9493. this.$forceUpdate();
  9494. })
  9495. .catch((err) => { });
  9496. },
  9497. clearChoose() {
  9498. this.clearArray.splice(this.templateC.id, 1);
  9499. this.dialogVisible2 = false;
  9500. },
  9501. clearAttText() {
  9502. this.AttText = {
  9503. title: "",
  9504. text: "",
  9505. };
  9506. this.dialogVisible6 = false;
  9507. },
  9508. clearLine() {
  9509. this.line = "";
  9510. this.dialogVisible7 = false;
  9511. },
  9512. openTemplate() {
  9513. this.ctJson = {};
  9514. this.templateDialog = true;
  9515. },
  9516. checkctJson(json) {
  9517. if (this.ctJson.id == json.id) {
  9518. this.ctJson = {};
  9519. } else {
  9520. this.ctJson = json;
  9521. }
  9522. },
  9523. addTemplate(res) {
  9524. let _this = this;
  9525. let _res = [];
  9526. if (res.id == 1) {
  9527. _res = [
  9528. {
  9529. dyName: "", //单元标题
  9530. easy: 1,
  9531. chapterInfo: [
  9532. {
  9533. isread: false,
  9534. chapterid: this.guid(),
  9535. title: "",
  9536. courseName: "",
  9537. taskJson: [
  9538. {
  9539. task: "",
  9540. taskDetail: "",
  9541. chapterData: [],
  9542. toolText: "",
  9543. toolChoose: [
  9544. {
  9545. tool: [],
  9546. toolDetail: "",
  9547. toolType: 0,
  9548. askCount: 1,
  9549. askTitle: "",
  9550. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9551. },
  9552. ],
  9553. isShowTools: false,
  9554. askCount: 1,
  9555. isFold: 1,
  9556. askTitle: "",
  9557. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9558. checkJson: [{ checkCount: [], checkPerent: [] }],
  9559. homeworkList: [],
  9560. },
  9561. ],
  9562. itemCount: 1,
  9563. fileList1: [],
  9564. video: [],
  9565. testData: [],
  9566. pData: [],
  9567. templateArray: [],
  9568. },
  9569. ],
  9570. },
  9571. ];
  9572. this.updateCourseState(1);
  9573. } else if (res.id == 2) {
  9574. let stageData = [];
  9575. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9576. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  9577. if (!iframe && !iframe2) {
  9578. this.$message.error("请使用AI共创生成");
  9579. return;
  9580. }
  9581. let copyData = iframe ? iframe.contentWindow.copyData : false;
  9582. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  9583. if (
  9584. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  9585. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  9586. ) {
  9587. this.$message.error("请使用AI共创生成");
  9588. return;
  9589. }
  9590. stageData = copyData
  9591. ? copyData.stageData
  9592. : copyData2
  9593. ? copyData2.stageData
  9594. : [""];
  9595. for (var i = 0; i < stageData.length; i++) {
  9596. _res.push({
  9597. dyName: stageData[i], //单元标题
  9598. chapterInfo: [
  9599. {
  9600. isread: false,
  9601. chapterid: this.guid(),
  9602. title: "",
  9603. courseName: "",
  9604. taskJson: [
  9605. {
  9606. task: "",
  9607. taskDetail: "",
  9608. chapterData: [],
  9609. toolText: "",
  9610. toolChoose: [
  9611. {
  9612. tool: [],
  9613. toolDetail: "",
  9614. toolType: 0,
  9615. askCount: 1,
  9616. askTitle: "",
  9617. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9618. },
  9619. ],
  9620. isShowTools: false,
  9621. askCount: 1,
  9622. isFold: 1,
  9623. askTitle: "",
  9624. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9625. checkJson: [{ checkCount: [], checkPerent: [] }],
  9626. homeworkList: [],
  9627. },
  9628. ],
  9629. itemCount: 1,
  9630. fileList1: [],
  9631. video: [],
  9632. testData: [],
  9633. pData: [],
  9634. templateArray: [],
  9635. },
  9636. ],
  9637. });
  9638. }
  9639. this.updateCourseState(1);
  9640. } else if (!Object.keys(res).length) {
  9641. this.$message.error("请选择模板");
  9642. retrun;
  9643. } else {
  9644. _res = JSON.parse(res.chapters);
  9645. this.updateCourseState(parseInt(res.state));
  9646. }
  9647. _this
  9648. .$confirm(
  9649. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  9650. "提示",
  9651. {
  9652. confirmButtonText: "确定",
  9653. cancelButtonText: "取消",
  9654. type: "warning",
  9655. }
  9656. )
  9657. .then(() => {
  9658. _this.unitJson = _res;
  9659. _this.updateWork();
  9660. // _this.steps++;
  9661. _this.templateDialog = false;
  9662. setTimeout(() => {
  9663. this.checkEva(this.checkId);
  9664. setTimeout(() => {
  9665. this.checkEva(this.checkId);
  9666. }, 100);
  9667. }, 1000);
  9668. })
  9669. .catch(() => {
  9670. return;
  9671. });
  9672. },
  9673. checkTemplate(res) {
  9674. let _this = this;
  9675. _this
  9676. .$confirm(
  9677. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  9678. "提示",
  9679. {
  9680. confirmButtonText: "确定",
  9681. cancelButtonText: "取消",
  9682. type: "warning",
  9683. }
  9684. )
  9685. .then(() => {
  9686. _this.unitJson = JSON.parse(res.chapters);
  9687. _this.steps++;
  9688. setTimeout(() => {
  9689. this.checkEva(this.checkId);
  9690. setTimeout(() => {
  9691. this.checkEva(this.checkId);
  9692. }, 100);
  9693. }, 1000);
  9694. })
  9695. .catch(() => {
  9696. return;
  9697. });
  9698. },
  9699. checkTemplate1(w) {
  9700. this.steps++;
  9701. },
  9702. checkTemplate2() {
  9703. let _this = this;
  9704. _this
  9705. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  9706. confirmButtonText: "确定",
  9707. cancelButtonText: "取消",
  9708. type: "warning",
  9709. })
  9710. .then(() => {
  9711. _this.unitIndex = 0;
  9712. _this.unitJson = [
  9713. {
  9714. dyName: "", //单元标题
  9715. chapterInfo: [
  9716. {
  9717. isread: false,
  9718. chapterid: this.guid(),
  9719. title: "",
  9720. courseName: "",
  9721. taskJson: [
  9722. {
  9723. task: "",
  9724. taskDetail: "",
  9725. chapterData: [],
  9726. toolText: "",
  9727. toolChoose: [
  9728. {
  9729. tool: [],
  9730. toolDetail: "",
  9731. toolType: 0,
  9732. askCount: 1,
  9733. askTitle: "",
  9734. askJson: [
  9735. { askstitle: "", askItem: 1, checkList: [] },
  9736. ],
  9737. },
  9738. ],
  9739. isShowTools: false,
  9740. askCount: 1,
  9741. isFold: 1,
  9742. askTitle: "",
  9743. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9744. checkJson: [{ checkCount: [], checkPerent: [] }],
  9745. homeworkList: [],
  9746. },
  9747. ],
  9748. itemCount: 1,
  9749. fileList1: [],
  9750. video: [],
  9751. testData: [],
  9752. pData: [],
  9753. templateArray: [],
  9754. },
  9755. ],
  9756. },
  9757. ];
  9758. this.steps++;
  9759. setTimeout(() => {
  9760. this.checkEva(this.checkId);
  9761. setTimeout(() => {
  9762. this.checkEva(this.checkId);
  9763. }, 100);
  9764. }, 1000);
  9765. this.updateWork();
  9766. })
  9767. .catch(() => {
  9768. return;
  9769. });
  9770. },
  9771. checkTemplate3() {
  9772. let _this = this;
  9773. _this
  9774. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  9775. confirmButtonText: "确定",
  9776. cancelButtonText: "取消",
  9777. type: "warning",
  9778. })
  9779. .then(() => {
  9780. _this.unitIndex = 0;
  9781. _this.unitJson = [
  9782. {
  9783. dyName: "", //单元标题
  9784. easy: 1,
  9785. chapterInfo: [
  9786. {
  9787. isread: false,
  9788. chapterid: this.guid(),
  9789. title: "",
  9790. courseName: "",
  9791. taskJson: [
  9792. {
  9793. task: "",
  9794. taskDetail: "",
  9795. chapterData: [],
  9796. toolText: "",
  9797. toolChoose: [
  9798. {
  9799. tool: [],
  9800. toolDetail: "",
  9801. toolType: 0,
  9802. askCount: 1,
  9803. askTitle: "",
  9804. askJson: [
  9805. { askstitle: "", askItem: 1, checkList: [] },
  9806. ],
  9807. },
  9808. ],
  9809. isShowTools: false,
  9810. askCount: 1,
  9811. isFold: 1,
  9812. askTitle: "",
  9813. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9814. checkJson: [{ checkCount: [], checkPerent: [] }],
  9815. homeworkList: [],
  9816. },
  9817. ],
  9818. itemCount: 1,
  9819. fileList1: [],
  9820. video: [],
  9821. testData: [],
  9822. pData: [],
  9823. templateArray: [],
  9824. },
  9825. ],
  9826. },
  9827. ];
  9828. // this.steps++;
  9829. this.updateWork();
  9830. })
  9831. .catch(() => {
  9832. return;
  9833. });
  9834. },
  9835. checkTemplate4() {
  9836. let _this = this;
  9837. _this
  9838. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  9839. confirmButtonText: "确定",
  9840. cancelButtonText: "取消",
  9841. type: "warning",
  9842. })
  9843. .then(() => {
  9844. _this.unitIndex = 0;
  9845. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  9846. this.steps++;
  9847. this.updateWork();
  9848. })
  9849. .catch(() => {
  9850. return;
  9851. });
  9852. },
  9853. wordNext() {
  9854. this.dialogVisible2 = false;
  9855. },
  9856. isAddOrUpdateAttText() {
  9857. if (this.AttTextType == 0) {
  9858. this.addAttTextMessage();
  9859. } else {
  9860. this.updateAttText();
  9861. }
  9862. },
  9863. isAddOrUpdateLine() {
  9864. if (!this.lineTitle) {
  9865. this.$message.error("请填写链接标题");
  9866. return;
  9867. }
  9868. if (this.lineType == 0) {
  9869. this.addLine();
  9870. } else {
  9871. this.updateLine();
  9872. }
  9873. },
  9874. addAttTextMessage() {
  9875. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9876. this.taskCount
  9877. ].chapterData.push({
  9878. name: this.AttText.title,
  9879. url: this.AttText.text,
  9880. type: 6,
  9881. });
  9882. this.imgChange1(null, null, 6, this.taskCount);
  9883. this.dialogVisible6 = false;
  9884. },
  9885. selectAttText(itemTaskIndex, i) {
  9886. this.AttText.title =
  9887. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9888. itemTaskIndex
  9889. ].chapterData[i].name;
  9890. this.AttText.text =
  9891. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9892. itemTaskIndex
  9893. ].chapterData[i].url;
  9894. this.taskCount = itemTaskIndex;
  9895. this.AttTextIndex = i;
  9896. this.AttTextType = 1;
  9897. this.dialogVisible6 = true;
  9898. },
  9899. updateAttText() {
  9900. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9901. this.taskCount
  9902. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  9903. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9904. this.taskCount
  9905. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  9906. this.dialogVisible6 = false;
  9907. },
  9908. addLine() {
  9909. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9910. this.lineCount
  9911. ].chapterData.push({
  9912. name: "链接",
  9913. title: this.lineTitle,
  9914. url: this.line,
  9915. type: 8,
  9916. });
  9917. this.imgChange1(null, null, 8, this.lineCount);
  9918. this.dialogVisible7 = false;
  9919. },
  9920. selectLine(itemTaskIndex, i) {
  9921. this.line =
  9922. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9923. itemTaskIndex
  9924. ].chapterData[i].url;
  9925. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9926. itemTaskIndex
  9927. ].chapterData[i].title
  9928. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9929. .chapterData[i].title
  9930. : "";
  9931. this.taskCount = itemTaskIndex;
  9932. this.lineCount = i;
  9933. this.lineType = 1;
  9934. this.dialogVisible7 = true;
  9935. },
  9936. openUpdateSource(itemTaskIndex, i) {
  9937. this.sourceData = {};
  9938. let source =
  9939. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9940. .chapterData[i];
  9941. this.sourceData[source.id] = {};
  9942. this.sourceData[source.id].name = source.title;
  9943. this.sourceData[source.id].url = source.url;
  9944. this.dialogVisibleSource = true;
  9945. this.updateSourcePan = true;
  9946. this.taskCount = itemTaskIndex;
  9947. this.lineCount = i;
  9948. },
  9949. updateLine() {
  9950. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9951. this.taskCount
  9952. ].chapterData[this.lineCount].url = this.line;
  9953. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9954. this.taskCount
  9955. ].chapterData[this.lineCount].title = this.lineTitle;
  9956. this.dialogVisible7 = false;
  9957. },
  9958. addPP() {
  9959. this.dialogVisible3 = true;
  9960. },
  9961. goTo(path) {
  9962. this.$router.push(path);
  9963. },
  9964. openTools(itemTaskIndex, i, toolIndex) {
  9965. this.toolIndex = toolIndex;
  9966. this.taskCount = itemTaskIndex;
  9967. if (i == 4) {
  9968. if (toolIndex == null) {
  9969. var a =
  9970. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9971. .chapterData;
  9972. for (var i = 0; i < a.length; i++) {
  9973. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  9974. this.askJson =
  9975. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9976. itemTaskIndex
  9977. ].chapterData[i].askJson;
  9978. }
  9979. }
  9980. } else {
  9981. this.askJson = JSON.parse(
  9982. JSON.stringify(
  9983. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9984. itemTaskIndex
  9985. ].toolChoose[toolIndex]
  9986. )
  9987. );
  9988. }
  9989. this.askJson2 = JSON.parse(JSON.stringify(this.askJson));
  9990. this.dialogVisible5 = true;
  9991. } else if (i == 45) {
  9992. if (
  9993. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9994. .toolChoose[toolIndex].testJson
  9995. ) {
  9996. this.testJson = JSON.parse(
  9997. JSON.stringify(
  9998. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9999. itemTaskIndex
  10000. ].toolChoose[toolIndex].testJson
  10001. )
  10002. );
  10003. } else {
  10004. var testJson = {
  10005. testCount: 1,
  10006. testTitle: "",
  10007. testJson: [
  10008. {
  10009. teststitle: "",
  10010. testItem: 1,
  10011. checkList: [],
  10012. timuList: [],
  10013. answer: [],
  10014. type: "1",
  10015. },
  10016. ],
  10017. };
  10018. this.testJson = testJson;
  10019. }
  10020. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  10021. this.dialogVisibleChoice = true;
  10022. } else if (i == 47) {
  10023. if (
  10024. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10025. .toolChoose[toolIndex].sentenceList
  10026. ) {
  10027. this.sentenceList = JSON.parse(
  10028. JSON.stringify(
  10029. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10030. itemTaskIndex
  10031. ].toolChoose[toolIndex].sentenceList
  10032. )
  10033. );
  10034. } else {
  10035. var sentenceList = [
  10036. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  10037. ];
  10038. this.sentenceList = sentenceList;
  10039. }
  10040. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  10041. this.dialogVisibleSentence = true;
  10042. } else if (i == 48) {
  10043. if (
  10044. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10045. .toolChoose[toolIndex].tableJson
  10046. ) {
  10047. this.tableJson = JSON.parse(
  10048. JSON.stringify(
  10049. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10050. itemTaskIndex
  10051. ].toolChoose[toolIndex].tableJson
  10052. )
  10053. );
  10054. } else {
  10055. var tableJson = { text: "" };
  10056. this.tableJson = tableJson;
  10057. }
  10058. this.dialogVisibleTable = true;
  10059. } else if (i == 52) {
  10060. if (
  10061. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10062. .toolChoose[toolIndex].wordJson
  10063. ) {
  10064. this.wordJson = JSON.parse(
  10065. JSON.stringify(
  10066. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10067. itemTaskIndex
  10068. ].toolChoose[toolIndex].wordJson
  10069. )
  10070. );
  10071. } else {
  10072. var wordJson = { text: "" };
  10073. this.wordJson = wordJson;
  10074. }
  10075. this.dialogVisibleWord = true;
  10076. // else if (i == 50) {
  10077. // if (
  10078. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10079. // .toolChoose[toolIndex].uploadJson
  10080. // ) {
  10081. // this.uploadJson = JSON.parse(
  10082. // JSON.stringify(
  10083. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10084. // itemTaskIndex
  10085. // ].toolChoose[toolIndex].uploadJson
  10086. // )
  10087. // );
  10088. // } else {
  10089. // var uploadJson = [];
  10090. // this.uploadJson = uploadJson;
  10091. // }
  10092. // this.dialogVisibleMoreUpload = true;
  10093. // }
  10094. } else if (i == 10) {
  10095. if (
  10096. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10097. .toolChoose[toolIndex].preTime
  10098. ) {
  10099. this.preTime = JSON.parse(
  10100. JSON.stringify(
  10101. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10102. itemTaskIndex
  10103. ].toolChoose[toolIndex].preTime
  10104. )
  10105. );
  10106. } else {
  10107. var preTime = 0;
  10108. this.preTime = preTime;
  10109. }
  10110. this.dialogVisiblePreTime = true;
  10111. } else if (i == 49) {
  10112. if (
  10113. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10114. .toolChoose[toolIndex].groupJson
  10115. ) {
  10116. this.groupJson = JSON.parse(
  10117. JSON.stringify(
  10118. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10119. itemTaskIndex
  10120. ].toolChoose[toolIndex].groupJson
  10121. )
  10122. );
  10123. } else {
  10124. var groupJson = {
  10125. group: [{ name: "第1组" }],
  10126. number: undefined,
  10127. islock: 1,
  10128. };
  10129. this.groupJson = groupJson;
  10130. }
  10131. this.dialogVisibleGroup = true;
  10132. } else if (i == 62) {
  10133. if (
  10134. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10135. .toolChoose[toolIndex].videoJson
  10136. ) {
  10137. this.videoJson = JSON.parse(
  10138. JSON.stringify(
  10139. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10140. itemTaskIndex
  10141. ].toolChoose[toolIndex].videoJson
  10142. )
  10143. );
  10144. } else {
  10145. var videoJson = {
  10146. video: "",
  10147. setting: [],
  10148. };
  10149. this.videoJson = videoJson;
  10150. }
  10151. this.dialogVisibleVideo = true;
  10152. } else if (i == 15) {
  10153. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10154. itemTaskIndex
  10155. ].toolChoose[toolIndex].answerQ
  10156. ? JSON.parse(
  10157. JSON.stringify(
  10158. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10159. itemTaskIndex
  10160. ].toolChoose[toolIndex].answerQ
  10161. )
  10162. )
  10163. : "";
  10164. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ));
  10165. this.dialogVisible8 = true;
  10166. } else if (i == 40) {
  10167. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10168. itemTaskIndex
  10169. ].toolChoose[toolIndex].rateJson
  10170. ? JSON.parse(
  10171. JSON.stringify(
  10172. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10173. itemTaskIndex
  10174. ].toolChoose[toolIndex].rateJson
  10175. )
  10176. )
  10177. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  10178. this.selectSteps = 1;
  10179. this.dialogVisibleRate = true;
  10180. } else if (i == 42) {
  10181. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10182. itemTaskIndex
  10183. ].toolChoose[toolIndex].answerQ
  10184. ? JSON.parse(
  10185. JSON.stringify(
  10186. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10187. itemTaskIndex
  10188. ].toolChoose[toolIndex].answerQ
  10189. )
  10190. )
  10191. : "";
  10192. this.dialogVisibleMp3 = true;
  10193. } else if (i == 41) {
  10194. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10195. itemTaskIndex
  10196. ].toolChoose[toolIndex].selectJson
  10197. ? JSON.parse(
  10198. JSON.stringify(
  10199. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10200. itemTaskIndex
  10201. ].toolChoose[toolIndex].selectJson
  10202. )
  10203. )
  10204. : { url: "", select: [], answer: [] };
  10205. this.selectSteps = 1;
  10206. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson));
  10207. this.dialogVisibleSelect = true;
  10208. } else if (i == 3) {
  10209. top.postMessage(
  10210. {
  10211. tools: "3y",
  10212. cid: this.cid,
  10213. stage: this.unitIndex,
  10214. task: itemTaskIndex,
  10215. tool: toolIndex,
  10216. },
  10217. "*"
  10218. );
  10219. } else if (i == 1) {
  10220. top.postMessage(
  10221. {
  10222. tools: "1y",
  10223. cid: this.cid,
  10224. stage: this.unitIndex,
  10225. task: itemTaskIndex,
  10226. tool: toolIndex,
  10227. },
  10228. "*"
  10229. );
  10230. } else if (i == 57) {
  10231. top.postMessage(
  10232. {
  10233. tools: "57y",
  10234. cid: this.cid,
  10235. stage: this.unitIndex,
  10236. task: itemTaskIndex,
  10237. tool: toolIndex,
  10238. },
  10239. "*"
  10240. );
  10241. } else if (i == 69) {
  10242. this.englishList = {};
  10243. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0]
  10244. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishList
  10245. ? JSON.parse(
  10246. JSON.stringify(
  10247. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10248. itemTaskIndex
  10249. ].toolChoose[toolIndex].englishList
  10250. )
  10251. )
  10252. : {};
  10253. this.$forceUpdate();
  10254. this.englishDialogVisible = true;
  10255. } else if (i == 70) {
  10256. this.englishVoiceJson = {};
  10257. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0]
  10258. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishVoiceJson
  10259. ? JSON.parse(
  10260. JSON.stringify(
  10261. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10262. itemTaskIndex
  10263. ].toolChoose[toolIndex].englishVoiceJson
  10264. )
  10265. )
  10266. : {
  10267. title: '',
  10268. detail: '',
  10269. array: []
  10270. };
  10271. // {
  10272. // time: "",
  10273. // class: "",
  10274. // difficulty: 0,
  10275. // topic: "",
  10276. // isShow: false,
  10277. // eva: 0,
  10278. // aiEva: {
  10279. // isAiEva: false,
  10280. // aiEvaChoose: [],
  10281. // },
  10282. // allfType: [],
  10283. // englishJson: {},
  10284. // };
  10285. this.$forceUpdate();
  10286. this.EnglishVoiceDialog = true;
  10287. }
  10288. },
  10289. setEnglishVoiceJson(val) {
  10290. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10291. this.taskCount
  10292. ].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(
  10293. JSON.stringify(val)
  10294. );
  10295. this.$forceUpdate();
  10296. if (
  10297. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10298. .toolChoose[this.toolIndex].tool != 70
  10299. ) {
  10300. this.addTools(70, this.taskCount, this.toolIndex);
  10301. }
  10302. },
  10303. chapAddTools(i) {
  10304. if (this.chapTools[0].tools.length == 0) {
  10305. this.chapTools[0].tools.push(i);
  10306. } else {
  10307. if (this.chapTools[0].tools.indexOf(i) != -1) {
  10308. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  10309. } else {
  10310. this.chapTools[0].tools.push(i);
  10311. }
  10312. }
  10313. this.$forceUpdate();
  10314. },
  10315. addChaptersDataTools() {
  10316. if (this.chapTools[0].tools.indexOf(4) != -1) {
  10317. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10318. this.chapCount
  10319. ].chapterData.push({
  10320. name: this.chapTools[0].toolDetail,
  10321. url: this.chapTools[0].tools,
  10322. type: 7,
  10323. askJson: this.askJson,
  10324. });
  10325. } else {
  10326. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10327. this.chapCount
  10328. ].chapterData.push({
  10329. name: this.chapTools[0].toolDetail,
  10330. url: this.chapTools[0].tools,
  10331. type: 7,
  10332. });
  10333. }
  10334. this.imgChange1(null, null, 7, this.chapCount);
  10335. this.dialogVisible4 = false;
  10336. },
  10337. addTools(i, itemTaskIndex, toolIndex) {
  10338. // if (
  10339. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10340. // .toolChoose[toolIndex].tool.length == 0
  10341. // ) {
  10342. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10343. // itemTaskIndex
  10344. // ].toolChoose[toolIndex].tool.push(i);
  10345. // } else {
  10346. // if (
  10347. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10348. // itemTaskIndex
  10349. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  10350. // ) {
  10351. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10352. // itemTaskIndex
  10353. // ].toolChoose[toolIndex].tool.splice(
  10354. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10355. // itemTaskIndex
  10356. // ].toolChoose[toolIndex].tool.indexOf(i),
  10357. // 1
  10358. // );
  10359. // } else {
  10360. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10361. // itemTaskIndex
  10362. // ].toolChoose[toolIndex].tool.push(i);
  10363. // }
  10364. // console.log(
  10365. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10366. // .toolChoose[toolIndex].tool
  10367. // );
  10368. // }
  10369. if (i == 4) {
  10370. if (
  10371. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10372. .toolChoose[toolIndex].askJson.askTitle == "" ||
  10373. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10374. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  10375. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10376. .toolChoose[toolIndex].askJson[0].checkList < 2
  10377. ) {
  10378. this.openTools(itemTaskIndex, 4, toolIndex);
  10379. // this.$message({
  10380. // message: "请填写完整问卷内容",
  10381. // type: "error",
  10382. // });
  10383. return;
  10384. }
  10385. }
  10386. if (i == 45) {
  10387. if (
  10388. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10389. .toolChoose[toolIndex].testJson ||
  10390. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10391. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  10392. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10393. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  10394. ) {
  10395. this.openTools(itemTaskIndex, 45, toolIndex);
  10396. // this.$message({
  10397. // message: "请填写完整问卷内容",
  10398. // type: "error",
  10399. // });
  10400. return;
  10401. }
  10402. }
  10403. if (i == 47) {
  10404. if (
  10405. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10406. .toolChoose[toolIndex].sentenceList ||
  10407. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10408. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  10409. ) {
  10410. this.openTools(itemTaskIndex, 47, toolIndex);
  10411. return;
  10412. }
  10413. }
  10414. if (i == 69) {
  10415. if (
  10416. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10417. .toolChoose[toolIndex].englishList
  10418. ) {
  10419. this.openTools(itemTaskIndex, 69, toolIndex);
  10420. return;
  10421. }
  10422. }
  10423. if (i == 70) {
  10424. if (
  10425. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10426. .toolChoose[toolIndex].englishVoiceJson
  10427. ) {
  10428. this.openTools(itemTaskIndex, 70, toolIndex);
  10429. return;
  10430. }
  10431. }
  10432. // if (i == 48) {
  10433. // if (
  10434. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10435. // .toolChoose[toolIndex].tableJson
  10436. // ) {
  10437. // this.openTools(itemTaskIndex, 48, toolIndex);
  10438. // return;
  10439. // }
  10440. // }
  10441. // if (i == 50) {
  10442. // if (
  10443. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10444. // .toolChoose[toolIndex].uploadJson
  10445. // ) {
  10446. // this.openTools(itemTaskIndex, 50, toolIndex);
  10447. // return;
  10448. // }
  10449. // }
  10450. if (i == 49) {
  10451. if (
  10452. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10453. .toolChoose[toolIndex].groupJson
  10454. ) {
  10455. this.openTools(itemTaskIndex, 49, toolIndex);
  10456. return;
  10457. }
  10458. }
  10459. if (i == 62) {
  10460. if (
  10461. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10462. .toolChoose[toolIndex].videoJson
  10463. ) {
  10464. this.openTools(itemTaskIndex, 62, toolIndex);
  10465. return;
  10466. }
  10467. }
  10468. if (i == 15) {
  10469. if (
  10470. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10471. .toolChoose[toolIndex].answerQ ||
  10472. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10473. .toolChoose[toolIndex].answerQ == ""
  10474. ) {
  10475. this.openTools(itemTaskIndex, 15, toolIndex);
  10476. // this.$message({
  10477. // message: "请填写问答内容",
  10478. // type: "error",
  10479. // });
  10480. return;
  10481. }
  10482. }
  10483. if (i == 40) {
  10484. if (
  10485. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10486. .toolChoose[toolIndex].rateJson ||
  10487. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10488. .toolChoose[toolIndex].rateJson.length
  10489. ) {
  10490. this.openTools(itemTaskIndex, 40, toolIndex);
  10491. return;
  10492. }
  10493. }
  10494. if (i == 41) {
  10495. if (
  10496. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10497. .toolChoose[toolIndex].selectJson ||
  10498. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10499. .toolChoose[toolIndex].selectJson.url == "" ||
  10500. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10501. .toolChoose[toolIndex].selectJson.select.length ||
  10502. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10503. .toolChoose[toolIndex].selectJson.answer.length
  10504. ) {
  10505. this.openTools(itemTaskIndex, 41, toolIndex);
  10506. return;
  10507. }
  10508. }
  10509. if (i == 42) {
  10510. if (
  10511. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10512. .toolChoose[toolIndex].answerQ ||
  10513. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10514. .toolChoose[toolIndex].answerQ == ""
  10515. ) {
  10516. this.openTools(itemTaskIndex, 42, toolIndex);
  10517. return;
  10518. }
  10519. }
  10520. if (
  10521. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10522. .toolChoose[toolIndex].tool.length > 0
  10523. ) {
  10524. if (
  10525. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10526. itemTaskIndex
  10527. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  10528. ) {
  10529. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10530. itemTaskIndex
  10531. ].toolChoose[toolIndex].tool.splice(
  10532. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10533. itemTaskIndex
  10534. ].toolChoose[toolIndex].tool.indexOf(i),
  10535. 1
  10536. );
  10537. } else {
  10538. // this.$message({
  10539. // message: "每个工具只能添加一个",
  10540. // type: "error",
  10541. // });
  10542. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10543. itemTaskIndex
  10544. ].toolChoose[toolIndex].tool = [];
  10545. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10546. itemTaskIndex
  10547. ].toolChoose[toolIndex].tool.push(i);
  10548. }
  10549. } else {
  10550. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10551. itemTaskIndex
  10552. ].toolChoose[toolIndex].tool.push(i);
  10553. }
  10554. this.$forceUpdate();
  10555. },
  10556. addAskList(index) {
  10557. this.askJson.askJson.splice(index + 1, 0, {
  10558. askstitle: "",
  10559. askItem: 1,
  10560. checkList: [],
  10561. });
  10562. this.askJson.askCount++;
  10563. },
  10564. addTestList(index) {
  10565. this.testJson.testJson.splice(index + 1, 0, {
  10566. teststitle: "",
  10567. testItem: 1,
  10568. checkList: [],
  10569. timuList: [],
  10570. answer: [],
  10571. type: "1",
  10572. });
  10573. this.testJson.testCount++;
  10574. },
  10575. deleteAskList(index) {
  10576. if (
  10577. !this.askJson.askJson[index].askstitle &&
  10578. this.askJson.askJson[index].askItem == 1 &&
  10579. !this.askJson.askJson[index].checkList[0]
  10580. ) {
  10581. this.askJson.askJson.splice(index, 1);
  10582. this.askJson.askCount--;
  10583. } else {
  10584. let _this = this;
  10585. _this
  10586. .$confirm("此操作不可撤销,是否继续?", "提示", {
  10587. confirmButtonText: "确定",
  10588. cancelButtonText: "取消",
  10589. type: "warning",
  10590. })
  10591. .then(() => {
  10592. _this.askJson.askJson.splice(index, 1);
  10593. _this.askJson.askCount--;
  10594. })
  10595. .catch(() => {
  10596. return;
  10597. });
  10598. }
  10599. },
  10600. deleteTestList(index) {
  10601. if (
  10602. !this.testJson.testJson[index].teststitle &&
  10603. this.testJson.testJson[index].testItem == 1 &&
  10604. !this.testJson.testJson[index].checkList[0]
  10605. ) {
  10606. this.testJson.testJson.splice(index, 1);
  10607. this.testJson.testCount--;
  10608. } else {
  10609. let _this = this;
  10610. _this
  10611. .$confirm("此操作不可撤销,是否继续?", "提示", {
  10612. confirmButtonText: "确定",
  10613. cancelButtonText: "取消",
  10614. type: "warning",
  10615. })
  10616. .then(() => {
  10617. _this.testJson.testJson.splice(index, 1);
  10618. _this.testJson.testCount--;
  10619. })
  10620. .catch(() => {
  10621. return;
  10622. });
  10623. }
  10624. },
  10625. askMove(type, index) {
  10626. if (type == 1) {
  10627. if (index > 0) {
  10628. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  10629. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  10630. this.askJson.askJson[index - 1] = b;
  10631. this.askJson.askJson[index] = a;
  10632. }
  10633. } else {
  10634. if (index < this.askJson.askJson.length - 1) {
  10635. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  10636. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  10637. this.askJson.askJson[index + 1] = b;
  10638. this.askJson.askJson[index] = a;
  10639. }
  10640. }
  10641. this.$forceUpdate();
  10642. },
  10643. checkMove(type, index, checkIndex) {
  10644. if (type == 1) {
  10645. if (checkIndex > 0) {
  10646. let a = JSON.parse(
  10647. JSON.stringify(
  10648. this.askJson.askJson[index].checkList[checkIndex - 1]
  10649. )
  10650. );
  10651. let b = JSON.parse(
  10652. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  10653. );
  10654. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  10655. this.askJson.askJson[index].checkList[checkIndex] = a;
  10656. }
  10657. } else {
  10658. if (checkIndex < this.askJson.askJson[index].checkList.length - 1) {
  10659. let a = JSON.parse(
  10660. JSON.stringify(
  10661. this.askJson.askJson[index].checkList[checkIndex + 1]
  10662. )
  10663. );
  10664. let b = JSON.parse(
  10665. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  10666. );
  10667. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  10668. this.askJson.askJson[index].checkList[checkIndex] = a;
  10669. }
  10670. }
  10671. this.$forceUpdate();
  10672. },
  10673. testMove(type, index) {
  10674. if (type == 1) {
  10675. if (index > 0) {
  10676. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  10677. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  10678. this.testJson.testJson[index - 1] = b;
  10679. this.testJson.testJson[index] = a;
  10680. }
  10681. } else {
  10682. if (index < this.testJson.testJson.length - 1) {
  10683. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  10684. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  10685. this.testJson.testJson[index + 1] = b;
  10686. this.testJson.testJson[index] = a;
  10687. }
  10688. }
  10689. this.$forceUpdate();
  10690. },
  10691. tcheckMove(type, index, checkIndex) {
  10692. if (type == 1) {
  10693. if (checkIndex > 0) {
  10694. let a = JSON.parse(
  10695. JSON.stringify(
  10696. this.testJson.testJson[index].checkList[checkIndex - 1]
  10697. )
  10698. );
  10699. let b = JSON.parse(
  10700. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  10701. );
  10702. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  10703. this.testJson.testJson[index].checkList[checkIndex] = a;
  10704. }
  10705. } else {
  10706. if (checkIndex < this.testJson.testJson[index].checkList.length - 1) {
  10707. let a = JSON.parse(
  10708. JSON.stringify(
  10709. this.testJson.testJson[index].checkList[checkIndex + 1]
  10710. )
  10711. );
  10712. let b = JSON.parse(
  10713. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  10714. );
  10715. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  10716. this.testJson.testJson[index].checkList[checkIndex] = a;
  10717. }
  10718. }
  10719. this.$forceUpdate();
  10720. },
  10721. addcheckList(json, index) {
  10722. // json.checkList.length++;
  10723. json.checkList.splice(index + 1, 0, "");
  10724. json.askItem++;
  10725. this.$forceUpdate();
  10726. },
  10727. deletecheckList(json, index) {
  10728. // json.checkList.length--;
  10729. json.checkList.splice(index, 1);
  10730. json.askItem--;
  10731. this.$forceUpdate();
  10732. },
  10733. addTcheckList(json, index) {
  10734. // json.checkList.length++;
  10735. json.checkList.splice(index + 1, 0, "");
  10736. json.testItem++;
  10737. this.$forceUpdate();
  10738. },
  10739. deleteTcheckList(json, index) {
  10740. // json.checkList.length--;
  10741. json.checkList.splice(index, 1);
  10742. json.testItem--;
  10743. this.$forceUpdate();
  10744. },
  10745. checkTestType(type, json) {
  10746. json.type = type;
  10747. setTimeout(() => {
  10748. json.answer = [];
  10749. }, 100);
  10750. },
  10751. checkAskType(type, json) {
  10752. json.type = type;
  10753. // json.checkList = [];
  10754. this.$forceUpdate();
  10755. },
  10756. addSelectList(json) {
  10757. json.select.push("");
  10758. json.answer.push("");
  10759. },
  10760. deleteSelectList(json) {
  10761. // json.select.length--;
  10762. // json.answer.length--;
  10763. json.select.splice(json.select.length - 1, 1);
  10764. json.answer.splice(json.answer.length - 1, 1);
  10765. },
  10766. addAsk() {
  10767. if (this.askJson.askTitle === "") {
  10768. this.$message.error("标题不能为空!");
  10769. return;
  10770. }
  10771. var aj = this.askJson.askJson;
  10772. var b = 1;
  10773. for (var i = 0; i < aj.length; i++) {
  10774. if (aj[i].askstitle === "") {
  10775. var a = 1;
  10776. for (let index = 0; index < aj[i].askItem; index++) {
  10777. const element = aj[i].checkList[index]
  10778. ? aj[i].checkList[index]
  10779. : "";
  10780. if (element != "") {
  10781. b++;
  10782. this.$message.error(`请将题目${i + 1}填写完整。`);
  10783. return;
  10784. } else {
  10785. a++;
  10786. }
  10787. }
  10788. if (b == 1) {
  10789. this.$message.error("至少填写一个问题");
  10790. return;
  10791. }
  10792. } else if (aj[i].askstitle != "") {
  10793. for (let index = 0; index < aj[i].askItem; index++) {
  10794. const element = aj[i].checkList[index]
  10795. ? aj[i].checkList[index]
  10796. : "";
  10797. var index = 0;
  10798. for (var z = 0; z < aj[i].checkList.length; z++) {
  10799. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  10800. if (checkC != "") {
  10801. index++;
  10802. } else {
  10803. this.$message.error(`题目${i + 1}选项不能为空!`);
  10804. return;
  10805. }
  10806. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  10807. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  10808. if (checkC == checkC2) {
  10809. this.$message.error(
  10810. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  10811. );
  10812. return;
  10813. }
  10814. }
  10815. }
  10816. b++;
  10817. if (index < 2) {
  10818. this.$message.error("每道题目至少需要设置2个选项。");
  10819. return;
  10820. }
  10821. }
  10822. }
  10823. }
  10824. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  10825. var elc = el.checkList.filter((element) => {
  10826. return element != "";
  10827. });
  10828. return el.askstitle != "" && elc.length != 0;
  10829. });
  10830. if (!this.dialogVisible4) {
  10831. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10832. this.taskCount
  10833. ].toolChoose[this.toolIndex] = this.askJson;
  10834. }
  10835. this.dialogVisible5 = false;
  10836. if (
  10837. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10838. .toolChoose[this.toolIndex].tool != 4
  10839. ) {
  10840. this.addTools(4, this.taskCount, this.toolIndex);
  10841. }
  10842. },
  10843. addTest() {
  10844. // if (this.testJson.testTitle === "") {
  10845. // this.$message.error("标题不能为空!");
  10846. // return;
  10847. // }
  10848. var aj = this.testJson.testJson;
  10849. var b = 1;
  10850. for (var i = 0; i < aj.length; i++) {
  10851. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  10852. var a = 1;
  10853. for (let index = 0; index < aj[i].testItem; index++) {
  10854. const element = aj[i].checkList[index]
  10855. ? aj[i].checkList[index]
  10856. : "";
  10857. if (element != "") {
  10858. b++;
  10859. this.$message.error(`请将题目${i + 1}填写完整。`);
  10860. return;
  10861. } else {
  10862. a++;
  10863. }
  10864. }
  10865. if (b == 1) {
  10866. this.$message.error("至少填写一个问题");
  10867. return;
  10868. }
  10869. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  10870. for (let index = 0; index < aj[i].testItem; index++) {
  10871. const element = aj[i].checkList[index]
  10872. ? aj[i].checkList[index]
  10873. : "";
  10874. var index = 0;
  10875. for (var z = 0; z < aj[i].checkList.length; z++) {
  10876. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  10877. if (checkC != "") {
  10878. index++;
  10879. } else {
  10880. this.$message.error(`题目${i + 1}选项不能为空!`);
  10881. return;
  10882. }
  10883. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  10884. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  10885. if (checkC == checkC2) {
  10886. this.$message.error(
  10887. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  10888. );
  10889. return;
  10890. }
  10891. }
  10892. }
  10893. b++;
  10894. if (index < 2) {
  10895. this.$message.error("每道题目至少需要设置2个选项。");
  10896. return;
  10897. }
  10898. if (
  10899. (aj[i].type == "2" && !aj[i].answer.length) ||
  10900. (aj[i].type == "1" &&
  10901. ((typeof aj[i].answer == "object" && !aj[i].answer.length) ||
  10902. (aj[i].answer !== 0 && !aj[i].answer)))
  10903. ) {
  10904. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  10905. return;
  10906. }
  10907. }
  10908. }
  10909. }
  10910. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  10911. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  10912. var elc = el.checkList.filter((element) => {
  10913. return element != "";
  10914. });
  10915. return (
  10916. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  10917. );
  10918. });
  10919. isTestJson.testCount = isTestJson.testJson.length;
  10920. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10921. this.taskCount
  10922. ].toolChoose[this.toolIndex].testJson = isTestJson;
  10923. this.dialogVisibleChoice = false;
  10924. if (
  10925. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10926. .toolChoose[this.toolIndex].tool != 45
  10927. ) {
  10928. this.addTools(45, this.taskCount, this.toolIndex);
  10929. }
  10930. },
  10931. addVideoJson(videoJson) {
  10932. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10933. this.taskCount
  10934. ].toolChoose[this.toolIndex].videoJson = videoJson;
  10935. this.dialogVisibleVideo = false;
  10936. if (
  10937. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10938. .toolChoose[this.toolIndex].tool != 62
  10939. ) {
  10940. this.addTools(62, this.taskCount, this.toolIndex);
  10941. }
  10942. },
  10943. //自动获取剪贴板
  10944. pasteOption() {
  10945. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10946. if (!iframe) {
  10947. this.$message.error("请使用AI共创生成题目");
  10948. return;
  10949. }
  10950. let copyData = iframe.contentWindow.copyData;
  10951. if (!copyData || !copyData.selectData.length) {
  10952. this.$message.error("请使用AI共创生成题目");
  10953. return;
  10954. }
  10955. let selectData = copyData.selectData;
  10956. for (var i = 0; i < selectData.length; i++) {
  10957. let answer = 0;
  10958. switch (selectData[i].answer[0]) {
  10959. case "A":
  10960. answer = 0;
  10961. break;
  10962. case "B":
  10963. answer = 1;
  10964. break;
  10965. case "C":
  10966. answer = 2;
  10967. break;
  10968. case "D":
  10969. answer = 3;
  10970. break;
  10971. case "E":
  10972. answer = 4;
  10973. break;
  10974. default:
  10975. break;
  10976. }
  10977. this.testJson.testJson.push({
  10978. teststitle: selectData[i].subject,
  10979. testItem: selectData[i].options.length,
  10980. checkList: selectData[i].options,
  10981. timuList: [],
  10982. answer: answer,
  10983. type: "1",
  10984. });
  10985. this.testJson.testCount++;
  10986. }
  10987. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  10988. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  10989. var elc = el.checkList.filter((element) => {
  10990. return element != "";
  10991. });
  10992. return el.teststitle != "" || el.timuList.length > 0 || elc.length != 0;
  10993. });
  10994. isTestJson.testCount = isTestJson.testJson.length;
  10995. if (!isTestJson.testCount) {
  10996. return;
  10997. }
  10998. this.testJson = isTestJson;
  10999. this.$forceUpdate();
  11000. },
  11001. pasteTask(taskJson) {
  11002. let stageTasksData = [];
  11003. if (taskJson) {
  11004. stageTasksData = taskJson;
  11005. } else {
  11006. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  11007. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  11008. if (!iframe && !iframe2) {
  11009. this.$message.error("请使用AI共创生成");
  11010. return;
  11011. }
  11012. let copyData = iframe ? iframe.contentWindow.copyData : false;
  11013. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  11014. if (
  11015. (!copyData || !copyData.tasksData || !copyData.tasksData.length) &&
  11016. (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)
  11017. ) {
  11018. this.$message.error("请使用AI共创生成");
  11019. return;
  11020. }
  11021. stageTasksData = copyData
  11022. ? copyData.tasksData
  11023. : copyData2
  11024. ? copyData2.tasksData
  11025. : [{ taskName: "", taskDecs: "" }];
  11026. }
  11027. let taskA = [];
  11028. let tasks = stageTasksData;
  11029. for (var j = 0; j < tasks.length; j++) {
  11030. taskA.push({
  11031. task: tasks[j].taskName,
  11032. taskDetail: tasks[j].taskDecs,
  11033. chapterData: [],
  11034. toolText: "",
  11035. toolChoose: [
  11036. {
  11037. tool: [],
  11038. toolDetail: "",
  11039. toolType: 0,
  11040. askCount: 1,
  11041. askTitle: "",
  11042. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11043. },
  11044. ],
  11045. isShowTools: false,
  11046. askCount: 1,
  11047. isFold: 1,
  11048. askTitle: "",
  11049. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11050. checkJson: [{ checkCount: [], checkPerent: [] }],
  11051. homeworkList: [],
  11052. });
  11053. }
  11054. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  11055. this.$forceUpdate();
  11056. },
  11057. pasteStage(stageJson) {
  11058. let stageData = [];
  11059. if (stageJson) {
  11060. stageData = stageJson;
  11061. } else {
  11062. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  11063. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  11064. if (!iframe && !iframe2) {
  11065. this.$message.error("请使用AI共创生成");
  11066. return;
  11067. }
  11068. let copyData = iframe ? iframe.contentWindow.copyData : false;
  11069. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  11070. if (
  11071. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  11072. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  11073. ) {
  11074. this.$message.error("请使用AI共创生成");
  11075. return;
  11076. }
  11077. stageData = copyData
  11078. ? copyData.stageData
  11079. : copyData2
  11080. ? copyData2.stageData
  11081. : [""];
  11082. }
  11083. let stage = [];
  11084. for (var i = 0; i < stageData.length; i++) {
  11085. stage.push({
  11086. dyName: stageData[i], //单元标题
  11087. chapterInfo: [
  11088. {
  11089. isread: false,
  11090. chapterid: this.guid(),
  11091. title: "",
  11092. courseName: "",
  11093. taskJson: [
  11094. {
  11095. task: "",
  11096. taskDetail: "",
  11097. chapterData: [],
  11098. toolText: "",
  11099. toolChoose: [
  11100. {
  11101. tool: [],
  11102. toolDetail: "",
  11103. toolType: 0,
  11104. askCount: 1,
  11105. askTitle: "",
  11106. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11107. },
  11108. ],
  11109. isShowTools: false,
  11110. askCount: 1,
  11111. isFold: 1,
  11112. askTitle: "",
  11113. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11114. checkJson: [{ checkCount: [], checkPerent: [] }],
  11115. homeworkList: [],
  11116. },
  11117. ],
  11118. itemCount: 1,
  11119. fileList1: [],
  11120. video: [],
  11121. testData: [],
  11122. pData: [],
  11123. templateArray: [],
  11124. },
  11125. ],
  11126. });
  11127. }
  11128. let _this = this;
  11129. if (stageJson) {
  11130. if (!_this.cid) {
  11131. _this.unitJson = stage;
  11132. } else {
  11133. _this.unitIndex = 0;
  11134. _this.unitJson = stage;
  11135. _this.updateWork();
  11136. }
  11137. } else {
  11138. _this
  11139. .$confirm(
  11140. "确定选择智能粘贴模板吗?修改课程时无法重置课程模板。",
  11141. "提示",
  11142. {
  11143. confirmButtonText: "确定",
  11144. cancelButtonText: "取消",
  11145. type: "warning",
  11146. }
  11147. )
  11148. .then(() => {
  11149. _this.unitIndex = 0;
  11150. _this.unitJson = stage;
  11151. // _this.steps++;
  11152. _this.updateWork();
  11153. })
  11154. .catch(() => {
  11155. return;
  11156. });
  11157. }
  11158. },
  11159. openStageBox() {
  11160. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson));
  11161. this.dialogVisibleStageChange = true;
  11162. },
  11163. updateChange() {
  11164. this.$confirm(
  11165. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  11166. "提示",
  11167. {
  11168. confirmButtonText: "确定",
  11169. cancelButtonText: "取消",
  11170. type: "warning",
  11171. }
  11172. )
  11173. .then(() => {
  11174. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3));
  11175. this.updateWork();
  11176. this.dialogVisibleStageChange = false;
  11177. })
  11178. .catch(() => {
  11179. return;
  11180. });
  11181. },
  11182. addAnswer() {
  11183. if (this.answerQ == "") {
  11184. this.$message.error("请输入您想要问的问题");
  11185. return;
  11186. }
  11187. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11188. this.taskCount
  11189. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  11190. this.dialogVisible8 = false;
  11191. if (
  11192. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11193. .toolChoose[this.toolIndex].tool != 15
  11194. ) {
  11195. this.addTools(15, this.taskCount, this.toolIndex);
  11196. }
  11197. },
  11198. addMp3Answer() {
  11199. if (this.answerQ == "") {
  11200. this.$message.error("请输入您想要回答的问题");
  11201. return;
  11202. }
  11203. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11204. this.taskCount
  11205. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  11206. this.dialogVisibleMp3 = false;
  11207. },
  11208. addRateAnswer() {
  11209. var a = 1;
  11210. for (var i = 0; i < this.rateJson.length; i++) {
  11211. if (this.rateJson[i].value == "") {
  11212. a = 2;
  11213. break;
  11214. }
  11215. }
  11216. if (a == 2) {
  11217. this.$message.error("请把评价信息填写完整");
  11218. return;
  11219. }
  11220. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11221. this.taskCount
  11222. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  11223. this.dialogVisibleRate = false;
  11224. if (
  11225. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11226. .toolChoose[this.toolIndex].tool != 40
  11227. ) {
  11228. this.addTools(40, this.taskCount, this.toolIndex);
  11229. }
  11230. },
  11231. addSelectAnswer() {
  11232. if (this.selectJson.url == "") {
  11233. this.$message.error("请上传题目");
  11234. return;
  11235. }
  11236. if (!this.selectJson.select.length) {
  11237. this.$message.error("请添加选项");
  11238. return;
  11239. }
  11240. if (!this.selectJson.answer.length) {
  11241. this.$message.error("请设置答案");
  11242. return;
  11243. }
  11244. var a = 1;
  11245. for (var i = 0; i < this.selectJson.answer.length; i++) {
  11246. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  11247. a = 2;
  11248. }
  11249. }
  11250. if (a == 2) {
  11251. this.$message.error("请设置答案");
  11252. return;
  11253. }
  11254. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11255. this.taskCount
  11256. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  11257. this.dialogVisibleSelect = false;
  11258. if (
  11259. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11260. .toolChoose[this.toolIndex].tool != 41
  11261. ) {
  11262. this.addTools(41, this.taskCount, this.toolIndex);
  11263. }
  11264. },
  11265. nextSelectSteps() {
  11266. if (this.selectJson.url == "") {
  11267. this.$message.error("请上传题目");
  11268. return;
  11269. }
  11270. if (!this.selectJson.select.length) {
  11271. this.$message.error("请添加选项");
  11272. return;
  11273. } else {
  11274. for (var z = 0; z < this.selectJson.select.length; z++) {
  11275. let checkC = this.selectJson.select[z];
  11276. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  11277. let checkC2 = this.selectJson.select[z2];
  11278. if (checkC == checkC2) {
  11279. this.$message.error(
  11280. `选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  11281. );
  11282. return;
  11283. }
  11284. }
  11285. }
  11286. }
  11287. var a = 1;
  11288. for (var i = 0; i < this.selectJson.select.length; i++) {
  11289. if (!this.selectJson.select[i]) {
  11290. a = 2;
  11291. }
  11292. }
  11293. if (a == 2) {
  11294. this.$message.error("添加的选项不能为空");
  11295. return;
  11296. }
  11297. this.selectSteps++;
  11298. },
  11299. selectCourseDetail() {
  11300. if (this.cid == "" || this.cid == undefined) {
  11301. if (this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5') {
  11302. this.isTeacherSee = true;
  11303. }
  11304. console.log("这是新增课程");
  11305. this.selectAllType();
  11306. } else {
  11307. this.isOutline = true
  11308. this.isOutline2 = true
  11309. this.cpoteType = 4
  11310. this.cidType = 1;
  11311. let params = {
  11312. cid: this.cid,
  11313. };
  11314. this.ajax
  11315. .get(this.$store.state.api + "select_course_detail", params)
  11316. .then((res) => {
  11317. this.unitJson = JSON.parse(res.data[0][0].chapters);
  11318. this.courseState = res.data[0][0].state;
  11319. for (var j = 0; j < this.unitJson.length; j++) {
  11320. for (
  11321. var k = 0;
  11322. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  11323. k++
  11324. ) {
  11325. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  11326. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  11327. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  11328. : [];
  11329. let _chapterData = [];
  11330. for (
  11331. var c = 0;
  11332. c <
  11333. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  11334. .length;
  11335. c++
  11336. ) {
  11337. if (
  11338. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  11339. ) {
  11340. _chapterData.push(
  11341. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  11342. );
  11343. }
  11344. }
  11345. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  11346. _chapterData;
  11347. }
  11348. }
  11349. this.$forceUpdate();
  11350. this.courseName = res.data[0][0].title;
  11351. this.courseText = res.data[0][0].brief;
  11352. this.courseText2 = res.data[0][0].reBrief;
  11353. this.evalua = res.data[0][0].evaId;
  11354. this.cover = JSON.parse(res.data[0][0].cover);
  11355. this.noneBtnImg = this.cover.length >= 1;
  11356. if (res.data[0][0].refile) {
  11357. this.infoData = JSON.parse(res.data[0][0].refile)
  11358. }
  11359. // this.checkboxList =
  11360. // res.data[0][0].course_student.length > 0
  11361. // ? JSON.parse(res.data[0][0].course_student)
  11362. // : [];
  11363. this.checkboxList2 = res.data[0][0].juri
  11364. ? res.data[0][0].juri.split(",")
  11365. : [];
  11366. this.inviteCode = [];
  11367. for (var i = 0; i < res.data[2].length; i++) {
  11368. this.inviteCode.push({
  11369. cid: res.data[2][i].classid,
  11370. ic: res.data[2][i].code,
  11371. });
  11372. }
  11373. this.checkboxList3 = res.data[0][0].course_teacher
  11374. ? res.data[0][0].course_teacher.split(",")
  11375. : [];
  11376. // this.isTeacherSee =
  11377. // res.data[0][0].is_teacher_look == 0 ? true : false;
  11378. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  11379. this.myWord = res.data[0][0].template;
  11380. this.templateC.id = "123";
  11381. this.courseUserid = res.data[0][0].userid;
  11382. // if(this.courseUserid == this.userid){
  11383. // this.InviteChange(this.checkboxList2)
  11384. // }
  11385. this.nbOrder = res.data[0][0].ordernumber;
  11386. this.courseTypeId = [];
  11387. for (var i = 0; i < res.data[1].length; i++) {
  11388. this.courseTypeId.push(res.data[1][i].typeid);
  11389. }
  11390. console.log(this.courseTypeId);
  11391. // if (this.timer) clearInterval(this.timer);
  11392. if (this.timer) clearTimeout(this.timer);
  11393. this.timer = null;
  11394. // this.timer = setInterval(() => {
  11395. if(res.data[3].length){
  11396. try {
  11397. this.aiJson = JSON.parse(res.data[3][0].tips);
  11398. this.templateid = res.data[3][0].template;
  11399. }catch(error){
  11400. console.error(error)
  11401. }
  11402. }
  11403. if(res.data[0][0].cpote){
  11404. try {
  11405. this.cpote = JSON.parse(res.data[0][0].cpote);
  11406. }catch(error){
  11407. console.error(error)
  11408. }
  11409. }
  11410. if(res.data[0][0].setting){
  11411. try {
  11412. this.courseJie = JSON.parse(res.data[0][0].setting).courseJie;
  11413. this.courseTime = JSON.parse(res.data[0][0].setting).courseTime;
  11414. }catch(error){
  11415. console.error(error)
  11416. }
  11417. }
  11418. this.isFileSearch = res.data[0][0].iresearch == 1
  11419. this.seleteCourseUpdate();
  11420. this.setMan();
  11421. this.selectAllType();
  11422. this.unitJson[
  11423. this.unitIndex
  11424. ].chapterInfo[0].taskJson[0].toolOpen = true;
  11425. // }, 5000);
  11426. this.$forceUpdate();
  11427. setTimeout(() => {
  11428. this.checkEva(this.evalua);
  11429. setTimeout(() => {
  11430. this.checkEva(this.evalua);
  11431. }, 100);
  11432. }, 100);
  11433. })
  11434. .catch((err) => {
  11435. console.error(err);
  11436. });
  11437. }
  11438. if(this.aiId){
  11439. let params = {
  11440. cid: this.aiId,
  11441. };
  11442. this.ajax
  11443. .get(this.$store.state.api + "select_course_detail", params)
  11444. .then((res) => {
  11445. let _unitJson = JSON.parse(res.data[0][0].chapters);
  11446. let fileInfo = []
  11447. var xianObj = ['DOCX','DOC','PPT','PPTX','MD','TXT','PDF']
  11448. for(var i = 0; i < _unitJson.length; i++){
  11449. let tasks = _unitJson[i].chapterInfo[0].taskJson
  11450. for(var j = 0; j < tasks.length; j++){
  11451. let _infoData = tasks[j].chapterData.filter(el => {
  11452. return xianObj.indexOf(el.url.split(".")[el.url.split(".").length - 1].toLocaleUpperCase()) != -1
  11453. })
  11454. if(_infoData.length){
  11455. fileInfo = [...fileInfo, ..._infoData]
  11456. }
  11457. }
  11458. }
  11459. this.infoData = fileInfo
  11460. this.$forceUpdate();
  11461. this.courseName = res.data[0][0].title;
  11462. this.courseText = res.data[0][0].brief;
  11463. this.courseText2 = res.data[0][0].reBrief;
  11464. this.cover = JSON.parse(res.data[0][0].cover);
  11465. this.noneBtnImg = this.cover.length >= 1;
  11466. this.checkboxList2 = res.data[0][0].juri
  11467. ? res.data[0][0].juri.split(",")
  11468. : [];
  11469. this.inviteCode = [];
  11470. for (var i = 0; i < res.data[2].length; i++) {
  11471. this.inviteCode.push({
  11472. cid: res.data[2][i].classid,
  11473. ic: res.data[2][i].code,
  11474. });
  11475. }
  11476. this.checkboxList3 = res.data[0][0].course_teacher
  11477. ? res.data[0][0].course_teacher.split(",")
  11478. : [];
  11479. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  11480. this.myWord = res.data[0][0].template;
  11481. this.templateC.id = "123";
  11482. this.courseTypeId = [];
  11483. for (var i = 0; i < res.data[1].length; i++) {
  11484. this.courseTypeId.push(res.data[1][i].typeid);
  11485. }
  11486. console.log(this.courseTypeId);
  11487. this.setMan();
  11488. this.unitJson[
  11489. this.unitIndex
  11490. ].chapterInfo[0].taskJson[0].toolOpen = true;
  11491. this.$forceUpdate();
  11492. setTimeout(() => {
  11493. this.checkEva(this.evalua);
  11494. setTimeout(() => {
  11495. this.checkEva(this.evalua);
  11496. }, 100);
  11497. }, 100);
  11498. })
  11499. .catch((err) => {
  11500. console.error(err);
  11501. });
  11502. }
  11503. // if(this.cidType != 1 && this.templateid == ''){
  11504. // this.promptShow = true
  11505. // }
  11506. },
  11507. seleteCourseUpdate() {
  11508. let params = {
  11509. cid: this.cid,
  11510. };
  11511. this.ajax
  11512. .get(this.$store.state.api + "select_course_detail", params)
  11513. .then((res) => {
  11514. // console.log(this.unitJson);
  11515. let unitJson = JSON.parse(res.data[0][0].chapters);
  11516. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  11517. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  11518. let _unitJson = [];
  11519. let _chapAarry = [];
  11520. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  11521. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  11522. let index = 1;
  11523. let chapindex;
  11524. if (_unitJson2.length > unitJson.length) {
  11525. for (let c = 0; c < _unitJson2.length; c++) {
  11526. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  11527. }
  11528. for (let j = 0; j < unitJson.length; j++) {
  11529. let count = 0;
  11530. for (let k = 0; k < _unitJson2.length; k++) {
  11531. if (
  11532. unitJson[j].chapterInfo[0].chapterid ==
  11533. _unitJson2[k].chapterInfo[0].chapterid
  11534. ) {
  11535. count++;
  11536. _chapAarry.splice(
  11537. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  11538. 1
  11539. );
  11540. _unitJson.push(unitJson[j]);
  11541. break;
  11542. }
  11543. }
  11544. // if(count === 0){
  11545. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  11546. // }
  11547. }
  11548. for (let k = 0; k < _unitJson2.length; k++) {
  11549. if (_unitJson2[k].isUpdate == 1) {
  11550. _chapAarry.splice(
  11551. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  11552. 1
  11553. );
  11554. _unitJson.push(_unitJson2[k]);
  11555. }
  11556. }
  11557. console.log(_chapAarry);
  11558. for (let d = 0; d < _unitJson2.length; d++) {
  11559. if (
  11560. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  11561. ) {
  11562. if (_unitIndex == d) {
  11563. index = 2;
  11564. }
  11565. chapindex = d;
  11566. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  11567. }
  11568. }
  11569. } else {
  11570. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  11571. }
  11572. for (let i = 0; i < unitJson.length; i++) {
  11573. if (
  11574. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  11575. _unitJson[i].chapterInfo[0].chapterid !=
  11576. unitJson[i].chapterInfo[0].chapterid
  11577. ) {
  11578. if (i == _unitJson.length - 1) {
  11579. // this.unitIndex++
  11580. _unitIndex2++;
  11581. }
  11582. _unitJson.splice(i, 0, unitJson[i]);
  11583. } else if (i > _unitJson.length - 1) {
  11584. _unitJson.push(unitJson[i]);
  11585. } else if (
  11586. _unitJson[i].chapterInfo[0].chapterid ==
  11587. unitJson[i].chapterInfo[0].chapterid
  11588. ) {
  11589. _unitJson[i] = unitJson[i];
  11590. }
  11591. // if (i == _unitIndex) {
  11592. // continue;
  11593. // } else
  11594. }
  11595. if (_chapAarry.length && index != 2) {
  11596. if (chapindex < _unitIndex) {
  11597. this.isDelete = 2;
  11598. // this.unitIndex--;
  11599. _unitIndex2--;
  11600. } else if (
  11601. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  11602. _unitJson[_unitIndex].chapterInfo[0].chapterid
  11603. ) {
  11604. this.isDelete = 2;
  11605. for (let n = 0; n < _unitJson.length; n++) {
  11606. if (
  11607. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  11608. _unitJson[n].chapterInfo[0].chapterid
  11609. ) {
  11610. // this.unitIndex = n;
  11611. _unitIndex2 = n;
  11612. _unitJson[n] = _unitJson2[_unitIndex];
  11613. break;
  11614. }
  11615. }
  11616. }
  11617. } else if (index != 2) {
  11618. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  11619. _unitJson2[_unitIndex];
  11620. for (
  11621. var ci = 0;
  11622. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  11623. ci++
  11624. ) {
  11625. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  11626. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  11627. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  11628. .toolChoose
  11629. : [];
  11630. let _chapterData = [];
  11631. for (
  11632. var c = 0;
  11633. c <
  11634. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  11635. .length;
  11636. c++
  11637. ) {
  11638. if (
  11639. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  11640. .chapterData[c]
  11641. ) {
  11642. _chapterData.push(
  11643. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  11644. .chapterData[c]
  11645. );
  11646. }
  11647. }
  11648. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  11649. _chapterData;
  11650. }
  11651. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  11652. }
  11653. if (index == 1) {
  11654. this.unitJson = _unitJson;
  11655. this.$forceUpdate();
  11656. setTimeout(() => {
  11657. if (this.unitIndex != _unitIndex2) {
  11658. this.isDelete = 2;
  11659. this.unitIndex = _unitIndex2;
  11660. }
  11661. }, 0);
  11662. this.timer = setTimeout(() => {
  11663. this.seleteCourseUpdate();
  11664. }, 1000);
  11665. } else if (index == 2) {
  11666. let _this = this;
  11667. _this
  11668. .$confirm(
  11669. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  11670. "提示",
  11671. {
  11672. confirmButtonText: "需要",
  11673. cancelButtonText: "取消",
  11674. type: "warning",
  11675. }
  11676. )
  11677. .then(() => {
  11678. if (_this.time()) {
  11679. _this.restoreWork(
  11680. _chapAarry[0],
  11681. _unitJson,
  11682. chapindex,
  11683. _unitJson2,
  11684. _unitIndex2
  11685. );
  11686. }
  11687. })
  11688. .catch(() => {
  11689. _this.unitJson = _unitJson;
  11690. _this.$forceUpdate();
  11691. setTimeout(() => {
  11692. if (this.unitIndex != _unitIndex2) {
  11693. this.isDelete = 2;
  11694. this.unitIndex = _unitIndex2;
  11695. }
  11696. }, 0);
  11697. _this.timer = setTimeout(() => {
  11698. _this.seleteCourseUpdate();
  11699. }, 1000);
  11700. });
  11701. }
  11702. // 在复制操作之前记录滚动位置
  11703. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  11704. // 执行复制操作
  11705. // 复制操作完成后恢复滚动位置
  11706. this.$nextTick(() => {
  11707. if (this.$refs.scrollContainer) {
  11708. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  11709. }
  11710. });
  11711. })
  11712. .catch((err) => {
  11713. console.error(err);
  11714. });
  11715. },
  11716. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  11717. let params = [
  11718. {
  11719. cid: this.cid,
  11720. chapters: JSON.stringify(this.unitJson),
  11721. uid: this.userid,
  11722. chapid: chapid,
  11723. },
  11724. ];
  11725. this.ajax
  11726. .post(this.$store.state.api + "restoreWork", params)
  11727. .then((res) => {
  11728. this.$message({
  11729. message: "恢复成功",
  11730. type: "success",
  11731. });
  11732. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  11733. this.unitJson = unitJson;
  11734. this.$forceUpdate();
  11735. setTimeout(() => {
  11736. if (this.unitIndex != unitIndex2) {
  11737. this.isDelete = 2;
  11738. this.unitIndex = unitIndex2;
  11739. }
  11740. }, 0);
  11741. this.timer = setTimeout(() => {
  11742. this.seleteCourseUpdate();
  11743. }, 1000);
  11744. })
  11745. .catch((err) => {
  11746. this.$message.error("网络不佳");
  11747. console.error(err);
  11748. });
  11749. },
  11750. getTypeName() {
  11751. console.log(this.courseTypeId);
  11752. this.$forceUpdate();
  11753. },
  11754. selectAllType() {
  11755. let params = {
  11756. org: this.org && this.org != "" ? this.org : "",
  11757. oid: this.oid && this.oid != "" ? this.oid : "",
  11758. };
  11759. this.ajax
  11760. .get(this.$store.state.api + "selectAllType", params)
  11761. .then((res) => {
  11762. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  11763. res.data[0] = [...res.data[0], ...res.data[4]];
  11764. }
  11765. this.CourseType = res.data;
  11766. this.CourseType2 = [
  11767. { name: "智见课程", id: [] },
  11768. { name: "智行课程", id: [] },
  11769. { name: "智创课程", id: [] },
  11770. ];
  11771. for (var cti = 0; cti < res.data[0].length; cti++) {
  11772. if (
  11773. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  11774. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  11775. ) {
  11776. this.CourseType2[0].id.push(res.data[0][cti].id);
  11777. } else if (
  11778. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  11779. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  11780. ) {
  11781. this.CourseType2[1].id.push(res.data[0][cti].id);
  11782. } else if (
  11783. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  11784. ) {
  11785. this.CourseType2[2].id.push(res.data[0][cti].id);
  11786. }
  11787. if (
  11788. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  11789. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"
  11790. ) {
  11791. res.data[0][cti].name = "年级";
  11792. } else if (
  11793. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" ||
  11794. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  11795. ) {
  11796. res.data[0][cti].name = "学科";
  11797. } else if (
  11798. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  11799. ) {
  11800. res.data[0][cti].name = "主题";
  11801. }
  11802. }
  11803. let _courseTypeId = [];
  11804. for (var i = 0; i < res.data[0].length; i++) {
  11805. if (!this.cid) {
  11806. this.courseTypeId[res.data[0][i].id] = [];
  11807. }
  11808. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  11809. // }
  11810. this.CourseTypeJson[res.data[0][i].id] = [];
  11811. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  11812. if (res.data[0][i].name == "栏目") {
  11813. this.CourseType[0][i].name = "主题";
  11814. }
  11815. }
  11816. if (res.data[2].length == 0 && res.data[3].length == 0) {
  11817. for (var j = 0; j < res.data[1].length; j++) {
  11818. if (
  11819. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  11820. _courseTypeId.indexOf(res.data[1][j].id) == -1
  11821. ) {
  11822. _courseTypeId.push(res.data[1][j].id);
  11823. }
  11824. if (res.data[0][i].id == res.data[1][j].pid) {
  11825. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  11826. }
  11827. }
  11828. } else {
  11829. if (res.data[2].length > 0) {
  11830. for (var j = 0; j < res.data[2].length; j++) {
  11831. if (
  11832. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  11833. _courseTypeId.indexOf(res.data[2][j].id) == -1
  11834. ) {
  11835. _courseTypeId.push(res.data[2][j].id);
  11836. }
  11837. if (res.data[0][i].id == res.data[2][j].pid) {
  11838. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  11839. }
  11840. }
  11841. }
  11842. if (res.data[3].length > 0) {
  11843. for (var j = 0; j < res.data[3].length; j++) {
  11844. if (
  11845. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  11846. _courseTypeId.indexOf(res.data[3][j].id) == -1
  11847. ) {
  11848. _courseTypeId.push(res.data[3][j].id);
  11849. }
  11850. if (res.data[0][i].id == res.data[3][j].pid) {
  11851. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  11852. }
  11853. }
  11854. }
  11855. }
  11856. }
  11857. this.courseTypeId = _courseTypeId;
  11858. })
  11859. .catch((err) => {
  11860. console.error(err);
  11861. });
  11862. },
  11863. selectType() {
  11864. this.ajax
  11865. .get(this.$store.state.api + "selectType")
  11866. .then((res) => {
  11867. this.CourseType = res.data;
  11868. for (var i = 0; i < res.data[0].length; i++) {
  11869. if (!this.cid) {
  11870. this.courseTypeId[res.data[0][i].id] = "";
  11871. }
  11872. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  11873. if (res.data[0][i].name == "栏目") {
  11874. this.CourseType[0][i].name = "主题";
  11875. }
  11876. }
  11877. for (var j = 0; j < res.data[1].length; j++) {
  11878. if (res.data[0][i].id == res.data[1][j].pid) {
  11879. if (!this.CourseTypeJson[res.data[0][i].id]) {
  11880. this.CourseTypeJson[res.data[0][i].id] = [];
  11881. }
  11882. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  11883. }
  11884. }
  11885. }
  11886. this.selectTypeByOid();
  11887. this.selectTypeByOrg();
  11888. })
  11889. .catch((err) => {
  11890. console.error(err);
  11891. });
  11892. },
  11893. selectTypeByOid() {
  11894. let params = {
  11895. oid: this.oid,
  11896. };
  11897. this.ajax
  11898. .get(this.$store.state.api + "selectTypeByOid", params)
  11899. .then((res) => {
  11900. for (var i = 0; i < res.data[0].length; i++) {
  11901. for (var j = 0; j < res.data[1].length; j++) {
  11902. if (res.data[0][i].id == res.data[1][j].pid) {
  11903. if (!this.CourseTypeJson[res.data[0][i].id]) {
  11904. this.CourseTypeJson[res.data[0][i].id] = [];
  11905. }
  11906. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  11907. }
  11908. }
  11909. }
  11910. })
  11911. .catch((err) => {
  11912. console.error(err);
  11913. });
  11914. },
  11915. selectTypeByOrg() {
  11916. let params = {
  11917. oid: this.org,
  11918. };
  11919. this.ajax
  11920. .get(this.$store.state.api + "selectTypeByOrg", params)
  11921. .then((res) => {
  11922. for (var i = 0; i < res.data[0].length; i++) {
  11923. for (var j = 0; j < res.data[1].length; j++) {
  11924. if (res.data[0][i].id == res.data[1][j].pid) {
  11925. if (!this.CourseTypeJson[res.data[0][i].id]) {
  11926. this.CourseTypeJson[res.data[0][i].id] = [];
  11927. }
  11928. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  11929. }
  11930. }
  11931. }
  11932. this.$forceUpdate();
  11933. })
  11934. .catch((err) => {
  11935. console.error(err);
  11936. });
  11937. },
  11938. OtherMb(type, task) {
  11939. if (task === 0 || task) {
  11940. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11941. task
  11942. ].isEvaFold = true;
  11943. }
  11944. this.typeMode = type;
  11945. setTimeout(() => {
  11946. this.checkEva(this.checkId);
  11947. setTimeout(() => {
  11948. this.checkEva(this.checkId);
  11949. }, 100);
  11950. }, 100);
  11951. },
  11952. openMember() {
  11953. this.searchTN = "";
  11954. this.getTeacher();
  11955. this.dialogVisibleMember = true;
  11956. },
  11957. checkEva(id, type) {
  11958. this.dialogVisiblemb = false;
  11959. this.selectEva();
  11960. if (this.evalua != id && type == 2) {
  11961. this.$message.success("导入成功");
  11962. setTimeout(() => {
  11963. this.checkEva(id);
  11964. }, 100);
  11965. }
  11966. this.evalua = id;
  11967. this.checkId = id;
  11968. if (this.evalua != "") {
  11969. for (var i = 0; i < this.evaJuri.length; i++) {
  11970. if (this.evalua == this.evaJuri[i].id) {
  11971. this.eTitle = this.evaJuri[i].title;
  11972. this.eJson = JSON.parse(this.evaJuri[i].content);
  11973. }
  11974. }
  11975. this.data.data = [];
  11976. this.$forceUpdate();
  11977. setTimeout(() => {
  11978. this.setMindData();
  11979. }, 1000);
  11980. }
  11981. },
  11982. deleteEva() {
  11983. let _this = this;
  11984. if (_this.evalua == "") {
  11985. this.$message.warning("内容已经清空了,请勿重复清空");
  11986. return;
  11987. }
  11988. _this
  11989. .$confirm("确定删除此目标吗?", "提示", {
  11990. confirmButtonText: "确定",
  11991. cancelButtonText: "取消",
  11992. type: "warning",
  11993. })
  11994. .then(() => {
  11995. _this.evalua = "";
  11996. _this.checkId = "";
  11997. _this.eTitle = "";
  11998. let _unitJson = _this.unitJson;
  11999. for (var i = 0; i < _unitJson.length; i++) {
  12000. let _task = _unitJson[i].chapterInfo[0].taskJson;
  12001. for (var j = 0; j < _task.length; j++) {
  12002. let _eList = _task[j].eList;
  12003. for (var k = 0; k < _eList.length; k++) {
  12004. delete _eList[k].target;
  12005. }
  12006. }
  12007. }
  12008. _this.$forceUpdate();
  12009. if (_this.cid) {
  12010. _this.updateWork();
  12011. }
  12012. })
  12013. .catch(() => {
  12014. return;
  12015. });
  12016. },
  12017. selectEva() {
  12018. let params = {
  12019. oid: this.oid,
  12020. };
  12021. this.ajax
  12022. .get(this.$store.state.api + "selectAllEvaluation", params)
  12023. .then((res) => {
  12024. this.evaJuri = res.data[0];
  12025. // 在复制操作之前记录滚动位置
  12026. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  12027. // 执行复制操作
  12028. // 复制操作完成后恢复滚动位置
  12029. this.$nextTick(() => {
  12030. if (this.$refs.scrollContainer) {
  12031. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  12032. }
  12033. });
  12034. })
  12035. .catch((err) => {
  12036. console.error(err);
  12037. });
  12038. },
  12039. setMindData() {
  12040. let targetArray = [];
  12041. this.data.data = [];
  12042. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  12043. let _eJson = Object.keys(this.eJson);
  12044. let _e = this.eJson;
  12045. for (let i = 0; i < _eJson.length; i++) {
  12046. let element = _e[_eJson[i]];
  12047. this.data.data.push({
  12048. id: element.id,
  12049. parentid: "root",
  12050. topic: element.name,
  12051. });
  12052. // targetArray.push({
  12053. // id: element.id,
  12054. // parentid: "root",
  12055. // name: element.name,
  12056. // });
  12057. targetArray.push({
  12058. value: element.name,
  12059. label: element.name,
  12060. children: [],
  12061. });
  12062. let _eJsonc = Object.keys(element.child);
  12063. let _e2 = element.child;
  12064. for (let j = 0; j < _eJsonc.length; j++) {
  12065. let _ec = _e2[_eJsonc[j]];
  12066. this.data.data.push({
  12067. id: _ec.id,
  12068. parentid: element.id,
  12069. topic: _ec.name,
  12070. });
  12071. // targetArray.push({
  12072. // id: _ec.id,
  12073. // parentid: element.id,
  12074. // name: _ec.name,
  12075. // });
  12076. targetArray[i].children.push({
  12077. value: _ec.name,
  12078. label: _ec.name,
  12079. children: [],
  12080. });
  12081. let _eJsonz = Object.keys(_ec.child);
  12082. let _e3 = _ec.child;
  12083. for (let z = 0; z < _eJsonz.length; z++) {
  12084. let _ez = _e3[_eJsonz[z]];
  12085. this.data.data.push({
  12086. id: _ez.id,
  12087. parentid: _ec.id,
  12088. topic: _ez.name,
  12089. });
  12090. // targetArray.push({
  12091. // id: _ez.id,
  12092. // parentid: _ec.id,
  12093. // name: _ez.name,
  12094. // });
  12095. targetArray[i].children[j].children.push({
  12096. value: _ez.name,
  12097. label: _ez.name,
  12098. });
  12099. }
  12100. }
  12101. }
  12102. this.targetArray = targetArray;
  12103. this.$forceUpdate();
  12104. },
  12105. /*添加评价 */
  12106. addEList(index, tIndex) {
  12107. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  12108. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  12109. value: "",
  12110. detail: "",
  12111. score: 5,
  12112. })
  12113. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  12114. { value: "", detail: "", score: 5 },
  12115. ]);
  12116. this.$forceUpdate();
  12117. },
  12118. openEList(index, tIndex) {
  12119. this.evaIndex = index;
  12120. this.evatIndex = tIndex;
  12121. this.evaBoxDialog = true;
  12122. },
  12123. addCET(index, tIndex) {
  12124. this.cetIndex = index;
  12125. this.cettIndex = tIndex;
  12126. this.selectAllType1();
  12127. },
  12128. addCETemplate() {
  12129. var array =
  12130. this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex]
  12131. .eList;
  12132. let params = [
  12133. {
  12134. uid: this.userid,
  12135. n: this.templateName,
  12136. json: JSON.stringify(array),
  12137. t: 1,
  12138. oid: this.oid,
  12139. },
  12140. ];
  12141. this.ajax
  12142. .post(this.$store.state.api + "addCETShare", params)
  12143. .then((res) => {
  12144. this.addTypeByCET(res.data[0][0].id);
  12145. })
  12146. .catch((err) => {
  12147. this.$message.error("网络不佳");
  12148. console.error(err);
  12149. });
  12150. },
  12151. addTypeByCET(id) {
  12152. if (this.setTypeJson.two == "") {
  12153. this.$message.warning("请选择二级分类,如没有二级分类请前往添加!");
  12154. return;
  12155. }
  12156. let params = {
  12157. cid: id,
  12158. };
  12159. this.ajax
  12160. .get(this.$store.state.api + "deleteCETLabel", params)
  12161. .then((res) => {
  12162. for (var i = 0; i < 2; i++) {
  12163. let tid = "";
  12164. if (i == 0) {
  12165. tid = this.setTypeJson.one;
  12166. } else {
  12167. tid = this.setTypeJson.two;
  12168. }
  12169. let params = [
  12170. {
  12171. cid: id,
  12172. tid: tid,
  12173. uid: this.userid,
  12174. },
  12175. ];
  12176. this.ajax
  12177. .post(this.$store.state.api + "addCETLabel", params)
  12178. .then((res) => {
  12179. this.$message({
  12180. message: "添加成功",
  12181. type: "success",
  12182. });
  12183. this.close();
  12184. })
  12185. .catch((err) => {
  12186. this.$message.error("网络不佳");
  12187. console.error(err);
  12188. });
  12189. }
  12190. })
  12191. .catch((err) => {
  12192. this.$message.error("网络不佳");
  12193. console.error(err);
  12194. });
  12195. },
  12196. updateEvaJson(array) {
  12197. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[
  12198. this.evatIndex
  12199. ].eList = array;
  12200. },
  12201. forceUpdate() {
  12202. this.$forceUpdate();
  12203. },
  12204. deletEList(index, tIndex, eIndex) {
  12205. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  12206. eIndex,
  12207. 1
  12208. );
  12209. this.$forceUpdate();
  12210. },
  12211. getChoosePic(t) {
  12212. this.chooseType = t;
  12213. this.getAllBanner();
  12214. },
  12215. getAllBanner() {
  12216. this.sysPicVisible = true;
  12217. let params = {
  12218. t: this.chooseType,
  12219. };
  12220. this.ajax
  12221. .get(this.$store.state.api + "selectAllBanner", params)
  12222. .then((res) => {
  12223. this.sysPic = res.data[0];
  12224. })
  12225. .catch((err) => {
  12226. console.error(err);
  12227. });
  12228. },
  12229. // getClass() {
  12230. // let params = {
  12231. // oid: this.oid,
  12232. // };
  12233. // this.ajax
  12234. // .get(this.$store.state.api + "selectClassBySchool", params)
  12235. // .then((res) => {
  12236. // this.classJuri = res.data[0];
  12237. // })
  12238. // .catch((err) => {
  12239. // console.error(err);
  12240. // });
  12241. // },
  12242. deleteSysPic() {
  12243. this.cover = [];
  12244. this.isSysPic = false;
  12245. this.isSysPic2 = false;
  12246. },
  12247. deleteSelectPic() {
  12248. this.selectJson.url = "";
  12249. },
  12250. setEListStar() {
  12251. this.$forceUpdate();
  12252. },
  12253. deletRateList(i) {
  12254. this.rateJson.splice(i, 1);
  12255. },
  12256. addRateList() {
  12257. this.rateJson.push({ detail: "", score: 5, value: "" });
  12258. },
  12259. addSt() {
  12260. this.sentenceList.push({
  12261. sentenceTitle: "",
  12262. addSentence: [],
  12263. rightAnswer: [],
  12264. });
  12265. },
  12266. addSen(i) {
  12267. if (!this.sentenceList[i].sentenceTitle) {
  12268. this.$message.error("请填写卡片内容!");
  12269. return;
  12270. }
  12271. if (this.sentenceList[i].sentenceTitle.length > 10) {
  12272. this.$message.error("卡片内容字数不能超过10位");
  12273. return;
  12274. }
  12275. if (
  12276. this.sentenceList[i].addSentence.indexOf(
  12277. this.sentenceList[i].sentenceTitle
  12278. ) !== -1
  12279. ) {
  12280. this.$message.error("不能添加重复的卡片内容!");
  12281. return;
  12282. }
  12283. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  12284. // this.isPushTitleList.push(this.sentenceTitle);
  12285. this.sentenceList[i].sentenceTitle = "";
  12286. },
  12287. setRightAnswer(s, i, j) {
  12288. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  12289. this.sentenceList[i].rightAnswer.push(s);
  12290. }
  12291. },
  12292. returnCard(r, i, j) {
  12293. this.sentenceList[i].rightAnswer.splice(j, 1);
  12294. },
  12295. addSentenceTool() {
  12296. for (var i = 0; i < this.sentenceList.length; i++) {
  12297. if (this.sentenceList[i].rightAnswer.length == 0) {
  12298. this.$message.error(`请将题目${i + 1}设置完整。`);
  12299. return;
  12300. }
  12301. if (
  12302. this.sentenceList[i].addSentence.length !=
  12303. this.sentenceList[i].rightAnswer.length
  12304. ) {
  12305. this.$message.error(`请将题目${i + 1}设置完整。`);
  12306. return;
  12307. }
  12308. }
  12309. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12310. this.taskCount
  12311. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  12312. this.sentenceList = [
  12313. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  12314. ];
  12315. this.dialogVisibleSentence = false;
  12316. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12317. // itemTaskIndex
  12318. // ].toolChoose[toolIndex].tool = [];
  12319. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12320. // itemTaskIndex
  12321. // ].toolChoose[toolIndex].tool.push(i);
  12322. if (
  12323. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12324. .toolChoose[this.toolIndex].tool != 47
  12325. ) {
  12326. this.addTools(47, this.taskCount, this.toolIndex);
  12327. }
  12328. },
  12329. addTableJson() {
  12330. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  12331. // this.$message.error("请将信息填写完整!");
  12332. // return;
  12333. // }
  12334. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12335. this.taskCount
  12336. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  12337. // this.tableJson = [{ text: "" }];
  12338. // this.dialogVisibleTable = false;
  12339. this.$message.success("上传成功");
  12340. if (
  12341. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12342. .toolChoose[this.toolIndex].tool != 48
  12343. ) {
  12344. this.addTools(48, this.taskCount, this.toolIndex);
  12345. }
  12346. },
  12347. addWordJson() {
  12348. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12349. this.taskCount
  12350. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  12351. // this.wordJson = [{ text: "" }];
  12352. // this.dialogVisibleWord = false;
  12353. this.$message.success("上传成功");
  12354. if (
  12355. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12356. .toolChoose[this.toolIndex].tool != 52
  12357. ) {
  12358. this.addTools(52, this.taskCount, this.toolIndex);
  12359. }
  12360. },
  12361. addMoreUpload() {
  12362. if (this.uploadJson.length == 0) {
  12363. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12364. this.taskCount
  12365. ].toolChoose[this.toolIndex].uploadJson = [];
  12366. } else {
  12367. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12368. this.taskCount
  12369. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  12370. }
  12371. this.uploadJson = [];
  12372. this.dialogVisibleMoreUpload = false;
  12373. if (
  12374. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12375. .toolChoose[this.toolIndex].tool != 50
  12376. ) {
  12377. this.addTools(50, this.taskCount, this.toolIndex);
  12378. }
  12379. },
  12380. addPreTime() {
  12381. if (this.preTime == 0) {
  12382. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12383. this.taskCount
  12384. ].toolChoose[this.toolIndex].preTime = 0;
  12385. } else {
  12386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12387. this.taskCount
  12388. ].toolChoose[this.toolIndex].preTime = this.preTime;
  12389. }
  12390. this.preTime = 0;
  12391. this.dialogVisiblePreTime = false;
  12392. if (
  12393. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12394. .toolChoose[this.toolIndex].tool != 10
  12395. ) {
  12396. this.addTools(10, this.taskCount, this.toolIndex);
  12397. }
  12398. },
  12399. goToTask(i) {
  12400. this.toolIndexType = "";
  12401. if (this.isClickColor == i + 1) {
  12402. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  12403. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  12404. // } else {
  12405. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12406. i
  12407. ].toolOpen = true;
  12408. // }
  12409. this.$forceUpdate();
  12410. return;
  12411. }
  12412. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  12413. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  12414. // } else {
  12415. document.querySelectorAll(".basic_box")[0].scrollTop =
  12416. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  12417. this.isClickColor = i + 1;
  12418. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  12419. // }
  12420. this.$forceUpdate();
  12421. },
  12422. taskOpen(i, stageIndex) {
  12423. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  12424. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false;
  12425. } else {
  12426. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  12427. }
  12428. this.updateWork3(stageIndex);
  12429. this.$forceUpdate();
  12430. },
  12431. goToTask2(i, stage) {
  12432. this.toolIndexType = "";
  12433. if (this.isClickColor == i + 1 && this.unitIndex == stage) {
  12434. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  12435. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  12436. // } else {
  12437. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12438. i
  12439. ].toolOpen = true;
  12440. // }
  12441. this.$forceUpdate();
  12442. return;
  12443. }
  12444. if (this.unitIndex != stage) {
  12445. if (this.panUnitJson() == 2) {
  12446. return;
  12447. }
  12448. this.unitSet(stage);
  12449. }
  12450. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  12451. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  12452. // } else {
  12453. document.querySelectorAll(".basic_box")[0].scrollTop =
  12454. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  12455. this.isClickColor = i + 1;
  12456. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  12457. // }
  12458. this.$forceUpdate();
  12459. },
  12460. taskMove(type, index) {
  12461. this.$confirm(
  12462. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  12463. "提示",
  12464. {
  12465. confirmButtonText: "确定",
  12466. cancelButtonText: "取消",
  12467. type: "warning",
  12468. }
  12469. )
  12470. .then(() => {
  12471. if (type == 1) {
  12472. if (index > 0) {
  12473. let a = JSON.parse(
  12474. JSON.stringify(
  12475. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12476. index - 1
  12477. ]
  12478. )
  12479. );
  12480. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  12481. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  12482. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  12483. }
  12484. } else {
  12485. if (
  12486. index <
  12487. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  12488. ) {
  12489. let a = JSON.parse(
  12490. JSON.stringify(
  12491. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12492. index + 1
  12493. ]
  12494. )
  12495. );
  12496. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  12497. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  12498. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  12499. }
  12500. }
  12501. this.$forceUpdate();
  12502. })
  12503. .catch(() => {
  12504. return;
  12505. });
  12506. },
  12507. stageMove(type, index) {
  12508. if (type == 1) {
  12509. if (index > 0) {
  12510. let a = JSON.parse(JSON.stringify(this.unitJson3[index - 1]));
  12511. let acid = JSON.parse(
  12512. JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid)
  12513. );
  12514. let bcid = JSON.parse(
  12515. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  12516. );
  12517. this.unitJson3[index - 1] = this.unitJson3[index];
  12518. this.unitJson3[index] = a;
  12519. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  12520. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  12521. }
  12522. } else {
  12523. if (index < this.unitJson3.length - 1) {
  12524. let a = JSON.parse(JSON.stringify(this.unitJson3[index + 1]));
  12525. let acid = JSON.parse(
  12526. JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid)
  12527. );
  12528. let bcid = JSON.parse(
  12529. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  12530. );
  12531. this.unitJson3[index + 1] = this.unitJson3[index];
  12532. this.unitJson3[index] = a;
  12533. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  12534. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  12535. }
  12536. }
  12537. this.$forceUpdate();
  12538. },
  12539. addGroup(i) {
  12540. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  12541. this.groupJson.group.push({
  12542. name: "第" + (this.groupJson.group.length + 1) + "组",
  12543. });
  12544. },
  12545. deleteGroup(i) {
  12546. this.groupJson.group.splice(i, 1);
  12547. },
  12548. numberPan() {
  12549. if (
  12550. /[^\d]/.test(this.groupJson.number) ||
  12551. this.groupJson.number < 2 ||
  12552. this.groupJson.number > 10
  12553. ) {
  12554. this.$message.error("请输入2-10的数字");
  12555. this.groupJson.number = "";
  12556. }
  12557. },
  12558. numberPanJie() {
  12559. if (/[^\d]/.test(this.courseJie) || this.courseJie < 1) {
  12560. this.$message.error('请输入大于1的数字')
  12561. this.courseJie = 1
  12562. }
  12563. },
  12564. numberPanTime() {
  12565. if (/[^\d]/.test(this.courseTime) || this.courseTime < 1) {
  12566. this.$message.error('请输入大于1的数字')
  12567. this.courseTime = 1
  12568. }
  12569. },
  12570. addGroupJson() {
  12571. for (var i = 0; i < this.groupJson.group.length; i++) {
  12572. if (!this.groupJson.group[i].name) {
  12573. this.$message.error("请将信息填写完整!");
  12574. return;
  12575. }
  12576. }
  12577. if (!this.groupJson.number) {
  12578. this.$message.error("请将信息填写完整!");
  12579. return;
  12580. }
  12581. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12582. this.taskCount
  12583. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  12584. JSON.stringify(this.groupJson)
  12585. );
  12586. this.dialogVisibleGroup = false;
  12587. this.groupJson = {};
  12588. if (
  12589. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12590. .toolChoose[this.toolIndex].tool != 49
  12591. ) {
  12592. this.addTools(49, this.taskCount, this.toolIndex);
  12593. }
  12594. },
  12595. updateTime(preTime) {
  12596. this.preTime = preTime;
  12597. },
  12598. InviteChange(val) {
  12599. console.log(val);
  12600. let _check = [];
  12601. let _check2 = [];
  12602. for (var i = 0; i < this.grade2.length; i++) {
  12603. var gid = this.grade2[i].id;
  12604. _check.push(gid);
  12605. }
  12606. for (var i = 0; i < this.checkboxList2.length; i++) {
  12607. var _id = this.checkboxList2[i];
  12608. if (_check.indexOf(_id) !== -1) {
  12609. _check2.push(_id);
  12610. }
  12611. }
  12612. this.checkAll = _check2.length === _check.length;
  12613. return;
  12614. let array = JSON.parse(JSON.stringify(val));
  12615. this.inviteCode = this.inviteCode.filter((el) => {
  12616. if (val.indexOf(el.cid) != -1) {
  12617. array.splice(array.indexOf(el.cid), 1);
  12618. return el;
  12619. }
  12620. });
  12621. for (var i = 0; i < array.length; i++) {
  12622. this.getInviteCode(array[i]);
  12623. }
  12624. },
  12625. InviteChange2(val) {
  12626. console.log(val);
  12627. let _check = [];
  12628. let _check2 = [];
  12629. for (var i = 0; i < this.teacherJuri.length; i++) {
  12630. var gid = this.teacherJuri[i].userid;
  12631. _check.push(gid);
  12632. }
  12633. for (var i = 0; i < this.checkboxList3.length; i++) {
  12634. var _id = this.checkboxList3[i];
  12635. if (_check.indexOf(_id) !== -1) {
  12636. _check2.push(_id);
  12637. }
  12638. }
  12639. this.checkAll2 = _check2.length === _check.length;
  12640. this.setMan();
  12641. return;
  12642. let array = JSON.parse(JSON.stringify(val));
  12643. this.inviteCode = this.inviteCode.filter((el) => {
  12644. if (val.indexOf(el.cid) != -1) {
  12645. array.splice(array.indexOf(el.cid), 1);
  12646. return el;
  12647. }
  12648. });
  12649. for (var i = 0; i < array.length; i++) {
  12650. this.getInviteCode(array[i]);
  12651. }
  12652. },
  12653. handleCheckAllChange(val) {
  12654. if (val) {
  12655. for (var i = 0; i < this.grade2.length; i++) {
  12656. var gid = this.grade2[i].id;
  12657. if (this.checkboxList2.indexOf(gid) === -1) {
  12658. this.checkboxList2.push(gid);
  12659. }
  12660. }
  12661. } else {
  12662. let _check = [];
  12663. let _check2 = [];
  12664. for (var i = 0; i < this.grade2.length; i++) {
  12665. var gid = this.grade2[i].id;
  12666. _check.push(gid);
  12667. }
  12668. for (var i = 0; i < this.checkboxList2.length; i++) {
  12669. var _id = this.checkboxList2[i];
  12670. if (_check.indexOf(_id) === -1) {
  12671. _check2.push(_id);
  12672. }
  12673. }
  12674. this.checkboxList2 = _check2;
  12675. }
  12676. this.isIndeterminate = false;
  12677. },
  12678. handleCheckAllChange2(val) {
  12679. if (val) {
  12680. for (var i = 0; i < this.teacherJuri.length; i++) {
  12681. var gid = this.teacherJuri[i].userid;
  12682. if (this.checkboxList3.indexOf(gid) === -1) {
  12683. this.checkboxList3.push(gid);
  12684. }
  12685. }
  12686. } else {
  12687. let _check = [];
  12688. let _check2 = [];
  12689. for (var i = 0; i < this.teacherJuri.length; i++) {
  12690. var gid = this.teacherJuri[i].userid;
  12691. _check.push(gid);
  12692. }
  12693. for (var i = 0; i < this.checkboxList3.length; i++) {
  12694. var _id = this.checkboxList3[i];
  12695. if (_check.indexOf(_id) === -1) {
  12696. _check2.push(_id);
  12697. }
  12698. }
  12699. this.checkboxList3 = _check2;
  12700. }
  12701. this.isIndeterminate2 = false;
  12702. },
  12703. async getInviteCode(cid) {
  12704. let code = this.randomNumber();
  12705. let params = {
  12706. code: code,
  12707. oid: this.oid,
  12708. };
  12709. let type = 1;
  12710. for (var i = 0; i < this.inviteCode.length; i++) {
  12711. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  12712. type = 2;
  12713. }
  12714. }
  12715. if (type == 2) {
  12716. this.getInviteCode(cid);
  12717. return;
  12718. }
  12719. const res = await this.ajax.get(
  12720. this.$store.state.api + "selectInviteCode2",
  12721. params
  12722. );
  12723. if (
  12724. res.data.length &&
  12725. res.data[0].length &&
  12726. res.data[0][0].courseId != this.cid
  12727. ) {
  12728. this.getInviteCode(cid);
  12729. return;
  12730. }
  12731. let array = [];
  12732. for (var i = 0; i < this.inviteCode.length; i++) {
  12733. array.push(this.inviteCode[i].cid);
  12734. }
  12735. if (array.indexOf(cid) != -1) {
  12736. this.inviteCode[array.indexOf(cid)].ic = code;
  12737. } else {
  12738. this.inviteCode.push({ cid: cid, ic: code });
  12739. }
  12740. },
  12741. OpenInviteD(cid) {
  12742. let array = [];
  12743. this.icode = "";
  12744. for (var i = 0; i < this.inviteCode.length; i++) {
  12745. array.push(this.inviteCode[i].cid);
  12746. }
  12747. if (array.indexOf(cid) != -1) {
  12748. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  12749. }
  12750. this.inviteId = cid;
  12751. this.dialogVisibleInvite = true;
  12752. },
  12753. addInvite() {
  12754. let reg = /^[A-Za-z0-9]{4,}$/;
  12755. if (!reg.test(this.icode)) {
  12756. this.$message.error("请输入至少四位数字或英文组合的随机码");
  12757. return;
  12758. }
  12759. let type = 1;
  12760. for (var i = 0; i < this.inviteCode.length; i++) {
  12761. if (
  12762. this.inviteCode[i].cid != this.inviteId &&
  12763. this.icode == this.inviteCode[i].ic
  12764. ) {
  12765. type = 2;
  12766. }
  12767. }
  12768. if (type == 2) {
  12769. this.$message.error("已有此随机码,不能重复");
  12770. return;
  12771. }
  12772. let params = {
  12773. code: this.icode,
  12774. oid: this.oid,
  12775. };
  12776. this.ajax
  12777. .get(this.$store.state.api + "selectInviteCode", params)
  12778. .then((res) => {
  12779. if (
  12780. res.data.length &&
  12781. res.data[0].length &&
  12782. res.data[0][0].courseId != this.cid
  12783. ) {
  12784. this.$message.error("已有此随机码,不能重复");
  12785. return;
  12786. }
  12787. let array = [];
  12788. for (var i = 0; i < this.inviteCode.length; i++) {
  12789. array.push(this.inviteCode[i].cid);
  12790. }
  12791. if (array.indexOf(this.inviteId) != -1) {
  12792. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  12793. } else {
  12794. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  12795. }
  12796. this.icode = "";
  12797. this.dialogVisibleInvite = false;
  12798. })
  12799. .catch((err) => {
  12800. console.error(err);
  12801. });
  12802. },
  12803. randomNumber() {
  12804. // 随机生成两位数
  12805. // let num = Math.floor(Math.random() * 900) + 100;
  12806. // 生成 0 到 99 之间的随机整数
  12807. const randomNumber = Math.floor(Math.random() * 100);
  12808. // 如果随机数小于 10,补上前导零
  12809. const num =
  12810. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  12811. // 随机生成两个大写字母
  12812. let letters = "";
  12813. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  12814. for (let i = 0; i < 3; i++) {
  12815. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  12816. }
  12817. // 随机生成两位数字和字母的组合
  12818. let mix = "";
  12819. let chars =
  12820. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  12821. for (let i = 0; i < 3; i++) {
  12822. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  12823. mix += char;
  12824. }
  12825. // 随机选择一种类型
  12826. let type = Math.floor(Math.random() * 3);
  12827. return num;
  12828. // 根据类型输出结果
  12829. switch (type) {
  12830. case 0:
  12831. console.log(num); // 输出两位数
  12832. return num;
  12833. case 1:
  12834. console.log(letters); // 输出两个大写字母
  12835. return letters;
  12836. case 2:
  12837. console.log(mix); // 输出两位数字和字母的组合
  12838. return mix;
  12839. }
  12840. },
  12841. getPaste() {
  12842. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  12843. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  12844. if (!iframe && !iframe2) {
  12845. return;
  12846. }
  12847. let copyData = iframe ? iframe.contentWindow.copyData : false;
  12848. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  12849. if (copyData && copyData.stageData && copyData.stageData.length) {
  12850. this.isPasteStage = true;
  12851. }
  12852. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  12853. this.isPasteStage = true;
  12854. }
  12855. if (copyData && copyData.selectData.length) {
  12856. this.isPasteChoice = true;
  12857. }
  12858. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  12859. this.isPasteTask = true;
  12860. }
  12861. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  12862. this.isPasteTask = true;
  12863. }
  12864. },
  12865. setCover() {
  12866. var _this = this;
  12867. if(_this.cover.length){
  12868. return;
  12869. }
  12870. _this.imageloading2 = true
  12871. _this.ajax
  12872. .post("https://gpt.cocorobo.cn/search_image", {
  12873. page: _this.ppage,
  12874. pagesize: 9,
  12875. query: _this.courseName,
  12876. })
  12877. .then(function (response) {
  12878. // console.log(response.data.data);
  12879. var data = response.data.FunctionResponse.result;
  12880. _this.cover = [];
  12881.       setTimeout(() => {
  12882.         _this.cover[0] = {
  12883.           name: "网络图片.png",
  12884.           url: data[0].thumbnail
  12885.         };
  12886.         _this.imgChange1(null, null, 1, null);
  12887.         _this.$forceUpdate();
  12888.       }, 0);
  12889. _this.imageloading2 = false
  12890. })
  12891. .catch(function (error) {
  12892. _this.imageloading2 = false
  12893. console.log(error);
  12894. });
  12895. },
  12896. searchImage() {
  12897. var _this = this;
  12898. _this.imageList = [];
  12899. if (!_this.searchImageValue) {
  12900. _this.sysPicVisible2 = true;
  12901. return;
  12902. }
  12903. _this.imageloading = true;
  12904. _this.ajax
  12905. .post("https://gpt.cocorobo.cn/search_image", {
  12906. page: _this.ppage,
  12907. pagesize: 9,
  12908. query: _this.searchImageValue,
  12909. })
  12910. .then(function (response) {
  12911. // console.log(response.data.data);
  12912. var data = response.data.FunctionResponse.result;
  12913. for (var i = 0; i < data.length; i++) {
  12914. _this.imageList.push({ url: data[i].thumbnail });
  12915. }
  12916. _this.imageloading = false;
  12917. })
  12918. .catch(function (error) {
  12919. console.log(error);
  12920. });
  12921. _this.sysPicVisible2 = true;
  12922. },
  12923. changePicture() {
  12924. this.ppage++;
  12925. this.searchImage();
  12926. },
  12927. resetImage() {
  12928. this.ppage = 1;
  12929. this.searchImage();
  12930. },
  12931. jumpGj(i, j) {
  12932. if (i + 1 != this.isClickColor) {
  12933. this.isClickColor = i + 1;
  12934. }
  12935. var a = document.scrollingElement;
  12936. this.toolIndexType = `gj${i}${j}`;
  12937. let target = document.querySelector(`#gj${i}${j}`);
  12938. if (target) {
  12939. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  12940. setTimeout(() => {
  12941. target.scrollIntoView(true);
  12942. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  12943. j
  12944. ].isFold3 = false;
  12945. setTimeout(() => {
  12946. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  12947. }, 0);
  12948. }, 0);
  12949. }
  12950. },
  12951. jumpGj2(i, j, k) {
  12952. if (this.unitIndex != k) {
  12953. if (this.panUnitJson() == 2) {
  12954. return;
  12955. }
  12956. this.unitSet(k);
  12957. }
  12958. setTimeout(() => {
  12959. if (i + 1 != this.isClickColor) {
  12960. this.isClickColor = i + 1;
  12961. }
  12962. var a = document.scrollingElement;
  12963. this.toolIndexType = `gj${i}${j}${k}`;
  12964. let target = document.querySelector(`#gj${i}${j}`);
  12965. if (target) {
  12966. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  12967. setTimeout(() => {
  12968. target.scrollIntoView(true);
  12969. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  12970. j
  12971. ].isFold3 = false;
  12972. setTimeout(() => {
  12973. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  12974. }, 0);
  12975. }, 0);
  12976. }
  12977. }, 0);
  12978. },
  12979. dragStart(val, i, j) {
  12980. console.log(this.taskCount);
  12981. this.dragType = "drag";
  12982. this.taskCount = j;
  12983. this.oldIndex = i;
  12984. this.oldData = val;
  12985. },
  12986. dragOver(i, j) {
  12987. this.typeIndex = "chapter-" + j + "-" + i;
  12988. this.newIndex = i;
  12989. },
  12990. dragEnd() {
  12991. if (this.dragType != "drag") {
  12992. this.typeIndex = "";
  12993. this.newIndex = "";
  12994. this.dragType = "";
  12995. this.isdrag = "";
  12996. return;
  12997. }
  12998. console.log(this.taskCount);
  12999. let newItems = [
  13000. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13001. .chapterData,
  13002. ];
  13003. // 删除老的节点
  13004. newItems.splice(this.oldIndex, 1);
  13005. // 在列表中目标位置增加新的节点
  13006. newItems.splice(this.newIndex, 0, this.oldData);
  13007. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13008. this.taskCount
  13009. ].chapterData = [...newItems];
  13010. this.typeIndex = "";
  13011. this.newIndex = "";
  13012. this.dragType = "";
  13013. this.isdrag = "";
  13014. this.$forceUpdate();
  13015. },
  13016. dragTaskStart(val, i, j) {
  13017. this.dragType = "task";
  13018. this.oldIndex = i;
  13019. this.oldData = val;
  13020. this.oldUnitIndex = j;
  13021. },
  13022. dragTaskOver(i, j) {
  13023. this.typeIndex = "task-" + i;
  13024. this.newIndex = i;
  13025. this.checkUnitIndex = j;
  13026. },
  13027. async dragTaskEnd() {
  13028. if (this.dragType != "task") {
  13029. this.newIndex = "";
  13030. this.dragType = "";
  13031. this.typeIndex = "";
  13032. this.checkUnitIndex = "";
  13033. this.isdrag = "";
  13034. return;
  13035. }
  13036. if (
  13037. this.newIndex == this.oldIndex &&
  13038. this.oldUnitIndex == this.checkUnitIndex
  13039. ) {
  13040. this.newIndex = "";
  13041. this.dragType = "";
  13042. this.typeIndex = "";
  13043. this.checkUnitIndex = "";
  13044. this.isdrag = "";
  13045. return;
  13046. }
  13047. let count1 = await this.getWorksCount(
  13048. 2,
  13049. this.checkUnitIndex,
  13050. this.newIndex,
  13051. 0
  13052. );
  13053. let count2 = await this.getWorksCount(
  13054. 2,
  13055. this.oldUnitIndex,
  13056. this.oldIndex,
  13057. 0
  13058. );
  13059. if (count1 > 0 || count2 > 0) {
  13060. this.$confirm(
  13061. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  13062. "提示",
  13063. {
  13064. confirmButtonText: "确定",
  13065. cancelButtonText: "取消",
  13066. type: "warning",
  13067. }
  13068. )
  13069. .then(() => {
  13070. if (this.oldUnitIndex != this.checkUnitIndex) {
  13071. let newItems = [
  13072. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  13073. ];
  13074. // 删除老的节点
  13075. newItems.splice(this.oldIndex, 1);
  13076. // 在列表中目标位置增加新的节点
  13077. let newItems2 = [
  13078. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  13079. ];
  13080. newItems2.splice(this.newIndex, 0, this.oldData);
  13081. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  13082. ...newItems,
  13083. ];
  13084. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  13085. ...newItems2,
  13086. ];
  13087. } else {
  13088. let newItems = [
  13089. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  13090. ];
  13091. let chapterData = []
  13092. if (this.oldIndex == 0) {
  13093. chapterData = newItems[this.oldIndex].chapterData
  13094. newItems[this.oldIndex].chapterData = []
  13095. } else if (this.newIndex == 0) {
  13096. chapterData = newItems[this.newIndex].chapterData
  13097. newItems[this.oldIndex].chapterData = []
  13098. }
  13099. // 删除老的节点
  13100. newItems.splice(this.oldIndex, 1);
  13101. // 在列表中目标位置增加新的节点
  13102. newItems.splice(this.newIndex, 0, this.oldData);
  13103. if (this.oldIndex == 0 || this.newIndex == 0) {
  13104. newItems[0].chapterData = chapterData
  13105. }
  13106. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  13107. ...newItems,
  13108. ];
  13109. }
  13110. this.typeIndex = "";
  13111. this.newIndex = "";
  13112. this.dragType = "";
  13113. this.checkUnitIndex = "";
  13114. this.isdrag = "";
  13115. this.updateWork();
  13116. this.$forceUpdate();
  13117. })
  13118. .catch(() => {
  13119. this.newIndex = "";
  13120. this.dragType = "";
  13121. this.typeIndex = "";
  13122. this.checkUnitIndex = "";
  13123. this.isdrag = "";
  13124. return;
  13125. });
  13126. } else {
  13127. if (this.oldUnitIndex != this.checkUnitIndex) {
  13128. let newItems = [
  13129. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  13130. ];
  13131. // 删除老的节点
  13132. newItems.splice(this.oldIndex, 1);
  13133. // 在列表中目标位置增加新的节点
  13134. let newItems2 = [
  13135. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  13136. ];
  13137. newItems2.splice(this.newIndex, 0, this.oldData);
  13138. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  13139. ...newItems,
  13140. ];
  13141. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  13142. ...newItems2,
  13143. ];
  13144. } else {
  13145. let newItems = [
  13146. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  13147. ];
  13148. let chapterData = []
  13149. if (this.oldIndex == 0) {
  13150. chapterData = newItems[this.oldIndex].chapterData
  13151. newItems[this.oldIndex].chapterData = []
  13152. } else if (this.newIndex == 0) {
  13153. chapterData = newItems[this.newIndex].chapterData
  13154. newItems[this.oldIndex].chapterData = []
  13155. }
  13156. // 删除老的节点
  13157. newItems.splice(this.oldIndex, 1);
  13158. // 在列表中目标位置增加新的节点
  13159. newItems.splice(this.newIndex, 0, this.oldData);
  13160. if (this.oldIndex == 0 || this.newIndex == 0) {
  13161. newItems[0].chapterData = chapterData
  13162. }
  13163. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  13164. ...newItems,
  13165. ];
  13166. }
  13167. this.typeIndex = "";
  13168. this.newIndex = "";
  13169. this.dragType = "";
  13170. this.checkUnitIndex = "";
  13171. this.isdrag = "";
  13172. this.updateWork();
  13173. this.$forceUpdate();
  13174. }
  13175. },
  13176. dragUnitStart(val, i) {
  13177. this.dragType = "Unit";
  13178. this.oldIndex = i;
  13179. this.oldData = val;
  13180. },
  13181. dragUnitOver(i) {
  13182. this.typeIndex = "Unit-" + i;
  13183. this.newIndex = i;
  13184. console.log(i, this.unitJson[i].toolOpen);
  13185. if (!this.unitJson[i].toolOpen && this.dragType == "task") {
  13186. this.unitJson[i].toolOpen = true;
  13187. this.updateWork();
  13188. this.$forceUpdate();
  13189. }
  13190. },
  13191. async dragUnitEnd() {
  13192. if (this.dragType != "Unit") {
  13193. this.newIndex = "";
  13194. this.dragType = "";
  13195. this.typeIndex = "";
  13196. this.isdrag = "";
  13197. return;
  13198. }
  13199. if (this.newIndex == this.oldIndex) {
  13200. this.newIndex = "";
  13201. this.dragType = "";
  13202. this.typeIndex = "";
  13203. this.isdrag = "";
  13204. return;
  13205. }
  13206. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0);
  13207. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0);
  13208. console.log(count1, count2);
  13209. if (count1 > 0 || count2 > 0) {
  13210. this.$confirm(
  13211. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  13212. "提示",
  13213. {
  13214. confirmButtonText: "确定",
  13215. cancelButtonText: "取消",
  13216. type: "warning",
  13217. }
  13218. )
  13219. .then(() => {
  13220. let newItems = [...this.unitJson];
  13221. // 删除老的节点
  13222. newItems.splice(this.oldIndex, 1);
  13223. // 在列表中目标位置增加新的节点
  13224. newItems.splice(this.newIndex, 0, this.oldData);
  13225. this.unitJson = [...newItems];
  13226. this.typeIndex = "";
  13227. this.newIndex = "";
  13228. this.dragType = "";
  13229. this.isdrag = "";
  13230. this.updateWork();
  13231. this.$forceUpdate();
  13232. })
  13233. .catch(() => {
  13234. this.newIndex = "";
  13235. this.dragType = "";
  13236. this.typeIndex = "";
  13237. this.isdrag = "";
  13238. return;
  13239. });
  13240. } else {
  13241. let newItems = [...this.unitJson];
  13242. // 删除老的节点
  13243. newItems.splice(this.oldIndex, 1);
  13244. // 在列表中目标位置增加新的节点
  13245. newItems.splice(this.newIndex, 0, this.oldData);
  13246. this.unitJson = [...newItems];
  13247. this.typeIndex = "";
  13248. this.newIndex = "";
  13249. this.dragType = "";
  13250. this.isdrag = "";
  13251. this.updateWork();
  13252. this.$forceUpdate();
  13253. }
  13254. },
  13255. getWorksCount(type, stage, task, tool) {
  13256. return new Promise((resolve, reject) => {
  13257. let params = [
  13258. {
  13259. cid: this.cid,
  13260. stage: stage,
  13261. task: task,
  13262. tool: tool,
  13263. type: type,
  13264. },
  13265. ];
  13266. this.ajax
  13267. .post(this.$store.state.api + "getCourseWorkCount", params)
  13268. .then((res) => {
  13269. let count = res.data[0][0].count;
  13270. resolve(count);
  13271. })
  13272. .catch((err) => {
  13273. resolve(0);
  13274. this.$message.error("网络不佳");
  13275. console.error(err);
  13276. });
  13277. });
  13278. },
  13279. getTwoType(id) {
  13280. this.twoJson = [];
  13281. var array = this.CourseTypeJson1[
  13282. "3f8eed32-aba9-11ee-b534-005056b86db5"
  13283. ].filter((e) => {
  13284. return e.ppid == id;
  13285. });
  13286. this.twoJson = array;
  13287. this.$forceUpdate();
  13288. },
  13289. ctype() {
  13290. this.oneJson =
  13291. this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
  13292. },
  13293. selectAllType1() {
  13294. this.CourseType1 = [];
  13295. this.CourseTypeJson1 = {};
  13296. this.courseTypeId1 = {};
  13297. this.$forceUpdate();
  13298. let params = {
  13299. org: this.org && this.org != "" ? this.org : "",
  13300. oid: this.oid && this.oid != "" ? this.oid : "",
  13301. };
  13302. this.ajax
  13303. .get(this.$store.state.api + "selectAllEvaType", params)
  13304. .then((res) => {
  13305. this.CourseType1 = res.data;
  13306. for (var i = 0; i < res.data[0].length; i++) {
  13307. if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
  13308. res.data[0][i].name = "一级分类";
  13309. } else if (
  13310. res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
  13311. ) {
  13312. res.data[0][i].name = "二级分类";
  13313. }
  13314. if (!this.cid) {
  13315. this.courseTypeId1[res.data[0][i].id] = [];
  13316. }
  13317. if (!this.CourseTypeJson1[res.data[0][i].id]) {
  13318. this.CourseTypeJson1[res.data[0][i].id] = [];
  13319. }
  13320. // if (res.data[2].length == 0 && res.data[3].length == 0) {
  13321. for (var j = 0; j < res.data[1].length; j++) {
  13322. if (res.data[0][i].id == res.data[1][j].pid) {
  13323. this.CourseTypeJson1[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  13324. }
  13325. }
  13326. // } else {
  13327. if (res.data[2].length > 0) {
  13328. for (var j = 0; j < res.data[2].length; j++) {
  13329. if (res.data[0][i].id == res.data[2][j].pid) {
  13330. this.CourseTypeJson1[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  13331. }
  13332. }
  13333. }
  13334. if (res.data[3].length > 0) {
  13335. for (var j = 0; j < res.data[3].length; j++) {
  13336. if (res.data[0][i].id == res.data[3][j].pid) {
  13337. this.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  13338. }
  13339. }
  13340. }
  13341. // }
  13342. }
  13343. this.ctype();
  13344. this.cetBoxDialog = true;
  13345. })
  13346. .catch((err) => {
  13347. console.error(err);
  13348. });
  13349. },
  13350. setAiJson(pan,string){
  13351. if(pan == 'aiTeacher2'){
  13352. this.aiJson['teacherDetail2'] = string
  13353. }else {
  13354. this.aiJson[pan] = string
  13355. }
  13356. this.$forceUpdate();
  13357. },
  13358. editTask3(index){
  13359. if(this.unitJson[0].chapterInfo[0].taskJson[index].isTask3){
  13360. this.unitJson[0].chapterInfo[0].taskJson[index].isTask3 = false
  13361. }else {
  13362. this.unitJson[0].chapterInfo[0].taskJson[index].isTask3 = true
  13363. }
  13364. this.$forceUpdate();
  13365. },
  13366. editCpote(index){
  13367. if(this.cpote[index]){
  13368. this.cpote[index] = false
  13369. }else {
  13370. this.cpote[index] = true
  13371. }
  13372. this.$forceUpdate();
  13373. },
  13374. openAiDialog(clickType, type, callback, index, tindex) {
  13375. // if(clickType == 1){
  13376. // return;
  13377. // }
  13378. if (this.courseName == "") {
  13379. this.$message.error("请补充填写课程名称");
  13380. return;
  13381. }
  13382. this.clickType = clickType
  13383. let sub = []
  13384. if (this.courseTypeId.length) {
  13385. for (var i = 0; i < this.courseTypeId.length; i++) {
  13386. let _sid = this.courseTypeId[i]
  13387. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  13388. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  13389. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  13390. }
  13391. }
  13392. }
  13393. }
  13394. let mclass = []
  13395. if (this.courseTypeId.length) {
  13396. for (var i = 0; i < this.courseTypeId.length; i++) {
  13397. let _sid = this.courseTypeId[i]
  13398. for (var j = 0; j < this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'].length; j++) {
  13399. if (_sid == this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].id) {
  13400. mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
  13401. }
  13402. }
  13403. }
  13404. }
  13405. if (type == "aiDetail") {
  13406. if (this.ttextLoading) {
  13407. this.$message({
  13408. message: "请回答完毕后再次发送",
  13409. type: "warning"
  13410. });
  13411. return;
  13412. }
  13413. this.aitype = "aiDetail"
  13414. // this.aiText = `请根据${this.courseText}设计一个名为${this.courseName}的${sub.length ? sub.join(",") + "学科的" : ""},面向${this.getListClassC(this.checkboxList2)}的项目式学习课程。`
  13415. this.aiText = this.aiJson.aiDetail
  13416. } else if (type == "aiOutline") {
  13417. this.aitype = "aiOutline"
  13418. // this.aiText = `请根据${this.courseText}设计一个名为${this.courseName}的${sub.length ? sub.join(",") + "学科的" : ""},面向${this.getListClassC(this.checkboxList2)}的项目式学习课程设计序列教学活动(需要每个任务都需要至少50个token的详细描述),每个教学活动的活动设计(可以直接使用文件内容)以及每个教学活动的评价量规(学生能做到...)。`
  13419. this.aiText = this.aiJson.aiOutline
  13420. } else if (type == "aiTask") {
  13421. this.aitype = "aiTask"
  13422. var _text = ""
  13423. for (var i = 0; i < this.teacherText.length; i++) {
  13424. _text += `任务名称:${this.teacherText[i].task} 教案:${this.teacherText[i].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}`
  13425. }
  13426. // this.aiText = `请根据${_text}。`
  13427. this.aiText = this.aiJson.aiTask
  13428. this.aiCallBack = callback
  13429. } else if (type == "aiDetail1") {
  13430. if (this.ttaskDetailLoading.indexOf('task-' + index) !== -1) {
  13431. this.$message({
  13432. message: "请回答完毕后再次发送",
  13433. type: "warning"
  13434. });
  13435. return;
  13436. }
  13437. this.aitype = "aiDetail1"
  13438. // this.aiText = `请帮我优化下列文字内容,更具象化更详细,输出文本格式就行不要带有其他格式\n${callback}`
  13439. // this.aiText = `请根据${callback},重新设计该教学任务。任务需要至少50个token的详细描述,包含任务设计,评价标准 \n`
  13440. this.aiText = this.aiJson.aiDetail1
  13441. this.aiCallBack = callback
  13442. this.aiIndex = index
  13443. } else if (type == "aiDetail2") {
  13444. if (this.ttaskDetailLoading2.indexOf('task-' + index) !== -1) {
  13445. this.$message({
  13446. message: "请回答完毕后再次发送",
  13447. type: "warning"
  13448. });
  13449. return;
  13450. }
  13451. this.aitype = "aiDetail2"
  13452. // this.aiText = `请你在考虑到整个课程的情况下,优化该任务描述和任务名:${callback.task}:${callback.taskDetail}`
  13453. this.aiText = this.aiJson.aiDetail2
  13454. this.aiCallBack = callback
  13455. this.aiIndex = index
  13456. } else if (type == "aiDetail3") {
  13457. if (this.ttaskDetailLoading3.indexOf('task-' + index + tindex) !== -1) {
  13458. this.$message({
  13459. message: "请回答完毕后再次发送",
  13460. type: "warning"
  13461. });
  13462. return;
  13463. }
  13464. this.aitype = "aiDetail3"
  13465. this.aiText = this.aiJson.aiDetail3
  13466. this.aiIndex = index + '-' + tindex
  13467. } else if (type == "aiDetail4") {
  13468. var _text = ""
  13469. for (var i = 0; i < callback.length; i++) {
  13470. _text += `评价维度:${callback[i].value} 维度描述:${callback[i].detail} `
  13471. }
  13472. this.aitype = "aiDetail4"
  13473. this.aiText = this.aiJson.aiDetail4
  13474. this.aiIndex = index
  13475. } else if (type == "aiTeacher") {
  13476. this.aitype = "aiTeacher"
  13477. var _text = ""
  13478. for (var i = 0; i < this.dArray.length; i++) {
  13479. _text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
  13480. }
  13481. // this.aiText = `请根据${_text}为每个教学任务设计详细的教案,其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  13482. this.aiText = this.aiJson.aiTeacher
  13483. this.aiCallBack = callback
  13484. } else if (type == "aiTeacher2") {
  13485. this.aitype = "aiTeacher2"
  13486. this.aiText = this.aiJson.teacherDetail2 ? this.aiJson.teacherDetail2 : '请根据<任务名>、<任务描述>,<课程简要描述>,为该任务设计详细的教案,教案需要包含该任务的教学目标,教学过程(包含分步骤的教师活动和学生活动,教师活动与学生活动应该一一对应),相关知识点的讲解,练习(练习需要包含示例答案)。'
  13487. } else if (type == "teacherDetail") {
  13488. if (this.ttaskDetailLoading5.indexOf('task-' + index) !== -1) {
  13489. this.$message({
  13490. message: "请回答完毕后再次发送",
  13491. type: "warning"
  13492. });
  13493. return;
  13494. }
  13495. this.aitype = "teacherDetail"
  13496. // this.aiText = `请根据${callback}\n重新设计该教案。其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  13497. this.aiText = this.aiJson.teacherDetail
  13498. this.aiCallBack = callback
  13499. this.aiIndex = index
  13500. } else if (type == "teacherDetail2") {
  13501. if (this.ttaskDetailLoading5.indexOf('task-' + index) !== -1) {
  13502. this.$message({
  13503. message: "请回答完毕后再次发送",
  13504. type: "warning"
  13505. });
  13506. return;
  13507. }
  13508. this.aitype = "teacherDetail2"
  13509. // this.aiText = `请根据${callback}\n重新设计该教案。其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  13510. this.aiText = this.aiJson.teacherDetail2 ? this.aiJson.teacherDetail2 : '请根据<任务名>、<任务描述>,<课程简要描述>,为该任务设计详细的教案,教案需要包含该任务的教学目标,教学过程(包含分步骤的教师活动和学生活动,教师活动与学生活动应该一一对应),相关知识点的讲解,练习(练习需要包含示例答案)。'
  13511. this.aiCallBack = callback
  13512. this.aiIndex = index
  13513. } else if (type == "aiCpote1") {
  13514. if (this.cpotetLoading.cpote1) {
  13515. this.$message({
  13516. message: "请回答完毕后再次发送",
  13517. type: "warning"
  13518. });
  13519. return;
  13520. }
  13521. this.aitype = "aiCpote1"
  13522. this.aiText = this.aiJson.cpote1
  13523. this.aiCallBack = callback
  13524. } else if (type == "aiCpote2") {
  13525. if (this.cpotetLoading.cpote2) {
  13526. this.$message({
  13527. message: "请回答完毕后再次发送",
  13528. type: "warning"
  13529. });
  13530. return;
  13531. }
  13532. this.aitype = "aiCpote2"
  13533. this.aiText = this.aiJson.cpote2
  13534. this.aiCallBack = callback
  13535. }
  13536. else if (type == "aiCpote3") {
  13537. if (this.cpotetLoading.cpote3) {
  13538. this.$message({
  13539. message: "请回答完毕后再次发送",
  13540. type: "warning"
  13541. });
  13542. return;
  13543. }
  13544. this.aitype = "aiCpote3"
  13545. this.aiText = this.aiJson.cpote3
  13546. this.aiCallBack = callback
  13547. } else if (type == "aiCpote4") {
  13548. if (this.cpotetLoading.cpote4) {
  13549. this.$message({
  13550. message: "请回答完毕后再次发送",
  13551. type: "warning"
  13552. });
  13553. return;
  13554. }
  13555. this.aitype = "aiCpote4"
  13556. this.aiText = this.aiJson.cpote4
  13557. this.aiCallBack = callback
  13558. }
  13559. this.dialogVisibleAiD = true
  13560. },
  13561. async aiConfirm(msg) {
  13562. let sub = []
  13563. if (this.courseTypeId.length) {
  13564. for (var i = 0; i < this.courseTypeId.length; i++) {
  13565. let _sid = this.courseTypeId[i]
  13566. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  13567. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  13568. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  13569. }
  13570. }
  13571. }
  13572. }
  13573. let mclass = []
  13574. if (this.courseTypeId.length) {
  13575. for (var i = 0; i < this.courseTypeId.length; i++) {
  13576. let _sid = this.courseTypeId[i]
  13577. for (var j = 0; j < this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'].length; j++) {
  13578. if (_sid == this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].id) {
  13579. mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
  13580. }
  13581. }
  13582. }
  13583. }
  13584. let url = []
  13585. if (this.infoData.length) {
  13586. for (var i = 0; i < this.infoData.length; i++) {
  13587. url.push(this.infoData[i].url)
  13588. }
  13589. }
  13590. if (this.aitype == "aiDetail") {
  13591. this.detailYou(msg)
  13592. } else if (this.aitype == "aiOutline") {
  13593. this.loading = true
  13594. // ${this.getListClassC(this.checkboxList2) ? '班级:' + this.getListClassC(this.checkboxList2) : "无"}
  13595. // ${this.infoData.length ? '使用文件检索的方式完整的去分析文件内容,并请完全按照要求输出。' : ''}
  13596. let message = `NOTICE
  13597. Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
  13598. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  13599. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13600. Instruction: Based on the context, follow "Format example", write content.
  13601. # Context
  13602. ## 要求
  13603. ${msg} 以及##参考资料
  13604. ## 参考资料
  13605. 课程名字:${this.courseName}
  13606. ${this.courseText ? '课程简要描述:' + this.courseText : ''}
  13607. ${sub.length ? '学科:' + sub.join(",") : ''}
  13608. ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
  13609. ${this.templatePan.includes(this.templateid) ? '课程节数:'+this.courseJie+'节' : ''}
  13610. ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
  13611. # Format example
  13612. [{"task": "任务名称1","detail": "任务设计和评价标准"},{"task": "任务名称2","detail": "任务设计和评价标准"}]`
  13613. this.aiGet2(message, () => {
  13614. this.loading = false
  13615. this.isOutline = true
  13616. })
  13617. } else if (this.aitype == "aiTask") {
  13618. var _text = ""
  13619. for (var i = 0; i < this.unitJson[0].chapterInfo[0].taskJson.length; i++) {
  13620. _text += `任务名称:${this.unitJson[0].chapterInfo[0].taskJson[i].task} 任务描述:${this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')} \n`
  13621. }
  13622. let message = `NOTICE
  13623. Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
  13624. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  13625. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13626. Instruction: Based on the context, follow "Format example", write content.
  13627. # Context
  13628. ## 要求
  13629. ${msg} 为**每个教学任务分别输出**以下内容。
  13630.  
  13631. ${this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" ? '#目标层\n'+this.cpote.cpote3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')+'\n\n#任务簇\n'+this.cpote.cpote4.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
  13632. ## 格式要求
  13633. 任务数量:${this.teacherText.length}个
  13634. 任务描述:用老师的身份以友好,但是又清晰明确的口吻来撰写该描述,该描述教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动
  13635. 评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  13636. 工具名:从工具列表中选择0~2个工具用于学生阶段性成果提交:工具列表:电子白板,文档,思维导图,表格,作业提交,问答,选择题,只在这几个工具里选
  13637. 工具描述:用同学的方式以友好亲切,明确的口吻告诉学生该如何使用该工具
  13638. ## 参考资料
  13639. 教学任务教案:${_text}
  13640.  
  13641. # Format example
  13642. [{"detail":"面向学生的任务描述","elist":[{"value":"评价名字1","detail":"评价维度1","score":5},{"value":"评价名字2","detail":"评价维度2","score":5},{"value":"评价名字3","detail":"评价维度3","score":5}],"toolChoose":[{"tool":"工具名","detail":"工具描述"},{"tool":"工具名","detail":"工具描述"}]},{"detail":"面向学生的任务描述","elist":[{"value":"评价名字1","detail":"评价维度1","score":5},{"value":"评价名字2","detail":"评价维度2","score":5},{"value":"评价名字3","detail":"评价维度3","score":5}],"toolChoose":[]},{"detail":"面向学生的任务描述","elist":[{"value":"评价名字1","detail":"评价维度1","score":5},{"value":"评价名字2","detail":"评价维度2","score":5},{"value":"评价名字3","detail":"评价维度3","score":5}],"toolChoose":[{"tool":"工具名","detail":"工具描述"}]}]`
  13643. this.loading = true
  13644. this.aiGet3(message, this.aiCallBack)
  13645. } else if (this.aitype == "aiDetail1") {
  13646. this.aiDetail(msg, this.aiIndex)
  13647. } else if (this.aitype == "aiDetail2") {
  13648. this.aiDetail2(msg, this.aiIndex)
  13649. } else if (this.aitype == "aiDetail3") {
  13650. let _index = this.aiIndex.split('-')
  13651. this.aiDetail3(msg, _index[0], _index[1])
  13652. } else if (this.aitype == "aiDetail4") {
  13653. this.aiDetail4(msg, this.aiIndex)
  13654. } else if (this.aitype == "teacherDetail") {
  13655. this.aiDetail5(msg, this.aiIndex)
  13656. } else if (this.aitype == "teacherDetail2") {
  13657. this.aiDetail52(msg, this.aiIndex)
  13658. } else if (this.aitype == "aiCpote1") {
  13659. this.aiCpote(msg, this.aiCallBack)
  13660. } else if (this.aitype == "aiCpote2") {
  13661. this.aiCpote(msg, this.aiCallBack)
  13662. } else if (this.aitype == "aiCpote3") {
  13663. this.aiCpote(msg, this.aiCallBack)
  13664. } else if (this.aitype == "aiCpote4") {
  13665. this.aiCpote(msg, this.aiCallBack)
  13666. } else if (this.aitype == "aiTeacher") {
  13667. this.loading = true
  13668. var _text = ""
  13669. for (var i = 0; i < this.dArray.length; i++) {
  13670. _text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
  13671. }//${this.infoData.length ? '使用文件检索的方式完整的去分析文件内容,并请完全按照要求输出。' : ''}
  13672. let message = ` NOTICE
  13673. Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
  13674. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  13675. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13676. Instruction: Based on the context, follow "Format example", write content.
  13677. # Context
  13678. ## 要求
  13679. ${msg} 以及${this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" ? '##任务大纲' : '##目标层,##任务簇'}
  13680. ${this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" ? '## 任务大纲\n'+_text : ''}
  13681. ${this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" ? '## 目标层\n'+this.cpote.cpote3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')+'\n\n## 任务簇\n'+this.cpote.cpote4.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
  13682. ## Format example
  13683. [{"task": "任务名称1","detail": "教案输出为文本格式就行"},{"task": "任务名称2","detail": "教案输出为文本格式就行"}]`
  13684. this.aiGet4(message, () => {
  13685. this.loading = false
  13686. this.isOutline2 = true
  13687. })
  13688. } else if (this.aitype == "aiTeacher2"){
  13689. this.isOutline2 = true
  13690. setTimeout(()=>{
  13691. for (var i = 0; i < this.unitJson[0].chapterInfo[0].taskJson.length; i++) {
  13692. this.aiDetail52(msg, i)
  13693. }
  13694. }, 0)
  13695. }
  13696. this.setAiJson(this.aitype, msg)
  13697. },
  13698. detailYou(message) {
  13699. this.textLoading = true
  13700. this.ttextLoading = true
  13701. let sub = []
  13702. if (this.courseTypeId.length) {
  13703. for (var i = 0; i < this.courseTypeId.length; i++) {
  13704. let _sid = this.courseTypeId[i]
  13705. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  13706. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  13707. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  13708. }
  13709. }
  13710. }
  13711. }
  13712. let mclass = []
  13713. if (this.courseTypeId.length) {
  13714. for (var i = 0; i < this.courseTypeId.length; i++) {
  13715. let _sid = this.courseTypeId[i]
  13716. for (var j = 0; j < this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'].length; j++) {
  13717. if (_sid == this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].id) {
  13718. mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
  13719. }
  13720. }
  13721. }
  13722. }
  13723. let url = []
  13724. if (this.infoData.length) {
  13725. for (var i = 0; i < this.infoData.length; i++) {
  13726. url.push(this.infoData[i].url)
  13727. }
  13728. }
  13729. // ${this.getListClassC(this.checkboxList2) ? '班级:' + this.getListClassC(this.checkboxList2) : "无"}
  13730. // --------
  13731. // ## 补充参考资料
  13732. // 补充资料:${url.join(",")}
  13733. // 补充描述:${this.courseText2} ##补充参考资料和
  13734. let msg = `
  13735. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  13736. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13737. --------
  13738. ## 参考资料
  13739. 课程名字:${this.courseName}
  13740. ${sub.length ? '学科:' + sub.join(",") : ''}
  13741. ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
  13742. ${this.templatePan.includes(this.templateid) ? '课程节数:'+this.courseJie+'节' : ''}
  13743. ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
  13744. --------
  13745. ## 要求
  13746. ${message} 以及##参考资料 以文本格式输出项目概况,驱动性问题,最终作品,格式参考## Format example
  13747. --------
  13748. ## Format example
  13749. -课程简要描述:
  13750. -驱动性问题:**1个**驱动整个项目的问题
  13751. -最终作品:对应解决驱动性问题的作品,可个人可团队`
  13752. this.aiGet(msg)
  13753. },
  13754. setUnitJson() {
  13755. this.unitJson[0].chapterInfo[0].taskJson[0] = { "task": "观察热在水中的传递", "taskDetail": "同学们,今天我们将通过一个有趣的实验来探究热是如何在水中传递的。你将需要加热水并观察温度是如何分布的。请准备好实验器材,并按照安全指南进行操作。在实验过程中,请注意观察热水和冷水之间的相互作用,以及水温是如何随时间和空间变化的。你将需要记录你的观察结果,并思考热是如何从一个地方传递到另一个地方的。", "chapterData": [], "toolText": "", "toolChoose": [{ "tool": [1], "toolDetail": "使用电子白板工具来绘制你的实验设置和观察到的热传递过程。你可以使用电子白板的绘图功能来创建一个温度分布图,展示热水和冷水相遇时的情况。同时,你可以用它来记录实验步骤和关键观察点,以便于你和同学们进行讨论和分享。", "toolType": 1, "askCount": 1, "askTitle": "", "askJson": [{ "askstitle": "", "askItem": 1, "checkList": [] }], "isFold3": false }], "isShowTools": false, "askCount": 1, "isFold": 0, "askTitle": "", "askJson": [{ "askstitle": "", "askItem": 1, "checkList": [] }], "checkJson": [{ "checkCount": [], "checkPerent": [] }], "homeworkList": [], "toolOpen": true, "eList": [{ "value": "实验观察和记录", "detail": "学生应该能够准确地记录实验过程中的观察结果,包括水温变化和热传递的现象。", "score": 5 }, { "value": "数据分析和解释", "detail": "学生应该能够分析实验数据,解释热在水中的传递方式,并能够用自己的话描述热对流的原理。", "score": 5 }, { "value": "实验报告撰写", "detail": "学生应该能够撰写一份清晰的实验报告,包括实验目的、方法、结果和结论,以及对实验过程的反思。", "score": 5 }] }
  13756. this.$forceUpdate()
  13757. },
  13758. async aiGet(messages) {
  13759. let _this = this
  13760. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  13761. if (_this.infoData.length) {
  13762. for (var i = 0; i < _this.infoData.length; i++) {
  13763. if(_this.infoData[i].fileid){
  13764. fileid.push(_this.infoData[i].fileid)
  13765. }else {
  13766. let _fileid = await _this.createFileid(_this.infoData[i].url)
  13767. if(_fileid){
  13768. _this.infoData[i].fileid = _fileid
  13769. _this.$forceUpdate();
  13770. fileid.push(_fileid)
  13771. }
  13772. }
  13773. }
  13774. }
  13775. let _uuid = uuidv4();
  13776. // let params = JSON.stringify({
  13777. // // "model": "Chat",
  13778. // model: 'gpt-3.5-turbo',
  13779. // temperature: 0,
  13780. // max_tokens: 4096,
  13781. // top_p: 1,
  13782. // frequency_penalty: 0,
  13783. // presence_penalty: 0,
  13784. // messages: [{
  13785. // content: messages,
  13786. // role: 'user'
  13787. // }],
  13788. // uid: _uuid,
  13789. // mind_map_question: "",
  13790. // })
  13791. let params = {
  13792. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  13793. message: [{"type":"text", "text":messages}],
  13794. session_name: _uuid,
  13795. userId: _this.userid,
  13796. uid: _uuid,
  13797. file_ids: fileid.length ? [...fileid] : '',
  13798. }
  13799. // let params = JSON.stringify({
  13800. // message: {
  13801. // anthropic_version: "bedrock-2023-05-31",
  13802. // max_tokens: 4096,
  13803. // temperature: 0,
  13804. // top_p: 1,
  13805. // messages: [{
  13806. // "role": "user",
  13807. // "content": messages
  13808. // }] ,
  13809. // },
  13810. // uid: _uuid,
  13811. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13812. // });
  13813. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13814. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  13815. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  13816. console.log(response);
  13817. // let data = response.data.FunctionResponse
  13818. // if (data.choices && data.choices.length && data.choices[0].message) {
  13819. // _this.courseText = data.choices[0].message.content
  13820. // }
  13821. if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
  13822. } else {
  13823. this.$message.warning(response.data.FunctionResponse.result);
  13824. }
  13825. }).catch(function (error) {
  13826. _this.textLoading = false
  13827. _this.ttextLoading = false
  13828. console.log(error);
  13829. });
  13830. await _this.aiGetgetAiContent(_uuid)
  13831. },
  13832. aiGetgetAiContent(_uid) {
  13833. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13834. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13835. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13836. let _allText = "";
  13837. let _mdText = "";
  13838. _source.onmessage = _e => {
  13839. let _eData = JSON.parse(_e.data).content;
  13840. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  13841. //对话已经完成
  13842. _mdText = _mdText.replace("_", "");
  13843. _source.close();
  13844. this.courseText = _mdText;
  13845. this.textLoading = false
  13846. this.ttextLoading = false
  13847. return;
  13848. } else {
  13849. //对话还在继续
  13850. let _text = "";
  13851. _text = _eData.replaceAll("'", "");
  13852. if (_allText == "") {
  13853. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  13854. } else {
  13855. _allText += _text;
  13856. }
  13857. _mdText = _allText + "_";
  13858. _mdText = _mdText.replace(/\\n/g, "\n");
  13859. _mdText = _mdText.replace(/\\/g, "");
  13860. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13861. //转化返回的回复流数据
  13862. this.courseText = _mdText;
  13863. this.textLoading = false
  13864. // 处理流数据
  13865. }
  13866. this.$forceUpdate();
  13867. };
  13868. },
  13869. async aiGet2(messages, callback) {
  13870. let _this = this
  13871. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  13872. if (_this.infoData.length) {
  13873. for (var i = 0; i < _this.infoData.length; i++) {
  13874. if(_this.infoData[i].fileid){
  13875. fileid.push(_this.infoData[i].fileid)
  13876. }else {
  13877. let _fileid = await _this.createFileid(_this.infoData[i].url)
  13878. if(_fileid){
  13879. _this.infoData[i].fileid = _fileid
  13880. _this.$forceUpdate();
  13881. fileid.push(_fileid)
  13882. }
  13883. }
  13884. }
  13885. }
  13886. console.log('fileid=========',fileid)
  13887. // let params = JSON.stringify({
  13888. // // "model": "Chat",
  13889. // model: 'gpt-3.5-turbo',
  13890. // temperature: 0,
  13891. // max_tokens: 4096,
  13892. // top_p: 1,
  13893. // frequency_penalty: 0,
  13894. // presence_penalty: 0,
  13895. // messages: [{
  13896. // content: messages,
  13897. // role: 'user'
  13898. // }],
  13899. // stream: false,
  13900. // uid: this.userid,
  13901. // mind_map_question: "",
  13902. // })
  13903. // // let params = JSON.stringify({
  13904. // // message: {
  13905. // // anthropic_version: "bedrock-2023-05-31",
  13906. // // max_tokens: 4096,
  13907. // // temperature: 0,
  13908. // // top_p: 1,
  13909. // // messages: [{
  13910. // // content: messages,
  13911. // // role: 'user'
  13912. // // }], //
  13913. // // },
  13914. // // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13915. // // });
  13916. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13917. // // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  13918. // console.log(response);
  13919. // let data = response.data.FunctionResponse
  13920. // if (data.choices && data.choices.length && data.choices[0].message) {
  13921. // console.log(data.choices[0].message.content);
  13922. // let dArray = JSON.parse(data.choices[0].message.content)
  13923. // _this.dArray = dArray
  13924. // _this.unitJson[0].chapterInfo[0].taskJson = []
  13925. // for (var i = 0; i < dArray.length; i++) {
  13926. // let _task = dArray[i]
  13927. // _this.unitJson[0].chapterInfo[0].taskJson.push({
  13928. // task: _task.task,
  13929. // taskDetail: "",
  13930. // taskDetail2: _task.detail,
  13931. // taskDetail3: "",
  13932. // chapterData: [],
  13933. // toolText: "",
  13934. // toolChoose: [
  13935. // {
  13936. // tool: [],
  13937. // toolDetail: "",
  13938. // toolType: 0,
  13939. // askCount: 1,
  13940. // askTitle: "",
  13941. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13942. // },
  13943. // ],
  13944. // isShowTools: false,
  13945. // askCount: 1,
  13946. // isFold: 2,
  13947. // askTitle: "",
  13948. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13949. // checkJson: [{ checkCount: [], checkPerent: [] }],
  13950. // homeworkList: [],
  13951. // })
  13952. // }
  13953. // _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = _this.infoData
  13954. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13955. // _this.$forceUpdate();
  13956. // }
  13957. // // if (data.result) {
  13958. // // console.log(data.result);
  13959. // // let dArray = JSON.parse(data.result)
  13960. // // _this.dArray = dArray
  13961. // // _this.unitJson[0].chapterInfo[0].taskJson = []
  13962. // // for (var i = 0; i < dArray.length; i++) {
  13963. // // let _task = dArray[i]
  13964. // // _this.unitJson[0].chapterInfo[0].taskJson.push({
  13965. // // task: _task.task,
  13966. // // taskDetail: "",
  13967. // // taskDetail2: _task.detail,
  13968. // // taskDetail3: "",
  13969. // // chapterData: [],
  13970. // // toolText: "",
  13971. // // toolChoose: [
  13972. // // {
  13973. // // tool: [],
  13974. // // toolDetail: "",
  13975. // // toolType: 0,
  13976. // // askCount: 1,
  13977. // // askTitle: "",
  13978. // // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13979. // // },
  13980. // // ],
  13981. // // isShowTools: false,
  13982. // // askCount: 1,
  13983. // // isFold: 1,
  13984. // // askTitle: "",
  13985. // // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13986. // // checkJson: [{ checkCount: [], checkPerent: [] }],
  13987. // // homeworkList: [],
  13988. // // })
  13989. // // }
  13990. // // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13991. // // _this.$forceUpdate();
  13992. // // }
  13993. // callback ? callback() : ''
  13994. // }).catch(function (error) {
  13995. // _this.loading = false
  13996. // console.log(error);
  13997. // });
  13998. let parm = {
  13999. assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
  14000. message: [{"type":"text", "text":messages}],
  14001. session_name: uuidv4(),
  14002. userId: this.userid,
  14003. file_ids: fileid.length ? [...fileid] : '',
  14004. }
  14005. this.ajax
  14006. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", parm)
  14007. .then((response) => {
  14008. console.log(response);
  14009. let data = response.data.FunctionResponse
  14010. if (data.message) {
  14011. console.log(data.message);
  14012. let dArray = {}
  14013. try {
  14014. dArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  14015. } catch (error) {
  14016. console.log("error_________________" + error);
  14017. try {
  14018. let regex = new RegExp("(?<=```json)([\\s\\S]*?)(?=```)");
  14019. let match = data.message.match(regex);
  14020. dArray = JSON.parse(match[0]);
  14021. // var message = data.message;
  14022. // var jsonStart = message.indexOf("```json") + 7; // `+ 7` 是为了跳过 ```json
  14023. // var jsonEnd = message.indexOf("```", jsonStart);
  14024. // var jsonString = message.substring(jsonStart, jsonEnd).trim();
  14025. // dArray = JSON.parse(jsonString);
  14026. } catch (error) {
  14027. console.log("error_________________" + error);
  14028. }
  14029. }
  14030. _this.dArray = dArray
  14031. _this.unitJson[0].chapterInfo[0].taskJson = []
  14032. for (var i = 0; i < dArray.length; i++) {
  14033. let _task = dArray[i]
  14034. _this.unitJson[0].chapterInfo[0].taskJson.push({
  14035. task: _task.task,
  14036. taskDetail: "",
  14037. taskDetail2: _task.detail,
  14038. taskDetail3: "",
  14039. chapterData: [],
  14040. toolText: "",
  14041. toolChoose: [
  14042. {
  14043. tool: [],
  14044. toolDetail: "",
  14045. toolType: 0,
  14046. askCount: 1,
  14047. askTitle: "",
  14048. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14049. },
  14050. ],
  14051. isShowTools: false,
  14052. askCount: 1,
  14053. isFold: 2,
  14054. askTitle: "",
  14055. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14056. checkJson: [{ checkCount: [], checkPerent: [] }],
  14057. homeworkList: [],
  14058. })
  14059. }
  14060. _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = JSON.parse(JSON.stringify(_this.infoData))
  14061. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14062. _this.$forceUpdate();
  14063. }
  14064. callback ? callback() : ''
  14065. })
  14066. .catch((error) => {
  14067. _this.loading = false
  14068. console.log(error);
  14069. });
  14070. },
  14071. async aiGet3(messages, callback) {
  14072. let _this = this
  14073. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14074. if (_this.infoData.length) {
  14075. for (var i = 0; i < _this.infoData.length; i++) {
  14076. if(_this.infoData[i].fileid){
  14077. fileid.push(_this.infoData[i].fileid)
  14078. }else {
  14079. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14080. if(_fileid){
  14081. _this.infoData[i].fileid = _fileid
  14082. _this.$forceUpdate();
  14083. fileid.push(_fileid)
  14084. }
  14085. }
  14086. }
  14087. }
  14088. // let params = JSON.stringify({
  14089. // // "model": "Chat",
  14090. // model: 'gpt-3.5-turbo',
  14091. // temperature: 0,
  14092. // max_tokens: 4096,
  14093. // top_p: 1,
  14094. // frequency_penalty: 0,
  14095. // presence_penalty: 0,
  14096. // messages: [{
  14097. // content: messages,
  14098. // role: 'user'
  14099. // }],
  14100. // stream: false,
  14101. // uid: this.userid,
  14102. // mind_map_question: "",
  14103. // })
  14104. // // let params = JSON.stringify({
  14105. // // message: {
  14106. // // anthropic_version: "bedrock-2023-05-31",
  14107. // // max_tokens: 4096,
  14108. // // temperature: 0,
  14109. // // top_p: 1,
  14110. // // messages: [{
  14111. // // content: messages,
  14112. // // role: 'user'
  14113. // // }], //
  14114. // // },
  14115. // // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  14116. // // });
  14117. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  14118. // // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  14119. // console.log(response);
  14120. // let data = response.data.FunctionResponse
  14121. // if (data.choices && data.choices.length && data.choices[0].message) {
  14122. // console.log(data.choices[0].message.content);
  14123. // let tArray = JSON.parse(data.choices[0].message.content)
  14124. // // _this.unitJson[0].chapterInfo[0].task = []
  14125. // let toolsJson = {
  14126. // "电子白板": { tool: 1, type: 1 },
  14127. // "文档": { tool: 52, type: 1 },
  14128. // "思维导图": { tool: 3, type: 1 },
  14129. // "表格": { tool: 48, type: 1 },
  14130. // "作业提交": { tool: 16, type: 2 }
  14131. // }
  14132. // for (var i = 0; i < tArray.length; i++) {
  14133. // let _task = tArray[i]
  14134. // _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.detail
  14135. // _this.unitJson[0].chapterInfo[0].taskJson[i].eList = _task.elist
  14136. // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose = []
  14137. // if (_task.toolChoose.length) {
  14138. // for (var j = 0; j < _task.toolChoose.length; j++) {
  14139. // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  14140. // {
  14141. // tool: toolsJson[_task.toolChoose[j].tool] ? [toolsJson[_task.toolChoose[j].tool].tool] : [],
  14142. // toolDetail: _task.toolChoose[j].detail,
  14143. // toolType: toolsJson[_task.toolChoose[j].tool] ? toolsJson[_task.toolChoose[j].tool].type : 0,
  14144. // askCount: 1,
  14145. // askTitle: "",
  14146. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14147. // },
  14148. // )
  14149. // }
  14150. // } else {
  14151. // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  14152. // {
  14153. // tool: [],
  14154. // toolDetail: "",
  14155. // toolType: 0,
  14156. // askCount: 1,
  14157. // askTitle: "",
  14158. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14159. // },
  14160. // )
  14161. // }
  14162. // }
  14163. // // if (_this.infoData.length) {
  14164. // // _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = JSON.parse(JSON.stringify(_this.infoData))
  14165. // // }
  14166. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14167. // _this.$forceUpdate();
  14168. // }
  14169. // // if (data.result) {
  14170. // // console.log(data.result);
  14171. // // let tArray = JSON.parse(data.result)
  14172. // // // _this.unitJson[0].chapterInfo[0].task = []
  14173. // // let toolsJson = {
  14174. // // "电子白板": { tool: 1, type: 1 },
  14175. // // "文档": { tool: 52, type: 1 },
  14176. // // "思维导图": { tool: 3, type: 1 },
  14177. // // "表格": { tool: 48, type: 1 },
  14178. // // "作业提交": { tool: 16, type: 2 }
  14179. // // }
  14180. // // for (var i = 0; i < tArray.length; i++) {
  14181. // // let _task = tArray[i]
  14182. // // _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.detail
  14183. // // _this.unitJson[0].chapterInfo[0].taskJson[i].eList = _task.elist
  14184. // // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose = []
  14185. // // if (_task.toolChoose.length) {
  14186. // // for (var j = 0; j < _task.toolChoose.length; j++) {
  14187. // // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  14188. // // {
  14189. // // tool: toolsJson[_task.toolChoose[j].tool] ? [toolsJson[_task.toolChoose[j].tool].tool] : [],
  14190. // // toolDetail: _task.toolChoose[j].detail,
  14191. // // toolType: toolsJson[_task.toolChoose[j].tool] ? toolsJson[_task.toolChoose[j].tool].type : 0,
  14192. // // askCount: 1,
  14193. // // askTitle: "",
  14194. // // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14195. // // },
  14196. // // )
  14197. // // }
  14198. // // } else {
  14199. // // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  14200. // // {
  14201. // // tool: [],
  14202. // // toolDetail: "",
  14203. // // toolType: 0,
  14204. // // askCount: 1,
  14205. // // askTitle: "",
  14206. // // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14207. // // },
  14208. // // )
  14209. // // }
  14210. // // }
  14211. // // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14212. // // _this.$forceUpdate();
  14213. // // }
  14214. // callback ? callback() : ''
  14215. // }).catch(function (error) {
  14216. // _this.loading = false
  14217. // console.log(error);
  14218. // });
  14219. let parm = {
  14220. assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
  14221. message: [{"type":"text", "text":messages}],
  14222. session_name: uuidv4(),
  14223. userId: this.userid,
  14224. file_ids: fileid.length ? [...fileid] : '',
  14225. }
  14226. this.ajax
  14227. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", parm)
  14228. .then(async (response) => {
  14229. console.log(response);
  14230. let data = response.data.FunctionResponse
  14231. if (data.message) {
  14232. console.log(data.message);
  14233. let tArray = {}
  14234. try {
  14235. tArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  14236. } catch (error) {
  14237. console.log("error_________________" + error);
  14238. try {
  14239. let regex = new RegExp("(?<=```json)([\\s\\S]*?)(?=```)");
  14240. let match = data.message.match(regex);
  14241. tArray = JSON.parse(match[0]);
  14242. // var message = data.message;
  14243. // var jsonStart = message.indexOf("```json") + 7; // `+ 7` 是为了跳过 ```json
  14244. // var jsonEnd = message.indexOf("```", jsonStart);
  14245. // var jsonString = message.substring(jsonStart, jsonEnd).trim();
  14246. // tArray = JSON.parse(jsonString);
  14247. } catch (error) {
  14248. console.log("error_________________" + error);
  14249. }
  14250. }
  14251. let toolsJson = {
  14252. "电子白板": { tool: 1, type: 1 },
  14253. "文档": { tool: 52, type: 1 },
  14254. "思维导图": { tool: 3, type: 1 },
  14255. "表格": { tool: 48, type: 1 },
  14256. "作业提交": { tool: 16, type: 2 },
  14257. "问答": { tool: 15, type: 2 },
  14258. "选择题": { tool: 45, type: 2 },
  14259. }
  14260. // answerQ:"sssssssssssssss"
  14261. for (var i = 0; i < tArray.length; i++) {
  14262. let _task = tArray[i]
  14263. _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.detail
  14264. _this.unitJson[0].chapterInfo[0].taskJson[i].eList = _task.elist
  14265. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose = []
  14266. if (_task.toolChoose.length) {
  14267. for (var j = 0; j < _task.toolChoose.length; j++) {
  14268. let _json = {
  14269. tool: toolsJson[_task.toolChoose[j].tool] ? [toolsJson[_task.toolChoose[j].tool].tool] : [16],
  14270. toolDetail: _task.toolChoose[j].detail,
  14271. toolType: toolsJson[_task.toolChoose[j].tool] ? toolsJson[_task.toolChoose[j].tool].type : 2,
  14272. askCount: 1,
  14273. askTitle: "",
  14274. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14275. }
  14276. if(converter(_task.toolChoose[j].tool) == converter('问答')){
  14277. let answerQ = await _this.aiCreateQuestion(15, i)
  14278. _json.answerQ = answerQ.answerQ
  14279. }else if(converter(_task.toolChoose[j].tool) == converter('选择题')){
  14280. let testJson = await _this.aiCreateQuestion(45, i)
  14281. _json.testJson = {"testCount":testJson.length,"testTitle":"","testJson":testJson}
  14282. }
  14283. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(_json)
  14284. }
  14285. } else {
  14286. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  14287. {
  14288. tool: [],
  14289. toolDetail: "",
  14290. toolType: 0,
  14291. askCount: 1,
  14292. askTitle: "",
  14293. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14294. },
  14295. )
  14296. }
  14297. }
  14298. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14299. _this.$forceUpdate();
  14300. _this.createTeacherAn();
  14301. }
  14302. callback ? callback() : ''
  14303. })
  14304. .catch((error) => {
  14305. _this.loading = false
  14306. console.log(error);
  14307. });
  14308. },
  14309. async aiCreateQuestion(type, task) {
  14310. let _this = this
  14311. return new Promise((resolve, reject) => {
  14312. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14313. if (_this.infoData.length) {
  14314. for (var i = 0; i < _this.infoData.length; i++) {
  14315. if(_this.infoData[i].fileid){
  14316. fileid.push(_this.infoData[i].fileid)
  14317. }
  14318. }
  14319. }
  14320. let sub = []
  14321. let mclass = []
  14322. if (this.courseTypeId.length) {
  14323. for (var i = 0; i < this.courseTypeId.length; i++) {
  14324. let _sid = this.courseTypeId[i]
  14325. for (var j = 0; j < this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'].length; j++) {
  14326. if (_sid == this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].id) {
  14327. mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
  14328. }
  14329. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  14330. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  14331. }
  14332. }
  14333. }
  14334. }
  14335. let messages = ""
  14336. if(type == 15){
  14337. messages = `NOTICE
  14338. Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
  14339. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  14340. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  14341. Instruction: Based on the context, follow "Format example", write content.
  14342. # Context
  14343. ## 任务
  14344. 根据本任务的#教案,在考虑到面向学生年级(<面向年级>)以及相对应的学科(<课程学科>)的基础上生成1道问答题。题目的意义是测试学生对本教学任务知识点的掌握情况,你的题目应当是有意义的。然后根据Format example的要求返回要以json的格式
  14345. ## 限制
  14346. - 生成题目应该充分考虑学生年级<面向年级>和面向学科<课程学科>,你的题目应有教学意义。
  14347. - 你仅仅需要输出题目,其他什么内容都不需要输出。禁止输出题目以外的任何内容。
  14348. ## 课程简介
  14349. 课程名字:${_this.courseName}
  14350. ${_this.courseText ? '课程简要描述:' + _this.courseText : ''}
  14351. ${sub.length ? '学科:' + sub.join(",") : ''}
  14352. ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
  14353. ## 教案
  14354. ${_this.unitJson[0].chapterInfo[0].taskJson[task].taskDetail3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}
  14355. # Format example
  14356. {answerQ:"问题"}
  14357. `
  14358. }else if(type == 45){
  14359. messages = `NOTICE
  14360. Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
  14361. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  14362. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  14363. Instruction: Based on the context, follow "Format example", write content.
  14364. # Context
  14365. ## 任务
  14366. 根据本任务的#教案,在考虑到面向学生年级(<面向年级>)以及相对应的学科(<课程学科>)的基础上生成5道单选题。题目的意义是测试学生对本教学任务知识点的掌握情况,你的题目应当是有意义的。
  14367. ## 限制
  14368. - 生成题目禁止重复。
  14369. - 生成题目应该充分考虑学生年级<面向年级>和面向学科<课程学科>,你的题目应有教学意义。
  14370. - 请严格按照以下格式要求输出内容,题目必须是单选题。
  14371. - 你仅仅需要输出题目,其他什么内容都不需要输出。禁止输出题目以外的任何内容。
  14372. ## 课程简介
  14373. 课程名字:${_this.courseName}
  14374. ${_this.courseText ? '课程简要描述:' + _this.courseText : ''}
  14375. ${sub.length ? '学科:' + sub.join(",") : ''}
  14376. ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
  14377. ## 教案
  14378. ${_this.unitJson[0].chapterInfo[0].taskJson[task].taskDetail3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}
  14379. # Format example
  14380. [{"teststitle":"题目内容","testItem":4,"checkList":["选项1","选项2","选项3","选项4"],"timuList":[],"answer":0,"type":"1"},{"teststitle":"题目内容","testItem":"选项数量(数字)","checkList":["选项1","选项2","选项3","选项4"],"timuList":[],"answer":"答案(数字)","type":"1"}]
  14381. `
  14382. }
  14383. let parm = {
  14384. assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
  14385. message: [{"type":"text", "text":messages}],
  14386. session_name: uuidv4(),
  14387. userId: this.userid,
  14388. file_ids: fileid.length ? [...fileid] : '',
  14389. }
  14390. this.ajax
  14391. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", parm)
  14392. .then((response) => {
  14393. console.log(response);
  14394. let data = response.data.FunctionResponse
  14395. if (data.message) {
  14396. console.log(data.message);
  14397. try {
  14398. // let tArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  14399. let tArray = {}
  14400. try {
  14401. tArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  14402. } catch (error) {
  14403. console.log("error_________________" + error);
  14404. try {
  14405. let regex = new RegExp("(?<=```json)([\\s\\S]*?)(?=```)");
  14406. let match = data.message.match(regex);
  14407. tArray = JSON.parse(match[0]);
  14408. // var message = data.message;
  14409. // var jsonStart = message.indexOf("```json") + 7; // `+ 7` 是为了跳过 ```json
  14410. // var jsonEnd = message.indexOf("```", jsonStart);
  14411. // var jsonString = message.substring(jsonStart, jsonEnd).trim();
  14412. // tArray = JSON.parse(jsonString);
  14413. } catch (error) {
  14414. console.log("error_________________" + error);
  14415. }
  14416. }
  14417. resolve(tArray)
  14418. } catch (error) {
  14419. if(type == 15){
  14420. resolve({answerQ: "题目"})
  14421. }else if(type == 45){
  14422. resolve([{"teststitle":"题目1","testItem":4,"checkList":["选项1","选项2","选项3","选项4"],"timuList":[],"answer":0,"type":"1"}])
  14423. }
  14424. }
  14425. }else if(type == 15){
  14426. resolve({answerQ: "题目"})
  14427. }else if(type == 45){
  14428. resolve([{"teststitle":"题目1","testItem":4,"checkList":["选项1","选项2","选项3","选项4"],"timuList":[],"answer":0,"type":"1"}])
  14429. }
  14430. })
  14431. .catch((error) => {
  14432. if(type == 15){
  14433. resolve({answerQ: "题目"})
  14434. }else if(type == 45){
  14435. resolve([{"teststitle":"题目1","testItem":4,"checkList":["选项1","选项2","选项3","选项4"],"timuList":[],"answer":0,"type":"1"}])
  14436. }
  14437. console.log(error);
  14438. });
  14439. });
  14440. },
  14441. async aiGet4(messages, callback, clickType) {
  14442. let _this = this
  14443. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14444. if (_this.infoData.length) {
  14445. for (var i = 0; i < _this.infoData.length; i++) {
  14446. if(_this.infoData[i].fileid){
  14447. fileid.push(_this.infoData[i].fileid)
  14448. }else {
  14449. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14450. if(_fileid){
  14451. _this.infoData[i].fileid = _fileid
  14452. _this.$forceUpdate();
  14453. fileid.push(_fileid)
  14454. }
  14455. }
  14456. }
  14457. }
  14458. // let params = JSON.stringify({
  14459. // // "model": "Chat",
  14460. // model: 'gpt-3.5-turbo',
  14461. // temperature: 0,
  14462. // max_tokens: 4096,
  14463. // top_p: 1,
  14464. // frequency_penalty: 0,
  14465. // presence_penalty: 0,
  14466. // messages: [{
  14467. // content: messages,
  14468. // role: 'user'
  14469. // }],
  14470. // stream: false,
  14471. // uid: this.userid,
  14472. // mind_map_question: "",
  14473. // })
  14474. // // let params = JSON.stringify({
  14475. // // message: {
  14476. // // anthropic_version: "bedrock-2023-05-31",
  14477. // // max_tokens: 4096,
  14478. // // temperature: 0,
  14479. // // top_p: 1,
  14480. // // messages: [{
  14481. // // content: messages,
  14482. // // role: 'user'
  14483. // // }], //
  14484. // // },
  14485. // // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  14486. // // });
  14487. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  14488. // // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  14489. // console.log(response);
  14490. // let data = response.data.FunctionResponse
  14491. // if (data.choices && data.choices.length && data.choices[0].message) {
  14492. // console.log(data.choices[0].message.content);
  14493. // let dArray = JSON.parse(data.choices[0].message.content)
  14494. // _this.teacherText = JSON.parse(data.choices[0].message.content)
  14495. // if (_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5") {
  14496. // _this.unitJson[0].chapterInfo[0].taskJson = []
  14497. // for (var i = 0; i < dArray.length; i++) {
  14498. // let _task = dArray[i]
  14499. // _this.unitJson[0].chapterInfo[0].taskJson.push({
  14500. // task: _task.task,
  14501. // taskDetail: "",
  14502. // taskDetail2: "",
  14503. // taskDetail3: _task.detail,
  14504. // chapterData: [],
  14505. // toolText: "",
  14506. // toolChoose: [
  14507. // {
  14508. // tool: [],
  14509. // toolDetail: "",
  14510. // toolType: 0,
  14511. // askCount: 1,
  14512. // askTitle: "",
  14513. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14514. // },
  14515. // ],
  14516. // isShowTools: false,
  14517. // askCount: 1,
  14518. // isFold: 2,
  14519. // askTitle: "",
  14520. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14521. // checkJson: [{ checkCount: [], checkPerent: [] }],
  14522. // homeworkList: [],
  14523. // })
  14524. // }
  14525. // _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = _this.infoData
  14526. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14527. // _this.$forceUpdate();
  14528. // } else {
  14529. // for (var i = 0; i < dArray.length; i++) {
  14530. // let _task = dArray[i]
  14531. // if(_this.unitJson[0].chapterInfo[0].taskJson[i]){
  14532. // _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
  14533. // }else {
  14534. // _this.unitJson[0].chapterInfo[0].taskJson[i] = {
  14535. // task: _task.task,
  14536. // taskDetail: "",
  14537. // taskDetail2: "",
  14538. // taskDetail3: _task.detail,
  14539. // chapterData: [],
  14540. // toolText: "",
  14541. // toolChoose: [
  14542. // {
  14543. // tool: [],
  14544. // toolDetail: "",
  14545. // toolType: 0,
  14546. // askCount: 1,
  14547. // askTitle: "",
  14548. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14549. // },
  14550. // ],
  14551. // isShowTools: false,
  14552. // askCount: 1,
  14553. // isFold: 2,
  14554. // askTitle: "",
  14555. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14556. // checkJson: [{ checkCount: [], checkPerent: [] }],
  14557. // homeworkList: [],
  14558. // }
  14559. // }
  14560. // }
  14561. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14562. // _this.$forceUpdate();
  14563. // }
  14564. // }
  14565. // // if (data.result) {
  14566. // // console.log(data.result);
  14567. // // let dArray = JSON.parse(data.result)
  14568. // // _this.teacherText = JSON.parse(data.result)
  14569. // // for (var i = 0; i < dArray.length; i++) {
  14570. // // let _task = dArray[i]
  14571. // // _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
  14572. // // }
  14573. // // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14574. // // _this.$forceUpdate();
  14575. // // }
  14576. // callback ? callback() : ''
  14577. // _this.loading = false
  14578. // }).catch(function (error) {
  14579. // _this.loading = false
  14580. // console.log(error);
  14581. // });
  14582. let parm = {
  14583. assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
  14584. message: [{"type":"text", "text":messages}],
  14585. session_name: uuidv4(),
  14586. userId: this.userid,
  14587. file_ids: fileid.length ? [...fileid] : '',
  14588. }
  14589. this.ajax
  14590. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", parm)
  14591. .then((response) => {
  14592. console.log(response);
  14593. let data = response.data.FunctionResponse
  14594. if (data.message) {
  14595. console.log(data.message);
  14596. // let dArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  14597. let dArray = []
  14598. try {
  14599. dArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  14600. } catch (error) {
  14601. console.log("error_________________" + error);
  14602. try {
  14603. let regex = new RegExp("(?<=```json)([\\s\\S]*?)(?=```)");
  14604. let match = data.message.match(regex);
  14605. dArray = JSON.parse(match[0]);
  14606. // var message = data.message;
  14607. // var jsonStart = message.indexOf("```json") + 7; // `+ 7` 是为了跳过 ```json
  14608. // var jsonEnd = message.indexOf("```", jsonStart);
  14609. // var jsonString = message.substring(jsonStart, jsonEnd).trim();
  14610. // dArray = JSON.parse(jsonString);
  14611. } catch (error) {
  14612. console.log("error_________________" + error);
  14613. }
  14614. }
  14615. _this.teacherText = JSON.parse(JSON.stringify(dArray))
  14616. if (_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5") {
  14617. _this.unitJson[0].chapterInfo[0].taskJson = []
  14618. for (var i = 0; i < dArray.length; i++) {
  14619. let _task = dArray[i]
  14620. _this.unitJson[0].chapterInfo[0].taskJson.push({
  14621. task: _task.task,
  14622. taskDetail: "",
  14623. taskDetail2: "",
  14624. taskDetail3: _task.detail,
  14625. chapterData: [],
  14626. toolText: "",
  14627. toolChoose: [
  14628. {
  14629. tool: [],
  14630. toolDetail: "",
  14631. toolType: 0,
  14632. askCount: 1,
  14633. askTitle: "",
  14634. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14635. },
  14636. ],
  14637. isShowTools: false,
  14638. askCount: 1,
  14639. isFold: 2,
  14640. askTitle: "",
  14641. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14642. checkJson: [{ checkCount: [], checkPerent: [] }],
  14643. homeworkList: [],
  14644. })
  14645. }
  14646. _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = JSON.parse(JSON.stringify(_this.infoData))
  14647. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14648. _this.$forceUpdate();
  14649. } else {
  14650. for (var i = 0; i < dArray.length; i++) {
  14651. let _task = dArray[i]
  14652. if(_this.unitJson[0].chapterInfo[0].taskJson[i]){
  14653. _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
  14654. }else {
  14655. _this.unitJson[0].chapterInfo[0].taskJson[i] = {
  14656. task: _task.task,
  14657. taskDetail: "",
  14658. taskDetail2: "",
  14659. taskDetail3: _task.detail,
  14660. chapterData: [],
  14661. toolText: "",
  14662. toolChoose: [
  14663. {
  14664. tool: [],
  14665. toolDetail: "",
  14666. toolType: 0,
  14667. askCount: 1,
  14668. askTitle: "",
  14669. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14670. },
  14671. ],
  14672. isShowTools: false,
  14673. askCount: 1,
  14674. isFold: 2,
  14675. askTitle: "",
  14676. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14677. checkJson: [{ checkCount: [], checkPerent: [] }],
  14678. homeworkList: [],
  14679. }
  14680. }
  14681. }
  14682. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14683. _this.$forceUpdate();
  14684. }
  14685. }
  14686. callback ? callback() : ''
  14687. })
  14688. .catch((error) => {
  14689. _this.loading = false
  14690. console.log(error);
  14691. });
  14692. },
  14693. async aiDetail(msg, index) {
  14694. let _this = this
  14695. const _tindex = 'task-' + index
  14696. const _tindex2 = index
  14697. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14698. if (_this.infoData.length) {
  14699. for (var i = 0; i < _this.infoData.length; i++) {
  14700. if(_this.infoData[i].fileid){
  14701. fileid.push(_this.infoData[i].fileid)
  14702. }else {
  14703. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14704. if(_fileid){
  14705. _this.infoData[i].fileid = _fileid
  14706. _this.$forceUpdate();
  14707. fileid.push(_fileid)
  14708. }
  14709. }
  14710. }
  14711. }
  14712. let url = []
  14713. if (this.infoData.length) {
  14714. for (var i = 0; i < this.infoData.length; i++) {
  14715. url.push(this.infoData[i].url)
  14716. }
  14717. }
  14718. let messages = `
  14719. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  14720. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  14721. --------
  14722. ## 要求
  14723. ${msg} 及#教学任务描述 以文本格式输出任务设计和评价标准
  14724. --------
  14725. ## 教学任务描述
  14726. 任务名称:${_this.aiCallBack.task}
  14727. 大纲描述:${_this.aiCallBack.taskDetail2}`
  14728. // -------- #补充参考资料和
  14729. // ## 补充参考资料
  14730. // - 补充资料:${url.join(",")}
  14731. // - 补充描述:${_this.courseText2}
  14732. _this.taskDetailLoading.push(_tindex)
  14733. _this.ttaskDetailLoading.push(_tindex)
  14734. let _uuid = uuidv4();
  14735. // let params = JSON.stringify({
  14736. // // "model": "Chat",
  14737. // model: 'gpt-3.5-turbo',
  14738. // temperature: 0,
  14739. // max_tokens: 4096,
  14740. // top_p: 1,
  14741. // frequency_penalty: 0,
  14742. // presence_penalty: 0,
  14743. // messages: [{
  14744. // content: messages,
  14745. // role: 'user'
  14746. // }],
  14747. // uid: _uuid,
  14748. // mind_map_question: "",
  14749. // })
  14750. let params = {
  14751. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  14752. message: [{"type":"text", "text":messages}],
  14753. session_name: _uuid,
  14754. userId: _this.userid,
  14755. uid: _uuid,
  14756. file_ids: fileid.length ? [...fileid] : '',
  14757. }
  14758. // let params = JSON.stringify({
  14759. // message: {
  14760. // anthropic_version: "bedrock-2023-05-31",
  14761. // max_tokens: 4096,
  14762. // temperature: 0,
  14763. // top_p: 1,
  14764. // messages: [{
  14765. // "role": "user",
  14766. // "content": messages
  14767. // }] ,
  14768. // },
  14769. // uid: _uuid,
  14770. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  14771. // });
  14772. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  14773. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  14774. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  14775. console.log(response);
  14776. // let data = response.data.FunctionResponse
  14777. // if (data.choices && data.choices.length && data.choices[0].message) {
  14778. // console.log(data.choices[0].message.content);
  14779. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = data.choices[0].message.content
  14780. // _this.$forceUpdate()
  14781. // }
  14782. if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
  14783. } else {
  14784. this.$message.warning(response.data.FunctionResponse.result);
  14785. }
  14786. // _this.taskDetailLoading.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14787. }).catch(function (error) {
  14788. _this.taskDetailLoading.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14789. _this.ttaskDetailLoading.splice(_this.ttaskDetailLoading.indexOf(_tindex), 1)
  14790. console.log(error);
  14791. });
  14792. await _this.aiDetailgetAiContent(_uuid, _tindex, _tindex2)
  14793. },
  14794. aiDetailgetAiContent(_uid, loading, _tindex2) {
  14795. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14796. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14797. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14798. let _allText = "";
  14799. let _mdText = "";
  14800. _source.onmessage = _e => {
  14801. let _eData = JSON.parse(_e.data).content;
  14802. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  14803. //对话已经完成
  14804. _mdText = _mdText.replace("_", "");
  14805. _source.close();
  14806. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = _mdText;
  14807. this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
  14808. this.ttaskDetailLoading.splice(this.ttaskDetailLoading.indexOf(loading), 1)
  14809. return;
  14810. } else {
  14811. //对话还在继续
  14812. let _text = "";
  14813. _text = _eData.replaceAll("'", "");
  14814. if (_allText == "") {
  14815. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  14816. } else {
  14817. _allText += _text;
  14818. }
  14819. _mdText = _allText + "_";
  14820. _mdText = _mdText.replace(/\\n/g, "\n");
  14821. _mdText = _mdText.replace(/\\/g, "");
  14822. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  14823. //转化返回的回复流数据
  14824. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = _mdText;
  14825. this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
  14826. // 处理流数据
  14827. }
  14828. this.$forceUpdate();
  14829. };
  14830. },
  14831. async aiDetail2(msg, index) {
  14832. let _this = this
  14833. const _tindex = 'task-' + index
  14834. const _tindex2 = index
  14835. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14836. if (_this.infoData.length) {
  14837. for (var i = 0; i < _this.infoData.length; i++) {
  14838. if(_this.infoData[i].fileid){
  14839. fileid.push(_this.infoData[i].fileid)
  14840. }else {
  14841. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14842. if(_fileid){
  14843. _this.infoData[i].fileid = _fileid
  14844. _this.$forceUpdate();
  14845. fileid.push(_fileid)
  14846. }
  14847. }
  14848. }
  14849. }
  14850. let messages = `
  14851. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  14852. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  14853. --------
  14854. ## 要求
  14855. ${msg}
  14856. --------
  14857. ## 优化信息
  14858. 任务名字: ${_this.aiCallBack.task}
  14859. 任务描述: ${_this.aiCallBack.taskDetail}
  14860. # 格式与要求
  14861. - 任务名:
  14862. - 任务描述:该描述是教师给与学生的指示(用于指导学生如何进行教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。`
  14863. _this.taskDetailLoading2.push(_tindex)
  14864. _this.ttaskDetailLoading2.push(_tindex)
  14865. let _uuid = uuidv4();
  14866. // let params = JSON.stringify({
  14867. // // "model": "Chat",
  14868. // model: 'gpt-3.5-turbo',
  14869. // temperature: 0,
  14870. // max_tokens: 4096,
  14871. // top_p: 1,
  14872. // frequency_penalty: 0,
  14873. // presence_penalty: 0,
  14874. // messages: [{
  14875. // content: messages,
  14876. // role: 'user'
  14877. // }],
  14878. // uid: _uuid,
  14879. // mind_map_question: "",
  14880. // })
  14881. let params = {
  14882. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  14883. message: [{"type":"text", "text":messages}],
  14884. session_name: _uuid,
  14885. userId: _this.userid,
  14886. uid: _uuid,
  14887. file_ids: fileid.length ? [...fileid] : '',
  14888. }
  14889. // let params = JSON.stringify({
  14890. // message: {
  14891. // anthropic_version: "bedrock-2023-05-31",
  14892. // max_tokens: 4096,
  14893. // temperature: 0,
  14894. // top_p: 1,
  14895. // messages: [{
  14896. // "role": "user",
  14897. // "content": messages
  14898. // }] ,
  14899. // },
  14900. // uid: _uuid,
  14901. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  14902. // });
  14903. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  14904. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  14905. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  14906. console.log(response);
  14907. // let data = response.data.FunctionResponse
  14908. // if (data.choices && data.choices.length && data.choices[0].message) {
  14909. // console.log(data.choices[0].message.content);
  14910. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  14911. // _this.$forceUpdate()
  14912. // }
  14913. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14914. if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
  14915. } else {
  14916. this.$message.warning(response.data.FunctionResponse.result);
  14917. }
  14918. }).catch(function (error) {
  14919. _this.taskDetailLoading2.splice(_this.taskDetailLoading2.indexOf(_tindex), 1)
  14920. _this.ttaskDetailLoading2.splice(_this.ttaskDetailLoading2.indexOf(_tindex), 1)
  14921. console.log(error);
  14922. });
  14923. await _this.aiDetail2getAiContent(_uuid, _tindex, _tindex2)
  14924. },
  14925. aiDetail2getAiContent(_uid, loading, _tindex2) {
  14926. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14927. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14928. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14929. let _allText = "";
  14930. let _mdText = "";
  14931. _source.onmessage = _e => {
  14932. let _eData = JSON.parse(_e.data).content;
  14933. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  14934. //对话已经完成
  14935. _mdText = _mdText.replace("_", "");
  14936. _source.close();
  14937. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = _mdText;
  14938. this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
  14939. this.ttaskDetailLoading2.splice(this.ttaskDetailLoading2.indexOf(loading), 1)
  14940. return;
  14941. } else {
  14942. //对话还在继续
  14943. let _text = "";
  14944. _text = _eData.replaceAll("'", "");
  14945. if (_allText == "") {
  14946. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  14947. } else {
  14948. _allText += _text;
  14949. }
  14950. _mdText = _allText + "_";
  14951. _mdText = _mdText.replace(/\\n/g, "\n");
  14952. _mdText = _mdText.replace(/\\/g, "");
  14953. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  14954. //转化返回的回复流数据
  14955. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = _mdText;
  14956. this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
  14957. // 处理流数据
  14958. }
  14959. this.$forceUpdate();
  14960. };
  14961. },
  14962. async aiDetail3(msg, index, tindex) {
  14963. let _this = this
  14964. const _tindex = 'task-' + index + tindex
  14965. const _tindex2 = index
  14966. const _tindex3 = tindex
  14967. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14968. if (_this.infoData.length) {
  14969. for (var i = 0; i < _this.infoData.length; i++) {
  14970. if(_this.infoData[i].fileid){
  14971. fileid.push(_this.infoData[i].fileid)
  14972. }else {
  14973. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14974. if(_fileid){
  14975. _this.infoData[i].fileid = _fileid
  14976. _this.$forceUpdate();
  14977. fileid.push(_fileid)
  14978. }
  14979. }
  14980. }
  14981. }
  14982. // **重点考虑该任务及工具名和工具内容的情况下*
  14983. let messages = `
  14984. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  14985. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  14986. --------
  14987. ## 参考内容
  14988. 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  14989. 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
  14990. 工具名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0] ? _this.toolsData[_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0]] : '无'}
  14991. 工具内容:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail}
  14992. --------
  14993. ## 要求
  14994. ${msg} 输出格式和内容要求参考#格式与要求
  14995. # 格式与要求
  14996. -工具指引:以友好,明确的口吻告诉学生该如何使用该工具`
  14997. _this.taskDetailLoading3.push(_tindex)
  14998. _this.ttaskDetailLoading3.push(_tindex)
  14999. let _uuid = uuidv4();
  15000. // let params = JSON.stringify({
  15001. // // "model": "Chat",
  15002. // model: 'gpt-3.5-turbo',
  15003. // temperature: 0,
  15004. // max_tokens: 4096,
  15005. // top_p: 1,
  15006. // frequency_penalty: 0,
  15007. // presence_penalty: 0,
  15008. // messages: [{
  15009. // content: messages,
  15010. // role: 'user'
  15011. // }],
  15012. // uid: _uuid,
  15013. // mind_map_question: "",
  15014. // })
  15015. let params = {
  15016. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  15017. message: [{"type":"text", "text":messages}],
  15018. session_name: _uuid,
  15019. userId: _this.userid,
  15020. uid: _uuid,
  15021. file_ids: fileid.length ? [...fileid] : '',
  15022. }
  15023. // let params = JSON.stringify({
  15024. // message: {
  15025. // anthropic_version: "bedrock-2023-05-31",
  15026. // max_tokens: 4096,
  15027. // temperature: 0,
  15028. // top_p: 1,
  15029. // messages: [{
  15030. // "role": "user",
  15031. // "content": messages
  15032. // }] ,
  15033. // },
  15034. // uid: _uuid,
  15035. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  15036. // });
  15037. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  15038. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  15039. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  15040. console.log(response);
  15041. let data = response.data.FunctionResponse
  15042. // if (data.choices && data.choices.length && data.choices[0].message) {
  15043. // console.log(data.choices[0].message.content);
  15044. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = data.choices[0].message.content
  15045. // _this.$forceUpdate()
  15046. // }
  15047. // _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
  15048. if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
  15049. } else {
  15050. this.$message.warning(response.data.FunctionResponse.result);
  15051. }
  15052. }).catch(function (error) {
  15053. _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
  15054. _this.ttaskDetailLoading3.splice(_this.ttaskDetailLoading3.indexOf(_tindex), 1)
  15055. console.log(error);
  15056. });
  15057. await _this.aiDetail3getAiContent(_uuid, _tindex, _tindex2, _tindex3)
  15058. },
  15059. aiDetail3getAiContent(_uid, loading, _tindex2, _tindex3) {
  15060. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  15061. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  15062. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  15063. let _allText = "";
  15064. let _mdText = "";
  15065. _source.onmessage = _e => {
  15066. let _eData = JSON.parse(_e.data).content;
  15067. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  15068. //对话已经完成
  15069. _mdText = _mdText.replace("_", "");
  15070. _source.close();
  15071. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = _mdText;
  15072. this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
  15073. this.ttaskDetailLoading3.splice(this.ttaskDetailLoading3.indexOf(loading), 1)
  15074. return;
  15075. } else {
  15076. //对话还在继续
  15077. let _text = "";
  15078. _text = _eData.replaceAll("'", "");
  15079. if (_allText == "") {
  15080. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  15081. } else {
  15082. _allText += _text;
  15083. }
  15084. _mdText = _allText + "_";
  15085. _mdText = _mdText.replace(/\\n/g, "\n");
  15086. _mdText = _mdText.replace(/\\/g, "");
  15087. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  15088. //转化返回的回复流数据
  15089. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = _mdText;
  15090. this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
  15091. // 处理流数据
  15092. }
  15093. this.$forceUpdate();
  15094. };
  15095. },
  15096. async aiDetail4(msg, index) {
  15097. if (!msg.length) {
  15098. this.$message.error("请添加评价后才能优化")
  15099. return
  15100. }
  15101. let _this = this
  15102. const _tindex = 'task-' + index
  15103. const _tindex2 = index
  15104. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  15105. if (_this.infoData.length) {
  15106. for (var i = 0; i < _this.infoData.length; i++) {
  15107. if(_this.infoData[i].fileid){
  15108. fileid.push(_this.infoData[i].fileid)
  15109. }else {
  15110. let _fileid = await _this.createFileid(_this.infoData[i].url)
  15111. if(_fileid){
  15112. _this.infoData[i].fileid = _fileid
  15113. _this.$forceUpdate();
  15114. fileid.push(_fileid)
  15115. }
  15116. }
  15117. }
  15118. }
  15119. var _text = ""
  15120. for (var i = 0; i < _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList.length; i++) {
  15121. _text += `评价维度:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].value} 维度描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].detail} `
  15122. }
  15123. // **重点考虑该任务详情**
  15124. let messages = `
  15125. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  15126. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  15127. #Context
  15128. ## 参考内容
  15129. 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  15130. 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
  15131. 评价设计:${_text}
  15132. ## 要求
  15133. ${msg} 优化评价维度和维度描述,输出格式和内容要求参考# 格式与要求
  15134. # 格式与要求
  15135. -评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  15136. # Format example
  15137. [{"value":"评价维度1","detail":"维度描述1","score":5},{"value":"评价维度2","detail":"维度描述2","score":5},{"value":"评价维度3","detail":"维度描述3","score":5}]`
  15138. _this.taskDetailLoading4.push(_tindex)
  15139. // let params = JSON.stringify({
  15140. // // "model": "Chat",
  15141. // model: 'gpt-3.5-turbo',
  15142. // temperature: 0,
  15143. // max_tokens: 4096,
  15144. // top_p: 1,
  15145. // frequency_penalty: 0,
  15146. // presence_penalty: 0,
  15147. // messages: [{
  15148. // content: messages,
  15149. // role: 'user'
  15150. // }],
  15151. // stream: false,
  15152. // uid: this.userid,
  15153. // mind_map_question: "",
  15154. // })
  15155. let params = {
  15156. assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
  15157. message: [{"type":"text", "text":messages}],
  15158. session_name: uuidv4(),
  15159. userId: _this.userid,
  15160. file_ids: fileid.length ? [...fileid] : '',
  15161. }
  15162. // let params = JSON.stringify({
  15163. // message: {
  15164. // anthropic_version: "bedrock-2023-05-31",
  15165. // max_tokens: 4096,
  15166. // temperature: 0,
  15167. // top_p: 1,
  15168. // messages: [{
  15169. // content: messages,
  15170. // role: 'user'
  15171. // }], //
  15172. // },
  15173. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  15174. // });
  15175. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  15176. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat', params).then(function (response) {
  15177. // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  15178. console.log(response);
  15179. let data = response.data.FunctionResponse
  15180. // if (data.choices && data.choices.length && data.choices[0].message) {
  15181. // console.log(data.choices[0].message.content);
  15182. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(data.choices[0].message.content)
  15183. // _this.$forceUpdate()
  15184. // }
  15185. if (data.message) {
  15186. console.log(data.message);
  15187. try {
  15188. _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(data.message.replaceAll("```json", "").replaceAll("```", ""))
  15189. } catch (e) {
  15190. console.log("error_________________" + e);
  15191. // _this.$message.error(data.message)
  15192. try {
  15193. let regex = new RegExp("(?<=```json)([\\s\\S]*?)(?=```)");
  15194. let match = data.message.match(regex);
  15195. _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(match[0]);
  15196. // var message = data.message;
  15197. // var jsonStart = message.indexOf("```json") + 7; // `+ 7` 是为了跳过 ```json
  15198. // var jsonEnd = message.indexOf("```", jsonStart);
  15199. // if (jsonStart !== -1 && jsonEnd !== -1) {
  15200. // var jsonString = message
  15201. // .substring(jsonStart, jsonEnd)
  15202. // .trim();
  15203. // var _data2 = JSON.parse(jsonString);
  15204. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = _data2
  15205. // }
  15206. } catch (error) {
  15207. }
  15208. }
  15209. _this.$forceUpdate()
  15210. }
  15211. // if (data.result) {
  15212. // console.log(data.result);
  15213. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(data.result)
  15214. // _this.$forceUpdate()
  15215. // }
  15216. _this.taskDetailLoading4.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  15217. }).catch(function (error) {
  15218. _this.taskDetailLoading4.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  15219. console.log(error);
  15220. });
  15221. },
  15222. async aiDetail5(msg, index) {
  15223. let _this = this
  15224. const _tindex = 'task-' + index
  15225. const _tindex2 = index
  15226. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  15227. if (_this.infoData.length) {
  15228. for (var i = 0; i < _this.infoData.length; i++) {
  15229. if(_this.infoData[i].fileid){
  15230. fileid.push(_this.infoData[i].fileid)
  15231. }else {
  15232. let _fileid = await _this.createFileid(_this.infoData[i].url)
  15233. if(_fileid){
  15234. _this.infoData[i].fileid = _fileid
  15235. _this.$forceUpdate();
  15236. fileid.push(_fileid)
  15237. }
  15238. }
  15239. }
  15240. }
  15241. let url = []
  15242. if (this.infoData.length) {
  15243. for (var i = 0; i < this.infoData.length; i++) {
  15244. url.push(this.infoData[i].url)
  15245. }
  15246. }
  15247. var _text = ""
  15248. var _text2 = ""
  15249. for (var i = 0; i < _this.unitJson[0].chapterInfo[0].taskJson.length; i++) {
  15250. _text += `任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[i].task} 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail2.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')} \n`
  15251. _text2 += `任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[i].task} 教案描述:${_this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')} \n`
  15252. }
  15253. let messages = `
  15254. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  15255. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  15256. --------
  15257. ## 要求
  15258. ${msg}
  15259. -------
  15260. ## 本教案描述
  15261. ${_this.aiCallBack}
  15262. -------
  15263. ## 课程大纲
  15264. ${_text}
  15265. -------
  15266. ## 其他教学任务教案
  15267. ${_text2}`
  15268. // ## 补充参考资料
  15269. // - 补充资料:${url.join(",")}
  15270. // - 补充描述:${this.courseText2}
  15271. _this.taskDetailLoading5.push(_tindex)
  15272. _this.ttaskDetailLoading5.push(_tindex)
  15273. let _uuid = uuidv4();
  15274. // let params = JSON.stringify({
  15275. // // "model": "Chat",
  15276. // model: 'gpt-3.5-turbo',
  15277. // temperature: 0,
  15278. // max_tokens: 4096,
  15279. // top_p: 1,
  15280. // frequency_penalty: 0,
  15281. // presence_penalty: 0,
  15282. // messages: [{
  15283. // content: messages,
  15284. // role: 'user'
  15285. // }],
  15286. // uid: _uuid,
  15287. // mind_map_question: "",
  15288. // })
  15289. let params = {
  15290. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  15291. message: [{"type":"text", "text":messages}],
  15292. session_name: _uuid,
  15293. userId: _this.userid,
  15294. uid: _uuid,
  15295. file_ids: fileid.length ? [...fileid] : '',
  15296. }
  15297. // let params = JSON.stringify({
  15298. // message: {
  15299. // anthropic_version: "bedrock-2023-05-31",
  15300. // max_tokens: 4096,
  15301. // temperature: 0,
  15302. // top_p: 1,
  15303. // messages: [{
  15304. // "role": "user",
  15305. // "content": messages
  15306. // }] ,
  15307. // },
  15308. // uid: _uuid,
  15309. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  15310. // });
  15311. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  15312. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  15313. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  15314. console.log(response);
  15315. // let data = response.data.FunctionResponse
  15316. // if (data.choices && data.choices.length && data.choices[0].message) {
  15317. // console.log(data.choices[0].message.content);
  15318. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  15319. // _this.$forceUpdate()
  15320. // }
  15321. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  15322. if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
  15323. } else {
  15324. this.$message.warning(response.data.FunctionResponse.result);
  15325. }
  15326. }).catch(function (error) {
  15327. _this.taskDetailLoading5.splice(_this.taskDetailLoading5.indexOf(_tindex), 1)
  15328. _this.ttaskDetailLoading5.splice(_this.ttaskDetailLoading5.indexOf(_tindex), 1)
  15329. console.log(error);
  15330. });
  15331. await _this.aiDetail5getAiContent(_uuid, _tindex, _tindex2)
  15332. },
  15333. aiDetail5getAiContent(_uid, loading, _tindex2) {
  15334. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  15335. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  15336. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  15337. let _allText = "";
  15338. let _mdText = "";
  15339. _source.onmessage = _e => {
  15340. let _eData = JSON.parse(_e.data).content;
  15341. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  15342. //对话已经完成
  15343. _mdText = _mdText.replace("_", "");
  15344. _source.close();
  15345. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  15346. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  15347. this.ttaskDetailLoading5.splice(this.ttaskDetailLoading5.indexOf(loading), 1)
  15348. return;
  15349. } else {
  15350. //对话还在继续
  15351. let _text = "";
  15352. _text = _eData.replaceAll("'", "");
  15353. if (_allText == "") {
  15354. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  15355. } else {
  15356. _allText += _text;
  15357. }
  15358. _mdText = _allText + "_";
  15359. _mdText = _mdText.replace(/\\n/g, "\n");
  15360. _mdText = _mdText.replace(/\\/g, "");
  15361. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  15362. //转化返回的回复流数据
  15363. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  15364. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  15365. // 处理流数据
  15366. }
  15367. this.$forceUpdate();
  15368. };
  15369. },
  15370. async aiDetail52(msg, index) {
  15371. let _this = this
  15372. const _tindex = 'task-' + index
  15373. const _tindex2 = index
  15374. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  15375. if (_this.infoData.length) {
  15376. for (var i = 0; i < _this.infoData.length; i++) {
  15377. if(_this.infoData[i].fileid){
  15378. fileid.push(_this.infoData[i].fileid)
  15379. }else {
  15380. let _fileid = await _this.createFileid(_this.infoData[i].url)
  15381. if(_fileid){
  15382. _this.infoData[i].fileid = _fileid
  15383. _this.$forceUpdate();
  15384. fileid.push(_fileid)
  15385. }
  15386. }
  15387. }
  15388. }
  15389. let url = []
  15390. if (this.infoData.length) {
  15391. for (var i = 0; i < this.infoData.length; i++) {
  15392. url.push(this.infoData[i].url)
  15393. }
  15394. }
  15395. let messages = `
  15396. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  15397. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  15398. --------
  15399. ## 要求
  15400. ${msg}
  15401. -------
  15402. ## 补充描述
  15403. 课程简要描述:${_this.courseText}
  15404. 任务名:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  15405. ${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 ? '任务描述:' + _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}`
  15406. // ## 补充参考资料
  15407. // - 补充资料:${url.join(",")}
  15408. // - 补充描述:${this.courseText2}
  15409. _this.taskDetailLoading5.push(_tindex)
  15410. _this.ttaskDetailLoading5.push(_tindex)
  15411. let _uuid = uuidv4();
  15412. // let params = JSON.stringify({
  15413. // // "model": "Chat",
  15414. // model: 'gpt-3.5-turbo',
  15415. // temperature: 0,
  15416. // max_tokens: 4096,
  15417. // top_p: 1,
  15418. // frequency_penalty: 0,
  15419. // presence_penalty: 0,
  15420. // messages: [{
  15421. // content: messages,
  15422. // role: 'user'
  15423. // }],
  15424. // uid: _uuid,
  15425. // mind_map_question: "",
  15426. // })
  15427. let params = {
  15428. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  15429. message: [{"type":"text", "text":messages}],
  15430. session_name: _uuid,
  15431. userId: _this.userid,
  15432. uid: _uuid,
  15433. file_ids: fileid.length ? [...fileid] : '',
  15434. }
  15435. // let params = JSON.stringify({
  15436. // message: {
  15437. // anthropic_version: "bedrock-2023-05-31",
  15438. // max_tokens: 4096,
  15439. // temperature: 0,
  15440. // top_p: 1,
  15441. // messages: [{
  15442. // "role": "user",
  15443. // "content": messages
  15444. // }] ,
  15445. // },
  15446. // uid: _uuid,
  15447. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  15448. // });
  15449. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  15450. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  15451. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  15452. console.log(response);
  15453. // let data = response.data.FunctionResponse
  15454. // if (data.choices && data.choices.length && data.choices[0].message) {
  15455. // console.log(data.choices[0].message.content);
  15456. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  15457. // _this.$forceUpdate()
  15458. // }
  15459. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  15460. if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
  15461. } else {
  15462. this.$message.warning(response.data.FunctionResponse.result);
  15463. }
  15464. }).catch(function (error) {
  15465. _this.taskDetailLoading5.splice(_this.taskDetailLoading5.indexOf(_tindex), 1)
  15466. _this.ttaskDetailLoading5.splice(_this.ttaskDetailLoading5.indexOf(_tindex), 1)
  15467. console.log(error);
  15468. });
  15469. await _this.aiDetail52getAiContent(_uuid, _tindex, _tindex2)
  15470. },
  15471. aiDetail52getAiContent(_uid, loading, _tindex2) {
  15472. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  15473. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  15474. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  15475. let _allText = "";
  15476. let _mdText = "";
  15477. _source.onmessage = _e => {
  15478. let _eData = JSON.parse(_e.data).content;
  15479. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  15480. //对话已经完成
  15481. _mdText = _mdText.replace("_", "");
  15482. _source.close();
  15483. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  15484. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  15485. this.ttaskDetailLoading5.splice(this.ttaskDetailLoading5.indexOf(loading), 1)
  15486. return;
  15487. } else {
  15488. //对话还在继续
  15489. let _text = "";
  15490. _text = _eData.replaceAll("'", "");
  15491. if (_allText == "") {
  15492. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  15493. } else {
  15494. _allText += _text;
  15495. }
  15496. _mdText = _allText + "_";
  15497. _mdText = _mdText.replace(/\\n/g, "\n");
  15498. _mdText = _mdText.replace(/\\/g, "");
  15499. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  15500. //转化返回的回复流数据
  15501. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  15502. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  15503. // 处理流数据
  15504. }
  15505. this.$forceUpdate();
  15506. };
  15507. },
  15508. async aiCpote(msg, callback) {
  15509. let _this = this
  15510. let _index = _this.aitype.replace("aiC","c")
  15511. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  15512. if (_this.infoData.length) {
  15513. for (var i = 0; i < _this.infoData.length; i++) {
  15514. if(_this.infoData[i].fileid){
  15515. fileid.push(_this.infoData[i].fileid)
  15516. }else {
  15517. let _fileid = await _this.createFileid(_this.infoData[i].url)
  15518. if(_fileid){
  15519. _this.infoData[i].fileid = _fileid
  15520. _this.$forceUpdate();
  15521. fileid.push(_fileid)
  15522. }
  15523. }
  15524. }
  15525. }
  15526. let sub = []
  15527. if (this.courseTypeId.length) {
  15528. for (var i = 0; i < this.courseTypeId.length; i++) {
  15529. let _sid = this.courseTypeId[i]
  15530. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  15531. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  15532. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  15533. }
  15534. }
  15535. }
  15536. }
  15537. let mclass = []
  15538. if (this.courseTypeId.length) {
  15539. for (var i = 0; i < this.courseTypeId.length; i++) {
  15540. let _sid = this.courseTypeId[i]
  15541. for (var j = 0; j < this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'].length; j++) {
  15542. if (_sid == this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].id) {
  15543. mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
  15544. }
  15545. }
  15546. }
  15547. }
  15548. // ${this.getListClassC(this.checkboxList2) ? '班级:' + this.getListClassC(this.checkboxList2) : "无"}
  15549. // ${this.cpote[_index] ? '## 优化内容\n'+this.cpote[_index] : ''}
  15550. let messages = `
  15551. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  15552. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  15553. ${msg}
  15554. ## 课程简介
  15555. 课程名字:${this.courseName}
  15556. ${this.courseText ? '课程简要描述:' + this.courseText : ''}
  15557. ${sub.length ? '学科:' + sub.join(",") : ''}
  15558. ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
  15559. ${this.aitype == 'aiCpote2' || this.aitype == 'aiCpote3' || this.aitype == 'aiCpote4' ? '## 概念群\n'+this.cpote['cpote1'] : ''}
  15560. ${this.aitype == 'aiCpote4' ? '## 问题链\n'+this.cpote['cpote2'] : ''}
  15561. ${this.aitype == 'aiCpote4' ? '## 目标层\n'+this.cpote['cpote3'] : ''}`
  15562. _this.cpoteLoading[_index] = true
  15563. _this.cpotetLoading[_index] = true
  15564. let _uuid = uuidv4();
  15565. // let params = JSON.stringify({
  15566. // // "model": "Chat",
  15567. // model: 'gpt-3.5-turbo',
  15568. // temperature: 0,
  15569. // max_tokens: 4096,
  15570. // top_p: 1,
  15571. // frequency_penalty: 0,
  15572. // presence_penalty: 0,
  15573. // messages: [{
  15574. // content: messages,
  15575. // role: 'user'
  15576. // }],
  15577. // uid: _uuid,
  15578. // mind_map_question: "",
  15579. // })
  15580. let params = {
  15581. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  15582. message: [{"type":"text", "text":messages}],
  15583. session_name: _uuid,
  15584. userId: _this.userid,
  15585. uid: _uuid,
  15586. file_ids: fileid.length ? [...fileid] : '',
  15587. }
  15588. // let params = JSON.stringify({
  15589. // message: {
  15590. // anthropic_version: "bedrock-2023-05-31",
  15591. // max_tokens: 4096,
  15592. // temperature: 0,
  15593. // top_p: 1,
  15594. // messages: [{
  15595. // "role": "user",
  15596. // "content": messages
  15597. // }] ,
  15598. // },
  15599. // uid: _uuid,
  15600. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  15601. // });
  15602. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  15603. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  15604. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  15605. console.log(response);
  15606. // let data = response.data.FunctionResponse
  15607. // if (data.choices && data.choices.length && data.choices[0].message) {
  15608. // console.log(data.choices[0].message.content);
  15609. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  15610. // _this.$forceUpdate()
  15611. // }
  15612. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  15613. if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
  15614. } else {
  15615. this.$message.warning(response.data.FunctionResponse.result);
  15616. }
  15617. }).catch(function (error) {
  15618. _this.cpoteLoading[_index] = false
  15619. _this.cpotetLoading[_index] = false
  15620. callback ? callback() : ''
  15621. console.log(error);
  15622. });
  15623. await _this.aiCpotegetAiContent(_uuid, _index, callback)
  15624. },
  15625. aiCpotegetAiContent(_uid, loading, callback) {
  15626. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  15627. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  15628. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  15629. let _allText = "";
  15630. let _mdText = "";
  15631. _source.onmessage = _e => {
  15632. let _eData = JSON.parse(_e.data).content;
  15633. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  15634. //对话已经完成
  15635. _mdText = _mdText.replace("_", "");
  15636. _source.close();
  15637. this.cpote[loading] = _mdText;
  15638. this.cpoteLoading[loading] = false
  15639. this.cpotetLoading[loading] = false
  15640. callback ? callback() : ''
  15641. return;
  15642. } else {
  15643. //对话还在继续
  15644. let _text = "";
  15645. _text = _eData.replaceAll("'", "");
  15646. if (_allText == "") {
  15647. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  15648. } else {
  15649. _allText += _text;
  15650. }
  15651. _mdText = _allText + "_";
  15652. _mdText = _mdText.replace(/\\n/g, "\n");
  15653. _mdText = _mdText.replace(/\\/g, "");
  15654. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  15655. //转化返回的回复流数据
  15656. this.cpote[loading] = _mdText;
  15657. this.cpoteLoading[loading] = false
  15658. // 处理流数据
  15659. }
  15660. this.$forceUpdate();
  15661. };
  15662. },
  15663. createFileid(url) {
  15664. let _this = this
  15665. return new Promise((resolve, reject) => {
  15666. try {
  15667. _this.ajax
  15668. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  15669. url: url,
  15670. })
  15671. .then((res) => {
  15672. let _data = res.data.FunctionResponse;
  15673. if (_data.result && _data.result.id) {
  15674. resolve(_data.result.id)
  15675. }
  15676. }).catch(function (error) {
  15677. resolve('')
  15678. });
  15679. }catch (e){
  15680. resolve()
  15681. }
  15682. });
  15683. }
  15684. },
  15685. beforeDestroy() {
  15686. clearTimeout(this.timer);
  15687. this.timer = null;
  15688. clearInterval(this.timer2);
  15689. this.timer2 = null;
  15690. clearInterval(this.pasteTimer);
  15691. this.pasteTimer = null;
  15692. },
  15693. beforeRouteLeave(to, from, next) {
  15694. clearTimeout(this.timer);
  15695. this.timer = null;
  15696. clearInterval(this.timer2);
  15697. this.timer2 = null;
  15698. clearInterval(this.pasteTimer);
  15699. this.pasteTimer = null;
  15700. next();
  15701. },
  15702. created() {
  15703. this.getStudent();
  15704. this.getTeacher();
  15705. this.getClass();
  15706. this.selectGrage();
  15707. this.getTemplate();
  15708. this.getTipsTemplate();
  15709. // this.selectType();
  15710. this.selectEva();
  15711. if(this.istemplate == 1){
  15712. this.isOutline = true
  15713. this.isOutline2 = true
  15714. }
  15715. this.loading = false;
  15716. this.timer2 = setInterval(() => {
  15717. this.selectEva();
  15718. }, 5000);
  15719. this.pasteTimer = setInterval(() => {
  15720. this.getPaste();
  15721. }, 1000);
  15722. setTimeout(() => {
  15723. // this.selectAllType();
  15724. this.selectCourseDetail();
  15725. }, 500);
  15726. let _this = this;
  15727. window.pasteStage = function (json) {
  15728. _this.pasteStage(json);
  15729. };
  15730. window.pasteTask = function (json) {
  15731. _this.pasteTask(json);
  15732. };
  15733. },
  15734. };
  15735. </script>
  15736. <style scoped>
  15737. @media screen and (max-width: 1280px) {
  15738. .mbCss {
  15739. flex-direction: column !important;
  15740. }
  15741. .pjCss {
  15742. width: 100% !important;
  15743. }
  15744. .evaCss {
  15745. width: 100% !important;
  15746. margin-top: 10px;
  15747. }
  15748. }
  15749. .el-table>>>.even_row {
  15750. background-color: #f1f1f1 !important;
  15751. }
  15752. .dialog_diy>>>.el-dialog__header {
  15753. background: #3c3c3c !important;
  15754. padding: 15px 20px;
  15755. }
  15756. .dialog_diy>>>.el-dialog__title {
  15757. color: #fff;
  15758. }
  15759. .dialog_diy>>>.el-dialog__headerbtn {
  15760. top: 19px;
  15761. }
  15762. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  15763. color: #fff;
  15764. }
  15765. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  15766. color: #fff;
  15767. }
  15768. .dialog_diy>>>.el-dialog__body,
  15769. .dialog_diy>>>.el-dialog__footer {
  15770. background: #fafafa;
  15771. }
  15772. .dialog_diy3>>>.el-dialog__body,
  15773. .dialog_diy3>>>.el-dialog__footer {
  15774. background: #eee !important;
  15775. }
  15776. .dialog_diy3>>>.el-dialog__body {
  15777. padding: 20px 20px;
  15778. }
  15779. .dialog_diyStage>>>.el-dialog__body {
  15780. padding: 10px;
  15781. }
  15782. .source_diy>>>.el-dialog {
  15783. height: 100% !important;
  15784. margin: 0 auto !important;
  15785. }
  15786. .source_diy>>>.el-dialog__body {
  15787. height: calc(100% - 185px);
  15788. overflow: auto;
  15789. background: #e6eaf0;
  15790. }
  15791. .source_diy>>>.el-dialog__footer {
  15792. background: #e6eaf0 !important;
  15793. }
  15794. .left {
  15795. border-right: 1px solid rgb(60, 94, 143);
  15796. display: flex;
  15797. flex-direction: column;
  15798. align-items: center;
  15799. min-height: 600px;
  15800. width: 385px;
  15801. height: 80%;
  15802. }
  15803. .tips {
  15804. color: rgb(128, 128, 128);
  15805. font-size: 12px;
  15806. width: 270px;
  15807. margin: 40px;
  15808. }
  15809. .pb_content {
  15810. height: 100% !important;
  15811. /* margin: 0 20px 0 20px; */
  15812. }
  15813. .pb_content_body {
  15814. width: 100% !important;
  15815. height: 100%;
  15816. display: flex;
  15817. }
  15818. .info_solid {
  15819. width: 270px;
  15820. height: 30px;
  15821. border-left: 1px solid #bdbdbd;
  15822. margin: 10px 0px 10px 30px;
  15823. }
  15824. .info_steps {
  15825. width: 270px;
  15826. font-size: 0.875rem;
  15827. display: flex;
  15828. align-items: center;
  15829. }
  15830. .info_steps span:nth-child(1) {
  15831. width: 30px;
  15832. height: 30px;
  15833. background: rgba(0, 0, 0, 0.38);
  15834. display: block;
  15835. color: #fff;
  15836. border-radius: 40px;
  15837. text-align: center;
  15838. line-height: 30px;
  15839. }
  15840. .steps_active {
  15841. background: #3d67bc !important;
  15842. }
  15843. .info_steps span:nth-child(2) {
  15844. margin-left: 5px;
  15845. }
  15846. .right {
  15847. height: 100%;
  15848. width: 100%;
  15849. display: flex;
  15850. overflow: hidden;
  15851. flex-direction: column;
  15852. }
  15853. .leftBar{
  15854. width: 290px;
  15855. height: calc(100% - 50px);
  15856. overflow: auto;
  15857. border-radius: 5px;
  15858. margin: 25px auto;
  15859. box-sizing: border-box;
  15860. margin-right: 10px;
  15861. }
  15862. .basic_box {
  15863. margin: 0 auto;
  15864. position: relative;
  15865. padding: 0 20px 0 20px;
  15866. }
  15867. .basic_box_success {
  15868. width: 100%;
  15869. min-height: 455px;
  15870. padding: 50px 0;
  15871. position: relative;
  15872. text-align: center;
  15873. border-bottom: 1px solid #bfbfbf;
  15874. box-sizing: border-box;
  15875. display: flex;
  15876. align-items: center;
  15877. flex-direction: column;
  15878. justify-content: center;
  15879. }
  15880. .info_title {
  15881. font-size: 1.5em;
  15882. margin-right: 25px;
  15883. /* margin: 20px 30px 20px 30px; */
  15884. }
  15885. .bInfo_title {
  15886. text-align: left;
  15887. margin: 10px 0;
  15888. }
  15889. .small_title {
  15890. font-size: 14px;
  15891. line-height: 40px;
  15892. }
  15893. .chapter_beizhu {
  15894. font-size: 12px;
  15895. font-weight: bold;
  15896. float: right;
  15897. color: rgb(128, 128, 128);
  15898. margin-top: 5px;
  15899. }
  15900. .chapter_uploadBox1 {
  15901. text-align: left;
  15902. background-color: rgb(242, 242, 242);
  15903. width: 100%;
  15904. height: 67px;
  15905. padding: 0px 15px;
  15906. border-radius: 8px;
  15907. overflow: hidden;
  15908. font-size: 16px;
  15909. box-sizing: border-box;
  15910. position: relative;
  15911. }
  15912. .chapter_add {
  15913. width: 100%;
  15914. height: 32px;
  15915. margin-top: 15px;
  15916. cursor: pointer;
  15917. }
  15918. .chapter_add_l {
  15919. margin-left: 5px;
  15920. width: 30px;
  15921. height: 30px;
  15922. float: left;
  15923. border: 1px solid #aaa;
  15924. color: #aaa;
  15925. border-radius: 50%;
  15926. font-size: 25px;
  15927. text-align: center;
  15928. }
  15929. .chapter_add_r {
  15930. font-size: 18px;
  15931. height: 40px;
  15932. line-height: 30px;
  15933. text-indent: 10px;
  15934. color: #aaa;
  15935. }
  15936. .chapter_add_r span {
  15937. font-size: 12px;
  15938. color: rgb(204, 204, 204);
  15939. }
  15940. .chapter_add_input {
  15941. display: none;
  15942. }
  15943. .line {
  15944. width: 85%;
  15945. margin: 0 auto;
  15946. border-top: 1px solid #e5e5e5;
  15947. margin-top: 20px;
  15948. }
  15949. .info_btnBox {
  15950. width: calc(100%);
  15951. display: flex;
  15952. justify-content: center;
  15953. height: 80px;
  15954. align-items: center;
  15955. background: #fff;
  15956. margin: 0 auto;
  15957. border-top: 2px solid rgb(228, 232, 237);
  15958. box-sizing: border-box;
  15959. }
  15960. .info_btnBox2 {
  15961. width: calc(100%);
  15962. display: flex;
  15963. justify-content: center;
  15964. height: 20px;
  15965. align-items: center;
  15966. background: #fff;
  15967. margin: 0 auto;
  15968. border-top: 2px solid rgb(228, 232, 237);
  15969. box-sizing: border-box;
  15970. overflow: hidden;
  15971. cursor: pointer;
  15972. }
  15973. .info_btnBox3 {
  15974. width: calc(100%);
  15975. display: flex;
  15976. justify-content: flex-end;
  15977. padding: 0 20px;
  15978. height: 60px;
  15979. align-items: center;
  15980. background: unset;
  15981. margin: 0 auto;
  15982. /* border-top: 1px solid rgb(228, 232, 237); */
  15983. box-sizing: border-box;
  15984. overflow: hidden;
  15985. cursor: pointer;
  15986. background: #fff;
  15987. border-radius: 10px;
  15988. }
  15989. .info_btn+.info_btn {
  15990. margin-left: 15px;
  15991. }
  15992. .info_btn,
  15993. .teacherWord {
  15994. color: #fff;
  15995. background-color: #0f7eff;
  15996. padding: 8px 24px;
  15997. font-size: 0.9375rem;
  15998. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  15999. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  16000. min-width: 64px;
  16001. font-weight: 500;
  16002. border-radius: 4px;
  16003. box-sizing: border-box;
  16004. border: none;
  16005. cursor: pointer;
  16006. }
  16007. .teacherWord {
  16008. width: 105px !important;
  16009. text-align: center !important;
  16010. line-height: 36px !important;
  16011. padding: 0 !important;
  16012. font-size: 14px !important;
  16013. margin: 10px 0 !important;
  16014. }
  16015. .template_box {
  16016. display: flex;
  16017. flex-wrap: wrap;
  16018. }
  16019. .wordTeacher {
  16020. display: flex;
  16021. flex-direction: column;
  16022. width: 100px;
  16023. height: 100px;
  16024. text-align: center;
  16025. font-size: 13px;
  16026. margin: 0 20px 20px 0;
  16027. background: #f0f4fa;
  16028. position: relative;
  16029. border-radius: 5px;
  16030. align-items: center;
  16031. justify-content: center;
  16032. border: 1px solid #cad1dc;
  16033. color: #0e1e33;
  16034. /* padding: 25px 0px; */
  16035. cursor: pointer;
  16036. }
  16037. .wordTeacher::after {
  16038. content: "";
  16039. display: block;
  16040. position: absolute;
  16041. width: 15px;
  16042. height: 15px;
  16043. right: 10px;
  16044. top: 10px;
  16045. background-image: url(../../../assets/icon/new/choose_a.png);
  16046. background-size: 100% 100%;
  16047. }
  16048. .wordTeacherA::after {
  16049. background-image: url(../../../assets/icon/new/choose_b.png);
  16050. }
  16051. .wordTeacher:nth-child(5n) {
  16052. margin-right: 0px;
  16053. }
  16054. .wordPic {
  16055. margin: 0 auto;
  16056. width: 30px;
  16057. height: 30px;
  16058. cursor: pointer;
  16059. }
  16060. .deleteWord {
  16061. width: 22px;
  16062. height: 22px;
  16063. position: absolute;
  16064. right: 5px;
  16065. top: -15px;
  16066. cursor: pointer;
  16067. display: none;
  16068. z-index: 999;
  16069. }
  16070. .wordPic>img,
  16071. .deleteWord>img,
  16072. .addToolImg>img {
  16073. width: 100%;
  16074. height: 100%;
  16075. }
  16076. .info_btn:hover {
  16077. background-color: #4f7cd5 !important;
  16078. }
  16079. .cru_selectBox {
  16080. display: flex;
  16081. margin: 15px 0;
  16082. flex-wrap: nowrap;
  16083. white-space: nowrap;
  16084. overflow: auto;
  16085. position: relative;
  16086. height: 40px;
  16087. max-width: calc(100% - 175px);
  16088. }
  16089. .cru_selectBox::-webkit-scrollbar {
  16090. /*滚动条整体样式*/
  16091. width: 6px;
  16092. /*高宽分别对应横竖滚动条的尺寸*/
  16093. height: 6px;
  16094. }
  16095. /*定义滚动条轨道 内阴影+圆角*/
  16096. .cru_selectBox::-webkit-scrollbar-track {
  16097. border-radius: 10px;
  16098. background-color: #eee;
  16099. }
  16100. /*定义滑块 内阴影+圆角*/
  16101. .cru_selectBox::-webkit-scrollbar-thumb {
  16102. border-radius: 10px;
  16103. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  16104. background-color: rgba(0, 0, 0, 0.1);
  16105. }
  16106. .cru_line {
  16107. position: absolute;
  16108. bottom: 0px;
  16109. transition: all 0.5s;
  16110. left: 0px;
  16111. width: 50px;
  16112. height: 4px;
  16113. left: 10px;
  16114. border-radius: 2px;
  16115. background: #3681fc;
  16116. }
  16117. .cru_select {
  16118. font-size: 18px;
  16119. margin-right: 20px;
  16120. margin-left: 5px;
  16121. cursor: pointer;
  16122. color: #0e1e33;
  16123. }
  16124. .cru_select:hover {
  16125. color: #3681fc !important;
  16126. }
  16127. .cru_selected {
  16128. color: #3681fc !important;
  16129. font-weight: bold;
  16130. }
  16131. .chapter_box {
  16132. margin-top: 10px;
  16133. width: 100%;
  16134. padding: 10px 20px;
  16135. background: #fff;
  16136. border-radius: 8px;
  16137. box-sizing: border-box;
  16138. }
  16139. .chapter_contentbox {
  16140. display: flex;
  16141. align-items: center;
  16142. /* margin-top: 15px; */
  16143. }
  16144. .chapter_contentbox .cc_title {
  16145. margin: 0px;
  16146. color: black;
  16147. display: block;
  16148. white-space: nowrap;
  16149. overflow: hidden;
  16150. text-overflow: ellipsis;
  16151. margin-right: 20px;
  16152. font-size: 18px;
  16153. height: 20px;
  16154. line-height: 22px;
  16155. min-width: fit-content;
  16156. display: flex;
  16157. }
  16158. .chapter_contentbox .cc_title::before {
  16159. content: "";
  16160. height: 100%;
  16161. width: 3px;
  16162. background: #3681fc;
  16163. border-radius: 3px;
  16164. opacity: 1;
  16165. display: block;
  16166. margin-right: 10px;
  16167. }
  16168. .chapter_contentbox .cc_input {
  16169. width: 100%;
  16170. display: flex;
  16171. }
  16172. .show_taskD {
  16173. min-width: fit-content;
  16174. margin-left: 10px;
  16175. display: flex;
  16176. align-items: center;
  16177. font-size: 14px;
  16178. cursor: pointer;
  16179. color: #717c8d;
  16180. }
  16181. .show_taskD>img {
  16182. width: 15px;
  16183. margin-right: 5px;
  16184. transition: 0.2s all;
  16185. transform: rotate(-90deg);
  16186. }
  16187. .show_taskD.show>img {
  16188. transform: rotate(0deg);
  16189. }
  16190. .show_toolD {
  16191. min-width: fit-content;
  16192. margin-left: 10px;
  16193. display: flex;
  16194. align-items: center;
  16195. font-size: 14px;
  16196. cursor: pointer;
  16197. color: #717c8d;
  16198. /* position: absolute;
  16199. right: 45px;
  16200. top: 5px; */
  16201. }
  16202. .show_toolD>img {
  16203. width: 15px;
  16204. margin-right: 5px;
  16205. transition: 0.2s all;
  16206. transform: rotate(-90deg);
  16207. }
  16208. .show_toolD.show>img {
  16209. transform: rotate(0deg);
  16210. }
  16211. .remove {
  16212. background-image: url("../../../assets/icon/new/delete_u.png");
  16213. cursor: pointer;
  16214. opacity: 0.5;
  16215. width: 30px;
  16216. min-width: 30px;
  16217. height: 30px;
  16218. background-size: 100% 100%;
  16219. background-repeat: no-repeat;
  16220. margin-left: 10px;
  16221. }
  16222. .remove1 {
  16223. background-image: url("../../../assets/remove1.png");
  16224. background-repeat: no-repeat;
  16225. background-position: 5px 10px;
  16226. width: 40px;
  16227. height: 50px;
  16228. cursor: pointer;
  16229. margin-left: 10px;
  16230. }
  16231. .binfo_input {
  16232. width: 100%;
  16233. margin: 0;
  16234. padding: 12px 14px;
  16235. display: block;
  16236. min-width: 0;
  16237. outline: none;
  16238. box-sizing: border-box;
  16239. background: none;
  16240. border: none;
  16241. border-radius: 4px;
  16242. background: #fff;
  16243. font-size: 16px;
  16244. resize: none;
  16245. font-family: "Microsoft YaHei";
  16246. min-height: 48px;
  16247. /* border: 1px solid #3682fc00; */
  16248. border: 1.5px solid #cad1dc;
  16249. }
  16250. .binfo_textarea {
  16251. border: 1.5px solid #cad1dc;
  16252. font-size: 16px;
  16253. resize: none;
  16254. /* background: #f6f6f6; */
  16255. font-family: "Microsoft YaHei";
  16256. }
  16257. .binfo_input:focus-visible {
  16258. border: 1.5px solid #3681fc !important;
  16259. }
  16260. .time {
  16261. display: flex;
  16262. margin: 35px 0 80px 0;
  16263. }
  16264. .chapter_btnbox {
  16265. width: 160px;
  16266. border-radius: 5px;
  16267. border: 2px dashed gray;
  16268. display: flex;
  16269. padding: 8px 50px;
  16270. align-items: center;
  16271. justify-content: center;
  16272. margin: 30px auto 0;
  16273. cursor: pointer;
  16274. }
  16275. .icon_add {
  16276. position: relative;
  16277. width: 24px;
  16278. padding-top: 20px;
  16279. border-radius: 100%;
  16280. border-width: 2px;
  16281. border-style: solid;
  16282. border-color: gray;
  16283. }
  16284. .icon_add i:nth-child(1) {
  16285. position: absolute;
  16286. left: 50%;
  16287. top: 50%;
  16288. height: 60%;
  16289. transform: translate(-50%, -50%);
  16290. border-width: 1px;
  16291. border-style: solid;
  16292. border-color: inherit;
  16293. }
  16294. .icon_add i:nth-child(2) {
  16295. position: absolute;
  16296. top: 50%;
  16297. left: 50%;
  16298. width: 60%;
  16299. transform: translate(-50%, -50%);
  16300. border-width: 1px;
  16301. border-style: solid;
  16302. border-color: inherit;
  16303. }
  16304. .chapter_btn_w {
  16305. font-size: 0.9375rem;
  16306. font-weight: bold;
  16307. color: gray;
  16308. margin-left: 20px;
  16309. }
  16310. .disUoloadSty>>>.el-icon-plus {
  16311. display: none !important;
  16312. /* 上传按钮隐藏 */
  16313. }
  16314. .imgLeft {
  16315. margin: 15px 0;
  16316. }
  16317. .add_info_box {
  16318. margin: 0 0 0 auto;
  16319. display: flex;
  16320. flex-wrap: wrap;
  16321. }
  16322. .add_info_box button {
  16323. margin: 0 5px 10px 0;
  16324. }
  16325. .add_info_box2 {
  16326. display: flex;
  16327. align-items: center;
  16328. flex-wrap: wrap;
  16329. }
  16330. .add_info_box2::after {
  16331. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  16332. color: red;
  16333. font-size: 14px;
  16334. margin-bottom: 10px;
  16335. }
  16336. .add_chapters_box {
  16337. text-align: left;
  16338. background-color: #fff;
  16339. width: 100%;
  16340. border-radius: 4px;
  16341. font-size: 16px;
  16342. box-sizing: border-box;
  16343. position: relative;
  16344. padding: 0 15px;
  16345. height: auto;
  16346. overflow-y: auto;
  16347. overflow-x: hidden;
  16348. border: 1px solid #cad1dc;
  16349. }
  16350. .add_chapters_box.add_c_none {
  16351. display: flex;
  16352. justify-content: center;
  16353. align-items: center;
  16354. padding: 15px;
  16355. }
  16356. .add_c_none>img {
  16357. width: 25px;
  16358. }
  16359. .add_chapters_box.add_c_none>span {
  16360. font-size: 14px;
  16361. font-weight: 400;
  16362. margin: 0 0 5px 5px;
  16363. }
  16364. .homework_box {
  16365. display: flex;
  16366. align-items: flex-start;
  16367. flex-wrap: wrap;
  16368. margin: 15px 0 0 0;
  16369. flex-direction: column;
  16370. align-content: flex-start;
  16371. }
  16372. .course_homework {
  16373. display: flex;
  16374. justify-content: center;
  16375. flex-direction: row;
  16376. align-items: center;
  16377. margin: 0 10px 0 0;
  16378. }
  16379. .course_homework>>>.el-input__inner {
  16380. width: 140px;
  16381. margin-left: 15px;
  16382. }
  16383. .chapter_upload_move {
  16384. position: relative;
  16385. background-color: #fff;
  16386. position: absolute;
  16387. width: 100%;
  16388. top: 0px;
  16389. left: 0px;
  16390. border: 1px solid #eee;
  16391. border-radius: 5px;
  16392. transition: width 2s;
  16393. -moz-transition: width 2s;
  16394. -webkit-transition: width 2s;
  16395. -o-transition: width 2s;
  16396. }
  16397. .chapter_upload_l_i {
  16398. background-image: url("../../../assets/icon.png");
  16399. background-position: 3px -165px;
  16400. width: 30px;
  16401. height: 30px;
  16402. margin: 10px auto 0 auto;
  16403. }
  16404. .course_input_box {
  16405. display: flex;
  16406. margin-right: 20px;
  16407. width: 100%;
  16408. align-items: center;
  16409. position: relative;
  16410. }
  16411. .course_input_box>.binfo_input {
  16412. width: calc(100% - 0 - 200px - 20px);
  16413. margin: 0 10px;
  16414. }
  16415. .bb_courseIcon {
  16416. width: 57px;
  16417. height: 45px;
  16418. background: #f0f4fa;
  16419. border-radius: 5px 0px 0px 5px;
  16420. display: flex;
  16421. align-items: center;
  16422. justify-content: center;
  16423. border-right: 1.5px solid rgb(202, 209, 220);
  16424. box-sizing: border-box;
  16425. position: absolute;
  16426. left: 1.5px;
  16427. }
  16428. .bb_courseIcon>img {
  16429. width: 25px;
  16430. height: auto;
  16431. }
  16432. .big_box {
  16433. /* margin-top: 20px; */
  16434. display: flex;
  16435. justify-content: space-between;
  16436. /* border-bottom: 1px solid #E0E2ED; */
  16437. }
  16438. .left_first {
  16439. display: flex;
  16440. flex-direction: column;
  16441. flex-wrap: nowrap;
  16442. width: calc(100% - 310px);
  16443. padding: 20px;
  16444. box-sizing: border-box;
  16445. background: #fff;
  16446. border-radius: 5px;
  16447. }
  16448. .right_first {
  16449. width: 300px;
  16450. display: flex;
  16451. align-items: center;
  16452. justify-content: center;
  16453. /* border-left: 1px solid #E0E2ED; */
  16454. box-sizing: border-box;
  16455. padding: 20px;
  16456. flex-direction: column;
  16457. background: #fff;
  16458. border-radius: 5px;
  16459. }
  16460. .ai_box {
  16461. width: 204px;
  16462. display: flex;
  16463. justify-content: flex-end;
  16464. margin-bottom: 15px;
  16465. }
  16466. .ai_content {
  16467. display: flex;
  16468. align-items: center;
  16469. font-size: 14px;
  16470. padding: 7px 20px;
  16471. box-sizing: border-box;
  16472. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  16473. border-radius: 12px;
  16474. font-weight: 700;
  16475. cursor: pointer;
  16476. }
  16477. .ai_content>img {
  16478. width: 40px;
  16479. margin-right: 5px;
  16480. }
  16481. .c_info_title {
  16482. padding: 15px 0 15px 0;
  16483. font-size: 16px;
  16484. font-weight: bold;
  16485. margin: 0 0 0 20px;
  16486. box-sizing: border-box;
  16487. display: flex;
  16488. align-items: center;
  16489. line-height: 20px;
  16490. }
  16491. .c_info_title::before {
  16492. content: "";
  16493. display: block;
  16494. width: 3px;
  16495. height: 20px;
  16496. background: #0061ff;
  16497. border-radius: 3px;
  16498. margin: 0 5px 0 0;
  16499. }
  16500. .right_title {
  16501. height: 30px;
  16502. padding: 15px 0 15px 20px;
  16503. border-bottom: 1px solid #f2f2f2;
  16504. font-size: 1.5em;
  16505. font-weight: bold;
  16506. color: #0f7eff;
  16507. margin: 0 auto;
  16508. }
  16509. .people {
  16510. border: 1px solid rgb(229 229 229);
  16511. /* height: 495px; */
  16512. height: 350px;
  16513. border-radius: 5px;
  16514. width: 100%;
  16515. overflow: auto;
  16516. }
  16517. .people_top {
  16518. display: flex;
  16519. width: 100%;
  16520. /* justify-content: space-between; */
  16521. /* align-items: center; */
  16522. flex-direction: column;
  16523. padding: 10px 10px 0;
  16524. box-sizing: border-box;
  16525. }
  16526. .people_nav,
  16527. .people_top_right {
  16528. /* padding: 20px 0 0 20px; */
  16529. }
  16530. .people_top_right {
  16531. height: 40px;
  16532. margin-bottom: 10px;
  16533. }
  16534. .people_search {
  16535. display: flex;
  16536. position: relative;
  16537. }
  16538. .people_search>>>.el-input__inner {
  16539. /* height: 25px; */
  16540. width: 100%;
  16541. }
  16542. .search_img {
  16543. width: 20px;
  16544. height: 20px;
  16545. position: absolute;
  16546. right: 10px;
  16547. top: 50%;
  16548. transform: translateY(-50%);
  16549. }
  16550. .search_img>img {
  16551. width: 100%;
  16552. height: 100%;
  16553. }
  16554. .people_name {
  16555. display: flex;
  16556. justify-content: flex-start;
  16557. padding: 20px 10px;
  16558. flex-direction: column;
  16559. flex-wrap: wrap;
  16560. }
  16561. .p_box {
  16562. position: relative;
  16563. }
  16564. .people_name>>>.el-checkbox {
  16565. width: 100%;
  16566. display: flex;
  16567. align-items: center;
  16568. margin-bottom: 10px;
  16569. }
  16570. .people_name>>>.el-checkbox__label {
  16571. text-overflow: ellipsis;
  16572. overflow: hidden;
  16573. width: calc(100%);
  16574. }
  16575. .people_name2>>>.el-checkbox__label {
  16576. width: calc(100% - 130px);
  16577. }
  16578. .inviteCode {
  16579. position: absolute;
  16580. right: 30px;
  16581. color: #237ade;
  16582. top: 0;
  16583. cursor: pointer;
  16584. font-size: 13px;
  16585. }
  16586. .noneInvite {
  16587. color: #a8a8a8;
  16588. }
  16589. .inviteImg {
  16590. position: absolute;
  16591. right: 5px;
  16592. top: 0;
  16593. width: 20px;
  16594. }
  16595. .right_img {
  16596. width: 150px;
  16597. height: 150px;
  16598. margin: 0 auto;
  16599. }
  16600. .right_img>img {
  16601. width: 100%;
  16602. height: 100%;
  16603. }
  16604. .number {
  16605. margin-top: 20px;
  16606. color: #4aa6ff;
  16607. text-decoration: underline;
  16608. }
  16609. .success_button {
  16610. display: flex;
  16611. text-align: center;
  16612. margin: 5% 0 auto;
  16613. flex-direction: row;
  16614. justify-content: center;
  16615. }
  16616. .look_course {
  16617. margin-right: 40px;
  16618. background: #3d67bc;
  16619. width: 200px;
  16620. height: 35px;
  16621. line-height: 35px;
  16622. color: #fff;
  16623. text-align: center;
  16624. font-size: 14px;
  16625. border-radius: 5px;
  16626. cursor: pointer;
  16627. }
  16628. .attend_others {
  16629. width: 250px;
  16630. background: #4fb13c;
  16631. height: 35px;
  16632. line-height: 35px;
  16633. color: #fff;
  16634. text-align: center;
  16635. font-size: 14px;
  16636. border-radius: 5px;
  16637. cursor: pointer;
  16638. }
  16639. .dialog_diy2>>>.el-dialog__body {
  16640. text-align: center;
  16641. }
  16642. .write_togother {
  16643. position: absolute;
  16644. right: 45px;
  16645. display: flex;
  16646. top: 5%;
  16647. }
  16648. .write_people {
  16649. font-size: 14px;
  16650. line-height: 50px;
  16651. padding-right: 10px;
  16652. }
  16653. .end_write {
  16654. background: #3d67bc;
  16655. color: #fff;
  16656. width: 100px;
  16657. height: 35px;
  16658. line-height: 35px;
  16659. text-align: center;
  16660. font-size: 14px;
  16661. border-radius: 5px;
  16662. cursor: pointer;
  16663. }
  16664. .chapter_upload+.chapter_upload {
  16665. /* margin-top: 15px; */
  16666. border-top: 1px solid #e7ebf1;
  16667. }
  16668. .chapter_upload {
  16669. height: 45px;
  16670. position: relative;
  16671. display: flex;
  16672. align-items: center;
  16673. width: 100%;
  16674. min-height: 45px;
  16675. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  16676. /* border-radius: 4px; */
  16677. /* overflow: hidden; */
  16678. box-sizing: border-box;
  16679. }
  16680. .chapter_upload_drag {
  16681. position: absolute;
  16682. cursor: pointer;
  16683. width: 16px;
  16684. height: 16px;
  16685. left: -9px;
  16686. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  16687. background-size: 100% 100%;
  16688. z-index: 10;
  16689. display: none;
  16690. }
  16691. .isNavStage>.chapter_upload_drag {
  16692. background-image: url("../../../assets/icon/new/icon_course_drag_active2.png");
  16693. }
  16694. .chapter_upload_t {
  16695. background-color: #fff;
  16696. position: absolute;
  16697. height: 100%;
  16698. top: 0px;
  16699. left: 0px;
  16700. box-sizing: border-box;
  16701. }
  16702. .chapter_upload_o {
  16703. width: 100%;
  16704. height: 100%;
  16705. position: relative;
  16706. z-index: 1;
  16707. }
  16708. .chapter_upload_ic {
  16709. margin: 0 15px 0px auto;
  16710. display: flex;
  16711. align-items: center;
  16712. }
  16713. .chapter_upload_ic_l {
  16714. width: 50px;
  16715. height: 50px;
  16716. float: left;
  16717. }
  16718. .chapter_upload_ic_l div {
  16719. width: 30px;
  16720. height: 35px;
  16721. background: url("../../../assets/icon/icon.png");
  16722. }
  16723. .chapter_upload_ic_edit {
  16724. height: 100%;
  16725. display: flex;
  16726. align-items: center;
  16727. cursor: pointer;
  16728. margin: 0 10px 0 0;
  16729. }
  16730. .chapter_upload_ic_edit div {
  16731. width: 18px;
  16732. height: 18px;
  16733. background-image: url("../../../assets/icon/new/edit_u.png");
  16734. background-size: 100% 100%;
  16735. }
  16736. .chapter_upload_ic_r {
  16737. height: 100%;
  16738. display: flex;
  16739. align-items: center;
  16740. cursor: pointer;
  16741. }
  16742. .chapter_upload_ic_r div {
  16743. width: 18px;
  16744. height: 18px;
  16745. background-image: url("../../../assets/icon/new/delete_u.png");
  16746. background-size: 100% 100%;
  16747. }
  16748. .chapter_upload_n {
  16749. display: flex;
  16750. text-indent: 10px;
  16751. text-decoration: none;
  16752. text-overflow: ellipsis;
  16753. white-space: nowrap;
  16754. overflow: hidden;
  16755. width: 55%;
  16756. margin-left: 10px;
  16757. cursor: pointer;
  16758. margin-top: 2px;
  16759. align-items: center;
  16760. }
  16761. .chapter_upload_l_i2,
  16762. .chapter_upload_l_i3,
  16763. .chapter_upload_l_i8,
  16764. .chapter_upload_l_i6,
  16765. .chapter_upload_l_i12,
  16766. .chapter_upload_l_i14,
  16767. .chapter_upload_l_i13 {
  16768. width: 15px;
  16769. height: 15px;
  16770. background-size: 100% 100%;
  16771. }
  16772. .chapter_upload_l_i2 {
  16773. background-image: url("../../../assets/icon/new/u_word.png");
  16774. }
  16775. .chapter_upload_l_i3 {
  16776. background-image: url("../../../assets/icon/new/u_video.png");
  16777. }
  16778. .chapter_upload_l_i8 {
  16779. background-image: url("../../../assets/icon/new/u_url.png");
  16780. }
  16781. .chapter_upload_l_i14 {
  16782. background-image: url("../../../assets/icon/new/u_source.png");
  16783. }
  16784. .chapter_upload_l_i6 {
  16785. background-image: url("../../../assets/icon/new/u_picture.png");
  16786. }
  16787. .chapter_upload_l_i12 {
  16788. background-image: url("../../../assets/icon/new/u_word.png");
  16789. }
  16790. .chapter_upload_l_i13 {
  16791. background-image: url("../../../assets/icon/new/u_img.png");
  16792. }
  16793. .chapter_upload_noSee {
  16794. background-image: url("../../../assets/icon/new/u_noUpload.png");
  16795. width: 18px;
  16796. height: 18px;
  16797. background-size: 100% 100%;
  16798. display: block;
  16799. margin-right: 10px;
  16800. }
  16801. .chapter_upload_ud {
  16802. display: flex;
  16803. flex-direction: row;
  16804. justify-content: center;
  16805. margin: 0 10px 0 0;
  16806. }
  16807. .chapter_upload_ud>.chapter_upload_up {
  16808. margin-bottom: 0;
  16809. margin-right: 10px;
  16810. }
  16811. .chapter_upload_down,
  16812. .chapter_upload_up {
  16813. width: 20px;
  16814. height: 20px;
  16815. background: #e4eaf2;
  16816. cursor: pointer;
  16817. margin: 0 auto;
  16818. border-radius: 5px;
  16819. display: flex;
  16820. justify-content: center;
  16821. align-items: center;
  16822. }
  16823. .chapter_upload_up::after,
  16824. .chapter_upload_down::after {
  16825. content: "";
  16826. background-image: url("../../../assets/icon/new/downBtn.png");
  16827. width: 13px;
  16828. height: 13px;
  16829. background-size: 100% 100%;
  16830. display: block;
  16831. }
  16832. .chapter_upload_up::after {
  16833. background-image: url("../../../assets/icon/new/upBtn.png") !important;
  16834. }
  16835. .chapter_upload_up {
  16836. margin-bottom: 5px;
  16837. }
  16838. .chapter_upload_ud2 {
  16839. display: flex;
  16840. flex-direction: row;
  16841. justify-content: center;
  16842. margin: 0 10px 0 0;
  16843. }
  16844. .chapter_upload_ud2>.chapter_upload_up2 {
  16845. margin-bottom: 0;
  16846. margin-right: 10px;
  16847. }
  16848. .chapter_upload_down2,
  16849. .chapter_upload_up2 {
  16850. cursor: pointer;
  16851. margin: 0 auto;
  16852. border-radius: 5px;
  16853. display: flex;
  16854. justify-content: center;
  16855. align-items: center;
  16856. color: #717c8d;
  16857. font-size: 14px;
  16858. }
  16859. .chapter_upload_up2 {
  16860. margin-right: 10px;
  16861. }
  16862. .chapter_upload_up2::before,
  16863. .chapter_upload_down2::before {
  16864. content: "";
  16865. background-image: url("../../../assets/icon/new/c_down.png");
  16866. width: 14px;
  16867. height: 14px;
  16868. background-size: 100% 100%;
  16869. display: block;
  16870. margin-right: 5px;
  16871. }
  16872. .chapter_upload_up2::before {
  16873. background-image: url("../../../assets/icon/new/c_up.png") !important;
  16874. }
  16875. .addWordStyle {
  16876. display: flex;
  16877. flex-direction: row;
  16878. justify-content: flex-start;
  16879. overflow-x: auto;
  16880. white-space: nowrap;
  16881. flex-wrap: wrap;
  16882. }
  16883. /* table 样式 */
  16884. .cont>>>table {
  16885. border-top: 1px solid #ccc;
  16886. border-left: 1px solid #ccc;
  16887. }
  16888. .cont>>>table td,
  16889. .cont>>>table th {
  16890. border-bottom: 1px solid #ccc;
  16891. border-right: 1px solid #ccc;
  16892. /* padding: 20px 5px; */
  16893. padding: 5px 10px;
  16894. max-width: 0px;
  16895. height: 30px;
  16896. vertical-align: baseline;
  16897. }
  16898. .cont>>>table th {
  16899. border-bottom: 2px solid #ccc;
  16900. text-align: center;
  16901. }
  16902. /* blockquote 样式 */
  16903. .cont>>>blockquote {
  16904. display: block;
  16905. border-left: 8px solid #d0e5f2;
  16906. padding: 5px 10px;
  16907. margin: 10px 0;
  16908. line-height: 1.4;
  16909. font-size: 100%;
  16910. background-color: #f1f1f1;
  16911. }
  16912. /* code 样式 */
  16913. .cont>>>code {
  16914. display: inline-block;
  16915. /* *display: inline; */
  16916. zoom: 1;
  16917. background-color: #f1f1f1;
  16918. border-radius: 3px;
  16919. padding: 3px 5px;
  16920. margin: 0 3px;
  16921. }
  16922. .cont>>>pre code {
  16923. display: block;
  16924. }
  16925. /* ul ol 样式 */
  16926. .cont>>>ul,
  16927. ol {
  16928. margin: 10px 0 10px 20px;
  16929. }
  16930. .wordbox {
  16931. display: flex;
  16932. flex-wrap: wrap;
  16933. cursor: pointer;
  16934. width: 100%;
  16935. }
  16936. .checkword {
  16937. width: 22px;
  16938. height: 22px;
  16939. margin: 10px auto 0;
  16940. cursor: pointer;
  16941. }
  16942. .checkword img {
  16943. width: 100%;
  16944. }
  16945. .stepBg {
  16946. display: flex;
  16947. justify-content: space-between;
  16948. align-items: center;
  16949. background: #fff;
  16950. width: calc(100%);
  16951. margin: 0 auto;
  16952. }
  16953. .stepBorder {
  16954. height: 3px !important;
  16955. background: #cad1dc;
  16956. width: 100px !important;
  16957. margin: 0 15px !important;
  16958. position: relative;
  16959. }
  16960. .border-active {
  16961. background: #3681fc !important;
  16962. }
  16963. .border-active::before,
  16964. .border-active::after {
  16965. border-color: #3681fc !important;
  16966. }
  16967. .stepBorder::before,
  16968. .stepBorder::after {
  16969. content: "";
  16970. width: 9px;
  16971. height: 9px;
  16972. background: #ffffff;
  16973. opacity: 1;
  16974. border: 2px solid #acb4bf;
  16975. display: block;
  16976. box-sizing: border-box;
  16977. border-radius: 50%;
  16978. position: absolute;
  16979. top: 50%;
  16980. transform: translateY(-50%);
  16981. }
  16982. .stepBorder::after {
  16983. right: -9px;
  16984. }
  16985. .stepTop {
  16986. width: 100%;
  16987. /* border-radius: 10px; */
  16988. display: flex;
  16989. justify-content: center;
  16990. align-items: center;
  16991. flex-wrap: nowrap;
  16992. background: #fff;
  16993. /* top: 18%; */
  16994. height: 80px;
  16995. border-bottom: 2px solid rgb(228, 232, 237);
  16996. box-sizing: border-box;
  16997. }
  16998. .stepTop2 {
  16999. width: 100%;
  17000. /* border-radius: 10px; */
  17001. display: flex;
  17002. justify-content: center;
  17003. align-items: center;
  17004. flex-wrap: nowrap;
  17005. background: #fff;
  17006. /* top: 18%; */
  17007. height: 20px;
  17008. border-bottom: 2px solid rgb(228, 232, 237);
  17009. box-sizing: border-box;
  17010. overflow: hidden;
  17011. cursor: pointer;
  17012. }
  17013. .stepTop>div img {
  17014. width: 100%;
  17015. }
  17016. .stepTop>div {
  17017. height: 50px;
  17018. width: 180px;
  17019. cursor: pointer;
  17020. margin: 10px 0;
  17021. border-radius: 10px;
  17022. }
  17023. .first,
  17024. .second,
  17025. .third,
  17026. .four {
  17027. background: #3681fc;
  17028. height: 90px;
  17029. color: #fff;
  17030. display: flex;
  17031. flex-direction: row;
  17032. align-items: center;
  17033. justify-content: center;
  17034. }
  17035. .first>div:nth-child(1),
  17036. .second>div:nth-child(1),
  17037. .third>div:nth-child(1),
  17038. .four>div:nth-child(1) {
  17039. margin: 5px 10px 0 0;
  17040. width: 2rem;
  17041. }
  17042. .firstNo,
  17043. .secondNo,
  17044. .thirdNo,
  17045. .fourNo {
  17046. background: #e7e7e7;
  17047. color: #adadad;
  17048. display: flex;
  17049. flex-direction: row;
  17050. align-items: center;
  17051. justify-content: center;
  17052. }
  17053. .firstNo>div:nth-child(1),
  17054. .secondNo>div:nth-child(1),
  17055. .thirdNo>div:nth-child(1),
  17056. .fourNo>div:nth-child(1) {
  17057. margin: 5px 10px 0 0;
  17058. width: 2rem;
  17059. }
  17060. .uploadWidth>>>.el-upload {
  17061. width: 60px;
  17062. height: 60px;
  17063. position: relative;
  17064. }
  17065. .addPeople {
  17066. background: #fa6060;
  17067. width: 150px;
  17068. height: 40px;
  17069. color: #fff;
  17070. border-radius: 5px;
  17071. text-align: center;
  17072. line-height: 40px;
  17073. font-size: 14px;
  17074. cursor: pointer;
  17075. }
  17076. .kcImg {
  17077. width: 60px;
  17078. margin-left: 10px;
  17079. }
  17080. .zyImg {
  17081. width: 55px;
  17082. margin: 0 10px;
  17083. }
  17084. .deleteZy {
  17085. width: 20px;
  17086. position: absolute;
  17087. top: 5px;
  17088. right: 5px;
  17089. cursor: pointer;
  17090. }
  17091. .kcImg>img,
  17092. .zyImg>img,
  17093. .deleteZy>img {
  17094. width: 100%;
  17095. height: 100%;
  17096. }
  17097. .zyBox {
  17098. display: flex;
  17099. flex-direction: row;
  17100. align-items: center;
  17101. background: #67d37d;
  17102. color: #fff;
  17103. width: 210px;
  17104. margin: 20px 20px 0 0;
  17105. border-radius: 10px;
  17106. height: 70px;
  17107. position: relative;
  17108. }
  17109. .upCss {
  17110. display: flex;
  17111. flex-direction: row;
  17112. justify-content: flex-start;
  17113. }
  17114. .upCss>>>.el-icon-plus {
  17115. position: none !important;
  17116. width: 200px;
  17117. height: 100px;
  17118. display: flex;
  17119. flex-wrap: nowrap;
  17120. flex-direction: column;
  17121. align-items: center;
  17122. justify-content: center;
  17123. border: 1px dashed #ccc;
  17124. min-width: 78px;
  17125. min-height: 100px;
  17126. z-index: 999;
  17127. }
  17128. .upCss>>>.el-upload-list__item-name {
  17129. width: 100px;
  17130. white-space: nowrap;
  17131. overflow: hidden;
  17132. text-overflow: ellipsis;
  17133. }
  17134. .upCss>>>.el-upload-list__item .el-icon-close {
  17135. font-size: 20px;
  17136. z-index: 9999;
  17137. }
  17138. .addStageImg {
  17139. min-width: 20px;
  17140. min-height: 20px;
  17141. width: 20px;
  17142. height: 20px;
  17143. cursor: pointer;
  17144. }
  17145. .addHW {
  17146. width: 28px;
  17147. height: 28px;
  17148. cursor: pointer;
  17149. }
  17150. .addStageImg>img,
  17151. .addHW>img {
  17152. width: 100%;
  17153. height: 100%;
  17154. }
  17155. .addNewPP>>>.el-dialog__body {
  17156. padding: 5px 20px;
  17157. }
  17158. .addNewPP>>>.el-dialog {
  17159. margin-top: 5vh !important;
  17160. }
  17161. .addNewPP2>>>.el-dialog__body {
  17162. padding: 5px 0;
  17163. }
  17164. .addNewPP2>>>.el-dialog {
  17165. margin-top: 5vh !important;
  17166. }
  17167. .isHeight {
  17168. height: 680px;
  17169. }
  17170. .toolChoose {
  17171. display: flex;
  17172. /* width: 100%; */
  17173. flex-direction: row;
  17174. flex-wrap: wrap;
  17175. }
  17176. .tool,
  17177. .isToolChoose {
  17178. display: flex;
  17179. flex-direction: column;
  17180. flex-wrap: nowrap;
  17181. width: fit-content;
  17182. margin: 10px 0 10px 0;
  17183. align-items: center;
  17184. border: 2px solid #dbdbdb00;
  17185. padding: 10px 20px;
  17186. border-radius: 5px;
  17187. cursor: pointer;
  17188. /* box-shadow: 0 0 2px 0px #dedede; */
  17189. position: relative;
  17190. box-sizing: border-box;
  17191. }
  17192. .tool:hover {
  17193. border: 2px solid #a5c7ff;
  17194. }
  17195. .tool:hover>.noCTool {
  17196. display: block;
  17197. opacity: 0.5;
  17198. }
  17199. .isToolChoose {
  17200. border: 2px solid #438aff !important;
  17201. box-shadow: 0 0 2px 0px #438aff;
  17202. opacity: 1 !important;
  17203. }
  17204. .isCTool,
  17205. .noCTool {
  17206. width: 30px;
  17207. height: 30px;
  17208. position: absolute;
  17209. top: -4px;
  17210. right: -4px;
  17211. }
  17212. .noCTool {
  17213. display: none;
  17214. }
  17215. .isCTool>img,
  17216. .noCTool>img {
  17217. width: 100%;
  17218. height: 100%;
  17219. }
  17220. .tool+.tool {
  17221. margin-right: 10px;
  17222. }
  17223. .whiteBIcon {
  17224. width: 80px;
  17225. cursor: pointer;
  17226. display: flex;
  17227. flex-direction: column;
  17228. flex-wrap: nowrap;
  17229. align-items: center;
  17230. font-size: 14px;
  17231. }
  17232. .whiteBIcon>img,
  17233. .toolIcon>img,
  17234. .arrow>img {
  17235. width: 100%;
  17236. height: 100%;
  17237. }
  17238. .check img {
  17239. width: 20px;
  17240. height: 20px;
  17241. }
  17242. .whiteBIcon>img {
  17243. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  17244. border-radius: 15px;
  17245. }
  17246. .whiteBIcon>div:nth-child(2) {
  17247. height: 20px;
  17248. line-height: 20px;
  17249. }
  17250. .check {
  17251. /* width: 20px;
  17252. height: 20px; */
  17253. cursor: pointer;
  17254. margin: 10px 0 0;
  17255. }
  17256. .checkDiv {
  17257. display: flex;
  17258. align-items: center;
  17259. }
  17260. .checkDiv span {
  17261. margin-left: 5px;
  17262. color: #858585;
  17263. }
  17264. .customWidth>>>.el-dialog {
  17265. min-width: 600px !important;
  17266. }
  17267. .CollaborativeCss {
  17268. width: 100%;
  17269. display: flex;
  17270. justify-content: center;
  17271. align-items: center;
  17272. box-sizing: border-box;
  17273. padding: 10px 0;
  17274. cursor: pointer;
  17275. }
  17276. .CollaborativeCss >>> .el-tooltip {
  17277. overflow: hidden;
  17278. white-space: nowrap;
  17279. text-overflow: ellipsis;
  17280. }
  17281. .CollaborativeCss2 {
  17282. background: #e0eafb;
  17283. color: #3681fc;
  17284. font-weight: 700;
  17285. border-radius: 5px;
  17286. }
  17287. .a_addBox {
  17288. margin: 10px 0;
  17289. background: #fff;
  17290. padding: 15px;
  17291. /* max-height: 600px; */
  17292. overflow: auto;
  17293. }
  17294. .a_add_box {
  17295. border-bottom: 2px solid #eee;
  17296. padding-bottom: 25px;
  17297. }
  17298. .a_add_head {
  17299. display: flex;
  17300. align-items: center;
  17301. justify-content: space-between;
  17302. margin: 10px 0 0 0;
  17303. font-size: 18px;
  17304. }
  17305. .a_add_checkType {
  17306. margin-top: 10px;
  17307. display: flex;
  17308. font-size: 14px;
  17309. align-items: center;
  17310. }
  17311. .a_add_checkType span {
  17312. box-sizing: border-box;
  17313. padding: 0 0 5px 0;
  17314. cursor: pointer;
  17315. }
  17316. .a_add_checkType span+span {
  17317. margin-left: 10px;
  17318. }
  17319. .a_add_checkType .active {
  17320. border-bottom: 2px solid #409eff;
  17321. color: #409eff;
  17322. }
  17323. .a_add_head .a_add_head_input {
  17324. /* width: 540px; */
  17325. width: 100%;
  17326. }
  17327. .a_add_head .a_add_head_div {
  17328. display: flex;
  17329. align-items: center;
  17330. justify-content: space-between;
  17331. }
  17332. .a_add_body {
  17333. display: flex;
  17334. /* align-items: center; */
  17335. align-items: flex-end;
  17336. }
  17337. .a_add_input {
  17338. display: flex;
  17339. align-items: center;
  17340. flex-wrap: wrap;
  17341. }
  17342. .a_add_input_choice {
  17343. flex-direction: column;
  17344. margin-right: 10px;
  17345. }
  17346. .a_add_input_choice>>>.el-radio {
  17347. display: flex;
  17348. align-items: center;
  17349. flex-direction: row-reverse;
  17350. margin: 30px 0 0 0;
  17351. position: relative;
  17352. }
  17353. .a_add_input_choice>>>.el-checkbox {
  17354. display: flex;
  17355. align-items: center;
  17356. flex-direction: row-reverse;
  17357. margin: 30px 0 0 0;
  17358. position: relative;
  17359. }
  17360. .width100 {
  17361. width: 100%;
  17362. }
  17363. .a_add_input .a_add_persent {
  17364. width: 100%;
  17365. }
  17366. .a_add_persent_div {
  17367. width: 100%;
  17368. display: flex;
  17369. align-items: center;
  17370. }
  17371. .a_add_persent_div span {
  17372. margin: 5px 0;
  17373. }
  17374. .a_add_persent_div span:nth-child(1) {
  17375. width: 30%;
  17376. }
  17377. .a_add_persent_div span:nth-child(2) {
  17378. width: 7%;
  17379. }
  17380. .a_add_persent_div span:nth-child(3) {
  17381. width: 40%;
  17382. }
  17383. .a_add_body_div {
  17384. display: flex;
  17385. align-items: center;
  17386. justify-content: center;
  17387. /* flex-direction: column; */
  17388. position: absolute;
  17389. right: -20px;
  17390. transform: translateX(100%);
  17391. }
  17392. .a_add_body_div>>>.el-button--primary {
  17393. background: #466b99;
  17394. border: none;
  17395. }
  17396. .all_choose {
  17397. display: flex;
  17398. flex-direction: row;
  17399. align-items: flex-start;
  17400. width: 100%;
  17401. }
  17402. .all_choose+.all_choose {
  17403. /* margin-top: 10px */
  17404. }
  17405. .all_choose>span {
  17406. min-width: fit-content;
  17407. display: block;
  17408. white-space: nowrap;
  17409. overflow: hidden;
  17410. text-overflow: ellipsis;
  17411. margin-right: 20px;
  17412. font-weight: bold;
  17413. font-size: 14px;
  17414. }
  17415. .all_choose>>>.el-checkbox-group {
  17416. display: flex;
  17417. flex-direction: row;
  17418. width: 100%;
  17419. flex-wrap: wrap;
  17420. align-content: center;
  17421. justify-content: flex-start;
  17422. align-items: center;
  17423. margin-top: 3px;
  17424. }
  17425. .all_choose>.el-checkbox-group>>>.el-checkbox {
  17426. margin-bottom: 10px;
  17427. display: flex;
  17428. flex-direction: row;
  17429. align-items: center;
  17430. margin-right: 10px;
  17431. }
  17432. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  17433. min-width: 80px;
  17434. overflow: hidden;
  17435. width: 80px;
  17436. text-overflow: ellipsis;
  17437. white-space: nowrap;
  17438. }
  17439. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  17440. width: auto;
  17441. }
  17442. .choose>div:nth-child(3)>span {
  17443. /* letter-spacing: 0 !important; */
  17444. }
  17445. .choose {
  17446. display: flex;
  17447. flex-direction: column;
  17448. flex-wrap: nowrap;
  17449. height: 100%;
  17450. justify-content: space-evenly;
  17451. align-items: flex-start;
  17452. }
  17453. .both {
  17454. display: flex;
  17455. flex-direction: row;
  17456. flex-wrap: wrap;
  17457. width: 100%;
  17458. align-items: center;
  17459. justify-content: flex-start;
  17460. margin: 15px 0;
  17461. }
  17462. .notice>>>.el-dialog {
  17463. width: 500px !important;
  17464. text-align: center;
  17465. }
  17466. .notice>>>.el-button {
  17467. margin-top: 20px;
  17468. }
  17469. .whiteBg {
  17470. /* background: #fff; */
  17471. border-radius: 10px;
  17472. }
  17473. .wb_j_box {
  17474. display: flex;
  17475. width: 100%;
  17476. padding: 0 20px 0;
  17477. box-sizing: border-box;
  17478. }
  17479. .wb_j_box_content {
  17480. width: calc(100% - 55% - 100px);
  17481. display: flex;
  17482. align-items: center;
  17483. }
  17484. .wb_j_box_p_box {
  17485. max-width: calc(100% - 200px);
  17486. word-break: break-all;
  17487. overflow: hidden;
  17488. margin: 0 0 0 10px;
  17489. font-size: 14px;
  17490. color: #6e6e6e;
  17491. z-index: 999;
  17492. }
  17493. .chooseWho {
  17494. display: flex;
  17495. width: 410px;
  17496. flex-direction: row;
  17497. flex-wrap: nowrap;
  17498. justify-content: space-between;
  17499. padding-bottom: 10px;
  17500. }
  17501. .chooseWho>div {
  17502. cursor: pointer;
  17503. padding-bottom: 10px;
  17504. font-weight: bold;
  17505. }
  17506. .isChooseActive {
  17507. color: #3e88f4;
  17508. border-bottom: 2px solid #2f80f3;
  17509. }
  17510. .toolSort {
  17511. display: flex;
  17512. flex-direction: row;
  17513. flex-wrap: wrap;
  17514. justify-content: flex-start;
  17515. align-items: flex-start;
  17516. }
  17517. .toolSort>div {
  17518. margin-right: 10px;
  17519. }
  17520. .tools {
  17521. width: 100%;
  17522. display: flex;
  17523. flex-direction: column;
  17524. flex-wrap: nowrap;
  17525. align-items: flex-start;
  17526. }
  17527. .leftTools,
  17528. .rightTools {
  17529. width: 50%;
  17530. }
  17531. .leftTools+.leftTools {
  17532. border-top: 1px solid #dbdbdb;
  17533. padding-top: 30px;
  17534. }
  17535. .rightTools {
  17536. display: flex;
  17537. flex-direction: row;
  17538. flex-wrap: nowrap;
  17539. justify-content: space-around;
  17540. }
  17541. .firstToolList {
  17542. display: flex;
  17543. flex-direction: column;
  17544. flex-wrap: nowrap;
  17545. align-items: center;
  17546. }
  17547. .iconList {
  17548. display: flex;
  17549. flex-direction: row;
  17550. flex-wrap: wrap;
  17551. justify-content: flex-start;
  17552. align-items: center;
  17553. margin: 20px 0 5px 0;
  17554. width: 240px;
  17555. min-width: 240px;
  17556. }
  17557. .iconTool {
  17558. display: flex;
  17559. flex-direction: column;
  17560. flex-wrap: nowrap;
  17561. align-items: center;
  17562. justify-content: flex-start;
  17563. margin: 15px 10px;
  17564. }
  17565. .toolIcon {
  17566. width: 50px;
  17567. }
  17568. .taskBorder {
  17569. /* border: 1px solid #CAD1DC; */
  17570. border-radius: 10px;
  17571. margin-top: 10px;
  17572. min-height: 670px;
  17573. position: relative;
  17574. background: #fff;
  17575. padding: 20px;
  17576. overflow: hidden;
  17577. box-sizing: border-box;
  17578. }
  17579. .smallTaskBorder {
  17580. height: 405px;
  17581. min-height: 405px !important;
  17582. overflow: hidden;
  17583. }
  17584. /* .taskBorder>div {
  17585. padding: 30px 30px 10px;
  17586. } */
  17587. .addTaskBorder {
  17588. /* border: 2px solid #5E9AFC; */
  17589. border-radius: 8px;
  17590. margin-top: 10px;
  17591. cursor: pointer;
  17592. /* height: 50px;
  17593. line-height: 50px; */
  17594. background: #fff;
  17595. padding: 15px 0;
  17596. display: flex;
  17597. align-items: center;
  17598. justify-content: center;
  17599. }
  17600. /* .addTaskBorder>div {
  17601. margin: 0 auto;
  17602. display: flex;
  17603. align-items: center;
  17604. justify-content: center;
  17605. }
  17606. .addTaskBorder>div>img {
  17607. width: 20px;
  17608. }
  17609. .addTaskBorder>div>span {
  17610. font-size: 16px;
  17611. margin-left: 10px;
  17612. color: #5E9AFC;
  17613. } */
  17614. .funBlock {
  17615. display: flex;
  17616. padding: 15px 0;
  17617. flex-direction: row;
  17618. justify-content: center;
  17619. align-items: center;
  17620. position: absolute;
  17621. right: 0;
  17622. bottom: 0;
  17623. background: #fff;
  17624. width: 100%;
  17625. height: 60px;
  17626. z-index: 9;
  17627. }
  17628. .fold {
  17629. display: flex;
  17630. margin: 0 20px;
  17631. flex-direction: row;
  17632. align-items: center;
  17633. cursor: pointer;
  17634. color: #2b7bff;
  17635. }
  17636. .arrow {
  17637. margin-right: 8px;
  17638. width: 16px;
  17639. height: 16px;
  17640. min-width: 16px;
  17641. min-height: 16px;
  17642. background-size: 100% 100%;
  17643. display: block;
  17644. background-image: url(../../../assets/icon/new/u_up.png);
  17645. /* border-left: 7px solid transparent;
  17646. border-bottom: 7px solid #717C8D;
  17647. border-top: 0px solid transparent;
  17648. border-right: 7px solid transparent; */
  17649. /* box-sizing: border-box; */
  17650. transition: all 0.3s;
  17651. }
  17652. .arrowZ {
  17653. transform: rotate(180deg);
  17654. }
  17655. .addToolFun {
  17656. display: flex;
  17657. width: 150px;
  17658. flex-direction: row;
  17659. align-items: center;
  17660. justify-content: center;
  17661. border: 2px dashed #cad1dc;
  17662. border-radius: 5px;
  17663. height: 50px;
  17664. margin: 35px auto 0;
  17665. cursor: pointer;
  17666. }
  17667. .addToolFun2 {
  17668. display: flex;
  17669. width: 150px;
  17670. border: 2px dashed #cad1dc;
  17671. flex-direction: row;
  17672. align-items: center;
  17673. justify-content: center;
  17674. border-radius: 5px;
  17675. height: 50px;
  17676. margin: 0 auto 0;
  17677. cursor: pointer;
  17678. }
  17679. .addToolFun2>div,
  17680. .addToolFun>div {
  17681. display: flex;
  17682. line-height: 50px;
  17683. }
  17684. .addToolImg {
  17685. width: 20px;
  17686. height: 20px;
  17687. margin-right: 10px;
  17688. }
  17689. .addToolsDia>>>.el-dialog__body {
  17690. padding: 20px;
  17691. }
  17692. .addToolsDia>>>.el-dialog__body>.toolChoose {
  17693. padding: 0;
  17694. }
  17695. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  17696. padding: 0;
  17697. border-bottom: none;
  17698. margin-bottom: 0;
  17699. }
  17700. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  17701. width: 100%;
  17702. }
  17703. .lineCss>>>.el-form-item__label {
  17704. width: auto !important;
  17705. }
  17706. .lineCss>>>.el-form-item__content {
  17707. margin-left: 50px !important;
  17708. }
  17709. .newSteps {
  17710. display: flex;
  17711. width: 100% !important;
  17712. /* height: 80px; */
  17713. cursor: pointer;
  17714. margin: 10px 0;
  17715. border-radius: 10px;
  17716. flex-direction: row;
  17717. align-content: center;
  17718. justify-content: center;
  17719. align-items: center;
  17720. margin: 0 !important;
  17721. }
  17722. /* 评价样式 */
  17723. .elist_css {
  17724. padding-bottom: 75px !important;
  17725. }
  17726. .elist_title {
  17727. margin-bottom: 10px;
  17728. }
  17729. .elist_input {
  17730. width: 100%;
  17731. }
  17732. .elist_input_box {
  17733. display: flex;
  17734. align-items: center;
  17735. flex-wrap: wrap;
  17736. }
  17737. .elist_input_box+.elist_input_box {
  17738. margin-top: 30px;
  17739. }
  17740. .elist_input .elist_input_box input {
  17741. font: inherit;
  17742. color: currentColor;
  17743. width: 100%;
  17744. /* max-width: calc(100% - 385px); */
  17745. max-width: calc(100% - 150px);
  17746. padding: 8px 14px;
  17747. display: block;
  17748. min-width: 0;
  17749. outline: none;
  17750. border: 1px solid rgba(0, 0, 0, 0.23);
  17751. border-radius: 4px;
  17752. box-sizing: border-box;
  17753. background: #fff;
  17754. margin: 0 20px 0 0;
  17755. }
  17756. .elist_input .elist_input_box span {
  17757. height: 36px;
  17758. line-height: 36px;
  17759. color: rgb(82, 82, 82);
  17760. min-width: 80px;
  17761. }
  17762. .elist_input .elist_input_box .remove {
  17763. height: 20px;
  17764. width: 20px;
  17765. min-height: 20px;
  17766. min-width: 20px;
  17767. background-size: 100% 100%;
  17768. background-position: unset;
  17769. margin-left: 5px;
  17770. }
  17771. .elist_input_box>>>.el-rate {
  17772. display: flex;
  17773. height: 36px;
  17774. align-items: center;
  17775. }
  17776. .elist_input_box .elist_inptu_text {
  17777. width: 100%;
  17778. display: flex;
  17779. align-items: center;
  17780. margin-top: 10px;
  17781. }
  17782. .elist_input_box .elist_inptu_text input {
  17783. /* width: 500px; */
  17784. width: 100%;
  17785. max-width: unset;
  17786. }
  17787. .elist_input_box>>>.el-rate__icon {
  17788. font-size: 24px;
  17789. }
  17790. .elist_btn {
  17791. margin-top: 10px;
  17792. }
  17793. .lineTitle {
  17794. /* margin-top: 15px; */
  17795. width: 110px;
  17796. font-size: 16px;
  17797. display: flex;
  17798. align-items: center;
  17799. line-height: 20px;
  17800. }
  17801. .lineTitle::before {
  17802. content: "";
  17803. display: block;
  17804. width: 3px;
  17805. height: 20px;
  17806. background: #0061ff;
  17807. border-radius: 3px;
  17808. margin: 0 5px 0 0;
  17809. }
  17810. .clineTitle::before {
  17811. content: "";
  17812. display: block;
  17813. min-width: 10px;
  17814. width: 10px;
  17815. height: 10px;
  17816. background: #0061ff;
  17817. border-radius: 50%;
  17818. margin: 0 5px 0 0;
  17819. }
  17820. .courseTop {
  17821. display: flex;
  17822. flex-direction: row;
  17823. justify-content: space-between;
  17824. align-items: center;
  17825. width: calc(100% - 40px);
  17826. margin: 0 auto;
  17827. padding: 10px 0;
  17828. }
  17829. .stepsNav {
  17830. display: flex;
  17831. flex-direction: row;
  17832. justify-content: flex-start;
  17833. align-items: center;
  17834. }
  17835. .stepsWord {
  17836. font-size: 18px;
  17837. color: #fff;
  17838. font-weight: bold;
  17839. margin-left: auto;
  17840. background: rgb(15, 126, 255);
  17841. border-radius: 5px;
  17842. padding: 3px 25px;
  17843. box-sizing: border-box;
  17844. }
  17845. .stepBox {
  17846. width: calc(100% - 40px);
  17847. height: calc(100% - 50px);
  17848. overflow: hidden;
  17849. border-radius: 5px;
  17850. margin: 0 auto;
  17851. }
  17852. .rightBox {
  17853. width: calc(100%);
  17854. background: #f0f2f5;
  17855. /* border-radius: 10px; */
  17856. overflow: auto;
  17857. height: calc(100% - 150px);
  17858. margin: 0 auto;
  17859. position: relative;
  17860. box-sizing: border-box;
  17861. }
  17862. .e_add_top {
  17863. display: flex;
  17864. justify-content: space-between;
  17865. background: #fff;
  17866. position: absolute;
  17867. right: 20px;
  17868. height: 50px;
  17869. align-items: center;
  17870. }
  17871. .e_add_title2 {
  17872. display: flex;
  17873. align-items: center;
  17874. }
  17875. .e_add_title2 span {
  17876. width: 40px;
  17877. }
  17878. .e_add_title {
  17879. display: flex;
  17880. align-items: center;
  17881. color: #b8b8b8;
  17882. font-size: 18px;
  17883. position: relative;
  17884. height: 40px;
  17885. }
  17886. .e_add_title span {
  17887. margin-right: 10px;
  17888. }
  17889. .e_add_title .el_input {
  17890. width: 300px;
  17891. }
  17892. .e_add_title>>>.el-input__inner {
  17893. width: 400px;
  17894. }
  17895. .e_add_btn {}
  17896. .e_add_content {
  17897. display: flex;
  17898. width: 100%;
  17899. }
  17900. .e_add_list {
  17901. background: #fff;
  17902. height: 500px;
  17903. width: 210px;
  17904. position: relative;
  17905. margin: 15px 5px 0 0;
  17906. flex-shrink: 0;
  17907. display: flex;
  17908. flex-direction: column;
  17909. }
  17910. .e_add_list_title {
  17911. font-size: 20px;
  17912. width: 100%;
  17913. box-sizing: border-box;
  17914. padding: 15px 40px;
  17915. text-align: center;
  17916. border-bottom: 1px solid #eaeaea;
  17917. position: relative;
  17918. display: flex;
  17919. align-items: center;
  17920. justify-content: center;
  17921. height: 57px;
  17922. background: #f6f6f6;
  17923. }
  17924. .e_add_list_title span {
  17925. overflow: hidden;
  17926. white-space: nowrap;
  17927. text-overflow: ellipsis;
  17928. }
  17929. .e_add_list_title img {
  17930. position: absolute;
  17931. right: 15px;
  17932. width: 25px;
  17933. cursor: pointer;
  17934. top: 50%;
  17935. transform: translateY(-50%);
  17936. }
  17937. .e_add_list_body {
  17938. height: calc(100% - 187px);
  17939. overflow: auto;
  17940. }
  17941. .e_add_list_child {
  17942. width: 100%;
  17943. display: flex;
  17944. align-items: center;
  17945. justify-content: center;
  17946. position: relative;
  17947. box-sizing: border-box;
  17948. padding: 15px 40px;
  17949. text-align: center;
  17950. }
  17951. .e_add_list_child span {
  17952. overflow: hidden;
  17953. white-space: nowrap;
  17954. text-overflow: ellipsis;
  17955. cursor: pointer;
  17956. }
  17957. .e_add_list_child img {
  17958. position: absolute;
  17959. right: 10px;
  17960. width: 21px;
  17961. cursor: pointer;
  17962. top: 50%;
  17963. transform: translateY(-50%);
  17964. }
  17965. .e_add_list_child+.e_add_list_child {
  17966. border-top: 1px solid #eaeaea;
  17967. }
  17968. .e_add_list_child .active {
  17969. color: #409eff;
  17970. }
  17971. .e_add_list_btn {
  17972. position: absolute;
  17973. bottom: 0;
  17974. height: 50px;
  17975. background: rgb(120, 120, 254);
  17976. width: 100%;
  17977. color: #fff;
  17978. font-size: 16px;
  17979. text-align: center;
  17980. line-height: 50px;
  17981. cursor: pointer;
  17982. }
  17983. .e_add_list_detail {
  17984. position: absolute;
  17985. bottom: 0;
  17986. height: 130px;
  17987. background: rgb(120, 120, 254);
  17988. width: 100%;
  17989. color: #fff;
  17990. font-size: 16px;
  17991. display: flex;
  17992. align-items: center;
  17993. justify-content: center;
  17994. }
  17995. .e_add_list_detail textarea {
  17996. height: 90%;
  17997. width: 95%;
  17998. border: none;
  17999. resize: none;
  18000. outline: none;
  18001. padding: 5px;
  18002. box-sizing: border-box;
  18003. }
  18004. .e_add_list_pbox {
  18005. width: 100%;
  18006. }
  18007. .e_add_list_pbox_title {
  18008. height: 50px;
  18009. background: #fff;
  18010. display: flex;
  18011. align-items: center;
  18012. width: 100%;
  18013. box-sizing: border-box;
  18014. padding: 0 20px;
  18015. flex-direction: row;
  18016. flex-wrap: wrap;
  18017. }
  18018. .type_title {
  18019. font-size: 18px;
  18020. font-weight: 700;
  18021. }
  18022. .type_content {
  18023. font-size: 16px;
  18024. margin-left: 30px;
  18025. }
  18026. .type_content span+span {
  18027. margin-left: 20px;
  18028. }
  18029. .type_content span {
  18030. cursor: pointer;
  18031. padding-bottom: 5px;
  18032. box-sizing: border-box;
  18033. }
  18034. .type_content .active {
  18035. color: #409eff;
  18036. border-bottom: 2px solid #409eff;
  18037. }
  18038. .e_add_list_pbox_content {
  18039. height: calc(100% - 50px);
  18040. display: flex;
  18041. align-items: center;
  18042. width: 100%;
  18043. background: #fff;
  18044. }
  18045. .mbCss {
  18046. width: 100%;
  18047. display: flex;
  18048. flex-direction: row;
  18049. flex-wrap: nowrap;
  18050. align-content: center;
  18051. align-items: flex-start;
  18052. justify-content: flex-start;
  18053. }
  18054. .pjCss {
  18055. /* width: 42%; */
  18056. width: calc(100% - 55%);
  18057. display: flex;
  18058. flex-direction: column;
  18059. flex-wrap: nowrap;
  18060. align-items: flex-start;
  18061. }
  18062. .e_box {
  18063. /* display: flex; */
  18064. flex-wrap: wrap;
  18065. max-height: 500px;
  18066. align-items: flex-start;
  18067. overflow: auto;
  18068. width: 100%;
  18069. }
  18070. .e_card {
  18071. border: 1px solid #ccc;
  18072. background: #fff;
  18073. margin-right: 20px;
  18074. width: 270px;
  18075. display: flex;
  18076. flex-direction: column;
  18077. align-items: center;
  18078. border-radius: 5px;
  18079. margin-top: 10px;
  18080. text-align: center;
  18081. }
  18082. .e_card_picture {
  18083. margin: 10px 0;
  18084. }
  18085. .e_card_picture>img {
  18086. width: 50px;
  18087. }
  18088. .e_card_name {
  18089. width: 100%;
  18090. padding: 0 10px;
  18091. box-sizing: border-box;
  18092. margin-bottom: 10px;
  18093. overflow: hidden;
  18094. text-overflow: ellipsis;
  18095. white-space: nowrap;
  18096. }
  18097. .e_card_time {
  18098. width: 100%;
  18099. padding: 0 10px;
  18100. box-sizing: border-box;
  18101. font-size: 15px;
  18102. color: #c3c3c3;
  18103. margin-bottom: 10px;
  18104. }
  18105. .e_card_btn {
  18106. height: 40px;
  18107. display: flex;
  18108. align-items: center;
  18109. width: 100%;
  18110. background: rgb(244, 244, 244);
  18111. }
  18112. .e_card_btn:hover {
  18113. background: rgb(221 221 221);
  18114. }
  18115. .e_card_btn span {
  18116. flex: 1 1 auto;
  18117. text-align: center;
  18118. cursor: pointer;
  18119. }
  18120. .addEva {
  18121. border: 1px solid #ccc;
  18122. background: #fff;
  18123. margin-right: 20px;
  18124. width: 270px;
  18125. height: 149px;
  18126. display: flex;
  18127. flex-direction: column;
  18128. align-items: center;
  18129. border-radius: 5px;
  18130. margin-top: 10px;
  18131. text-align: center;
  18132. cursor: pointer;
  18133. justify-content: center;
  18134. }
  18135. .addEva>img {
  18136. width: 50px;
  18137. object-fit: cover;
  18138. }
  18139. .uploadFm {
  18140. border: 1px dashed #ccc;
  18141. width: 100%;
  18142. height: 140px;
  18143. position: relative;
  18144. cursor: pointer;
  18145. display: flex;
  18146. flex-direction: column;
  18147. justify-content: center;
  18148. align-items: center;
  18149. font-size: 14px;
  18150. color: #6e6e6e;
  18151. position: relative;
  18152. }
  18153. .cover_p {
  18154. width: 100% !important;
  18155. height: 100%;
  18156. object-fit: cover;
  18157. }
  18158. .uploadFm2:hover .cover_mask {
  18159. display: flex !important;
  18160. }
  18161. .cover_mask {
  18162. display: none;
  18163. width: 100%;
  18164. height: 100%;
  18165. position: absolute;
  18166. background: #00000054;
  18167. align-items: center;
  18168. justify-content: center;
  18169. flex-direction: column;
  18170. }
  18171. .cover_mask>img {
  18172. width: 30px;
  18173. }
  18174. .cover_mask>span {
  18175. color: #fff;
  18176. font-size: 12px;
  18177. }
  18178. .uploadFm>img {
  18179. width: 50px;
  18180. }
  18181. .fileCss {
  18182. width: 100%;
  18183. display: flex;
  18184. flex-direction: row;
  18185. flex-wrap: nowrap;
  18186. justify-content: space-around;
  18187. align-items: center;
  18188. padding-top: 15px;
  18189. }
  18190. .fileCss>div {
  18191. display: flex;
  18192. flex-direction: column;
  18193. align-items: center;
  18194. }
  18195. .fileCss .spanName {
  18196. margin-top: 10px;
  18197. }
  18198. .sysPicBox {
  18199. display: flex;
  18200. flex-direction: row;
  18201. flex-wrap: wrap;
  18202. align-content: flex-start;
  18203. height: 435px;
  18204. overflow: auto;
  18205. position: relative;
  18206. }
  18207. .picNone {
  18208. position: absolute;
  18209. left: 50%;
  18210. top: 45%;
  18211. transform: translate(-50%, -50%);
  18212. width: fit-content;
  18213. color: #9c9c9c;
  18214. }
  18215. .sysPic {
  18216. width: 200px;
  18217. height: 115px;
  18218. margin: 0 20px 20px 0;
  18219. cursor: pointer;
  18220. }
  18221. .sysPic>img,
  18222. .isSysPic>img,
  18223. .deletePic>img {
  18224. width: 100%;
  18225. height: 100%;
  18226. object-fit: cover;
  18227. }
  18228. .isSysPic {
  18229. width: 200px;
  18230. height: 115px;
  18231. position: relative;
  18232. }
  18233. .deletePic {
  18234. width: 20px;
  18235. height: 20px;
  18236. position: absolute;
  18237. top: 0;
  18238. right: 0;
  18239. cursor: pointer;
  18240. }
  18241. .select_box1 {
  18242. height: 100%;
  18243. }
  18244. .select_box1_img {
  18245. background: #fff;
  18246. border-radius: 5px;
  18247. padding: 15px;
  18248. box-sizing: border-box;
  18249. margin-bottom: 20px;
  18250. }
  18251. .select_box1_title {
  18252. padding: 0 0 15px 0;
  18253. border-bottom: 1px solid #eee;
  18254. margin-bottom: 15px;
  18255. }
  18256. .select_box1_title span:nth-child(1) {
  18257. font-size: 16px;
  18258. margin-right: 20px;
  18259. color: #000;
  18260. }
  18261. .select_box1_title span:nth-child(2) {
  18262. font-size: 14px;
  18263. color: rgb(112, 112, 112);
  18264. }
  18265. .select_box1_add_img {}
  18266. .select_box1_select {
  18267. background: #fff;
  18268. border-radius: 5px;
  18269. padding: 15px;
  18270. box-sizing: border-box;
  18271. height: calc(100% - 200px);
  18272. overflow: auto;
  18273. }
  18274. .select_box2 {
  18275. height: 100%;
  18276. }
  18277. .select_box2_title {
  18278. background: #fff;
  18279. border-radius: 5px;
  18280. padding: 5px 10px;
  18281. box-sizing: border-box;
  18282. margin-bottom: 10px;
  18283. }
  18284. .select_box2_box {
  18285. display: flex;
  18286. height: calc(100% - 30px);
  18287. }
  18288. .select_box2_img {
  18289. width: calc(100% - 310px);
  18290. height: 100%;
  18291. overflow: auto;
  18292. background: #fff;
  18293. border-radius: 5px;
  18294. }
  18295. .select_box2_img img {
  18296. width: 100%;
  18297. }
  18298. .select_box2_answer {
  18299. background: #fff;
  18300. margin-left: 10px;
  18301. border-radius: 5px;
  18302. width: 300px;
  18303. overflow: auto;
  18304. height: 100%;
  18305. display: flex;
  18306. flex-direction: column;
  18307. align-items: center;
  18308. padding-top: 10px;
  18309. box-sizing: border-box;
  18310. }
  18311. .select_box2_answer_box {
  18312. margin: 0 0 10px 0;
  18313. width: 85%;
  18314. }
  18315. .rate_textarea {
  18316. font: inherit;
  18317. color: currentColor;
  18318. width: 100%;
  18319. padding: 8px 14px;
  18320. display: block;
  18321. min-width: 0;
  18322. outline: none;
  18323. border: 1px solid rgba(0, 0, 0, 0.23);
  18324. border-radius: 4px;
  18325. box-sizing: border-box;
  18326. background: #fff;
  18327. margin: 0 20px 0 0;
  18328. resize: none;
  18329. }
  18330. .select_answer_title {
  18331. text-align: left;
  18332. width: 85%;
  18333. margin-bottom: 10px;
  18334. font-size: 18px;
  18335. color: #8e8e8e;
  18336. }
  18337. .mask {
  18338. background-color: rgb(0 0 0 / 30%);
  18339. /* position: fixed; */
  18340. position: absolute;
  18341. top: 0;
  18342. left: 0;
  18343. width: 100%;
  18344. height: 100%;
  18345. z-index: 90;
  18346. display: flex;
  18347. align-items: center;
  18348. justify-content: center;
  18349. }
  18350. .progressBox {
  18351. width: 300px;
  18352. height: 150px;
  18353. background: #fff;
  18354. border-radius: 10px;
  18355. box-shadow: 0 0 6px 1px #bfbfbf;
  18356. display: flex;
  18357. align-items: center;
  18358. justify-content: center;
  18359. flex-direction: column;
  18360. position: relative;
  18361. color: #6c6c6c;
  18362. }
  18363. .progressBox>>>.el-progress-bar__outer {
  18364. background-color: #d1dfff !important;
  18365. }
  18366. .progressBox .lbox {
  18367. height: 50px;
  18368. font-size: 19px;
  18369. display: flex;
  18370. align-items: center;
  18371. color: #747474;
  18372. }
  18373. .progressBox .lbox img {
  18374. width: 40px;
  18375. margin-right: 20px;
  18376. }
  18377. .closeCss {
  18378. position: absolute;
  18379. top: 8px;
  18380. right: 8px;
  18381. cursor: pointer;
  18382. width: 20px;
  18383. height: 20px;
  18384. }
  18385. .closeCss>img {
  18386. width: 100%;
  18387. height: 100%;
  18388. }
  18389. .updateTips::before {
  18390. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  18391. font-size: 14px;
  18392. margin-left: 20px;
  18393. font-weight: 400;
  18394. color: #ff3a3a;
  18395. margin-bottom: 10px;
  18396. display: block;
  18397. }
  18398. .updateMask {
  18399. width: 100%;
  18400. z-index: 3;
  18401. top: 0;
  18402. position: absolute;
  18403. /* background-color: rgba(0,0,0,.3); */
  18404. }
  18405. .t_j_box {
  18406. display: flex;
  18407. }
  18408. .t_j_box span:nth-child(1) {
  18409. width: 15%;
  18410. overflow: hidden;
  18411. margin-right: 10px;
  18412. text-overflow: ellipsis;
  18413. white-space: nowrap;
  18414. }
  18415. .t_j_box span:nth-child(2) {
  18416. width: 30%;
  18417. overflow: hidden;
  18418. text-overflow: ellipsis;
  18419. margin-right: 10px;
  18420. }
  18421. .t_j_box span:nth-child(3) {
  18422. max-width: calc(55% - 20px);
  18423. overflow: hidden;
  18424. text-overflow: ellipsis;
  18425. }
  18426. .sentenBox {
  18427. background: #fff;
  18428. height: 600px;
  18429. overflow: auto;
  18430. background-image: url("../../../assets/icon/conSentences/csBg.png");
  18431. background-position: 102%;
  18432. background-repeat: no-repeat;
  18433. background-size: 60%;
  18434. }
  18435. .sentenBox>.sentenContent {
  18436. padding-bottom: 10px;
  18437. width: 97%;
  18438. margin: 0 auto;
  18439. }
  18440. .sentenBox>.sentenContent+.sentenContent {
  18441. border-top: 1px solid #cbcbcb;
  18442. }
  18443. .addSen {
  18444. background: #409efe;
  18445. width: 90px;
  18446. color: #fff;
  18447. height: 35px;
  18448. text-align: center;
  18449. line-height: 35px;
  18450. border-radius: 5px;
  18451. float: right;
  18452. margin: 10px 20px 0 0;
  18453. cursor: pointer;
  18454. }
  18455. .sentenTop {
  18456. display: flex;
  18457. flex-direction: row;
  18458. flex-wrap: nowrap;
  18459. align-items: center;
  18460. }
  18461. .sentenTop::before {
  18462. content: attr(index);
  18463. background: #3681fc;
  18464. border-radius: 50%;
  18465. color: #fff;
  18466. width: 25px;
  18467. height: 25px;
  18468. min-width: 25px;
  18469. min-height: 25px;
  18470. text-align: center;
  18471. line-height: 25px;
  18472. margin-right: 5px;
  18473. }
  18474. .sentenTop>div:nth-child(2) {
  18475. width: 300px;
  18476. margin: 0 15px;
  18477. }
  18478. .sentenTop>div:nth-child(3) {
  18479. background: #409efe;
  18480. color: #fff;
  18481. width: 65px;
  18482. height: 35px;
  18483. text-align: center;
  18484. line-height: 35px;
  18485. border-radius: 5px;
  18486. cursor: pointer;
  18487. }
  18488. .cardList {
  18489. padding: 30px 0 20px 0;
  18490. display: flex;
  18491. flex-direction: row;
  18492. flex-wrap: wrap;
  18493. align-items: center;
  18494. box-sizing: border-box;
  18495. border-bottom: 1px solid #f4f4f4;
  18496. width: 98%;
  18497. margin: 0 auto;
  18498. }
  18499. .rightCardList {
  18500. display: flex;
  18501. flex-wrap: wrap;
  18502. }
  18503. .cardBox {
  18504. display: flex;
  18505. flex-direction: row;
  18506. flex-wrap: wrap;
  18507. align-items: center;
  18508. align-content: center;
  18509. }
  18510. .isCard,
  18511. .isCard1 {
  18512. width: auto;
  18513. padding: 0 20px;
  18514. height: 65px;
  18515. text-align: center;
  18516. line-height: 65px;
  18517. font-size: 14px;
  18518. cursor: pointer;
  18519. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  18520. background-size: 100% 100%;
  18521. position: relative;
  18522. z-index: 99;
  18523. }
  18524. .isCard1 {
  18525. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  18526. }
  18527. .isCard:hover .deleteWord {
  18528. display: block;
  18529. }
  18530. .isCard>div:nth-child(1),
  18531. .isCard1>div:nth-child(1) {
  18532. white-space: nowrap;
  18533. overflow: hidden;
  18534. text-overflow: ellipsis;
  18535. width: 100%;
  18536. margin: 0 auto;
  18537. }
  18538. .card {
  18539. width: 140px;
  18540. height: 65px;
  18541. }
  18542. .card>img {
  18543. width: 100%;
  18544. height: 100%;
  18545. }
  18546. .rightCardBox {
  18547. width: 98%;
  18548. margin: 10px auto 0;
  18549. }
  18550. .rightCardBox>div:nth-child(1) {
  18551. margin-bottom: 10px;
  18552. }
  18553. .cardCss {
  18554. display: flex;
  18555. flex-direction: column;
  18556. flex-wrap: nowrap;
  18557. align-items: center;
  18558. border-bottom: 3px solid #b4c3d3;
  18559. padding: 0 0 5px 0;
  18560. /* margin-right: 10px; */
  18561. }
  18562. .cardCss>div:nth-child(2) {
  18563. background: #5b7b9d;
  18564. color: #fff;
  18565. width: 20px;
  18566. height: 20px;
  18567. border-radius: 50%;
  18568. text-align: center;
  18569. line-height: 20px;
  18570. }
  18571. .sentenTopBox {
  18572. display: flex;
  18573. flex-direction: row;
  18574. flex-wrap: nowrap;
  18575. align-items: center;
  18576. justify-content: space-between;
  18577. padding: 55px 0 0 20px;
  18578. box-sizing: border-box;
  18579. width: 85%;
  18580. }
  18581. .rb_c_ai_box,
  18582. .stepsBottom {
  18583. width: 100%;
  18584. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  18585. /* background: #f7f7f7; */
  18586. border-radius: 10px;
  18587. overflow: hidden;
  18588. /* height: 100%; */
  18589. height: calc(100% - 55px);
  18590. }
  18591. .navTop {
  18592. background: #53749b;
  18593. color: #fff;
  18594. height: 40px;
  18595. line-height: 40px;
  18596. padding-left: 15px;
  18597. font-size: 18px;
  18598. }
  18599. .navBottom {
  18600. /* background: #6b91b7; */
  18601. height: 100%;
  18602. overflow: auto;
  18603. padding: 10px 0;
  18604. }
  18605. .navStage {
  18606. display: flex;
  18607. flex-direction: row;
  18608. flex-wrap: nowrap;
  18609. align-items: center;
  18610. padding: 10px 10px 10px 0;
  18611. cursor: pointer;
  18612. background: #ffffff;
  18613. width: 95%;
  18614. margin: 5px auto 5px;
  18615. box-sizing: border-box;
  18616. border-radius: 5px;
  18617. flex-wrap: wrap;
  18618. position: relative;
  18619. }
  18620. .navStage:hover>.chapter_upload_drag {
  18621. display: block;
  18622. }
  18623. .navTask:hover>.chapter_upload_drag {
  18624. display: block;
  18625. }
  18626. .chapter_upload:hover>.chapter_upload_drag {
  18627. display: block;
  18628. }
  18629. .navStage::before {
  18630. content: "";
  18631. display: block;
  18632. width: 16px;
  18633. height: 16px;
  18634. background-image: url(../../../assets/icon/new/icon_stage.png);
  18635. background-size: 100%;
  18636. margin-left: 25px;
  18637. }
  18638. .navStage .chapter_unit_open {
  18639. content: "";
  18640. display: block;
  18641. width: 16px;
  18642. height: 16px;
  18643. background-image: url(../../../assets/icon/new/down.png);
  18644. transform: rotate(-90deg);
  18645. background-size: 100%;
  18646. margin-left: 10px;
  18647. transition: all 0.5s;
  18648. }
  18649. .isNavStageOpen .chapter_unit_open {
  18650. transform: rotate(0deg);
  18651. }
  18652. .isNavStage {
  18653. background: #0061ff;
  18654. }
  18655. .isNavStage::before {
  18656. background-image: url(../../../assets/icon/new/icon_stage_a.png);
  18657. }
  18658. .isNavStage .chapter_unit_open {
  18659. background-image: url(../../../assets/icon/new/downC.png);
  18660. }
  18661. .isNavStage .nt_taskName {
  18662. font-weight: bold !important;
  18663. color: #ffffff !important;
  18664. }
  18665. .isNavStage .nt_taskTitle {
  18666. font-weight: bold !important;
  18667. color: #fff !important;
  18668. }
  18669. .navStage .nt_taskBox {
  18670. width: calc(100% - 68px);
  18671. padding: 0 0 0 5px;
  18672. box-sizing: border-box;
  18673. box-sizing: border-box;
  18674. display: flex;
  18675. flex-direction: row;
  18676. flex-wrap: nowrap;
  18677. align-items: baseline;
  18678. }
  18679. .navStage .nt_taskTitle {
  18680. color: #060e17;
  18681. line-height: 25px;
  18682. font-size: 16px;
  18683. }
  18684. .navStage .nt_taskName {
  18685. max-width: calc(100% - 82px);
  18686. white-space: nowrap;
  18687. overflow: hidden;
  18688. text-overflow: ellipsis;
  18689. font-size: 16px;
  18690. color: #060e17;
  18691. }
  18692. .navTask {
  18693. display: flex;
  18694. flex-direction: row;
  18695. flex-wrap: nowrap;
  18696. align-items: center;
  18697. padding: 10px 10px 10px 0;
  18698. cursor: pointer;
  18699. background: #ffffff;
  18700. width: 95%;
  18701. margin: 5px auto 5px;
  18702. box-sizing: border-box;
  18703. border-radius: 5px;
  18704. flex-wrap: wrap;
  18705. position: relative;
  18706. }
  18707. .navTask .chapter_upload_open {
  18708. content: "";
  18709. display: block;
  18710. width: 16px;
  18711. height: 16px;
  18712. background-image: url(../../../assets/icon/new/icon_arrow.png);
  18713. background-size: 100%;
  18714. margin-left: 23px;
  18715. }
  18716. .noImage .chapter_upload_open {
  18717. display: none;
  18718. background-image: unset !important;
  18719. }
  18720. .isNavOpen .chapter_upload_open {
  18721. /* background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important; */
  18722. transform: rotate(90deg);
  18723. }
  18724. .isNavTask .chapter_upload_open {
  18725. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  18726. transform: rotate(-90deg);
  18727. }
  18728. .isNavTask.isNavOpen .chapter_upload_open {
  18729. transform: rotate(0deg);
  18730. }
  18731. .dragOverTop {
  18732. border-top: 2px solid #0061ff !important;
  18733. border-radius: 0 !important;
  18734. margin-top: 10px;
  18735. }
  18736. .dragOverBottom {
  18737. border-bottom: 2px solid #0061ff !important;
  18738. border-radius: 0 !important;
  18739. margin-top: 10px;
  18740. }
  18741. .dragOverTop2 {
  18742. border-top: 2px solid #0061ff !important;
  18743. border-radius: 0 !important;
  18744. }
  18745. .dragOverBottom2 {
  18746. border-bottom: 2px solid #0061ff !important;
  18747. border-radius: 0 !important;
  18748. }
  18749. .isNavTask {
  18750. /* background: #3681FC; */
  18751. background: #eef3fb;
  18752. }
  18753. .isNavTask>.chapter_upload_drag {
  18754. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  18755. }
  18756. .isNavTask .nt_taskName {
  18757. /* color: #fff !important; */
  18758. font-weight: bold !important;
  18759. color: #0061ff !important;
  18760. }
  18761. .isNavTask .nt_taskTitle {
  18762. /* color: #AECCFE !important; */
  18763. font-weight: bold !important;
  18764. color: #0061ff !important;
  18765. }
  18766. .navTask .nt_taskBox {
  18767. width: calc(100% - 40px);
  18768. padding: 0 0 0 5px;
  18769. box-sizing: border-box;
  18770. box-sizing: border-box;
  18771. display: flex;
  18772. flex-direction: row;
  18773. flex-wrap: nowrap;
  18774. align-items: baseline;
  18775. }
  18776. .navTask .nt_taskTitle {
  18777. /* color: #717C8D; */
  18778. color: #060e17;
  18779. line-height: 25px;
  18780. font-size: 16px;
  18781. /* min-width: 66px; */
  18782. }
  18783. .navTask .nt_taskName {
  18784. /* color: #fff; */
  18785. /* max-width: 130px; */
  18786. /* width: 100%; */
  18787. max-width: calc(100% - 66px);
  18788. font-size: 16px;
  18789. color: #060e17;
  18790. /* color: #0E1E33; */
  18791. }
  18792. .navTask .nt_taskName span {
  18793. width: 100%;
  18794. white-space: nowrap;
  18795. overflow: hidden;
  18796. text-overflow: ellipsis;
  18797. display: block;
  18798. }
  18799. .gjBox {
  18800. width: calc(100% - 25px);
  18801. padding: 0 0 0 0;
  18802. box-sizing: border-box;
  18803. border-left: 1px solid #cad1dc;
  18804. margin-left: 25px;
  18805. }
  18806. .gjBox>div {
  18807. display: flex;
  18808. align-items: center;
  18809. }
  18810. .gjBox>div::before {
  18811. content: "";
  18812. height: 1px;
  18813. width: 10px;
  18814. background: #cad1dc;
  18815. display: block;
  18816. margin-right: 5px;
  18817. }
  18818. .gjCss {
  18819. display: flex;
  18820. flex-direction: row;
  18821. flex-wrap: nowrap;
  18822. align-items: center;
  18823. padding: 15px 0;
  18824. box-sizing: border-box;
  18825. font-size: 14px;
  18826. cursor: pointer;
  18827. }
  18828. .isGjCss {
  18829. color: #0061ff;
  18830. }
  18831. .groupBox {}
  18832. .groupContent+.groupContent {
  18833. margin-top: 30px;
  18834. }
  18835. .groupTitle {
  18836. font-size: 24px;
  18837. color: rgb(80, 80, 80);
  18838. margin-bottom: 20px;
  18839. }
  18840. .groupName {
  18841. display: flex;
  18842. align-items: center;
  18843. }
  18844. .groupn {
  18845. font-size: 15px;
  18846. margin-right: 10px;
  18847. }
  18848. .groupName+.groupName {
  18849. margin-top: 15px;
  18850. }
  18851. .groupBtn {
  18852. margin-left: 10px;
  18853. }
  18854. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  18855. text-align: left;
  18856. }
  18857. .radioBox>div {
  18858. margin: 10px 0 0 10px;
  18859. }
  18860. .radioBox>>>.el-radio__input,
  18861. .radioBox>>>.el-checkbox__inner {
  18862. margin-left: 10px;
  18863. }
  18864. .radioBox>>>.el-radio__label,
  18865. .radioBox>>>.el-checkbox__label {
  18866. display: flex;
  18867. align-items: center;
  18868. }
  18869. .inImg {
  18870. width: 50px;
  18871. }
  18872. .inImg>img {
  18873. width: 100%;
  18874. height: 100%;
  18875. object-fit: cover;
  18876. }
  18877. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  18878. height: auto;
  18879. padding: 10px;
  18880. margin: 0;
  18881. }
  18882. .upCss>>>.el-upload-list {
  18883. width: 100%;
  18884. }
  18885. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  18886. width: 100%;
  18887. height: 120px;
  18888. object-fit: contain;
  18889. background: unset;
  18890. margin-left: 0;
  18891. }
  18892. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  18893. display: none;
  18894. }
  18895. .tcMember+.tcMember::before {
  18896. content: "、";
  18897. }
  18898. .xzUpImg {
  18899. width: 25px;
  18900. height: 25px;
  18901. min-width: 25px;
  18902. min-height: 25px;
  18903. cursor: pointer;
  18904. margin: 0 10px;
  18905. }
  18906. .xzUpImg>img {
  18907. width: 100%;
  18908. height: 100%;
  18909. }
  18910. .closeCss {
  18911. position: absolute;
  18912. top: 8px;
  18913. right: 8px;
  18914. cursor: pointer;
  18915. width: 20px;
  18916. height: 20px;
  18917. }
  18918. .closeCss>img {
  18919. width: 100%;
  18920. height: 100%;
  18921. }
  18922. .moveBtn {
  18923. display: flex;
  18924. flex-direction: row;
  18925. flex-wrap: nowrap;
  18926. align-items: center;
  18927. width: 55px;
  18928. }
  18929. .timuUpImg {
  18930. display: flex;
  18931. flex-direction: row;
  18932. align-items: center;
  18933. width: 100%;
  18934. margin-right: 10px;
  18935. }
  18936. .timuUpImg>div:nth-child(1) {
  18937. margin-right: 10px;
  18938. display: flex;
  18939. align-items: center;
  18940. width: 100%;
  18941. }
  18942. .timuImgBox {
  18943. margin: 10px 0;
  18944. display: flex;
  18945. flex-direction: column;
  18946. flex-wrap: wrap;
  18947. align-items: flex-start;
  18948. }
  18949. .timuImg {
  18950. width: 100px;
  18951. margin: 5px 0;
  18952. cursor: pointer;
  18953. position: relative;
  18954. }
  18955. .timuImg:hover .deleteWord {
  18956. display: block;
  18957. }
  18958. .deleteWord {
  18959. width: 25px;
  18960. height: 25px;
  18961. position: absolute;
  18962. right: -5px;
  18963. top: -5px;
  18964. cursor: pointer;
  18965. display: none;
  18966. }
  18967. .timuImg>img,
  18968. .deleteWord>img {
  18969. width: 100%;
  18970. height: 100%;
  18971. object-fit: cover;
  18972. }
  18973. .e_add_delete {
  18974. cursor: pointer;
  18975. margin-left: 10px;
  18976. }
  18977. .pType_box {
  18978. margin-top: 30px;
  18979. align-items: flex-end;
  18980. }
  18981. .noneBox {
  18982. height: 200px;
  18983. width: 100%;
  18984. display: flex;
  18985. align-items: center;
  18986. justify-content: center;
  18987. flex-direction: column;
  18988. /* margin-top: 150px; */
  18989. }
  18990. .noneBox>img {
  18991. width: 95px;
  18992. }
  18993. .noneBox>span {
  18994. margin-top: 10px;
  18995. color: #717c8d;
  18996. }
  18997. .rb_c_box {
  18998. width: 100%;
  18999. height: 100%;
  19000. display: flex;
  19001. /* padding: 20px; */
  19002. box-sizing: border-box;
  19003. justify-content: space-between;
  19004. }
  19005. .rb_c_box_left {
  19006. height: 100%;
  19007. background: #fff;
  19008. width: 270px;
  19009. min-width: 270px;
  19010. border-radius: 8px;
  19011. margin-right: 10px;
  19012. }
  19013. .rb_c_box_right {
  19014. height: 100%;
  19015. width: calc(100%);
  19016. overflow: hidden;
  19017. }
  19018. .rb_c_box_btn {
  19019. display: flex;
  19020. justify-content: flex-start;
  19021. height: 50px;
  19022. align-items: center;
  19023. }
  19024. .rb_c_box_right>.basic_box {
  19025. /* background: #fff; */
  19026. border-radius: 0;
  19027. height: calc(100% - 0px);
  19028. overflow: auto;
  19029. padding: 0;
  19030. }
  19031. .textarea_css {
  19032. display: block;
  19033. resize: none;
  19034. padding: 10px 15px;
  19035. line-height: 1.5;
  19036. box-sizing: border-box;
  19037. width: 100%;
  19038. font-size: 14px;
  19039. color: #606266;
  19040. background-color: #fff;
  19041. background-image: none;
  19042. border: 1px solid #dcdfe6;
  19043. border-radius: 4px;
  19044. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  19045. outline: none;
  19046. overflow: hidden;
  19047. height: 46px;
  19048. font-family: "Microsoft YaHei";
  19049. }
  19050. .textarea_css::-webkit-input-placeholder {
  19051. color: #c0c4cc;
  19052. }
  19053. .textarea_css:focus {
  19054. border-color: #409eff;
  19055. outline: 0;
  19056. }
  19057. .addEditor>>>.text {
  19058. height: auto;
  19059. min-height: 100px;
  19060. }
  19061. .addEditor>>>.w-e-text-container {
  19062. min-height: 100px;
  19063. }
  19064. .moveBtn2 {
  19065. flex-direction: column;
  19066. width: fit-content;
  19067. margin: 0 10px 0 10px;
  19068. }
  19069. .moveBtn2 .chapter_upload_down,
  19070. .moveBtn2 .chapter_upload_up {
  19071. width: 16px;
  19072. height: 16px;
  19073. }
  19074. .moveBtn2 .chapter_upload_up::after,
  19075. .moveBtn2 .chapter_upload_down::after {
  19076. width: 10px;
  19077. height: 10px;
  19078. }
  19079. .fullStyle>>>.el-dialog__body {
  19080. height: calc(100% - 125px) !important;
  19081. box-sizing: border-box;
  19082. }
  19083. .fullStyle1>>>.el-dialog__body {
  19084. height: auto !important;
  19085. }
  19086. .fullStyle>>>.el-dialog {
  19087. width: 100% !important;
  19088. max-width: 100% !important;
  19089. height: 100% !important;
  19090. margin: 0 !important;
  19091. }
  19092. .fullStyle {
  19093. width: 100% !important;
  19094. max-width: 100% !important;
  19095. height: 100% !important;
  19096. margin: 0 auto !important;
  19097. }
  19098. .wb_j_box_btn {
  19099. width: calc(100% - 30px);
  19100. display: flex;
  19101. height: 40px;
  19102. border: 1.5px solid #cad1dc;
  19103. border-radius: 4px;
  19104. box-sizing: border-box;
  19105. align-items: center;
  19106. font-size: 14px;
  19107. cursor: pointer;
  19108. overflow: hidden;
  19109. }
  19110. .wb_j_box_btn:hover {
  19111. border: 1.5px solid #0061ff;
  19112. }
  19113. .wb_j_box_title {
  19114. background: #f0f4fa;
  19115. height: 100%;
  19116. line-height: 40px;
  19117. width: 90px;
  19118. text-align: center;
  19119. color: #060e17;
  19120. border-right: 1.5px solid #cad1dc;
  19121. box-sizing: border-box;
  19122. }
  19123. .wb_j_box_btn_c {
  19124. width: calc(100% - 90px);
  19125. padding: 0 35px 0 10px;
  19126. box-sizing: border-box;
  19127. position: relative;
  19128. }
  19129. .wb_j_box_span {
  19130. width: 100%;
  19131. overflow: hidden;
  19132. white-space: nowrap;
  19133. text-overflow: ellipsis;
  19134. word-wrap: break-word;
  19135. color: #717c8d;
  19136. }
  19137. .wb_j_box_arrow {
  19138. content: "";
  19139. width: 14px;
  19140. height: 14px;
  19141. background: url(../../../assets/icon/new/u_arrow.png);
  19142. background-size: 100% 100%;
  19143. position: absolute;
  19144. right: 12px;
  19145. top: 50%;
  19146. transform: translateY(-50%);
  19147. }
  19148. .check_classBox {
  19149. height: 400px;
  19150. display: flex;
  19151. border-top: 1.5px solid #e7ebf1;
  19152. border-bottom: 1.5px solid #e7ebf1;
  19153. }
  19154. .check_class_right {
  19155. width: 130px;
  19156. border-right: 1px solid #e7ebf1;
  19157. display: flex;
  19158. align-items: center;
  19159. flex-direction: column;
  19160. height: 100%;
  19161. overflow: auto;
  19162. padding: 15px 0;
  19163. box-sizing: border-box;
  19164. }
  19165. .check_class {
  19166. width: 85%;
  19167. border-radius: 5px;
  19168. height: 30px;
  19169. min-height: 30px;
  19170. line-height: 30px;
  19171. text-align: center;
  19172. padding: 0 10px;
  19173. box-sizing: border-box;
  19174. cursor: pointer;
  19175. white-space: nowrap;
  19176. overflow: hidden;
  19177. text-overflow: ellipsis;
  19178. }
  19179. .check_class.activeX {
  19180. background: #e0eafb;
  19181. color: #3681fc;
  19182. font-weight: 700;
  19183. }
  19184. .check_class+.check_class {
  19185. margin-top: 15px;
  19186. }
  19187. .check_class_left {
  19188. background: #fafafa;
  19189. width: calc(100% - 130px);
  19190. padding: 15px;
  19191. box-sizing: border-box;
  19192. }
  19193. .check_class_all_box {
  19194. display: flex;
  19195. margin-bottom: 10px;
  19196. }
  19197. .all_check {
  19198. display: flex;
  19199. align-items: center;
  19200. padding: 2px 0 0;
  19201. margin-left: 10px;
  19202. }
  19203. .all_check>>>.el-checkbox__label {
  19204. line-height: 18px;
  19205. }
  19206. .check_class_left_title {
  19207. font-size: 16px;
  19208. font-weight: 700;
  19209. }
  19210. .check_class_item {
  19211. display: flex;
  19212. flex-wrap: wrap;
  19213. height: calc(100% - 45px);
  19214. overflow: auto;
  19215. justify-content: flex-start;
  19216. align-items: flex-start;
  19217. align-content: flex-start;
  19218. }
  19219. .class_item:first-child {
  19220. /* margin: 0 15px 15px 67px; */
  19221. }
  19222. .class_item {
  19223. margin: 0 15px 15px 0;
  19224. }
  19225. .class_item:hover>>>.el-checkbox__label {
  19226. color: #409eff;
  19227. }
  19228. .class_item>>>.el-checkbox__label {
  19229. color: #0e1e33;
  19230. }
  19231. .class_item:hover>>>.el-checkbox__inner {
  19232. border-color: #409eff;
  19233. }
  19234. .class_item>>>.el-checkbox,
  19235. .class_item>>>.el-checkbox__input {
  19236. display: flex;
  19237. align-items: center;
  19238. }
  19239. .taskTitle {
  19240. font-size: 20px;
  19241. font-weight: bold;
  19242. margin-bottom: 35px;
  19243. }
  19244. .taskTitle:after {
  19245. content: "";
  19246. width: 100%;
  19247. display: block;
  19248. height: 1px;
  19249. background: #cad1dc;
  19250. position: absolute;
  19251. left: 0;
  19252. margin: 15px 0 0;
  19253. }
  19254. .eva_btn_box {
  19255. margin: 20px 0px 0 0;
  19256. display: flex;
  19257. flex-direction: row;
  19258. flex-wrap: nowrap;
  19259. align-items: center;
  19260. justify-content: space-between;
  19261. width: 100%;
  19262. }
  19263. .eva_btn_left_box {
  19264. display: flex;
  19265. flex-direction: row;
  19266. flex-wrap: nowrap;
  19267. align-items: center;
  19268. }
  19269. .addTypeChoose {
  19270. display: flex;
  19271. flex-direction: row;
  19272. flex-wrap: nowrap;
  19273. align-items: center;
  19274. margin: 15px 0;
  19275. }
  19276. .addTypeBox {
  19277. display: flex;
  19278. flex-direction: column;
  19279. flex-wrap: nowrap;
  19280. align-items: center;
  19281. }
  19282. .addTypeChoose {
  19283. display: flex;
  19284. flex-direction: row;
  19285. flex-wrap: nowrap;
  19286. align-items: center;
  19287. margin: 15px 0;
  19288. }
  19289. .buchong_box {
  19290. background: #E0EAFB66;
  19291. width: calc(100% - 20px);
  19292. min-height: 50px;
  19293. display: flex;
  19294. align-items: center;
  19295. justify-content: center;
  19296. margin: 0 auto;
  19297. }
  19298. .outline {
  19299. width: calc(100% - 40px);
  19300. margin: 0 auto;
  19301. }
  19302. .task_outline {
  19303. width: calc(100% - 40px);
  19304. margin: 0 auto;
  19305. }
  19306. .outline_box+.outline_box {
  19307. margin: 30px 0 0px;
  19308. }
  19309. .outline_task {
  19310. display: flex;
  19311. align-items: center;
  19312. margin-bottom: 10px;
  19313. }
  19314. .outline_task .title {
  19315. font-size: 18px;
  19316. font-weight: bold;
  19317. min-width: 80px;
  19318. }
  19319. .op_task_box,
  19320. .op_tool_box,
  19321. .outline_detail {
  19322. position: relative;
  19323. }
  19324. .op_task_box:hover .op_box,
  19325. .op_tool_box:hover .op_box,
  19326. .outline_detail:hover .op_box {
  19327. display: flex
  19328. }
  19329. .op_box {
  19330. position: absolute;
  19331. bottom: 10px;
  19332. display: none;
  19333. align-items: center;
  19334. justify-content: space-between;
  19335. width: calc(100% - 20px);
  19336. left: 50%;
  19337. transform: translateX(-50%);
  19338. }
  19339. .op_box .op_remark {
  19340. color: #8E8E8E;
  19341. font-size: 14px;
  19342. }
  19343. .rb_c_nav {
  19344. width: calc(100% - 20px);
  19345. margin: 15px auto 0;
  19346. font-size: 18px;
  19347. }
  19348. .rb_c_nav span {
  19349. cursor: pointer;
  19350. }
  19351. .rb_c_nav span+span {
  19352. margin-left: 10px;
  19353. }
  19354. .rb_c_nav span.active {
  19355. color: #0061FF
  19356. }
  19357. .text_panel>>>.text {
  19358. height: 400px;
  19359. }
  19360. .markBox{
  19361. padding: 20px 14px;
  19362. line-height: 29px;
  19363. font-size: 16px;
  19364. background: #f4f4f4;
  19365. border-radius: 5px;
  19366. }
  19367. .info_box_t{
  19368. display: flex;
  19369. align-items: center;
  19370. }
  19371. .info_box_t_box{
  19372. display: flex;
  19373. align-items: center;
  19374. }
  19375. .info_box_t_box + .info_box_t_box{
  19376. margin-left: 10px;
  19377. }
  19378. .info_box_t_box > span{
  19379. width: fit-content
  19380. }
  19381. .info_box_t_box > input{
  19382. width: 150px !important;
  19383. margin: 0 5px 0 0;
  19384. }
  19385. </style>