addCourse.vue 510 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723
  1. <template>
  2. <div class="pb_content" style="background: #F0F2F5;">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="courseTop">
  6. <div class="stepsNav">
  7. <el-breadcrumb separator-class="el-icon-arrow-right">
  8. <el-breadcrumb-item :to="{
  9. path:
  10. '/course?userid=' +
  11. userid +
  12. '&oid=' +
  13. oid +
  14. '&org=' +
  15. org +
  16. '&role=' +
  17. role,
  18. }">课程管理</el-breadcrumb-item>
  19. <el-breadcrumb-item>
  20. <span style="color: rgb(15, 126, 255)">添加课程</span>
  21. </el-breadcrumb-item>
  22. </el-breadcrumb>
  23. </div>
  24. <div class="r_pub_button_retrun" @click="retrunCourse">返回</div>
  25. </div>
  26. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  27. <div ref="stepBox" class="stepBox">
  28. <div class="stepBg" v-if="false">
  29. <div :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }" @mouseenter="stepDisplay(true)"
  30. @mouseleave="stepDisplay(false)">
  31. <div v-if="steps > 0 && isStepDisplay" class="first" @click="navSteps(1)">
  32. <div>
  33. <img src="../../assets/icon/first.png" alt />
  34. </div>
  35. <div>填写基本信息</div>
  36. </div>
  37. <div v-else-if="isStepDisplay" class="firstNo" @click="navSteps(1)">
  38. <div>
  39. <img src="../../assets/icon/firstNo.png" alt />
  40. </div>
  41. <div>填写基本信息</div>
  42. </div>
  43. <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0 && isStepDisplay"></div>
  44. <div v-if="steps > 1 && cidType === 0 && isStepDisplay" class="second" @click="navSteps(2)">
  45. <div style="margin: 5px 10px 0 0; width: 2rem">
  46. <img src="../../assets/icon/second.png" alt />
  47. </div>
  48. <div>选择课程模板</div>
  49. </div>
  50. <div v-else-if="cidType === 0 && isStepDisplay" class="secondNo" @click="navSteps(2)">
  51. <div>
  52. <img src="../../assets/icon/secondNo.png" alt />
  53. </div>
  54. <div>选择课程模板</div>
  55. </div>
  56. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 2 }"></div>
  57. <div v-if="steps > 2 && isStepDisplay" class="third" @click="navSteps(3)">
  58. <div>
  59. <img src="../../assets/icon/third.png" alt />
  60. </div>
  61. <div>上传课程内容</div>
  62. </div>
  63. <div v-else-if="isStepDisplay" class="thirdNo" @click="navSteps(3)">
  64. <div>
  65. <img src="../../assets/icon/thirdNo.png" alt />
  66. </div>
  67. <div>上传课程内容</div>
  68. </div>
  69. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
  70. <div v-if="steps > 3 && isStepDisplay" class="four">
  71. <div>
  72. <img src="../../assets/icon/four.png" alt />
  73. </div>
  74. <div>上传完成</div>
  75. </div>
  76. <div v-else-if="isStepDisplay" class="fourNo">
  77. <div>
  78. <img src="../../assets/icon/fourNo.png" alt />
  79. </div>
  80. <div>上传完成</div>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange" style="padding:0;"
  85. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 20px)' : 'calc(100% - 100px)' }">
  86. <div class="updateMask" :style="{
  87. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  88. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  89. <div class="whiteBg" style="background:unset;padding: 0;">
  90. <div>
  91. <div class="basic_box" style="padding: 0;">
  92. <div class="big_box">
  93. <div class="left_first">
  94. <div :class="{
  95. updateTips: cid && userid != courseUserid && role != '1',
  96. }">
  97. <div style="width: 100%;">
  98. <div class="course_input_box">
  99. <div class="bb_courseIcon"><img src="../../assets/icon/new/course.png" /></div>
  100. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  101. style="border: 1.5px solid rgb(202, 209, 220);margin: 0px 10px 0px 0px;border-radius: 5px;font-weight: 600;padding: 12px 14px 12px 71px;" />
  102. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  103. style="justify-content: center;width: 200px;"></el-switch>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  108. <span>类型</span>
  109. <!-- 学科+ 主题+ 未来+ -->
  110. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  111. style="display: flex; align-items: center">
  112. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  113. <el-radio :label="item.name">{{
  114. item.name
  115. }}</el-radio>
  116. </div>
  117. </el-radio-group>
  118. </div>
  119. <div class="both">
  120. <div class="choose">
  121. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  122. <span v-if="CourseTypeJson[item.id].length > 0 &&
  123. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  124. ? pTypeCheck.indexOf(item.id) != -1
  125. : true)
  126. ">{{ item.name }}:</span>
  127. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  128. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  129. ? pTypeCheck.indexOf(item.id) != -1
  130. : true)
  131. ">
  132. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  133. item1.name }}</el-checkbox>
  134. </el-checkbox-group>
  135. <!-- <div
  136. v-else
  137. style="font-size: 14px; margin-left: -8px"
  138. >
  139. 暂无
  140. </div> -->
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="right_first">
  146. <!-- <div class="ai_box">
  147. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  148. </div> -->
  149. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  150. <div style="width: 100%;">
  151. <div class="uploadFm" @click="choosePicVisible = true" :class="{uploadFm2:cover.length}">
  152. <img src="../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0"/>
  153. <img :src="cover[0].url" alt="" class="cover_p" v-else/>
  154. <div v-if="cover.length == 0">点击添加封面</div>
  155. <div class="cover_mask"><img src="../../assets/icon/new/cover_update.png" /><span style="margin-top:5px;">修改封面</span></div>
  156. </div>
  157. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  158. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  159. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  160. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  161. <i class="el-icon-plus"></i>
  162. </el-upload> -->
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. <div class="whiteBg" style="background:#fff;margin: 10px 0;">
  170. <div class="whiteBg" style="border-radius: 0">
  171. <div class="c_info_title">课程权限设置</div>
  172. <div class="wb_j_box">
  173. <div class="wb_j_box_content">
  174. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  175. (dialogVisibleClass = true),
  176. (classSearch = ''),
  177. (gradeId = ''),
  178. getClass()
  179. ">添加班级</button>
  180. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  181. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  182. getClassC(tc) }}</span>
  183. </div> -->
  184. <div class="wb_j_box_btn" @click="
  185. (dialogVisibleClass = true),
  186. (classSearch = ''),
  187. (gradeId = ''),
  188. getClass()
  189. ">
  190. <div class="wb_j_box_title">授课班级</div>
  191. <div class="wb_j_box_btn_c">
  192. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  193. v-if="checkboxList2.length" popper-class="text_tooltip2">
  194. <div class="wb_j_box_span">{{ getListClassC(checkboxList2) }}</div>
  195. </el-tooltip>
  196. <div v-else class="wb_j_box_span">请选择授课班级</div>
  197. <div class="wb_j_box_arrow"></div>
  198. </div>
  199. </div>
  200. </div>
  201. <div class="wb_j_box_content">
  202. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  203. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  204. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  205. checkBoolean
  206. ? checkboxList3
  207. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  208. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  209. </div> -->
  210. <div class="wb_j_box_btn" @click="openMember">
  211. <div class="wb_j_box_title">协同人员</div>
  212. <div class="wb_j_box_btn_c">
  213. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  214. v-if="checkboxList3.length" popper-class="text_tooltip2">
  215. <div class="wb_j_box_span">{{ getListMan2(checkboxList3) }}</div>
  216. </el-tooltip>
  217. <div v-else class="wb_j_box_span">请选择协同人员</div>
  218. <div class="wb_j_box_arrow"></div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  225. <div class="c_info_title">课程简要描述</div>
  226. <div style="width: 100%;padding: 0px 20px;box-sizing: border-box;">
  227. <div style="width: calc((100% - 55% - 100px) * 2 - 30px)">
  228. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText" placeholder="请输入课程简要描述"></textarea>
  229. </div>
  230. </div>
  231. </div>
  232. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px">
  233. <div class="c_info_title">目标管理</div>
  234. <div style="margin: 0 auto;padding:0 20px">
  235. <div style="
  236. width: 95%;
  237. min-height: 200px;
  238. border: 1px solid #CAD1DC;
  239. border-radius: 4px;
  240. position: relative;
  241. ">
  242. <div class="e_add_top">
  243. <div class="e_add_title">
  244. <button class="c_pub_button_delete pub_btn_delete_img" @click="deleteEva()"
  245. v-if="evalua">清除</button>
  246. <button class="c_pub_button_confirm pub_btn_add_img2" @click="dialogVisiblemb = true">添加</button>
  247. <!-- <span>当前使用目标管理</span>
  248. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  249. <img
  250. src="../../assets/line.png"
  251. class="cru_line"
  252. style="
  253. width: 125px;
  254. height: 20px;
  255. bottom: -10px;
  256. left: 155px;
  257. "
  258. /> -->
  259. </div>
  260. <div style="
  261. display: flex;
  262. flex-direction: row;
  263. align-items: center;
  264. ">
  265. <!-- <el-button
  266. type="primary"
  267. size="small"
  268. @click="dialogVisiblemb = true"
  269. >添加目标管理</el-button
  270. >
  271. <el-button
  272. type="primary"
  273. size="small"
  274. @click="deleteEva()"
  275. >清除内容</el-button
  276. > -->
  277. <!-- <div class="e_add_delete" @click="deleteEva()">
  278. <img src="../../assets/icon/delete.png" alt="" />
  279. </div> -->
  280. </div>
  281. </div>
  282. <div v-if="evalua == ''">
  283. <div class="noneBox">
  284. <img src="../../assets/icon/new/eva_none.png" />
  285. <span>请添加目标管理</span>
  286. </div>
  287. </div>
  288. <div class="e_add_content" v-else>
  289. <div class="e_add_list_pbox">
  290. <div class="e_add_list_pbox_title">
  291. <span class="type_title">切换模式</span>
  292. <div class="type_content">
  293. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  294. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  295. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  296. </div>
  297. </div>
  298. <div class="e_add_list_pbox_content">
  299. <Mind :showBar="false" :mindData="data" v-show="typeMode == 1"></Mind>
  300. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  301. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  302. v-if="typeMode == 3">
  303. </SeeBoard>
  304. </div>
  305. </div>
  306. </div>
  307. </div>
  308. </div>
  309. </div>
  310. </div>
  311. <div class="info_btnBox3">
  312. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  313. goTo(
  314. '/course?userid=' +
  315. userid +
  316. '&oid=' +
  317. oid +
  318. '&org=' +
  319. org +
  320. '&role=' +
  321. role
  322. )
  323. ">
  324. 返回课程
  325. </button>
  326. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  327. {{ steps == 4 ? "返回课程" : "上一步" }}
  328. </button>
  329. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  330. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  331. {{ steps == 3 ? "确认上传" : "下一步" }}
  332. </button>
  333. </div>
  334. </div>
  335. <div class="rightBox" v-if="this.steps == 2"
  336. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  337. <div class="basic_box"
  338. style="padding: 20px 30px 0px !important; box-sizing: border-box;height: calc(100% - 80px);overflow: auto;background:#fff">
  339. <!-- <div
  340. style="
  341. color: #b8b8b8;
  342. background: #fff;
  343. width: 26%;
  344. height: 40px;
  345. border-radius: 15px;
  346. padding-left: 20px;
  347. line-height: 40px;
  348. font-size: 17px;
  349. box-shadow: 0px 1px 2px 2px #e0e0e0;
  350. "
  351. >-->
  352. <div class="right_title" style="border: none; margin: 0; padding: 0">
  353. 请选择合适的课程模板
  354. </div>
  355. <div class="wordbox">
  356. <div class="wordTeacher" @click="checkTemplate2()">
  357. <div class="wordPic">
  358. <img src="../../assets/icon/new/template_none.png" alt />
  359. </div>
  360. <div style="
  361. margin-top: 10px;
  362. line-height: 19px;
  363. overflow: hidden;
  364. text-overflow: ellipsis;
  365. white-space: nowrap;
  366. padding: 0 20px;
  367. ">
  368. 空白模板
  369. </div>
  370. </div>
  371. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  372. <div class="wordPic">
  373. <img src="../../assets/icon/new/template.png" alt />
  374. </div>
  375. <div style="
  376. margin-top: 10px;
  377. line-height: 19px;
  378. overflow: hidden;
  379. text-overflow: ellipsis;
  380. white-space: nowrap;
  381. padding: 0 20px;
  382. ">
  383. {{ aa.title }}
  384. </div>
  385. </div>
  386. <div class="wordTeacher" @click="checkTemplate3()" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  387. <div class="wordPic">
  388. <img src="../../assets/icon/new/template.png" alt />
  389. </div>
  390. <div style="
  391. margin-top: 10px;
  392. line-height: 19px;
  393. overflow: hidden;
  394. text-overflow: ellipsis;
  395. white-space: nowrap;
  396. padding: 0 20px;
  397. ">
  398. 简易模板
  399. </div>
  400. </div>
  401. <div class="wordTeacher" @click="pasteStage()" v-if="isPasteStage">
  402. <div class="wordPic">
  403. <img src="../../assets/icon/new/template.png" alt />
  404. </div>
  405. <div style="
  406. margin-top: 10px;
  407. line-height: 19px;
  408. overflow: hidden;
  409. text-overflow: ellipsis;
  410. white-space: nowrap;
  411. padding: 0 20px;
  412. ">
  413. 智能粘贴模式
  414. </div>
  415. </div>
  416. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  417. <div class="wordPic">
  418. <img src="../../assets/icon/wordMub.png" alt />
  419. </div>
  420. <div style="
  421. margin-top: 10px;
  422. line-height: 19px;
  423. overflow: hidden;
  424. text-overflow: ellipsis;
  425. white-space: nowrap;
  426. padding: 0 20px;
  427. ">
  428. 未来小学课程设计
  429. </div>
  430. </div> -->
  431. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  432. <div class="wordPic">
  433. <img src="../../assets/icon/wordMub.png" alt />
  434. </div>
  435. <div style="
  436. margin-top: 10px;
  437. line-height: 19px;
  438. overflow: hidden;
  439. text-overflow: ellipsis;
  440. white-space: nowrap;
  441. padding: 0 20px;
  442. ">
  443. 我的课程
  444. </div>
  445. </div> -->
  446. </div>
  447. </div>
  448. <div class="info_btnBox3" style="position: absolute;bottom: 0;">
  449. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  450. goTo(
  451. '/course?userid=' +
  452. userid +
  453. '&oid=' +
  454. oid +
  455. '&org=' +
  456. org +
  457. '&role=' +
  458. role
  459. )
  460. ">
  461. 返回课程
  462. </button>
  463. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  464. {{ steps == 4 ? "返回课程" : "上一步" }}
  465. </button>
  466. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  467. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  468. {{ steps == 3 ? "确认上传" : "下一步" }}
  469. </button>
  470. </div>
  471. </div>
  472. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR"
  473. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  474. <div class="rb_c_box">
  475. <div class="rb_c_box_left" v-if="steps == 3 && unitJson[unitIndex].easy != 1">
  476. <div class="stepsBottom">
  477. <!-- <div class="navTop">辅助导航</div> -->
  478. <div class="navBottom" v-if="courseState == 2">
  479. <!-- <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  480. <div class="nt_taskBox" style="width: 100%;">
  481. <div class="nt_taskTitle"
  482. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  483. unitIndex + 1 }}</div>
  484. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  485. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  486. <span>{{ unitJson[unitIndex].dyName }}</span>
  487. </el-tooltip>
  488. </div>
  489. </div>
  490. </div> -->
  491. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  492. .taskJson" :key="tIndex" :class="{
  493. dragOverTop: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex > tIndex && dragType == 'task',
  494. dragOverBottom: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex < tIndex && dragType == 'task',
  495. }">
  496. <div @dragstart="dragTaskStart(t, tIndex, 0)" @dragover.prevent="dragTaskOver(tIndex, 0)"
  497. @dragend="dragTaskEnd()" :draggable="isdrag == 'task-'+tIndex" @click="goToTask(tIndex)" class="navTask" :class="{
  498. isNavTask:
  499. isClickColor > 0 && isClickColor == tIndex + 1,
  500. isNavOpen: t.toolOpen
  501. }">
  502. <div @click.stop="taskOpen(tIndex, 0)" class="chapter_upload_open"></div>
  503. <div
  504. @mousedown="isdrag = 'task-'+tIndex" @mouseup="isdrag = ''"
  505. @touchstart="isdrag = 'task-'+tIndex" @touchend="isdrag = ''"
  506. style="left: 8px;"
  507. class="chapter_upload_drag"
  508. ></div>
  509. <div class="nt_taskBox">
  510. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  511. <div class="nt_taskName">
  512. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  513. <span>{{ t.task ? t.task : '未命名任务' }}</span>
  514. </el-tooltip>
  515. </div>
  516. </div>
  517. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  518. 1
  519. ">
  520. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  521. @click.stop="taskMove(1, tIndex)"></div>
  522. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  523. @click.stop="taskMove(2, tIndex)"></div>
  524. </div> -->
  525. </div>
  526. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  527. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  528. @click="jumpGj(tIndex, toolIndex2)">
  529. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  530. <div>工具{{ toolIndex2 + 1 }}:</div>
  531. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  532. </div>
  533. </div>
  534. </div>
  535. </div>
  536. </div>
  537. <div class="navBottom" v-if="courseState == 1">
  538. <div v-for="(stage, stageIndex) in unitJson" :key="stageIndex" class="stageBox" :class="{
  539. dragOverTop: newIndex === stageIndex && typeIndex == 'Unit-'+stageIndex && oldIndex > stageIndex && dragType == 'Unit',
  540. dragOverBottom: newIndex === stageIndex && typeIndex == 'Unit-'+stageIndex && oldIndex < stageIndex && dragType == 'Unit',
  541. }">
  542. <div @dragstart="dragUnitStart(stage, stageIndex)" @dragover.prevent="dragUnitOver(stageIndex)"
  543. @dragend="dragUnitEnd()" :draggable="isdrag == 'unit-'+stageIndex" @click="unitSet2(stageIndex)" class="navStage" :class="{
  544. isNavStage: stageIndex == unitIndex,
  545. isNavStageOpen: stage.toolOpen
  546. }">
  547. <div
  548. @mousedown="isdrag = 'unit-'+stageIndex" @mouseup="isdrag = ''"
  549. @touchstart="isdrag = 'unit-'+stageIndex" @touchend="isdrag = ''"
  550. style="left: 8px;"
  551. class="chapter_upload_drag"
  552. ></div>
  553. <div class="nt_taskBox">
  554. <div class="nt_taskTitle">第{{ stageIndex + 1 }}阶段:</div>
  555. <div class="nt_taskName">
  556. <el-tooltip effect="light" :content="stage.dyName ? stage.dyName : '未命名阶段'" placement="top">
  557. <span>{{ stage.dyName ? stage.dyName : '未命名阶段' }}</span>
  558. </el-tooltip>
  559. </div>
  560. </div>
  561. <div @click.stop="unitOpen(stageIndex)" class="chapter_unit_open"></div>
  562. </div>
  563. <div v-for="(t, tIndex) in unitJson[stageIndex].chapterInfo[0]
  564. .taskJson" :key="`${stageIndex}-${tIndex}`" :class="{
  565. dragOverTop: newIndex === tIndex && typeIndex == 'task-'+tIndex && ((oldIndex > tIndex && stageIndex == checkUnitIndex) || (oldIndex == tIndex && stageIndex == checkUnitIndex && checkUnitIndex != oldUnitIndex)) && dragType == 'task',
  566. dragOverBottom: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex < tIndex && stageIndex == checkUnitIndex && dragType == 'task',
  567. }" :style="{display:stage.toolOpen ? 'block' : 'none'}">
  568. <div @dragstart="dragTaskStart(t, tIndex, stageIndex)" @dragover.prevent="dragTaskOver(tIndex, stageIndex)"
  569. @dragend="dragTaskEnd()" :draggable="isdrag == 'task-'+stageIndex+'-'+tIndex" @click="goToTask2(tIndex, stageIndex)" class="navTask" style="padding-left: 12px;" :class="{
  570. isNavTask:
  571. isClickColor > 0 && isClickColor == tIndex + 1 && stageIndex == unitIndex,
  572. isNavOpen: t.toolOpen
  573. }">
  574. <div @click.stop="taskOpen(tIndex, stageIndex)" class="chapter_upload_open"></div>
  575. <div
  576. @mousedown="isdrag = 'task-'+stageIndex+'-'+tIndex" @mouseup="isdrag = ''"
  577. @touchstart="isdrag = 'task-'+stageIndex+'-'+tIndex" @touchend="isdrag = ''"
  578. style="left: 20px;"
  579. class="chapter_upload_drag"
  580. ></div>
  581. <div class="nt_taskBox" style="width: calc(100% - 52px);">
  582. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  583. <div class="nt_taskName">
  584. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  585. <span>{{ t.task ? t.task : '未命名任务' }}</span>
  586. </el-tooltip>
  587. </div>
  588. </div>
  589. </div>
  590. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  591. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  592. @click="jumpGj2(tIndex, toolIndex2, stageIndex)">
  593. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}${stageIndex}` }">
  594. <div>工具{{ toolIndex2 + 1 }}:</div>
  595. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  596. </div>
  597. </div>
  598. </div>
  599. </div>
  600. </div>
  601. </div>
  602. </div>
  603. </div>
  604. <div class="rb_c_box_right">
  605. <!-- <div class="rb_c_box_btn">
  606. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  607. </div> -->
  608. <div class="basic_box" ref="unitBox">
  609. <div style="
  610. display: flex;
  611. flex-direction: row;
  612. align-items: center;
  613. position: sticky;
  614. top: 0;
  615. z-index: 99;
  616. width: 100%;
  617. padding: 0 20px 0 20px;
  618. box-sizing: border-box;
  619. background: #fff;
  620. border-radius: 8px;
  621. ">
  622. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  623. <div class="cru_selectBox"
  624. :style="{ maxWidth: isPasteTask ? 'calc(100% - 335px)' : 'calc(100% - 190px)' }" v-if="courseState == 1">
  625. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  626. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  627. <!-- item.dyName ? item.dyName : -->
  628. <span v-if="unitJson[unitJson.length - 1].easy == 4 ||
  629. unitJson[unitJson.length - 1].easy == 6
  630. ">{{
  631. item.dyName ? item.dyName : "第" + (index + 1) + "阶段"
  632. }}</span>
  633. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  634. </div>
  635. <div class="cru_line" :style="{
  636. left: offsetLetfPx + 'px',
  637. }"></div>
  638. </div>
  639. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  640. !(unitJson[unitJson.length - 1].easy == 6) && courseState == 1
  641. ">
  642. <img src="../../assets/icon/new/addStage.png" alt />
  643. </div>
  644. <button class="c_pub_button_add pub_btn_add_img" @click="updateCourseState(1)" v-if="courseState == 2" style="margin: 15px 0">新建阶段</button>
  645. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  646. <button class="c_pub_button_add" @click="openStageBox" v-show="false"
  647. style="margin: 0 0 0 auto;">阶段顺序</button>
  648. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask()" v-if="steps == 3 && isPasteTask"
  649. style="margin: 0 0 0 auto;">智能粘贴</button>
  650. <button class="c_pub_button_confirm pub_btn_template_img" @click="openTemplate"
  651. :style="{margin: isPasteTask ? '0 0 0 20px' : '0 0 0 auto'}" style="padding:0 12px">选择课程模板</button>
  652. </div>
  653. <div style="margin: 0 0 10px 0; padding: 0;" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  654. :key="index">
  655. <div class="chapter_box" v-if="courseState == 1">
  656. <div class="chapter_contentbox">
  657. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  658. <div class="cc_input">
  659. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  660. v-model="unitJson[unitIndex].dyName" />
  661. </div>
  662. <div class="remove" v-if="(unitJson.length > 1 || courseState != 2) &&
  663. !(unitJson[unitJson.length - 1].easy == 4) &&
  664. !(unitJson[unitJson.length - 1].easy == 6)
  665. " @click="deleteUnit(unitIndex)"></div>
  666. </div>
  667. </div>
  668. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  669. margin: 50px 0px 10px;
  670. font-size: 1.5em;
  671. font-weight: 700;
  672. color: #0f7eff;
  673. ">
  674. 添加任务
  675. </div> -->
  676. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  677. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  678. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  679. <div style="background: #fff;border-radius: 5px;">
  680. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  681. <!-- padding: 20px; -->
  682. <div v-if="unitJson[unitIndex].easy != 1">
  683. <div :style="{
  684. marginBottom:
  685. unitJson[unitIndex].easy == 3 ||
  686. (unitJson[unitIndex].easy == 5 &&
  687. itemTask.taskType == 1)
  688. ? '75px'
  689. : '0',
  690. }">
  691. <div style="
  692. display: flex;
  693. margin: 0px 0 20px;
  694. flex-direction: row;
  695. justify-content: flex-start;
  696. align-items: center;
  697. ">
  698. <div class="lineTitle">任务概述</div>
  699. </div>
  700. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  701. flex-direction: row;
  702. justify-content: flex-start;
  703. align-items: center;
  704. margin:0;
  705. ">
  706. <!-- <div class="cc_title">
  707. 任务{{ itemTaskIndex + 1 }}
  708. </div> -->
  709. <div class="cc_input">
  710. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  711. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  712. itemTaskIndex
  713. ].task
  714. " />
  715. </div>
  716. <div class="remove" v-if="item.taskJson.length > 1 &&
  717. (!unitJson[unitIndex].easy ||
  718. unitJson[unitIndex].easy == 6)
  719. " @click="deleteTask(itemTaskIndex)"></div>
  720. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
  721. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  722. src="../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  723. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  724. @click="fold2(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开任务描述
  725. </div> -->
  726. </div>
  727. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  728. display: flex;
  729. margin: 20px 0;
  730. flex-direction: row;
  731. justify-content: flex-start;
  732. align-items: center;
  733. ">
  734. <div class="lineTitle">任务描述</div>
  735. </div> && !itemTask.isFold2-->
  736. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 "
  737. style="margin-top: 20px;">
  738. <editor-bar class="addEditor" style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  739. itemTaskIndex
  740. ].taskDetail
  741. " @change="change"></editor-bar>
  742. <!-- <textarea
  743. rows="6"
  744. class="binfo_input"
  745. placeholder="请输入任务描述"
  746. cols
  747. style="width: 70.5% !important; height: 120px"
  748. v-model="
  749. unitJson[unitIndex].chapterInfo[0].taskJson[
  750. itemTaskIndex
  751. ].taskDetail
  752. "
  753. ></textarea>-->
  754. </div>
  755. </div>
  756. </div>
  757. <div style="position:relative" v-if="!unitJson[unitIndex].easy ||
  758. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  759. ">
  760. <div style="
  761. display: flex;
  762. flex-direction: row;
  763. justify-content: space-between;
  764. align-items: center;
  765. " :style="{ margin: !itemTask.isFoldchapter ? '20px 0 10px' : '20px 0 0' }">
  766. <div style="margin-bottom:10px" class="lineTitle clineTitle">学习内容</div>
  767. <!-- <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  768. @click="foldC(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  769. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  770. src="../../assets/icon/new/icon-slide.png" />展开学习内容</div> -->
  771. <!-- <div class="line"></div> -->
  772. </div>
  773. <!-- v-if="!itemTask.isFoldchapter" -->
  774. <div>
  775. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  776. itemTask.chapterData.length == 0
  777. "><img src="../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  778. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  779. <div @dragstart="dragStart(item1, index1, itemTaskIndex)" @dragover.prevent="dragOver(index1, itemTaskIndex)"
  780. @dragend="dragEnd()" :draggable="isdrag == 'chapter-'+itemTaskIndex+'-'+index1" class="chapter_upload"
  781. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  782. getChapterData(
  783. $event,
  784. unitIndex,
  785. index,
  786. index1,
  787. item1.type
  788. )
  789. " :class="{
  790. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex > index1 && dragType == 'drag',
  791. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex < index1 && dragType == 'drag',
  792. }">
  793. <div @mousedown="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @mouseup="isdrag = ''"
  794. @touchstart="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  795. <div class="chapter_upload_o" style="
  796. position: relative;
  797. display: flex;
  798. align-items: center;
  799. ">
  800. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  801. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  802. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  803. </div>
  804. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  805. </div>
  806. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  807. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  808. </div>
  809. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  810. </div>
  811. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  812. </div>
  813. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  814. </div>
  815. </div>
  816. <div class="chapter_upload_n">
  817. <input readonly="true" v-if="item1.type == 2 ||
  818. item1.type == 3 ||
  819. item1.type == 12 ||
  820. item1.type == 13 ||
  821. item1.type == 7
  822. " :placeholder="item1.name" @click="
  823. updataVideoT(
  824. $event,
  825. unitIndex,
  826. itemTaskIndex,
  827. index1
  828. )
  829. " style="
  830. border: none;
  831. outline: none;
  832. width: 80%;
  833. minwidth: 215px;
  834. z-index: 99;
  835. font-size: 14px;
  836. white-space: nowrap;
  837. overflow: hidden;
  838. text-overflow: ellipsis;
  839. " />
  840. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  841. border: none;
  842. outline: none;
  843. width: 80%;
  844. white-space: nowrap;
  845. overflow: hidden;
  846. text-overflow: ellipsis;
  847. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  848. <input :placeholder="item1.title ? item1.title : '链接'
  849. " v-if="item1.type == 8" style="
  850. border: none;
  851. outline: none;
  852. width: 80%;
  853. white-space: nowrap;
  854. overflow: hidden;
  855. text-overflow: ellipsis;
  856. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  857. <input :placeholder="item1.title ? item1.title : '链接'
  858. " v-if="item1.type == 14" style="
  859. border: none;
  860. outline: none;
  861. width: 80%;
  862. white-space: nowrap;
  863. overflow: hidden;
  864. text-overflow: ellipsis;
  865. " readonly="true" @click="openUpdateSource(itemTaskIndex, index1)" />
  866. </div>
  867. <div class="chapter_upload_ic">
  868. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  869. </div>
  870. <div class="chapter_upload_ud" style="z-index: 99">
  871. <div class="chapter_upload_up" @click="
  872. upCd(
  873. $event,
  874. unitIndex,
  875. index,
  876. itemTaskIndex,
  877. index1
  878. )
  879. "></div>
  880. <div class="chapter_upload_down" @click="
  881. downCd(
  882. $event,
  883. unitIndex,
  884. index,
  885. itemTaskIndex,
  886. index1
  887. )
  888. "></div>
  889. </div>
  890. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  891. item1.type == 3 ||
  892. item1.type == 12 ||
  893. item1.type == 13 ||
  894. item1.type == 7
  895. " @click.stop="
  896. updataVideoT(
  897. $event,
  898. unitIndex,
  899. itemTaskIndex,
  900. index1
  901. )
  902. ">
  903. <div></div>
  904. </div>
  905. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  906. @click="selectAttText(itemTaskIndex, index1)">
  907. <div></div>
  908. </div>
  909. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  910. @click="selectLine(itemTaskIndex, index1)">
  911. <div></div>
  912. </div>
  913. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  914. @click="openUpdateSource(itemTaskIndex, index1)">
  915. <div></div>
  916. </div>
  917. <div class="chapter_upload_ic_r" @click.stop="
  918. deleteChapterData(
  919. $event,
  920. unitIndex,
  921. index,
  922. index1,
  923. itemTaskIndex
  924. )
  925. ">
  926. <div></div>
  927. </div>
  928. </div>
  929. </div>
  930. </div>
  931. </div>
  932. </div>
  933. <!-- v-if="!itemTask.isFoldchapter" -->
  934. <div class="add_info_box" style="margin: 10px 0 0">
  935. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  936. 文件
  937. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  938. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  939. " />
  940. </button>
  941. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(itemTaskIndex)">
  942. 图文
  943. </button>
  944. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(itemTaskIndex)">
  945. 链接
  946. </button>
  947. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(itemTaskIndex)">
  948. 代码
  949. </button>
  950. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openSource(itemTaskIndex)">
  951. 资源
  952. </button> -->
  953. </div>
  954. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  955. itemTaskIndex
  956. ].proVisible
  957. " class="mask">
  958. <div class="progressBox">
  959. <!-- <div id="closePro" class="closeCss">
  960. <img src="../../../assets/icon/close.png" alt />
  961. </div> -->
  962. <div class="lbox">
  963. <img src="../../assets/loading.gif" />上传中,请稍后
  964. </div>
  965. <div style="margin-bottom: 10px">
  966. <span>{{
  967. unitJson[unitIndex].chapterInfo[0].taskJson[
  968. itemTaskIndex
  969. ].isFinishSize
  970. }}M</span>
  971. /
  972. <span>{{
  973. unitJson[unitIndex].chapterInfo[0].taskJson[
  974. itemTaskIndex
  975. ].isAllSize
  976. }}M</span>
  977. </div>
  978. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  979. itemTaskIndex
  980. ].progress
  981. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  982. itemTaskIndex
  983. ].progress
  984. : 0
  985. " style="width: 80%"></el-progress>
  986. </div>
  987. </div>
  988. </div>
  989. <div v-if="unitJson[unitIndex].easy == 1 ||
  990. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  991. ">
  992. <div>
  993. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  994. itemTask.chapterData.length == 0
  995. "><img src="../../assets/icon/new/c_none.png" alt /></div>
  996. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  997. <div @dragstart="dragStart(item1, index1, index)" @dragover.prevent="dragOver(index1, itemTaskIndex)"
  998. @dragend="dragEnd()" :draggable="isdrag == 'chapter-'+itemTaskIndex+'-'+index1" class="chapter_upload"
  999. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  1000. getChapterData(
  1001. $event,
  1002. unitIndex,
  1003. index,
  1004. index1,
  1005. item1.type
  1006. )
  1007. " :class="{
  1008. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex > index1,
  1009. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex < index1,
  1010. }">
  1011. <div @mousedown="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @mouseup="isdrag = ''"
  1012. @touchstart="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  1013. <div class="chapter_upload_t" style="width: 100%"></div>
  1014. <div class="chapter_upload_o" style="
  1015. position: relative;
  1016. display: flex;
  1017. align-items: center;
  1018. ">
  1019. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1020. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  1021. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  1022. </div>
  1023. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  1024. </div>
  1025. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1026. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  1027. </div>
  1028. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  1029. </div>
  1030. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  1031. </div>
  1032. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  1033. </div>
  1034. </div>
  1035. <div class="chapter_upload_n">
  1036. <span style="
  1037. font-size: 14px;
  1038. color: rgb(109, 109, 109);
  1039. height: 14px;
  1040. line-height: 14px;
  1041. " v-if="item1.type == 2 ||
  1042. item1.type == 3 ||
  1043. item1.type == 7
  1044. ">{{ item1.text }}-</span>
  1045. <input readonly="true" v-if="item1.type == 2 ||
  1046. item1.type == 3 ||
  1047. item1.type == 7
  1048. " :placeholder="item1.name" @click="
  1049. updataVideoT(
  1050. $event,
  1051. unitIndex,
  1052. itemTaskIndex,
  1053. index1
  1054. )
  1055. " style="
  1056. border: none;
  1057. outline: none;
  1058. width: 80%;
  1059. minwidth: 215px;
  1060. z-index: 99;
  1061. font-size: 14px;
  1062. white-space: nowrap;
  1063. overflow: hidden;
  1064. text-overflow: ellipsis;
  1065. " />
  1066. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1067. border: none;
  1068. outline: none;
  1069. width: 80%;
  1070. white-space: nowrap;
  1071. overflow: hidden;
  1072. text-overflow: ellipsis;
  1073. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  1074. <input :placeholder="item1.title ? item1.title : '链接'
  1075. " v-if="item1.type == 8 || item1.type == 14" style="
  1076. border: none;
  1077. outline: none;
  1078. width: 80%;
  1079. white-space: nowrap;
  1080. overflow: hidden;
  1081. text-overflow: ellipsis;
  1082. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  1083. </div>
  1084. <div class="chapter_upload_ic">
  1085. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  1086. </div>
  1087. <div class="chapter_upload_ud" style="z-index: 99">
  1088. <div class="chapter_upload_up" @click="
  1089. upCd(
  1090. $event,
  1091. unitIndex,
  1092. index,
  1093. itemTaskIndex,
  1094. index1
  1095. )
  1096. "></div>
  1097. <div class="chapter_upload_down" @click="
  1098. downCd(
  1099. $event,
  1100. unitIndex,
  1101. index,
  1102. itemTaskIndex,
  1103. index1
  1104. )
  1105. "></div>
  1106. </div>
  1107. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  1108. item1.type == 3 ||
  1109. item1.type == 12 ||
  1110. item1.type == 13 ||
  1111. item1.type == 7
  1112. " @click.stop="
  1113. updataVideoT(
  1114. $event,
  1115. unitIndex,
  1116. itemTaskIndex,
  1117. index1
  1118. )
  1119. ">
  1120. <div></div>
  1121. </div>
  1122. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  1123. @click="selectAttText(itemTaskIndex, index1)">
  1124. <div></div>
  1125. </div>
  1126. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1127. @click="selectLine(itemTaskIndex, index1)">
  1128. <div></div>
  1129. </div>
  1130. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  1131. @click="openUpdateSource(itemTaskIndex, index1)">
  1132. <div></div>
  1133. </div>
  1134. <div class="chapter_upload_ic_r" @click.stop="
  1135. deleteChapterData(
  1136. $event,
  1137. unitIndex,
  1138. index,
  1139. index1,
  1140. itemTaskIndex
  1141. )
  1142. ">
  1143. <div></div>
  1144. </div>
  1145. </div>
  1146. </div>
  1147. </div>
  1148. </div>
  1149. </div>
  1150. <div class="add_info_box" style="margin: 10px 0 0">
  1151. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1152. <span style="color: red">*</span>
  1153. 教学设计
  1154. <input type="file"
  1155. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1156. style="display: none" v-if="inputShow" @change="
  1157. beforeUpload3(
  1158. $event,
  1159. unitIndex,
  1160. 3,
  1161. itemTaskIndex,
  1162. '教学设计'
  1163. )
  1164. " />
  1165. </button>
  1166. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1167. <span style="color: red">*</span>
  1168. 教学课件
  1169. <input type="file"
  1170. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1171. style="display: none" v-if="inputShow" @change="
  1172. beforeUpload3(
  1173. $event,
  1174. unitIndex,
  1175. 3,
  1176. itemTaskIndex,
  1177. '教学课件'
  1178. )
  1179. " />
  1180. </button>
  1181. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1182. 教学视频
  1183. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo"
  1184. style="display: none" v-if="inputShow" @change="
  1185. beforeUpload3(
  1186. $event,
  1187. unitIndex,
  1188. 2,
  1189. itemTaskIndex,
  1190. '教学视频'
  1191. )
  1192. " />
  1193. </button>
  1194. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1195. 教学音频
  1196. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  1197. beforeUpload3(
  1198. $event,
  1199. unitIndex,
  1200. 2,
  1201. itemTaskIndex,
  1202. '教学音频'
  1203. )
  1204. " />
  1205. </button>
  1206. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1207. 学习单
  1208. <input type="file"
  1209. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1210. style="display: none" v-if="inputShow" @change="
  1211. beforeUpload3(
  1212. $event,
  1213. unitIndex,
  1214. 3,
  1215. itemTaskIndex,
  1216. '学习单'
  1217. )
  1218. " />
  1219. </button>
  1220. </div>
  1221. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1222. itemTaskIndex
  1223. ].proVisible
  1224. " class="mask">
  1225. <div class="progressBox">
  1226. <!-- <div id="closePro" class="closeCss">
  1227. <img src="../../../assets/icon/close.png" alt />
  1228. </div> -->
  1229. <div class="lbox">
  1230. <img src="../../assets/loading.gif" />上传中,请稍后
  1231. </div>
  1232. <div style="margin-bottom: 10px">
  1233. <span>{{
  1234. unitJson[unitIndex].chapterInfo[0].taskJson[
  1235. itemTaskIndex
  1236. ].isFinishSize
  1237. }}M</span>
  1238. /
  1239. <span>{{
  1240. unitJson[unitIndex].chapterInfo[0].taskJson[
  1241. itemTaskIndex
  1242. ].isAllSize
  1243. }}M</span>
  1244. </div>
  1245. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1246. itemTaskIndex
  1247. ].progress
  1248. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1249. itemTaskIndex
  1250. ].progress
  1251. : 0
  1252. " style="width: 80%"></el-progress>
  1253. </div>
  1254. </div>
  1255. </div>
  1256. </div>
  1257. <!-- padding: 20px; -->
  1258. <div style="background: #fff;border-radius: 5px;margin-top: 15px;">
  1259. <div v-if="unitJson[unitIndex].easy != 3 &&
  1260. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  1261. " style="
  1262. flex-direction: row;
  1263. justify-content: flex-start;
  1264. align-items: center;
  1265. ">
  1266. <div style="
  1267. display: flex;
  1268. flex-direction: row;
  1269. align-items: center;
  1270. margin: 5px 0 20px;
  1271. ">
  1272. <div class="lineTitle clineTitle">
  1273. {{
  1274. !unitJson[unitIndex].easy ||
  1275. unitJson[unitIndex].easy == 6 ||
  1276. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1277. ? "练习内容"
  1278. : "评价内容"
  1279. }}
  1280. </div>
  1281. <!-- <div class="line" style="width: 90%"></div> -->
  1282. </div>
  1283. </div>
  1284. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1285. " class="toolChoose">
  1286. <div class="tools">
  1287. <div class="leftTools" style="
  1288. width: 100%;
  1289. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1290. <div style="
  1291. display: flex;
  1292. flex-direction: row;
  1293. align-items: baseline;
  1294. flex-wrap: nowrap;
  1295. justify-content: flex-start;
  1296. position: relative;
  1297. ">
  1298. <div style="margin-right: 20px; font-weight: bold"
  1299. :id="'gj' + itemTaskIndex + '' + toolIndex">
  1300. 工具 {{ toolIndex + 1 }} :
  1301. </div>
  1302. <div class="chooseWho">
  1303. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1304. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = false), $forceUpdate()">
  1305. 互动类
  1306. </div>
  1307. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1308. " @click="(itemTool.toolType = 1), (itemTool.isFold3 = false), $forceUpdate()">
  1309. 思维类
  1310. </div>
  1311. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  1312. " @click="(itemTool.toolType = 6), (itemTool.isFold3 = false), $forceUpdate()">
  1313. 协作类
  1314. </div>
  1315. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1316. " @click="(itemTool.toolType = 2), (itemTool.isFold3 = false), $forceUpdate()">
  1317. 测评类
  1318. </div>
  1319. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  1320. " @click="(itemTool.toolType = 7), (itemTool.isFold3 = false), $forceUpdate()">
  1321. 评价类
  1322. </div>
  1323. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1324. " @click="(itemTool.toolType = 3), (itemTool.isFold3 = false), $forceUpdate()">
  1325. 编程类
  1326. </div>
  1327. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1328. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = false), $forceUpdate()">
  1329. 学科类
  1330. </div>
  1331. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1332. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1333. 其他
  1334. </div> -->
  1335. </div>
  1336. <div class="chapter_upload_ud2" style="z-index: 9;margin:0 0 0 auto" :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px auto' : '0 0 0 auto' }" v-if="itemTask.toolChoose.length > 1">
  1337. <div class="chapter_upload_up2" @click.stop="
  1338. upTool(
  1339. $event,
  1340. unitIndex,
  1341. itemTaskIndex,
  1342. toolIndex
  1343. )
  1344. ">上移</div>
  1345. <div class="chapter_upload_down2" @click.stop="
  1346. downTool(
  1347. $event,
  1348. unitIndex,
  1349. itemTaskIndex,
  1350. toolIndex
  1351. )
  1352. ">下移</div>
  1353. </div>
  1354. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  1355. @click="fold3(itemTaskIndex, toolIndex)"
  1356. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1357. src="../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  1358. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  1359. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1360. src="../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  1361. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1362. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0;top:-5px;"></div>
  1363. </div>
  1364. <!-- v-show="!itemTool.isFold3" -->
  1365. <div style="min-height: 163px">
  1366. <div class="toolSort" v-if="itemTool.toolType == 0">
  1367. <!-- <div class="tool">
  1368. <div
  1369. class="whiteBIcon"
  1370. @click="addTools(8, itemTaskIndex, toolIndex)"
  1371. >
  1372. <img src="../../assets/icon/secondToolList/library.png" alt />
  1373. <div style="margin: 5px 0">素材库</div>
  1374. </div>
  1375. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1376. <img
  1377. src="../../assets/icon/checkNo.png"
  1378. alt
  1379. v-if="itemTool.tool.indexOf(8) == -1"
  1380. />
  1381. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1382. alt /><span>已选择</span></div>
  1383. </div>
  1384. </div>-->
  1385. <!-- <div class="tool">
  1386. <div
  1387. class="whiteBIcon"
  1388. @click="addTools(17, itemTaskIndex, toolIndex)"
  1389. >
  1390. <img
  1391. src="../../assets/icon/secondToolList/library.png"
  1392. alt
  1393. />
  1394. <div style="margin: 5px 0">学习资料</div>
  1395. </div>
  1396. <div
  1397. class="check"
  1398. @click="addTools(17, itemTaskIndex, toolIndex)"
  1399. >
  1400. <img
  1401. src="../../assets/icon/checkNo.png"
  1402. alt
  1403. v-if="itemTool.tool.indexOf(17) == -1"
  1404. />
  1405. <img
  1406. src="../../assets/icon/checkedIs.png"
  1407. alt
  1408. v-else
  1409. />
  1410. </div>10
  1411. </div> -->
  1412. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(10) != -1 }"
  1413. @click="addTools(10, itemTaskIndex, toolIndex)">
  1414. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 10, toolIndex)">
  1415. <img src="../../assets/icon/thirdToolList/time.png" alt />
  1416. <div style="margin: 5px 0">倒计时</div>
  1417. </div>
  1418. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1419. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1"><img
  1420. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1421. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1422. <img src="../../assets/icon/checkNo.png" alt
  1423. v-if="itemTool.tool.indexOf(10) == -1" />
  1424. <div class="checkDiv" v-else>
  1425. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1426. </div>
  1427. </div> -->
  1428. </div>
  1429. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(65) != -1 }"
  1430. @click="addTools(65, itemTaskIndex, toolIndex)">
  1431. <div class="whiteBIcon" @click.stop="addTools(65, itemTaskIndex, toolIndex)">
  1432. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  1433. <div style="margin: 5px 0">挑人</div>
  1434. </div>
  1435. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1436. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1"><img
  1437. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1438. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  1439. <img src="../../assets/icon/checkNo.png" alt
  1440. v-if="itemTool.tool.indexOf(65) == -1" />
  1441. <div class="checkDiv" v-else>
  1442. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1443. </div>
  1444. </div> -->
  1445. </div>
  1446. <!-- <div class="tool">
  1447. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1448. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1449. <div style="margin: 5px 0">学生分组</div>
  1450. </div>
  1451. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1452. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1453. <div class="checkDiv" v-else>
  1454. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1455. </div>
  1456. </div>
  1457. </div> -->
  1458. <!-- <div class="tool">
  1459. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1460. <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
  1461. <div style="margin: 5px 0">交互视频</div>
  1462. </div>
  1463. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1464. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  1465. <div class="checkDiv" v-else>
  1466. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1467. </div>
  1468. </div>
  1469. </div> -->
  1470. </div>
  1471. <div class="toolSort" v-if="itemTool.toolType == 1">
  1472. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(7) != -1 }"
  1473. @click="addTools(7, itemTaskIndex, toolIndex)">
  1474. <div class="whiteBIcon" @click.stop="addTools(7, itemTaskIndex, toolIndex)">
  1475. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  1476. <div style="margin: 5px 0">思维网格</div>
  1477. </div>
  1478. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1479. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1"><img
  1480. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1481. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1482. <img src="../../assets/icon/checkNo.png" alt
  1483. v-if="itemTool.tool.indexOf(7) == -1" />
  1484. <div class="checkDiv" v-else>
  1485. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1486. </div>
  1487. </div> -->
  1488. </div>
  1489. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(1) != -1 }"
  1490. @click="addTools(1, itemTaskIndex, toolIndex)">
  1491. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 1, toolIndex)">
  1492. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  1493. <div style="margin: 5px 0">电子白板</div>
  1494. </div>
  1495. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1496. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1"><img
  1497. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1498. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1499. <img src="../../assets/icon/checkNo.png" alt
  1500. v-if="itemTool.tool.indexOf(1) == -1" />
  1501. <div class="checkDiv" v-else>
  1502. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1503. </div>
  1504. </div> -->
  1505. </div>
  1506. <!-- <div class="tool">
  1507. <div
  1508. class="whiteBIcon"
  1509. @click="addTools(2, itemTaskIndex, toolIndex)"
  1510. >
  1511. <img
  1512. src="../../assets/icon/secondToolList/note.png"
  1513. alt
  1514. />
  1515. <div style="margin: 5px 0">便签</div>
  1516. </div>
  1517. <div
  1518. class="check"
  1519. @click="addTools(2, itemTaskIndex, toolIndex)"
  1520. >
  1521. <img
  1522. src="../../assets/icon/checkNo.png"
  1523. alt
  1524. v-if="itemTool.tool.indexOf(2) == -1"
  1525. />
  1526. <div class="checkDiv" v-else>
  1527. <img
  1528. src="../../assets/icon/checkedIs.png"
  1529. alt
  1530. /><span>已选择</span>
  1531. </div>
  1532. </div>
  1533. </div> -->
  1534. <!-- <div class="tool">
  1535. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1536. <img src="../../assets/icon/secondToolList/doc.png" alt />
  1537. <div style="margin: 5px 0">协同文档</div>
  1538. </div>
  1539. <div
  1540. class="check"
  1541. @click="addTools(6, itemTaskIndex, toolIndex)"
  1542. >
  1543. <img
  1544. src="../../assets/icon/checkNo.png"
  1545. alt
  1546. v-if="itemTool.tool.indexOf(6) == -1"
  1547. />
  1548. <div class="checkDiv" v-else>
  1549. <img
  1550. src="../../assets/icon/checkedIs.png"
  1551. alt
  1552. /><span>已选择</span>
  1553. </div>
  1554. </div>
  1555. </div> -->
  1556. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(52) != -1 }"
  1557. @click="addTools(52, itemTaskIndex, toolIndex)">
  1558. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 52, toolIndex)">
  1559. <img src="../../assets/icon/fourthToolList/text.png" alt />
  1560. <div style="margin: 5px 0">文档</div>
  1561. </div>
  1562. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1563. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1"><img
  1564. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1565. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1566. <img src="../../assets/icon/checkNo.png" alt
  1567. v-if="itemTool.tool.indexOf(52) == -1" />
  1568. <div class="checkDiv" v-else>
  1569. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1570. </div>
  1571. </div> -->
  1572. </div>
  1573. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(3) != -1 }"
  1574. @click="addTools(3, itemTaskIndex, toolIndex)">
  1575. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 3, toolIndex)">
  1576. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  1577. <div style="margin: 5px 0">思维导图</div>
  1578. </div>
  1579. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1580. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1"><img
  1581. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1582. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1583. <img src="../../assets/icon/checkNo.png" alt
  1584. v-if="itemTool.tool.indexOf(3) == -1" />
  1585. <div class="checkDiv" v-else>
  1586. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1587. </div>
  1588. </div> -->
  1589. </div>
  1590. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(48) != -1 }"
  1591. @click="addTools(48, itemTaskIndex, toolIndex)">
  1592. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 48, toolIndex)">
  1593. <img src="../../assets/icon/fourthToolList/table.png" alt />
  1594. <div style="margin: 5px 0">表格</div>
  1595. </div>
  1596. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1597. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1"><img
  1598. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1599. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1600. <img src="../../assets/icon/checkNo.png" alt
  1601. v-if="itemTool.tool.indexOf(48) == -1" />
  1602. <div class="checkDiv" v-else>
  1603. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1604. </div>
  1605. </div> -->
  1606. </div>
  1607. </div>
  1608. <div class="toolSort" v-if="itemTool.toolType == 6">
  1609. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(49) != -1 }"
  1610. @click="addTools(49, itemTaskIndex, toolIndex)">
  1611. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 49, toolIndex)">
  1612. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1613. <div style="margin: 5px 0">学生分组</div>
  1614. </div>
  1615. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1616. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1"><img
  1617. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1618. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1619. <img src="../../assets/icon/checkNo.png" alt
  1620. v-if="itemTool.tool.indexOf(49) == -1" />
  1621. <div class="checkDiv" v-else>
  1622. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1623. </div>
  1624. </div> -->
  1625. </div>
  1626. </div>
  1627. <div class="toolSort" v-if="itemTool.toolType == 2">
  1628. <!-- <div class="tool">
  1629. <div
  1630. class="whiteBIcon"
  1631. @click="addTools(5, itemTaskIndex, toolIndex)"
  1632. >
  1633. <img
  1634. src="../../assets/icon/thirdToolList/score.png"
  1635. alt
  1636. />
  1637. <div style="margin: 5px 0">量规评分</div>
  1638. </div>
  1639. <div
  1640. class="check"
  1641. @click="addTools(5, itemTaskIndex, toolIndex)"
  1642. >
  1643. <img
  1644. src="../../assets/icon/checkNo.png"
  1645. alt
  1646. v-if="itemTool.tool.indexOf(5) == -1"
  1647. />
  1648. <img
  1649. src="../../assets/icon/checkedIs.png"
  1650. alt
  1651. v-else
  1652. />
  1653. </div>
  1654. </div>-->
  1655. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(4) != -1 }"
  1656. @click="addTools(4, itemTaskIndex, toolIndex)">
  1657. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 4, toolIndex)">
  1658. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  1659. <div style="margin: 5px 0">问卷调查</div>
  1660. </div>
  1661. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1662. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1"><img
  1663. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1664. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1665. <img src="../../assets/icon/checkNo.png" alt
  1666. v-if="itemTool.tool.indexOf(4) == -1" />
  1667. <div class="checkDiv" v-else>
  1668. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1669. </div>
  1670. </div> -->
  1671. </div>
  1672. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(45) != -1 }"
  1673. @click="addTools(45, itemTaskIndex, toolIndex)">
  1674. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1675. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  1676. <div style="margin: 5px 0">选择题</div>
  1677. </div>
  1678. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1679. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1"><img
  1680. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1681. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1682. <img src="../../assets/icon/checkNo.png" alt
  1683. v-if="itemTool.tool.indexOf(45) == -1" />
  1684. <div class="checkDiv" v-else>
  1685. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1686. </div>
  1687. </div> -->
  1688. </div>
  1689. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(15) != -1 }"
  1690. @click="addTools(15, itemTaskIndex, toolIndex)">
  1691. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 15, toolIndex)">
  1692. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  1693. <div style="margin: 5px 0">问答</div>
  1694. </div>
  1695. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1696. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1"><img
  1697. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1698. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1699. <img src="../../assets/icon/checkNo.png" alt
  1700. v-if="itemTool.tool.indexOf(15) == -1" />
  1701. <div class="checkDiv" v-else>
  1702. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1703. </div>
  1704. </div> -->
  1705. </div>
  1706. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(16) != -1 }"
  1707. @click="addTools(16, itemTaskIndex, toolIndex)">
  1708. <div class="whiteBIcon" @click.stop="addTools(16, itemTaskIndex, toolIndex)">
  1709. <img src="../../assets/icon/thirdToolList/work.png" alt />
  1710. <div style="margin: 5px 0">作业提交</div>
  1711. </div>
  1712. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1713. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1"><img
  1714. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1715. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1716. <img src="../../assets/icon/checkNo.png" alt
  1717. v-if="itemTool.tool.indexOf(16) == -1" />
  1718. <div class="checkDiv" v-else>
  1719. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1720. </div>
  1721. </div> -->
  1722. </div>
  1723. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(50) != -1 }"
  1724. @click="addTools(50, itemTaskIndex, toolIndex)">
  1725. <div class="whiteBIcon" @click.stop="addTools(50, itemTaskIndex, toolIndex)">
  1726. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1727. <div style="margin: 5px 0">批量上传</div>
  1728. </div>
  1729. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1730. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1"><img
  1731. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1732. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1733. <img src="../../assets/icon/checkNo.png" alt
  1734. v-if="itemTool.tool.indexOf(50) == -1" />
  1735. <div class="checkDiv" v-else>
  1736. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1737. </div>
  1738. </div> -->
  1739. </div>
  1740. <!-- <div class="tool">
  1741. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1742. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1743. <div style="margin: 5px 0">个人评价</div>
  1744. </div>
  1745. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1746. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1747. <div class="checkDiv" v-else>
  1748. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1749. </div>
  1750. </div>
  1751. </div> -->
  1752. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(41) != -1 }"
  1753. @click="addTools(41, itemTaskIndex, toolIndex)">
  1754. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 41, toolIndex)">
  1755. <img src="../../assets/icon/thirdToolList/select.png" alt />
  1756. <div style="margin: 5px 0">选择匹配</div>
  1757. </div>
  1758. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1759. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1"><img
  1760. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1761. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1762. <img src="../../assets/icon/checkNo.png" alt
  1763. v-if="itemTool.tool.indexOf(41) == -1" />
  1764. <div class="checkDiv" v-else>
  1765. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1766. </div>
  1767. </div> -->
  1768. </div>
  1769. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(47) != -1 }"
  1770. @click="addTools(47, itemTaskIndex, toolIndex)">
  1771. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 47, toolIndex)">
  1772. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  1773. <div style="margin: 5px 0">排序</div>
  1774. </div>
  1775. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1776. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1"><img
  1777. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1778. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1779. <img src="../../assets/icon/checkNo.png" alt
  1780. v-if="itemTool.tool.indexOf(47) == -1" />
  1781. <div class="checkDiv" v-else>
  1782. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1783. </div>
  1784. </div> -->
  1785. </div>
  1786. <!-- <div class="tool">
  1787. <div
  1788. class="whiteBIcon"
  1789. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1790. >
  1791. <img
  1792. src="../../assets/icon/thirdToolList/mp3.png"
  1793. alt
  1794. />
  1795. <div style="margin: 5px 0">上传音频</div>
  1796. </div>
  1797. <div
  1798. class="check"
  1799. @click="addTools(42, itemTaskIndex, toolIndex)"
  1800. >
  1801. <img
  1802. src="../../assets/icon/checkNo.png"
  1803. alt
  1804. v-if="itemTool.tool.indexOf(42) == -1"
  1805. />
  1806. <img
  1807. src="../../assets/icon/checkedIs.png"
  1808. alt
  1809. v-else
  1810. />
  1811. </div>
  1812. </div> -->
  1813. </div>
  1814. <div class="toolSort" v-if="itemTool.toolType == 3">
  1815. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(18) != -1 }"
  1816. @click="addTools(18, itemTaskIndex, toolIndex)">
  1817. <div class="whiteBIcon" @click.stop="addTools(18, itemTaskIndex, toolIndex)">
  1818. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1819. <div style="margin: 5px 0">训练平台</div>
  1820. </div>
  1821. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1822. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1"><img
  1823. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1824. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1825. <img src="../../assets/icon/checkNo.png" alt
  1826. v-if="itemTool.tool.indexOf(18) == -1" />
  1827. <div class="checkDiv" v-else>
  1828. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1829. </div>
  1830. </div> -->
  1831. </div>
  1832. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(21) != -1 }"
  1833. @click="addTools(21, itemTaskIndex, toolIndex)">
  1834. <div class="whiteBIcon" @click.stop="addTools(21, itemTaskIndex, toolIndex)">
  1835. <img src="../../assets/icon/fourthToolList/program.png" alt />
  1836. <div style="margin: 5px 0">AIoT Blockly</div>
  1837. </div>
  1838. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1839. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1"><img
  1840. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1841. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1842. <img src="../../assets/icon/checkNo.png" alt
  1843. v-if="itemTool.tool.indexOf(21) == -1" />
  1844. <div class="checkDiv" v-else>
  1845. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1846. </div>
  1847. </div> -->
  1848. </div>
  1849. <!-- <div class="tool">
  1850. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1851. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1852. <div style="margin: 5px 0">AI体验</div>
  1853. </div>
  1854. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1855. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1856. <div class="checkDiv" v-else>
  1857. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1858. </div>
  1859. </div>
  1860. </div> -->
  1861. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(23) != -1 }"
  1862. @click="addTools(23, itemTaskIndex, toolIndex)">
  1863. <div class="whiteBIcon" @click.stop="addTools(23, itemTaskIndex, toolIndex)">
  1864. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1865. <div style="margin: 5px 0">AI Python</div>
  1866. </div>
  1867. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1868. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1"><img
  1869. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1870. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1871. <img src="../../assets/icon/checkNo.png" alt
  1872. v-if="itemTool.tool.indexOf(23) == -1" />
  1873. <div class="checkDiv" v-else>
  1874. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1875. </div>
  1876. </div> -->
  1877. </div>
  1878. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(24) != -1 }"
  1879. @click="addTools(24, itemTaskIndex, toolIndex)">
  1880. <div class="whiteBIcon" @click.stop="addTools(24, itemTaskIndex, toolIndex)">
  1881. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  1882. <div style="margin: 5px 0">AI Blockly</div>
  1883. </div>
  1884. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1885. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1"><img
  1886. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1887. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1888. <img src="../../assets/icon/checkNo.png" alt
  1889. v-if="itemTool.tool.indexOf(24) == -1" />
  1890. <div class="checkDiv" v-else>
  1891. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1892. </div>
  1893. </div> -->
  1894. </div>
  1895. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(32) != -1 }"
  1896. @click="addTools(32, itemTaskIndex, toolIndex)">
  1897. <div class="whiteBIcon" @click.stop="addTools(32, itemTaskIndex, toolIndex)">
  1898. <img src="../../assets/icon/thirdToolList/code.png" alt />
  1899. <div style="margin: 5px 0">源码编辑</div>
  1900. </div>
  1901. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1902. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1"><img
  1903. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1904. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1905. <img src="../../assets/icon/checkNo.png" alt
  1906. v-if="itemTool.tool.indexOf(32) == -1" />
  1907. <div class="checkDiv" v-else>
  1908. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1909. </div>
  1910. </div> -->
  1911. </div>
  1912. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(57) != -1 }"
  1913. @click="addTools(57, itemTaskIndex, toolIndex)">
  1914. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 57, toolIndex)">
  1915. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  1916. <div style="margin: 5px 0">CocoPi</div>
  1917. </div>
  1918. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1919. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1"><img
  1920. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1921. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1922. <img src="../../assets/icon/checkNo.png" alt
  1923. v-if="itemTool.tool.indexOf(57) == -1" />
  1924. <div class="checkDiv" v-else>
  1925. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1926. </div>
  1927. </div> -->
  1928. </div>
  1929. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(63) != -1 }"
  1930. @click="addTools(63, itemTaskIndex, toolIndex)">
  1931. <div class="whiteBIcon" @click.stop="addTools(63, itemTaskIndex, toolIndex)">
  1932. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  1933. <div style="margin: 5px 0">海龟编程</div>
  1934. </div>
  1935. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1936. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1"><img
  1937. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1938. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1939. <img src="../../assets/icon/checkNo.png" alt
  1940. v-if="itemTool.tool.indexOf(63) == -1" />
  1941. <div class="checkDiv" v-else>
  1942. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1943. </div>
  1944. </div> -->
  1945. </div>
  1946. </div>
  1947. <div class="toolSort" v-if="itemTool.toolType == 7">
  1948. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(40) != -1 }"
  1949. @click.stop="addTools(40, itemTaskIndex, toolIndex)">
  1950. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 40, toolIndex)">
  1951. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1952. <div style="margin: 5px 0">个人评价</div>
  1953. </div>
  1954. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1955. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1"><img
  1956. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1957. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1958. <img src="../../assets/icon/checkNo.png" alt
  1959. v-if="itemTool.tool.indexOf(40) == -1" />
  1960. <div class="checkDiv" v-else>
  1961. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1962. </div>
  1963. </div> -->
  1964. </div>
  1965. </div>
  1966. <div class="toolSort" v-if="itemTool.toolType == 5">
  1967. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(28) != -1 }"
  1968. @click="addTools(28, itemTaskIndex, toolIndex)">
  1969. <div class="whiteBIcon" @click.stop="addTools(28, itemTaskIndex, toolIndex)">
  1970. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1971. <div style="margin: 5px 0">翻译</div>
  1972. </div>
  1973. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1974. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1"><img
  1975. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1976. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1977. <img src="../../assets/icon/checkNo.png" alt
  1978. v-if="itemTool.tool.indexOf(28) == -1" />
  1979. <div class="checkDiv" v-else>
  1980. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1981. </div>
  1982. </div> -->
  1983. </div>
  1984. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(31) != -1 }"
  1985. @click="addTools(31, itemTaskIndex, toolIndex)">
  1986. <div class="whiteBIcon" @click.stop="addTools(31, itemTaskIndex, toolIndex)">
  1987. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1988. <div style="margin: 5px 0">数字画板</div>
  1989. </div>
  1990. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1991. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1"><img
  1992. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1993. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1994. <img src="../../assets/icon/checkNo.png" alt
  1995. v-if="itemTool.tool.indexOf(31) == -1" />
  1996. <div class="checkDiv" v-else>
  1997. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1998. </div>
  1999. </div> -->
  2000. </div>
  2001. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(39) != -1 }"
  2002. @click="addTools(39, itemTaskIndex, toolIndex)">
  2003. <div class="whiteBIcon" @click.stop="addTools(39, itemTaskIndex, toolIndex)">
  2004. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  2005. <div style="margin: 5px 0">GeoGebra</div>
  2006. </div>
  2007. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2008. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1"><img
  2009. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2010. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2011. <img src="../../assets/icon/checkNo.png" alt
  2012. v-if="itemTool.tool.indexOf(39) == -1" />
  2013. <div class="checkDiv" v-else>
  2014. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2015. </div>
  2016. </div> -->
  2017. </div>
  2018. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(66) != -1 }"
  2019. @click="addTools(66, itemTaskIndex, toolIndex)">
  2020. <div class="whiteBIcon" @click.stop="addTools(66, itemTaskIndex, toolIndex)">
  2021. <img src="../../assets/icon/secondToolList/formulaEdi.png" alt />
  2022. <div style="margin: 5px 0">公式编辑</div>
  2023. </div>
  2024. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2025. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1"><img
  2026. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2027. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  2028. <img src="../../assets/icon/checkNo.png" alt
  2029. v-if="itemTool.tool.indexOf(66) == -1" />
  2030. <div class="checkDiv" v-else>
  2031. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2032. </div>
  2033. </div> -->
  2034. </div>
  2035. <!-- <div class="tool">
  2036. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  2037. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  2038. <div style="margin: 5px 0">分子结构</div>
  2039. </div>
  2040. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  2041. <img src="../../assets/icon/checkNo.png" alt
  2042. v-if="itemTool.tool.indexOf(67) == -1" />
  2043. <div class="checkDiv" v-else>
  2044. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2045. </div>
  2046. </div>
  2047. </div> -->
  2048. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(68) != -1 }"
  2049. @click="addTools(68, itemTaskIndex, toolIndex)">
  2050. <div class="whiteBIcon" @click.stop="addTools(68, itemTaskIndex, toolIndex)">
  2051. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  2052. <div style="margin: 5px 0">时间轴</div>
  2053. </div>
  2054. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2055. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1"><img
  2056. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2057. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  2058. <img src="../../assets/icon/checkNo.png" alt
  2059. v-if="itemTool.tool.indexOf(68) == -1" />
  2060. <div class="checkDiv" v-else>
  2061. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2062. </div>
  2063. </div> -->
  2064. </div>
  2065. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(69) != -1 }"
  2066. @click="addTools(69, itemTaskIndex, toolIndex)">
  2067. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 69, toolIndex)">
  2068. <img src="../../assets/icon/thirdToolList/english.png" alt />
  2069. <div style="margin: 5px 0">英语写作</div>
  2070. </div>
  2071. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2072. <div class="isCTool" v-if="itemTool.tool.indexOf(69) != -1"><img
  2073. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2074. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2075. <img src="../../assets/icon/checkNo.png" alt
  2076. v-if="itemTool.tool.indexOf(4) == -1" />
  2077. <div class="checkDiv" v-else>
  2078. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2079. </div>
  2080. </div> -->
  2081. </div>
  2082. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(70) != -1 }"
  2083. @click="addTools(70, itemTaskIndex, toolIndex)">
  2084. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 70, toolIndex)">
  2085. <img src="../../assets/icon/thirdToolList/englishVoice.png" alt />
  2086. <div style="margin: 5px 0">英语口语</div>
  2087. </div>
  2088. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2089. <div class="isCTool" v-if="itemTool.tool.indexOf(70) != -1"><img
  2090. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2091. </div>
  2092. <!-- <div class="tool">
  2093. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  2094. <img src="../../assets/icon/secondToolList/translation.png" alt />
  2095. <div style="margin: 5px 0">翻译</div>
  2096. </div>
  2097. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  2098. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  2099. <div class="checkDiv" v-else>
  2100. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2101. </div>
  2102. </div>
  2103. </div>
  2104. <div class="tool">
  2105. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  2106. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  2107. <div style="margin: 5px 0">魔盒识字</div>
  2108. </div>
  2109. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  2110. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  2111. <div class="checkDiv" v-else>
  2112. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2113. </div>
  2114. </div>
  2115. </div>
  2116. <div class="tool">
  2117. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  2118. <img src="../../assets/icon/secondToolList/24game.png" alt />
  2119. <div style="margin: 5px 0">24点</div>
  2120. </div>
  2121. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  2122. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  2123. <div class="checkDiv" v-else>
  2124. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2125. </div>
  2126. </div>
  2127. </div>
  2128. <div class="tool">
  2129. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  2130. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  2131. <div style="margin: 5px 0">数学画板</div>
  2132. </div>
  2133. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  2134. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  2135. <div class="checkDiv" v-else>
  2136. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2137. </div>
  2138. </div>
  2139. </div>
  2140. <div class="tool">
  2141. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  2142. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  2143. <div style="margin: 5px 0">GeoGebra</div>
  2144. </div>
  2145. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2146. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  2147. <div class="checkDiv" v-else>
  2148. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2149. </div>
  2150. </div>
  2151. </div>
  2152. <div class="tool">
  2153. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  2154. <img src="../../assets/icon/fourthToolList/car.png" alt />
  2155. <div style="margin: 5px 0">模拟驾驶</div>
  2156. </div>
  2157. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  2158. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  2159. <div class="checkDiv" v-else>
  2160. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2161. </div>
  2162. </div>
  2163. </div>
  2164. <div class="tool">
  2165. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  2166. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  2167. <div style="margin: 5px 0">路径搜索</div>
  2168. </div>
  2169. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  2170. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  2171. <div class="checkDiv" v-else>
  2172. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2173. </div>
  2174. </div>
  2175. </div>
  2176. <div class="tool">
  2177. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  2178. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  2179. <div style="margin: 5px 0">深度学习</div>
  2180. </div>
  2181. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  2182. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  2183. <div class="checkDiv" v-else>
  2184. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2185. </div>
  2186. </div>
  2187. </div>
  2188. <div class="tool">
  2189. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  2190. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  2191. <div style="margin: 5px 0">全历史</div>
  2192. </div>
  2193. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  2194. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  2195. <div class="checkDiv" v-else>
  2196. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2197. </div>
  2198. </div>
  2199. </div>
  2200. </div>
  2201. <div class="toolSort" v-if="itemTool.toolType == 4">
  2202. <div class="tool">
  2203. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  2204. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  2205. <div style="margin: 5px 0">课程设计</div>
  2206. </div>
  2207. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  2208. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  2209. <div class="checkDiv" v-else>
  2210. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2211. </div>
  2212. </div>
  2213. </div>
  2214. <div class="tool">
  2215. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  2216. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  2217. <div style="margin: 5px 0">目标管理</div>
  2218. </div>
  2219. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  2220. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  2221. <div class="checkDiv" v-else>
  2222. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2223. </div>
  2224. </div>
  2225. </div> -->
  2226. <!-- <div class="tool">
  2227. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2228. <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
  2229. <div style="margin: 5px 0">汉字宫</div>
  2230. </div>
  2231. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2232. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2233. <div class="checkDiv" v-else>
  2234. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2235. </div>
  2236. </div>
  2237. </div> -->
  2238. </div>
  2239. </div>
  2240. <!-- v-show="!itemTool.isFold3" -->
  2241. <div>
  2242. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述" class="binfo_input"
  2243. style="margin: 0 0 20px 0; width: 100% !important"
  2244. v-model="itemTool.toolDetail"></textarea>
  2245. </div>
  2246. </div>
  2247. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  2248. <div class="addToolImg">
  2249. <img src="../../assets/icon/add.png" alt />
  2250. </div>
  2251. <div>添加工具</div>
  2252. </div> -->
  2253. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 0 auto;padding: 0 30px;height: 45px;">
  2254. 添加工具
  2255. </button>
  2256. </div>
  2257. </div>
  2258. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  2259. unitJson[unitIndex].easy == 4
  2260. " class="toolChoose" style="padding: 0 0 40px;">
  2261. <div class="tools">
  2262. <div class="leftTools" style="width: 100%"
  2263. v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2264. <div>
  2265. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2266. style="margin: 0 0 20px 0; width: 100% !important"
  2267. v-model="itemTool.toolDetail"></textarea>
  2268. </div>
  2269. <div style="
  2270. display: flex;
  2271. flex-direction: row;
  2272. align-items: baseline;
  2273. flex-wrap: nowrap;
  2274. justify-content: flex-start;
  2275. position: relative;
  2276. ">
  2277. <div style="margin-right: 20px; font-weight: bold"
  2278. :id="'gj' + itemTaskIndex + '' + toolIndex">
  2279. 工具 {{ toolIndex + 1 }} :
  2280. </div>
  2281. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2282. v-if="itemTask.toolChoose.length > 1" style="right: 0"></div>
  2283. </div>
  2284. <div style="min-height: 163px">
  2285. <div class="toolSort">
  2286. <div class="tool">
  2287. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2288. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2289. <div style="margin: 5px 0">电子白板</div>
  2290. </div>
  2291. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2292. <img src="../../assets/icon/checkNo.png" alt
  2293. v-if="itemTool.tool.indexOf(1) == -1" />
  2294. <div class="checkDiv" v-else>
  2295. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2296. </div>
  2297. </div>
  2298. </div>
  2299. <div class="tool">
  2300. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2301. <img src="../../assets/icon/fourthToolList/text.png" alt />
  2302. <div style="margin: 5px 0">文档</div>
  2303. </div>
  2304. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2305. <img src="../../assets/icon/checkNo.png" alt
  2306. v-if="itemTool.tool.indexOf(52) == -1" />
  2307. <div class="checkDiv" v-else>
  2308. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2309. </div>
  2310. </div>
  2311. </div>
  2312. <div class="tool">
  2313. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2314. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2315. <div style="margin: 5px 0">思维导图</div>
  2316. </div>
  2317. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2318. <img src="../../assets/icon/checkNo.png" alt
  2319. v-if="itemTool.tool.indexOf(3) == -1" />
  2320. <div class="checkDiv" v-else>
  2321. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2322. </div>
  2323. </div>
  2324. </div>
  2325. <div class="tool">
  2326. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2327. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  2328. <div style="margin: 5px 0">问卷调查</div>
  2329. </div>
  2330. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2331. <img src="../../assets/icon/checkNo.png" alt
  2332. v-if="itemTool.tool.indexOf(4) == -1" />
  2333. <div class="checkDiv" v-else>
  2334. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2335. </div>
  2336. </div>
  2337. </div>
  2338. <div class="tool">
  2339. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2340. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  2341. <div style="margin: 5px 0">选择题</div>
  2342. </div>
  2343. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2344. <img src="../../assets/icon/checkNo.png" alt
  2345. v-if="itemTool.tool.indexOf(45) == -1" />
  2346. <div class="checkDiv" v-else>
  2347. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2348. </div>
  2349. </div>
  2350. </div>
  2351. <div class="tool">
  2352. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2353. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  2354. <div style="margin: 5px 0">问答</div>
  2355. </div>
  2356. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2357. <img src="../../assets/icon/checkNo.png" alt
  2358. v-if="itemTool.tool.indexOf(15) == -1" />
  2359. <div class="checkDiv" v-else>
  2360. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2361. </div>
  2362. </div>
  2363. </div>
  2364. <div class="tool">
  2365. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2366. <img src="../../assets/icon/thirdToolList/work.png" alt />
  2367. <div style="margin: 5px 0">作业提交</div>
  2368. </div>
  2369. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2370. <img src="../../assets/icon/checkNo.png" alt
  2371. v-if="itemTool.tool.indexOf(16) == -1" />
  2372. <div class="checkDiv" v-else>
  2373. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2374. </div>
  2375. </div>
  2376. </div>
  2377. <div class="tool">
  2378. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2379. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2380. <div style="margin: 5px 0">批量上传</div>
  2381. </div>
  2382. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2383. <img src="../../assets/icon/checkNo.png" alt
  2384. v-if="itemTool.tool.indexOf(50) == -1" />
  2385. <div class="checkDiv" v-else>
  2386. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2387. </div>
  2388. </div>
  2389. </div>
  2390. <div class="tool">
  2391. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2392. <img src="../../assets/icon/thirdToolList/select.png" alt />
  2393. <div style="margin: 5px 0">选择匹配</div>
  2394. </div>
  2395. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2396. <img src="../../assets/icon/checkNo.png" alt
  2397. v-if="itemTool.tool.indexOf(41) == -1" />
  2398. <div class="checkDiv" v-else>
  2399. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2400. </div>
  2401. </div>
  2402. </div>
  2403. <div class="tool">
  2404. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2405. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  2406. <div style="margin: 5px 0">排序</div>
  2407. </div>
  2408. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2409. <img src="../../assets/icon/checkNo.png" alt
  2410. v-if="itemTool.tool.indexOf(47) == -1" />
  2411. <div class="checkDiv" v-else>
  2412. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2413. </div>
  2414. </div>
  2415. </div>
  2416. <div class="tool">
  2417. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2418. <img src="../../assets/icon/fourthToolList/table.png" alt />
  2419. <div style="margin: 5px 0">表格</div>
  2420. </div>
  2421. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2422. <img src="../../assets/icon/checkNo.png" alt
  2423. v-if="itemTool.tool.indexOf(48) == -1" />
  2424. <div class="checkDiv" v-else>
  2425. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2426. </div>
  2427. </div>
  2428. </div>
  2429. </div>
  2430. </div>
  2431. </div>
  2432. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  2433. <div class="addToolImg">
  2434. <img src="../../assets/icon/add.png" alt />
  2435. </div>
  2436. <div>添加工具</div>
  2437. </div> -->
  2438. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 35px auto 20px">
  2439. 添加工具
  2440. </button>
  2441. </div>
  2442. </div>
  2443. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  2444. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2445. " class="toolChoose" style="padding: 0 0 40px;">
  2446. <div class="tools">
  2447. <div class="leftTools" style="
  2448. width: 100%;
  2449. padding: 0 0 15px 0;
  2450. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2451. <div style="min-height: 163px">
  2452. <div class="toolSort">
  2453. <div class="tool">
  2454. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2455. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2456. <div style="margin: 5px 0">批量上传</div>
  2457. </div>
  2458. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2459. <img src="../../assets/icon/checkNo.png" alt
  2460. v-if="itemTool.tool.indexOf(50) == -1" />
  2461. <div class="checkDiv" v-else>
  2462. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2463. </div>
  2464. </div>
  2465. </div>
  2466. </div>
  2467. </div>
  2468. </div>
  2469. </div>
  2470. </div>
  2471. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  2472. <div class="elist_title">
  2473. <div style="
  2474. display: flex;
  2475. flex-direction: row;
  2476. align-items: center;
  2477. margin: 20px 0;
  2478. ">
  2479. <div class="lineTitle clineTitle">评价设置</div>
  2480. <!-- <div class="line" style="width: 90%"></div> -->
  2481. </div>
  2482. </div>
  2483. <div class="mbCss">
  2484. <div class="pjCss" :style="{width:itemTask.isEvaFold?'calc(100% - 55%)':'calc(100% - 120px)'}">
  2485. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2486. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2487. <span>评价维度:</span>
  2488. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价维度'" placement="top" popper-class="text_tooltip2"> -->
  2489. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价维度" />
  2490. <!-- </el-tooltip> -->
  2491. <!-- <span>评星等级:</span>
  2492. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  2493. disabled></el-rate> -->
  2494. <div class="remove" @click="
  2495. deletEList(unitIndex, itemTaskIndex, eIndex)
  2496. "></div>
  2497. <div class="elist_inptu_text">
  2498. <span>维度描述:</span>
  2499. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写维度描述'" placement="top" popper-class="text_tooltip2"> -->
  2500. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写维度描述" />
  2501. <!-- </el-tooltip> -->
  2502. </div>
  2503. <div class="elist_inptu_text" v-if="evalua">
  2504. <span>目标:</span>
  2505. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写维度描述" /> -->
  2506. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2507. @change="forceUpdate()">
  2508. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2509. :value="e.name">
  2510. </el-option>
  2511. </el-select> -->
  2512. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2513. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2514. </div>
  2515. </div>
  2516. </div>
  2517. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  2518. style="margin: 35px 35px 0 0">
  2519. <div class="addToolImg">
  2520. <img src="../../assets/icon/add.png" alt />
  2521. </div>
  2522. <div>添加</div>
  2523. </div> -->
  2524. <div class="eva_btn_box">
  2525. <div class="eva_btn_left_box">
  2526. <button class="c_pub_button_add pub_btn_eval_img" @click="addEList(unitIndex, itemTaskIndex)">
  2527. 添加
  2528. </button>
  2529. <button class="c_pub_button_add pub_btn_eval_source_img" @click="openEList(unitIndex, itemTaskIndex)">
  2530. 资源
  2531. </button>
  2532. </div>
  2533. <button class="c_pub_button_add" @click="addCET(unitIndex, itemTaskIndex)" v-if="itemTask.eList && itemTask.eList.length">
  2534. 添加资源模板
  2535. </button>
  2536. </div>
  2537. </div>
  2538. <div v-if="evalua" style="
  2539. border: 1px solid #e5e5e5;
  2540. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2541. " :style="{width:itemTask.isEvaFold?'55%':'116px'}" class="evaCss">
  2542. <!-- <div class="e_add_top">
  2543. <div class="e_add_title">
  2544. <span>当前使用目标管理</span>
  2545. <span>{{ eTitle }}</span>
  2546. <img src="../../assets/line.png" class="cru_line" style="
  2547. width: 125px;
  2548. height: 20px;
  2549. bottom: -10px;
  2550. left: 155px;
  2551. " />
  2552. </div>
  2553. </div> -->
  2554. <div class="e_add_content" style="width: 100%">
  2555. <div class="e_add_list_pbox" style="width: 100%">
  2556. <div class="e_add_list_pbox_title">
  2557. <span class="type_title" v-if="itemTask.isEvaFold">切换模式</span>
  2558. <div class="type_content" v-if="itemTask.isEvaFold">
  2559. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1, itemTaskIndex)">目标树</span>
  2560. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2, itemTaskIndex)">目标罗盘</span>
  2561. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  2562. </div>
  2563. <div v-if="itemTask.isEvaFold"
  2564. class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva(itemTaskIndex)"><img
  2565. src="../../assets/icon/new/icon-slide.png" />收起目标</div>
  2566. <div v-else style="margin:0 0 0 auto" class="show_taskD"
  2567. @click="foldEva(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开目标
  2568. </div>
  2569. </div>
  2570. <div class="e_add_list_pbox_content" v-if="itemTask.isEvaFold" style="min-height: 200px;">
  2571. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  2572. " v-if="typeMode == 1"></Mind>
  2573. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  2574. </Sunburst>
  2575. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2576. v-if="typeMode == 3"></SeeBoard>
  2577. </div>
  2578. </div>
  2579. </div>
  2580. </div>
  2581. </div>
  2582. </div>
  2583. <div class="funBlock" style="padding: 0">
  2584. <div class="fold" @click="fold(itemTaskIndex, $event)">
  2585. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }">
  2586. </div>
  2587. <div>{{ itemTask.isFold === 1 ? '展开任务' : '收起任务' }}</div>
  2588. </div>
  2589. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2590. <div>展开</div>
  2591. <div class="arrow">
  2592. <img src="../../assets/icon/expand.png" alt />
  2593. </div>
  2594. </div> -->
  2595. </div>
  2596. </div>
  2597. </div>
  2598. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2599. <!-- <div>
  2600. <img src="../../../assets/icon/new/addStage.png" alt />
  2601. <span>添加任务</span>
  2602. </div> -->
  2603. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  2604. 添加任务
  2605. </button>
  2606. </div>
  2607. </div>
  2608. <div class="info_btnBox3">
  2609. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  2610. goTo(
  2611. '/course?userid=' +
  2612. userid +
  2613. '&oid=' +
  2614. oid +
  2615. '&org=' +
  2616. org +
  2617. '&role=' +
  2618. role
  2619. )
  2620. ">
  2621. 返回课程
  2622. </button>
  2623. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps"
  2624. style="background:#dbdbdb">
  2625. {{ steps == 4 ? "返回课程" : "上一步" }}
  2626. </button>
  2627. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  2628. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2629. {{ steps == 3 ? "确认上传" : "下一步" }}
  2630. </button>
  2631. </div>
  2632. </div>
  2633. </div>
  2634. </div>
  2635. </div>
  2636. <div style="
  2637. width: calc(100% - 20px);
  2638. background: rgb(255, 255, 255);
  2639. border-radius: 10px;
  2640. " v-if="this.steps == 4">
  2641. <div class="basic_box_success">
  2642. <div class="right_img">
  2643. <img src="../../assets/icon/right.png" alt />
  2644. </div>
  2645. <div style="font-weight: bold">成功</div>
  2646. <!-- <div>您的课程编号</div>
  2647. <div class="number">{{ number }}</div>-->
  2648. <!-- <div class="success_button">
  2649. <div class="look_course" @click="isNoFinsh">
  2650. 邀请老师协同编辑
  2651. </div>
  2652. <div class="attend_others" @click="goCourse">预览课程</div>
  2653. </div> -->
  2654. </div>
  2655. </div>
  2656. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  2657. @mouseleave="btnDisplay(false)" v-if="false">
  2658. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1 && isBtnDisplay" @click="
  2659. goTo(
  2660. '/course?userid=' +
  2661. userid +
  2662. '&oid=' +
  2663. oid +
  2664. '&org=' +
  2665. org +
  2666. '&role=' +
  2667. role
  2668. )
  2669. ">
  2670. 返回课程
  2671. </button>
  2672. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5 && isBtnDisplay"
  2673. @click="lastSteps">
  2674. {{ steps == 4 ? "返回课程" : "上一步" }}
  2675. </button>
  2676. <button class="c_pub_button_confirm" v-if="steps < 4 && isBtnDisplay" @click="nextSteps"
  2677. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2678. {{ steps == 3 ? "确认上传" : "下一步" }}
  2679. </button>
  2680. </div>
  2681. </div>
  2682. </div>
  2683. </div>
  2684. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2685. class="dialog_diy2 customWidth">
  2686. <div>请复制该链接邀请协同编辑</div>
  2687. <div>http://www.boomyon.com/index-zhang.com</div>
  2688. <span slot="footer" class="dialog-footer">
  2689. <el-button type="primary">复制链接分享</el-button>
  2690. <el-button @click="dialogVisible = false">取消</el-button>
  2691. </span>
  2692. </el-dialog>
  2693. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2694. :before-close="handleClose" class="dialog_diy2 customWidth">
  2695. <el-form>
  2696. <el-form-item label="文档标题">
  2697. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2698. </el-form-item>
  2699. <div>文档简介</div>
  2700. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2701. </el-form>
  2702. <span slot="footer" class="dialog-footer">
  2703. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2704. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2705. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2706. </span>
  2707. </el-dialog>
  2708. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2709. :before-close="handleClose" class="dialog_diy">
  2710. <el-form>
  2711. <el-form-item label="文档标题">
  2712. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2713. </el-form-item>
  2714. <div>文档内容</div>
  2715. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2716. </el-form>
  2717. <span slot="footer" class="dialog-footer">
  2718. <el-button @click="clearChoose">取 消</el-button>
  2719. <el-button type="primary" @click="wordNext()">确定</el-button>
  2720. </span>
  2721. </el-dialog>
  2722. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2723. :before-close="handleClose" class="dialog_diy">
  2724. <el-form>
  2725. <el-form-item label="文本标题">
  2726. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  2727. placeholder="请输入文本标题..."></el-input>
  2728. </el-form-item>
  2729. <!-- <div>富文本内容</div> -->
  2730. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2731. </el-form>
  2732. <span slot="footer" class="dialog-footer">
  2733. <el-button @click="clearAttText">取 消</el-button>
  2734. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2735. </span>
  2736. </el-dialog>
  2737. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2738. :before-close="handleClose" class="dialog_diy lineCss">
  2739. <el-form>
  2740. <el-form-item label="标题" :label-width="formLabelWidth">
  2741. <span>
  2742. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2743. </span>
  2744. </el-form-item>
  2745. <el-form-item label="链接" :label-width="formLabelWidth">
  2746. <span>
  2747. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2748. </span>
  2749. </el-form-item>
  2750. </el-form>
  2751. <span slot="footer" class="dialog-footer">
  2752. <el-button @click="clearLine">取 消</el-button>
  2753. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2754. </span>
  2755. </el-dialog>
  2756. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  2757. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  2758. <div>
  2759. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  2760. </div>
  2761. <span slot="footer" class="dialog-footer">
  2762. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2763. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  2764. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  2765. </span>
  2766. </el-dialog>
  2767. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2768. :before-close="handleClose" class="addNewPP customWidth">
  2769. <div class="people">
  2770. <div class="people_top">
  2771. <div class="people_nav">选择成员</div>
  2772. <div class="people_top_right">
  2773. <div class="people_search">
  2774. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2775. <div class="search_img" @click="searchStudent">
  2776. <img src="../../assets/icon/search.png" alt />
  2777. </div>
  2778. </div>
  2779. </div>
  2780. </div>
  2781. <el-checkbox-group v-model="checkboxList" class="people_name">
  2782. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2783. "暂无学生可选" }}</el-checkbox>
  2784. </el-checkbox-group>
  2785. </div>
  2786. <span slot="footer" class="dialog-footer">
  2787. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2788. <el-button type="primary" @click="isAddPP">确定</el-button>
  2789. </span>
  2790. </el-dialog>
  2791. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  2792. :before-close="handleClose" class="addNewPP2">
  2793. <div class="check_classBox">
  2794. <div class="check_class_right">
  2795. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  2796. 全部
  2797. </div>
  2798. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  2799. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  2800. {{ item.name }}
  2801. </div>
  2802. </el-tooltip>
  2803. </div>
  2804. <div class="check_class_left">
  2805. <div class="check_class_all_box">
  2806. <div class="check_class_left_title">选择班级</div>
  2807. <div style="display:flex;align-items:center;margin-left:auto;"><el-checkbox v-model="checkAll"
  2808. @change="handleCheckAllChange" class="all_check">全选</el-checkbox></div>
  2809. </div>
  2810. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  2811. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  2812. </div> -->
  2813. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  2814. <div v-for="item in grade2" :key="item.id" class="class_item">
  2815. <el-checkbox :label="item.id">
  2816. {{ item.name }}
  2817. </el-checkbox>
  2818. </div>
  2819. </el-checkbox-group>
  2820. <div v-if="!grade2.length">暂无数据</div>
  2821. </div>
  2822. </div>
  2823. <span slot="footer" class="dialog-footer">
  2824. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2825. <el-button type="primary" @click="isAddClass">确定</el-button>
  2826. </span>
  2827. </el-dialog>
  2828. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2829. :before-close="handleClose" class="addNewPP customWidth">
  2830. <div class="people">
  2831. <div class="people_top">
  2832. <div class="people_top_right">
  2833. <div class="people_search">
  2834. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2835. <div class="search_img" @click="getTeacher">
  2836. <img src="../../assets/icon/search.png" alt />
  2837. </div>
  2838. </div>
  2839. </div>
  2840. <div class="people_nav" style="display: flex;align-items: center;">
  2841. <div class="check_class_left_title">选择成员</div>
  2842. <div style="display:flex;align-items:center;margin-left:auto;"><el-checkbox v-model="checkAll2"
  2843. @change="handleCheckAllChange2" class="all_check">全选</el-checkbox></div>
  2844. </div>
  2845. </div>
  2846. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length" @change="InviteChange2">
  2847. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2848. <div class="t_j_box">
  2849. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2850. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2851. </el-tooltip>
  2852. <el-tooltip placement="top" :content="item.username">
  2853. <span>{{ item.username }}</span>
  2854. </el-tooltip>
  2855. <el-tooltip placement="top" :content="item.school">
  2856. <span>{{ item.school }}</span>
  2857. </el-tooltip>
  2858. </div>
  2859. </el-checkbox>
  2860. </el-checkbox-group>
  2861. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2862. </div>
  2863. <span slot="footer" class="dialog-footer">
  2864. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2865. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2866. </span>
  2867. </el-dialog>
  2868. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2869. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  2870. <div style="height:100%">
  2871. <div class="a_add_title" style="
  2872. display: flex;
  2873. flex-direction: row;
  2874. align-items: center;
  2875. justify-content: center;
  2876. ">
  2877. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  2878. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2879. </div>
  2880. <div class="a_addBox" style="height:calc(100% - 50px)">
  2881. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  2882. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2883. <div class="a_add_checkType">
  2884. <span :class="{
  2885. active:
  2886. askJson.askJson[index1].type == '1' ||
  2887. !askJson.askJson[index1].type,
  2888. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2889. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2890. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2891. </div>
  2892. <div class="a_add_head">
  2893. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  2894. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2895. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  2896. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  2897. </div>
  2898. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  2899. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  2900. </div>
  2901. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  2902. </div>
  2903. <div class="a_add_head_div">
  2904. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2905. </el-button>
  2906. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  2907. </div>
  2908. </div>
  2909. <div class="a_add_body">
  2910. <div class="a_add_input" style="flex-direction: column;">
  2911. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2912. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  2913. <div style="margin-right: 10px">
  2914. 选项{{ checkIndex + 1 }}
  2915. </div>
  2916. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  2917. " placeholder="请输入选项" style="width: 300px;" @change="() => { $forceUpdate() }"></textarea>
  2918. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  2919. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  2920. </div>
  2921. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  2922. </div>
  2923. <div class="a_add_body_div">
  2924. <el-button type="primary" size="small"
  2925. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  2926. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  2927. v-if="askJson.askJson[index1].askItem != 1">删除
  2928. </el-button>
  2929. </div>
  2930. </div>
  2931. </div>
  2932. <!-- <div class="a_add_body_div">
  2933. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2934. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2935. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2936. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2937. </el-button>
  2938. </div> -->
  2939. </div>
  2940. </div>
  2941. </div>
  2942. </div>
  2943. <span slot="footer" class="dialog-footer">
  2944. <el-button @click="closePan(4)">取 消</el-button>
  2945. <el-button type="primary" @click="addAsk">确 定</el-button>
  2946. </span>
  2947. </el-dialog>
  2948. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2949. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  2950. <div style="height:100%">
  2951. <!-- <div class="a_add_title" style="
  2952. display: flex;
  2953. flex-direction: row;
  2954. align-items: center;
  2955. justify-content: center;
  2956. ">
  2957. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2958. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2959. </div> -->
  2960. <div class="a_addBox" style="height:100%">
  2961. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  2962. <!-- 请输入题目内容 -->
  2963. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  2964. v-if="isPasteChoice">智能粘贴</button>
  2965. </div>
  2966. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2967. <div class="a_add_checkType">
  2968. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2969. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2970. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2971. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2972. </div>
  2973. <div class="a_add_head">
  2974. <div class="timuUpImg">
  2975. <div style="display: flex;align-items: center;">
  2976. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2977. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  2978. placeholder="请输入题目">
  2979. </el-input> -->
  2980. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  2981. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  2982. @change="() => { $forceUpdate() }"></textarea>
  2983. </div>
  2984. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  2985. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  2986. </div>
  2987. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  2988. </div>
  2989. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  2990. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2991. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2992. </div>
  2993. </div>
  2994. <div class="a_add_head_div">
  2995. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2996. </el-button>
  2997. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  2998. </div>
  2999. </div>
  3000. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  3001. testJson.testJson[index1].timuList.length
  3002. ">
  3003. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3004. @click.stop="previewImg(timg.src)">
  3005. <img :src="timg.src" alt="" />
  3006. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  3007. <img src="../../assets/icon/delete.png" alt="" />
  3008. </div>
  3009. </div>
  3010. </div>
  3011. <div class="a_add_body">
  3012. <div class="a_add_input a_add_input_choice">
  3013. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  3014. @change="() => { $forceUpdate() }">
  3015. <div class="radioBox">
  3016. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3017. .testItem" :key="checkIndex" :label="checkIndex">
  3018. <div style="margin-right: 10px">
  3019. 选项{{ checkIndex + 1 }}
  3020. </div>
  3021. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  3022. testJson.testJson[index1].checkList[checkIndex]
  3023. .imgType &&
  3024. testJson.testJson[index1].checkList[checkIndex]
  3025. .imgType == 1
  3026. ">
  3027. <div class="inImg" @click.stop="
  3028. previewImg(
  3029. testJson.testJson[index1].checkList[checkIndex]
  3030. .src
  3031. )
  3032. ">
  3033. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  3034. .src
  3035. " lazy />
  3036. <!-- <img :src="
  3037. testJson.testJson[index1].checkList[checkIndex]
  3038. .src
  3039. " alt="" /> -->
  3040. </div>
  3041. </div>
  3042. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  3043. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3044. @change="() => { $forceUpdate() }"></textarea>
  3045. <div class="xzUpImg" @click.stop="addImg($event)">
  3046. <img src="../../assets/icon/xzUpImg.png" alt="" />
  3047. <input type="file" accept="image/*" style="display: none"
  3048. @change="beforeUploadTi($event, index1, checkIndex)" />
  3049. </div>
  3050. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3051. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  3052. </div>
  3053. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  3054. </div>
  3055. <div class="a_add_body_div">
  3056. <el-button type="primary" size="small"
  3057. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  3058. <el-button type="primary" size="small"
  3059. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  3060. v-if="testJson.testJson[index1].testItem != 1">删除
  3061. </el-button>
  3062. </div>
  3063. </el-radio>
  3064. </div>
  3065. </el-radio-group>
  3066. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  3067. @change="() => { $forceUpdate() }">
  3068. <div class="radioBox">
  3069. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  3070. .testItem" :key="checkIndex1" :label="checkIndex1">
  3071. <div style="margin-right: 10px">
  3072. 选项{{ checkIndex1 + 1 }}
  3073. </div>
  3074. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  3075. testJson.testJson[index1].checkList[checkIndex1]
  3076. .imgType &&
  3077. testJson.testJson[index1].checkList[checkIndex1]
  3078. .imgType == 1
  3079. ">
  3080. <div class="inImg" @click.stop="
  3081. previewImg(
  3082. testJson.testJson[index1].checkList[checkIndex1]
  3083. .src
  3084. )
  3085. ">
  3086. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  3087. .src
  3088. " lazy />
  3089. <!-- <img :src="
  3090. testJson.testJson[index1].checkList[checkIndex1]
  3091. .src
  3092. " alt="" /> -->
  3093. </div>
  3094. </div>
  3095. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  3096. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3097. @change="() => { $forceUpdate() }"></textarea>
  3098. <div class="xzUpImg" @click.stop="addImg($event)">
  3099. <img src="../../assets/icon/xzUpImg.png" alt="" />
  3100. <input type="file" accept="image/*" style="display: none"
  3101. @change="beforeUploadTi($event, index1, checkIndex1)" />
  3102. </div>
  3103. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3104. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  3105. </div>
  3106. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  3107. </div>
  3108. <div class="a_add_body_div">
  3109. <el-button type="primary" size="small"
  3110. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  3111. <el-button type="primary" size="small"
  3112. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  3113. v-if="testJson.testJson[index1].testItem != 1">删除
  3114. </el-button>
  3115. </div>
  3116. </el-checkbox>
  3117. </div>
  3118. </el-checkbox-group>
  3119. </div>
  3120. <!-- <div class="a_add_body_div">
  3121. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  3122. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  3123. v-if="testJson.testJson[index1].testItem != 1">删除
  3124. </el-button>
  3125. </div> -->
  3126. </div>
  3127. </div>
  3128. </div>
  3129. </div>
  3130. <span slot="footer" class="dialog-footer">
  3131. <el-button @click="closePan(45)">取 消</el-button>
  3132. <el-button type="primary" @click="addTest">确 定</el-button>
  3133. </span>
  3134. </el-dialog>
  3135. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  3136. :before-close="handleClose" class="dialog_diy addToolsDia">
  3137. <div class="toolChoose">
  3138. <div class="tools">
  3139. <div class="leftTools" style="
  3140. width: 100%;
  3141. padding: 0 0 15px 0;
  3142. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  3143. <div style="
  3144. display: flex;
  3145. flex-direction: row;
  3146. align-items: baseline;
  3147. flex-wrap: nowrap;
  3148. justify-content: flex-start;
  3149. position: relative;
  3150. ">
  3151. <div class="chooseWho">
  3152. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  3153. 互动类
  3154. </div>
  3155. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  3156. 思维类
  3157. </div>
  3158. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3159. 评价类
  3160. </div>
  3161. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3162. 其他
  3163. </div>
  3164. </div>
  3165. </div>
  3166. <div style="min-height: 163px">
  3167. <div class="toolSort" v-if="chapToolsType == 0">
  3168. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }" @click="chapAddTools(8)">
  3169. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  3170. <img src="../../assets/icon/secondToolList/library.png" alt />
  3171. <div style="margin: 5px 0">素材库</div>
  3172. </div>
  3173. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3174. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1"><img
  3175. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3176. <!-- <div class="check" @click="chapAddTools(8)">
  3177. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  3178. <div class="checkDiv" v-else>
  3179. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3180. </div>
  3181. </div> -->
  3182. </div>
  3183. </div>
  3184. <div class="toolSort" v-if="chapToolsType == 1">
  3185. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }" @click="chapAddTools(7)">
  3186. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  3187. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  3188. <div style="margin: 5px 0">思维网格</div>
  3189. </div>
  3190. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3191. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1"><img
  3192. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3193. <!-- <div class="check" @click="chapAddTools(7)">
  3194. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  3195. <div class="checkDiv" v-else>
  3196. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3197. </div>
  3198. </div> -->
  3199. </div>
  3200. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }" @click="chapAddTools(1)">
  3201. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  3202. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  3203. <div style="margin: 5px 0">电子白板</div>
  3204. </div>
  3205. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3206. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1"><img
  3207. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3208. <!-- <div class="check" @click="chapAddTools(1)">
  3209. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  3210. <div class="checkDiv" v-else>
  3211. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3212. </div>
  3213. </div> -->
  3214. </div>
  3215. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }" @click="chapAddTools(2)">
  3216. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  3217. <img src="../../assets/icon/secondToolList/note.png" alt />
  3218. <div style="margin: 5px 0">便签</div>
  3219. </div>
  3220. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3221. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1"><img
  3222. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3223. <!-- <div class="check" @click="chapAddTools(2)">
  3224. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  3225. <div class="checkDiv" v-else>
  3226. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3227. </div>
  3228. </div> -->
  3229. </div>
  3230. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }" @click="chapAddTools(6)">
  3231. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  3232. <img src="../../assets/icon/secondToolList/doc.png" alt />
  3233. <div style="margin: 5px 0">协同文档</div>
  3234. </div>
  3235. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3236. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1"><img
  3237. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3238. <!-- <div class="check" @click="chapAddTools(6)">
  3239. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  3240. <div class="checkDiv" v-else>
  3241. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3242. </div>
  3243. </div> -->
  3244. </div>
  3245. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }" @click="chapAddTools(3)">
  3246. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  3247. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  3248. <div style="margin: 5px 0">思维导图</div>
  3249. </div>
  3250. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3251. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1"><img
  3252. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3253. <!-- <div class="check" @click="chapAddTools(3)">
  3254. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  3255. <div class="checkDiv" v-else>
  3256. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3257. </div>
  3258. </div> -->
  3259. </div>
  3260. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }" @click="chapAddTools(31)">
  3261. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  3262. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  3263. <div style="margin: 5px 0">数学画板</div>
  3264. </div>
  3265. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3266. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1"><img
  3267. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3268. <!-- <div class="check" @click="chapAddTools(31)">
  3269. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  3270. <div class="checkDiv" v-else>
  3271. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3272. </div>
  3273. </div> -->
  3274. </div>
  3275. </div>
  3276. <div class="toolSort" v-if="chapToolsType == 2">
  3277. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }" @click="chapAddTools(5)">
  3278. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  3279. <img src="../../assets/icon/thirdToolList/score.png" alt />
  3280. <div style="margin: 5px 0">量规评分</div>
  3281. </div>
  3282. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3283. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1"><img
  3284. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3285. <!-- <div class="check" @click="chapAddTools(5)">
  3286. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  3287. <div class="checkDiv" v-else>
  3288. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3289. </div>
  3290. </div> -->
  3291. </div>
  3292. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }" @click="chapAddTools(4)">
  3293. <div class="whiteBIcon" @click.stop="openTools(chapCount, 4, null)">
  3294. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  3295. <div style="margin: 5px 0">问卷调查</div>
  3296. </div>
  3297. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3298. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1"><img
  3299. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3300. <!-- <div class="check" @click="chapAddTools(4)">
  3301. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  3302. <div class="checkDiv" v-else>
  3303. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3304. </div>
  3305. </div> -->
  3306. </div>
  3307. </div>
  3308. </div>
  3309. <div>
  3310. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  3311. v-model="itemTools.toolDetail" />
  3312. </div>
  3313. </div>
  3314. </div>
  3315. </div>
  3316. <span slot="footer" class="dialog-footer">
  3317. <el-button @click="dialogVisible4 = false">取 消</el-button>
  3318. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  3319. </span>
  3320. </el-dialog>
  3321. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  3322. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  3323. <div>
  3324. <div class="a_add_title" style="
  3325. display: flex;
  3326. flex-direction: column;
  3327. align-items: flex-start;
  3328. justify-content: center;
  3329. ">
  3330. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3331. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  3332. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  3333. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  3334. </div>
  3335. </div>
  3336. <span slot="footer" class="dialog-footer">
  3337. <el-button @click="closePan(15)">取 消</el-button>
  3338. <el-button type="primary" @click="addAnswer">确 定</el-button>
  3339. </span>
  3340. </el-dialog>
  3341. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  3342. :before-close="handleClose" class="dialog_diy">
  3343. <div>
  3344. <div class="a_add_title" style="
  3345. display: flex;
  3346. flex-direction: column;
  3347. align-items: flex-start;
  3348. justify-content: center;
  3349. ">
  3350. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3351. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  3352. </div>
  3353. </div>
  3354. <span slot="footer" class="dialog-footer">
  3355. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  3356. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  3357. </span>
  3358. </el-dialog>
  3359. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  3360. :before-close="handleClose" class="dialog_diy">
  3361. <div>
  3362. <div class="fileCss" style="padding-top: 20px">
  3363. <div>
  3364. <button class="info_btn" @click="addImg($event)">
  3365. 选择本地文件
  3366. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  3367. </button>
  3368. <div class="spanName">选择本地文件</div>
  3369. </div>
  3370. <!-- <div>
  3371. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  3372. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  3373. <img :src="cover[0].url" alt="" />
  3374. <div class="deletePic" @click="deleteSysPic">
  3375. <img src="../../assets/icon/delete.png" alt="" />
  3376. </div>
  3377. </div>
  3378. <div class="spanName">选择系统文件</div>
  3379. </div> -->
  3380. <div>
  3381. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  3382. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  3383. <img :src="cover[0].url" alt="" />
  3384. <div class="deletePic" @click="deleteSysPic">
  3385. <img src="../../assets/icon/delete.png" alt="" />
  3386. </div>
  3387. </div>
  3388. <div class="spanName">选择网络文件</div>
  3389. </div>
  3390. </div>
  3391. <!-- <div class="fileCss">
  3392. </div> -->
  3393. </div>
  3394. <span slot="footer" class="dialog-footer">
  3395. <el-button @click="choosePicVisible = false">取 消</el-button>
  3396. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  3397. </span>
  3398. </el-dialog>
  3399. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  3400. :before-close="handleClose" class="dialog_diy">
  3401. <div class="cru_selectBox" style="margin: 0">
  3402. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  3403. 绘画
  3404. </div>
  3405. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  3406. 科技
  3407. </div>
  3408. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  3409. 人文
  3410. </div>
  3411. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  3412. 艺术
  3413. </div>
  3414. </div>
  3415. <div class="sysPicBox">
  3416. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  3417. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  3418. </div>
  3419. </div>
  3420. </el-dialog>
  3421. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  3422. :before-close="handleClose" class="dialog_diy">
  3423. <div>
  3424. <div class="people_top_right" style="display: flex;align-items: center;">
  3425. <div style="position: relative; width: 100%;">
  3426. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  3427. @keyup.enter.native="resetImage()"></el-input>
  3428. <div class="search_img" @click="resetImage" style="right: 10px;">
  3429. <img src="../../assets/icon/search.png" alt />
  3430. </div>
  3431. </div>
  3432. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  3433. </div>
  3434. <div class="sysPicBox" v-loading="imageloading">
  3435. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  3436. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  3437. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  3438. </div>
  3439. </div>
  3440. </div>
  3441. </el-dialog>
  3442. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  3443. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  3444. <div v-if="selectJson" style="height:100%">
  3445. <div class="select_box1" v-if="selectSteps == 1">
  3446. <div class="select_box1_img">
  3447. <div class="select_box1_title">
  3448. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  3449. </div>
  3450. <div class="select_box1_add_img">
  3451. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  3452. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  3453. <img src="../../assets/icon/addPoster.png" alt="" />
  3454. </div>
  3455. <div class="isSysPic" v-else>
  3456. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3457. <div class="deletePic" @click="deleteSelectPic">
  3458. <img src="../../assets/icon/delete.png" alt="" />
  3459. </div>
  3460. </div>
  3461. </div>
  3462. </div>
  3463. <div class="select_box1_select">
  3464. <div class="select_box1_title">
  3465. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  3466. </div>
  3467. <div class="select_box1_select_box">
  3468. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  3469. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  3470. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  3471. <div class="select_box1_select_box_add">
  3472. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  3473. 添加</el-button>
  3474. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  3475. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  3476. </div>
  3477. </div>
  3478. </div>
  3479. </div>
  3480. <div v-if="selectSteps == 2" style="height:100%">
  3481. <div class="select_box2">
  3482. <div class="select_box2_title">设置每道题目的正确选项</div>
  3483. <div class="select_box2_box">
  3484. <div class="select_box2_img">
  3485. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3486. </div>
  3487. <div class="select_box2_answer">
  3488. <div class="select_answer_title">根据题目选择对应答案</div>
  3489. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  3490. <span>{{ checkIndex + 1 }}、</span>
  3491. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  3492. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  3493. </el-option>
  3494. </el-select>
  3495. </div>
  3496. </div>
  3497. </div>
  3498. </div>
  3499. </div>
  3500. </div>
  3501. <span slot="footer" class="dialog-footer">
  3502. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  3503. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  3504. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  3505. </span>
  3506. </el-dialog>
  3507. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  3508. :before-close="handleClose" class="dialog_diy">
  3509. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  3510. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  3511. <div class="pjCss" style="width: 100%">
  3512. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  3513. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  3514. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  3515. <input type="input" v-model="eItem.value" placeholder="填写评价维度" />
  3516. <div class="remove" @click="deletRateList(eIndex)"></div>
  3517. <div style="width: 100%; display: flex">
  3518. <span style="min-width: 100px; text-align: right">评星等级:</span>
  3519. <el-rate v-model="eItem.score" disabled></el-rate>
  3520. </div>
  3521. <div class="elist_inptu_text" style="align-items: flex-start">
  3522. <span style="min-width: 100px; text-align: right">描述:</span>
  3523. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写维度描述"></textarea>
  3524. </div>
  3525. </div>
  3526. </div>
  3527. <div class="addToolFun" @click="addRateList()">
  3528. <div class="addToolImg">
  3529. <img src="../../assets/icon/add.png" alt />
  3530. </div>
  3531. <div>添加</div>
  3532. </div>
  3533. </div>
  3534. </div>
  3535. <span slot="footer" class="dialog-footer">
  3536. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  3537. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  3538. </span>
  3539. </el-dialog>
  3540. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  3541. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  3542. <div style="height: 100%;">
  3543. <div class="sentenBox" style="height: 100%;">
  3544. <div class="addSen" @click="addSt">添加题目</div>
  3545. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  3546. <div class="sentenTopBox">
  3547. <div class="sentenTop" :index="stIndex + 1">
  3548. <div>题目设置</div>
  3549. <div>
  3550. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  3551. </div>
  3552. <div @click="addSen(stIndex)">添加</div>
  3553. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  3554. </div>
  3555. </div>
  3556. <div class="cardList">
  3557. <div v-if="st.addSentence.length > 0" class="cardBox">
  3558. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  3559. @click="setRightAnswer(s, stIndex, sIndex)">
  3560. <el-tooltip class="item" effect="light" :content="s" placement="top">
  3561. <div>{{ s }}</div>
  3562. </el-tooltip>
  3563. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  3564. <img src="../../assets/icon/delete.png" alt="" />
  3565. </div>
  3566. </div>
  3567. </div>
  3568. <div class="card">
  3569. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  3570. </div>
  3571. </div>
  3572. <div class="rightCardBox">
  3573. <div>正确顺序</div>
  3574. <div class="rightCardList">
  3575. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  3576. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  3577. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  3578. <el-tooltip class="item" effect="light" :content="r" placement="top">
  3579. <div>{{ r }}</div>
  3580. </el-tooltip>
  3581. </div>
  3582. <div>{{ rIndex + 1 }}</div>
  3583. </div>
  3584. </div>
  3585. <div class="card" v-if="st.rightAnswer.length == 0">
  3586. <img src="../../assets/icon/conSentences/noAnswer.png" alt="" />
  3587. </div>
  3588. <div class="card" v-else>
  3589. <img src="../../assets/icon/conSentences/clickNo.png" alt="" />
  3590. </div>
  3591. </div>
  3592. </div>
  3593. </div>
  3594. </div>
  3595. </div>
  3596. <span slot="footer" class="dialog-footer">
  3597. <el-button @click="closePan(47)">取 消</el-button>
  3598. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  3599. </span>
  3600. </el-dialog>
  3601. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  3602. :before-close="handleClose" class="dialog_diy">
  3603. <el-form>
  3604. <!-- <el-form-item label="文本标题">
  3605. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3606. </el-form-item> -->
  3607. <div>表格内容</div>
  3608. <Table v-model="tableJson.text" @change="change"></Table>
  3609. </el-form>
  3610. <span slot="footer" class="dialog-footer">
  3611. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  3612. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  3613. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  3614. </span>
  3615. </el-dialog>
  3616. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  3617. :before-close="handleClose" class="dialog_diy">
  3618. <el-form>
  3619. <!-- <el-form-item label="文本标题">
  3620. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3621. </el-form-item> -->
  3622. <div>文档内容</div>
  3623. <editor-bar v-model="wordJson.text"></editor-bar>
  3624. </el-form>
  3625. <span slot="footer" class="dialog-footer">
  3626. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  3627. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  3628. </span>
  3629. </el-dialog>
  3630. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  3631. :before-close="handleClose" class="dialog_diy">
  3632. <div style="
  3633. width: 100%;
  3634. display: flex;
  3635. flex-direction: row;
  3636. flex-wrap: nowrap;
  3637. align-items: center;
  3638. justify-content: center;
  3639. ">
  3640. <div>班级:</div>
  3641. <el-select multiple v-model="uploadJson" placeholder="请选择">
  3642. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  3643. </el-option>
  3644. </el-select>
  3645. </div>
  3646. <span slot="footer" class="dialog-footer">
  3647. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  3648. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  3649. </span>
  3650. </el-dialog>
  3651. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  3652. :before-close="handleClose" class="dialog_diy">
  3653. <div style="
  3654. width: 100%;
  3655. display: flex;
  3656. flex-direction: row;
  3657. flex-wrap: nowrap;
  3658. align-items: center;
  3659. justify-content: center;
  3660. ">
  3661. <div>随机码:</div>
  3662. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  3663. </div>
  3664. <span slot="footer" class="dialog-footer">
  3665. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  3666. <el-button type="primary" @click="addInvite">确定</el-button>
  3667. </span>
  3668. </el-dialog>
  3669. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  3670. :before-close="handleClose" class="dialog_diy">
  3671. <div>
  3672. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  3673. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  3674. </div>
  3675. <span slot="footer" class="dialog-footer">
  3676. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  3677. <el-button type="primary" @click="addPreTime">确定</el-button>
  3678. </span>
  3679. </el-dialog>
  3680. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3681. class="dialog_diy">
  3682. <div>
  3683. <div style="
  3684. width: 100%;
  3685. display: flex;
  3686. flex-direction: row;
  3687. flex-wrap: nowrap;
  3688. align-content: center;
  3689. align-items: center;
  3690. justify-content: space-between;
  3691. ">
  3692. <div style="
  3693. display: flex;
  3694. flex-flow: row nowrap;
  3695. align-items: flex-start;
  3696. width: 100%;
  3697. flex-direction: column;
  3698. flex-wrap: nowrap;
  3699. position: relative;
  3700. ">
  3701. <div class="e_box">
  3702. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  3703. <div class="e_card_picture">
  3704. <img src="../../assets/e_picture.png" />
  3705. </div>
  3706. <div class="e_card_name">
  3707. <span>{{ item.title }}</span>
  3708. </div>
  3709. <div class="e_card_btn">
  3710. <span @click="checkEva(item.id, 2)">导入</span>
  3711. </div>
  3712. </div> -->
  3713. <!-- <div class="addEva" @click="openT">
  3714. <img src="../../assets/icon/addEva.png" alt="" />
  3715. </div> -->
  3716. <div style="display:flex;justify-content: flex-end;margin-bottom: 10px;"><el-button @click="openT" type="primary" size="small">添加目标</el-button></div>
  3717. <el-table
  3718. v-if="evaJuri.length"
  3719. ref="table"
  3720. :data="evaJuri"
  3721. border
  3722. :fit="true"
  3723. style="width: 100%"
  3724. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  3725. :row-class-name="tableRowClassName"
  3726. >
  3727. <el-table-column
  3728. label="目标名称"
  3729. min-width="15"
  3730. align="center"
  3731. prop="title"
  3732. >
  3733. </el-table-column>
  3734. <el-table-column
  3735. prop="username"
  3736. label="负责人"
  3737. min-width="15"
  3738. align="center"
  3739. >
  3740. </el-table-column>
  3741. <el-table-column label="操作" width="250px">
  3742. <template slot-scope="scope">
  3743. <div class="btnBox">
  3744. <el-button
  3745. type="primary"
  3746. size="small"
  3747. @click="checkEva(scope.row.id, 2)"
  3748. >导入</el-button
  3749. >
  3750. </div>
  3751. </template>
  3752. </el-table-column>
  3753. </el-table>
  3754. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  3755. 暂无数据
  3756. </div>
  3757. </div>
  3758. </div>
  3759. </div>
  3760. </div>
  3761. <span slot="footer" class="dialog-footer">
  3762. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  3763. </span>
  3764. </el-dialog>
  3765. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  3766. :before-close="handleClose" class="dialog_diy">
  3767. <div class="groupBox">
  3768. <div v-if="groupJson.group" class="groupContent">
  3769. <div class="groupTitle">请设置小组数量及名称</div>
  3770. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  3771. <span class="groupn">第{{ index + 1 }}组名称:</span>
  3772. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3773. <div class="groupBtn">
  3774. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  3775. 添加</el-button>
  3776. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3777. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  3778. </div>
  3779. </div>
  3780. </div>
  3781. <div class="groupContent">
  3782. <div class="groupTitle">请设置每组人数</div>
  3783. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3784. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3785. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  3786. @change="numberPan"></el-input>
  3787. </div>
  3788. </div>
  3789. <span slot="footer" class="dialog-footer">
  3790. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3791. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3792. </span>
  3793. </el-dialog>
  3794. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  3795. :before-close="handleClose" class="dialog_diy">
  3796. <div style="
  3797. width: 100%;
  3798. display: flex;
  3799. flex-direction: row;
  3800. flex-wrap: nowrap;
  3801. align-items: center;
  3802. justify-content: center;
  3803. ">
  3804. <div style="min-width: fit-content;">文件名称:</div>
  3805. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  3806. </div>
  3807. <span slot="footer" class="dialog-footer">
  3808. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  3809. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  3810. </span>
  3811. </el-dialog>
  3812. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px"
  3813. :before-close="(done) => { closePan(69) }" class="dialog_diy fullStyle fullStyle1">
  3814. <englishRight :englishList="englishList" :oid="oid" ref="engJson" @setJson="addEnglish"></englishRight>
  3815. <span slot="footer" class="dialog-footer">
  3816. <el-button @click="englishDialogVisible = false">取 消</el-button>
  3817. <el-button type="primary" @click="addEnglish">确 定</el-button>
  3818. </span>
  3819. </el-dialog>
  3820. <el-dialog title="选择课程模板" :visible.sync="templateDialog" :append-to-body="true" width="630px"
  3821. :before-close="handleClose" class="dialog_diy">
  3822. <div class="template_box">
  3823. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkctJson(aa)" :class="{wordTeacherA:ctJson.id == aa.id}">
  3824. <div class="wordPic">
  3825. <img src="../../assets/icon/new/course_template.png" alt />
  3826. </div>
  3827. <el-tooltip effect="dark" :content="aa.title" placement="top">
  3828. <div style="
  3829. margin-top: 10px;
  3830. line-height: 19px;
  3831. overflow: hidden;
  3832. text-overflow: ellipsis;
  3833. white-space: nowrap;
  3834. padding: 0 10px;
  3835. box-sizing: border-box;
  3836. width: 100%;
  3837. ">
  3838. {{ aa.title }}
  3839. </div>
  3840. </el-tooltip>
  3841. </div>
  3842. <div class="wordTeacher" @click="checkctJson({id: 1})" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'" :class="{wordTeacherA:ctJson.id == 1}">
  3843. <div class="wordPic">
  3844. <img src="../../assets/icon/new/course_template.png" alt />
  3845. </div>
  3846. <div style="
  3847. margin-top: 10px;
  3848. line-height: 19px;
  3849. overflow: hidden;
  3850. text-overflow: ellipsis;
  3851. white-space: nowrap;
  3852. padding: 0 20px;
  3853. ">
  3854. 简易模板
  3855. </div>
  3856. </div>
  3857. <div class="wordTeacher" @click="checkctJson({id: 2})" v-if="isPasteStage" :class="{wordTeacherA:ctJson.id == 2}">
  3858. <div class="wordPic">
  3859. <img src="../../assets/icon/new/course_template.png" alt />
  3860. </div>
  3861. <div style="
  3862. margin-top: 10px;
  3863. line-height: 19px;
  3864. overflow: hidden;
  3865. text-overflow: ellipsis;
  3866. white-space: nowrap;
  3867. padding: 0 20px;
  3868. ">
  3869. 智能粘贴模式
  3870. </div>
  3871. </div>
  3872. </div>
  3873. <span slot="footer" class="dialog-footer">
  3874. <el-button @click="templateDialog = false">取 消</el-button>
  3875. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  3876. </span>
  3877. </el-dialog>
  3878. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  3879. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  3880. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  3881. <div class="change_stageBox">
  3882. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  3883. <div class="nt_taskBox">
  3884. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  3885. <div class="nt_taskName">
  3886. <el-tooltip effect="light" :content="t.dyName" placement="top">
  3887. <span>{{ t.dyName }}</span>
  3888. </el-tooltip>
  3889. </div>
  3890. </div>
  3891. <div class="moveBtn" v-if="unitJson3.length > 1">
  3892. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)">
  3893. </div>
  3894. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  3895. </div>
  3896. </div>
  3897. </div>
  3898. <span slot="footer" class="dialog-footer">
  3899. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  3900. <el-button type="primary" @click="updateChange">确定</el-button>
  3901. </span>
  3902. </el-dialog>
  3903. <el-dialog
  3904. title="添加资源模板"
  3905. :visible.sync="cetBoxDialog"
  3906. :append-to-body="true"
  3907. width="400px"
  3908. :before-close="handleClose"
  3909. class="dialog_diy"
  3910. >
  3911. <div class="addTypeChoose" style="justify-content: center">
  3912. <div style="min-width: 100px">模板名称:</div>
  3913. <el-input v-model="templateName" style="width: 200px"></el-input>
  3914. </div>
  3915. <div class="addTypeBox">
  3916. <div class="addTypeChoose">
  3917. <div style="min-width: 100px">选择一级分类:</div>
  3918. <el-select
  3919. v-model="setTypeJson.one"
  3920. placeholder="请选择"
  3921. @change="getTwoType(setTypeJson.one)"
  3922. style="width: 200px;"
  3923. >
  3924. <el-option
  3925. v-for="(item, index) in oneJson"
  3926. :key="index"
  3927. :label="item.name"
  3928. :value="item.id"
  3929. >
  3930. </el-option>
  3931. </el-select>
  3932. </div>
  3933. <div class="addTypeChoose" v-if="setTypeJson.one != ''">
  3934. <div style="min-width: 100px">选择二级分类:</div>
  3935. <el-select v-model="setTypeJson.two" placeholder="请选择" style="width: 200px;">
  3936. <el-option
  3937. v-for="(item1, index1) in twoJson"
  3938. :key="index1"
  3939. :label="item1.name"
  3940. :value="item1.id"
  3941. >
  3942. </el-option>
  3943. </el-select>
  3944. </div>
  3945. </div>
  3946. <span slot="footer" class="dialog-footer">
  3947. <el-button type="primary" @click="addCETemplate()">确 认</el-button>
  3948. <el-button @click="close()">关 闭</el-button>
  3949. </span>
  3950. </el-dialog>
  3951. <evaBox :userid="userid" :oid='oid' :org="org" :dialogVisibleEva.sync="evaBoxDialog" @updateEvaJson="updateEvaJson"></evaBox>
  3952. <EnglishVoice :oid='oid' :org="org" :EnglishVoiceDialog.sync="EnglishVoiceDialog" :englishVoiceJson="englishVoiceJson" @setEnglishVoiceJson="setEnglishVoiceJson"></EnglishVoice>
  3953. </div>
  3954. </template>
  3955. <script>
  3956. import "../../common/aws-sdk-2.235.1.min.js";
  3957. import { tools as toolsData } from "../../common/tools.js";
  3958. // import "../../common/aws-sdk-2.99.0.min.js";
  3959. import $ from "jquery";
  3960. import EditorBar from "../../components/tools/wangEnduit";
  3961. import Table from "../../components/tools/table";
  3962. import Mind from "../tools/jsmind2";
  3963. import Time from "../tools/time.vue";
  3964. import Sunburst from "../tools/sunburst";
  3965. import SeeBoard from "../tools/seeBoard";
  3966. import weilaiData from "./components/weilai.js";
  3967. import sourceDialog from "./teacherSource/dialog.vue";
  3968. import interVideo from "./interVideo/index.vue";
  3969. import englishRight from "./components/englishRight.vue";
  3970. import evaBox from './evaBox/index.vue'
  3971. import EnglishVoice from './EnglishVoice/index.vue'
  3972. export default {
  3973. components: {
  3974. EditorBar,
  3975. Mind,
  3976. Time,
  3977. Sunburst,
  3978. SeeBoard,
  3979. Table,
  3980. sourceDialog,
  3981. interVideo,
  3982. englishRight,
  3983. evaBox,
  3984. EnglishVoice
  3985. },
  3986. data() {
  3987. return {
  3988. checkAll: false,
  3989. checkAll2: false,
  3990. chooseType: 1,
  3991. checkedCities: [],
  3992. isIndeterminate: true,
  3993. isIndeterminate2: true,
  3994. isSysPic: false,
  3995. isSysPic2: false,
  3996. steps: 1,
  3997. nbOrder: 0,
  3998. courseId: "",
  3999. chapToolsType: 0,
  4000. chapTools: [
  4001. {
  4002. tools: [],
  4003. toolDetail: "",
  4004. },
  4005. ],
  4006. line: "",
  4007. lineTitle: "",
  4008. sysPic: [],
  4009. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  4010. sentenceList2: [],
  4011. isPushTitleList: [],
  4012. lineCount: 0,
  4013. lineType: 0,
  4014. chapCount: 0,
  4015. courseName: "",
  4016. isTeacherSee: false,
  4017. courseText: "",
  4018. preTime: 0,
  4019. formLabelWidth: "100px",
  4020. choosePicVisible: false,
  4021. sysPicVisible: false,
  4022. sysPicVisible2: false,
  4023. uploadLoading1: false,
  4024. noneBtnImg: false,
  4025. updateBoolean2: false,
  4026. unitIndex: 0,
  4027. taskCount: 0,
  4028. dialogVisible: false,
  4029. dialogVisible1: false,
  4030. dialogVisible2: false,
  4031. dialogVisible3: false,
  4032. dialogVisible4: false,
  4033. dialogVisible5: false,
  4034. dialogVisible6: false,
  4035. dialogVisible7: false,
  4036. dialogVisible8: false,
  4037. dialogVisible9: false,
  4038. dialogVisibleClass: false,
  4039. dialogVisibleMember: false,
  4040. dialogVisibleMp3: false,
  4041. dialogVisibleSelect: false,
  4042. dialogVisibleSentence: false,
  4043. dialogVisibleRate: false,
  4044. dialogVisibleChoice: false,
  4045. dialogVisiblemb: false,
  4046. dialogVisibleInvite: false,
  4047. dialogVisibleSource: false,
  4048. dialogVisibleVideo: false,
  4049. dialogVisibleStageChange: false,
  4050. dialogVisibleupdataVideoT: false,
  4051. englishDialogVisible: false,
  4052. templateDialog: false,
  4053. ctJson: {},
  4054. isClickColor: 1,
  4055. toolIndexType: "",
  4056. publicTool: 0,
  4057. searchPeople: "",
  4058. searchTN: "",
  4059. userid: this.$route.query.userid,
  4060. oid: this.$route.query.oid,
  4061. org: this.$route.query.org,
  4062. role: this.$route.query.role,
  4063. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  4064. dialogVisibleTable: false,
  4065. dialogVisibleWord: false,
  4066. tableJson: { text: "" },
  4067. wordJson: { text: "" },
  4068. dialogVisibleMoreUpload: false,
  4069. dialogVisiblePreTime: false,
  4070. uploadJson: [],
  4071. classJuri: [],
  4072. gradeList: [],
  4073. cover: [], //课程封面
  4074. myWord: [],
  4075. evaJuri: [],
  4076. evalua: "",
  4077. targetArray: [],
  4078. eTitle: "",
  4079. eJson: {},
  4080. fid: "", //一级
  4081. sid: "", //二级
  4082. tid: "", //二级
  4083. typeMode: 1,
  4084. eJSONNum: 0,
  4085. data: {
  4086. meta: {
  4087. name: "example",
  4088. author: "dd@163.com",
  4089. version: "0.2",
  4090. },
  4091. format: "node_array",
  4092. data: [{ id: "root", isroot: true, topic: "" }],
  4093. },
  4094. askJson: {
  4095. askCount: 1,
  4096. askTitle: "",
  4097. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4098. },
  4099. askJson2: {},
  4100. testJson: {},
  4101. testJson2: {},
  4102. selectJson: {},
  4103. selectJson2: {},
  4104. rateJson: [],
  4105. unitJson2: [],
  4106. unitJson3: [],
  4107. unitJson: [
  4108. {
  4109. dyName: "", //单元标题
  4110. chapterInfo: [
  4111. {
  4112. isread: false,
  4113. chapterid: this.guid(),
  4114. title: "",
  4115. courseName: "",
  4116. taskJson: [
  4117. {
  4118. task: "",
  4119. taskDetail: "",
  4120. chapterData: [],
  4121. toolText: "",
  4122. toolChoose: [
  4123. {
  4124. tool: [],
  4125. toolDetail: "",
  4126. toolType: 0,
  4127. askCount: 1,
  4128. askTitle: "",
  4129. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4130. },
  4131. ],
  4132. isShowTools: false,
  4133. askCount: 1,
  4134. isFold: 1,
  4135. askTitle: "",
  4136. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4137. checkJson: [{ checkCount: [], checkPerent: [] }],
  4138. homeworkList: [],
  4139. },
  4140. ],
  4141. itemCount: 1,
  4142. fileList1: [],
  4143. video: [],
  4144. testData: [],
  4145. pData: [],
  4146. templateArray: [],
  4147. },
  4148. ],
  4149. },
  4150. ],
  4151. templateArray: [],
  4152. studentJuri: [],
  4153. teacherJuri: [],
  4154. checkboxList: [],
  4155. checkboxList2: [],
  4156. checkboxList3: [],
  4157. classSearch: "",
  4158. gradeId: "",
  4159. number: "",
  4160. tTitle: "",
  4161. tdetail: "",
  4162. templateC: {},
  4163. AttText: {},
  4164. AttTextType: 0,
  4165. AttTextIndex: 0,
  4166. cTemplate: "",
  4167. CourseType: [],
  4168. CourseType1: [],
  4169. CourseType2: [],
  4170. CourseTypeJson: {},
  4171. CourseTypeJson1: {},
  4172. courseTypeId: [],
  4173. courseTypeId1: [],
  4174. courseTypeSon: [],
  4175. clearArray: [],
  4176. pTypeCheck: [],
  4177. pTypeCheckName: [],
  4178. loading: false,
  4179. toolType: 0,
  4180. inputShow: true,
  4181. inputShow2: true,
  4182. toolIndex: 0,
  4183. cidType: 0,
  4184. answerQ: "",
  4185. answerQ2: "",
  4186. grade: [],
  4187. grade2: [],
  4188. courseUserid: "",
  4189. timer: null,
  4190. timer2: null,
  4191. pasteTimer: null,
  4192. checkId: "",
  4193. isDelete: 1,
  4194. addindex: 0,
  4195. selectSteps: 1,
  4196. groupJson: {},
  4197. dialogVisibleGroup: false,
  4198. rightBoxHeight: 0,
  4199. ManAarray: [],
  4200. checkBoolean: false,
  4201. inviteCode: [],
  4202. inviteId: "",
  4203. icode: "",
  4204. easyArray: [2, 4],
  4205. sourceData: {},
  4206. updateSourcePan: false,
  4207. videoJson: {},
  4208. isBtnDisplay: false,
  4209. isStepDisplay: false,
  4210. isPasteStage: false,
  4211. isPasteTask: false,
  4212. isPasteChoice: false,
  4213. imageList: [],
  4214. imageloading: false,
  4215. searchImageValue: "",
  4216. ppage: 1,
  4217. toolsData: toolsData,
  4218. oldIndex: 0,
  4219. dragType:'',
  4220. oldUnitIndex: 0,
  4221. oldData: null,
  4222. newIndex: "",
  4223. englishList:{},
  4224. typeIndex: "",
  4225. courseState: 2,
  4226. taskJSONa: [
  4227. {
  4228. task: "",
  4229. taskDetail: "",
  4230. chapterData: [],
  4231. toolText: "",
  4232. toolChoose: [
  4233. {
  4234. tool: [],
  4235. toolDetail: "",
  4236. toolType: 0,
  4237. askCount: 1,
  4238. askTitle: "",
  4239. askJson: [
  4240. { askstitle: "", askItem: 1, checkList: [] },
  4241. ],
  4242. },
  4243. ],
  4244. isShowTools: false,
  4245. askCount: 1,
  4246. isFold: 1,
  4247. askTitle: "",
  4248. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4249. checkJson: [{ checkCount: [], checkPerent: [] }],
  4250. homeworkList: [],
  4251. },
  4252. ],
  4253. checkUnitIndex: 0,
  4254. isdrag: '',
  4255. evaIndex: '',
  4256. evatIndex: '',
  4257. evaBoxDialog: false,
  4258. EnglishVoiceDialog: false,
  4259. englishVoiceJson:{},
  4260. cetIndex: '',
  4261. cettIndex: '',
  4262. cetBoxDialog: false,
  4263. templateName: '',
  4264. setTypeJson: {
  4265. one: "",
  4266. two: "",
  4267. },
  4268. twoJson: [],
  4269. oneJson: [],
  4270. };
  4271. },
  4272. directives: {
  4273. autoHeight: {
  4274. update(el, binding) {
  4275. const { value } = binding
  4276. if (value && typeof value === 'number') {
  4277. el.style.height = `${value}px`
  4278. } else {
  4279. el.style.height = 'auto'
  4280. }
  4281. },
  4282. componentUpdated(el) {
  4283. el.style.height = `${el.scrollHeight + 5}px`
  4284. },
  4285. },
  4286. },
  4287. computed: {
  4288. // rightBoxHeight: function () {
  4289. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  4290. // },
  4291. offsetLetfPx: function () {
  4292. //addnum可以直接在模板语法里面用,相当于data内的值
  4293. return (
  4294. $(".cru_select")[this.unitIndex] &&
  4295. $(".cru_select")[this.unitIndex].offsetLeft + 5
  4296. );
  4297. },
  4298. getMan2() {
  4299. return function (people) {
  4300. let _people = people;
  4301. let _people2 = "";
  4302. if (this.ManAarray.length) {
  4303. for (var i = 0; i < this.ManAarray.length; i++) {
  4304. if (this.ManAarray[i].userid == people) {
  4305. _people2 = this.ManAarray[i].name;
  4306. break;
  4307. }
  4308. }
  4309. }
  4310. if (people == this.courseUserid) {
  4311. return "";
  4312. }
  4313. return this.ManAarray.length ? _people2 : "";
  4314. };
  4315. },
  4316. getListMan2() {
  4317. return function (list) {
  4318. let _people2 = [];
  4319. if (this.ManAarray.length) {
  4320. for (var j = 0; j < list.length; j++) {
  4321. let people = list[j];
  4322. for (var i = 0; i < this.ManAarray.length; i++) {
  4323. if (this.ManAarray[i].userid == people && people != this.courseUserid) {
  4324. _people2.push(this.ManAarray[i].name);
  4325. break;
  4326. }
  4327. }
  4328. }
  4329. }
  4330. return this.ManAarray.length ? _people2.join("、") : "";
  4331. };
  4332. },
  4333. isInvite() {
  4334. return function (cid) {
  4335. let array = [];
  4336. for (var i = 0; i < this.inviteCode.length; i++) {
  4337. array.push(this.inviteCode[i].cid);
  4338. }
  4339. return array.indexOf(cid) != -1;
  4340. };
  4341. },
  4342. getInviteCodeC() {
  4343. return function (cid) {
  4344. let array = [];
  4345. for (var i = 0; i < this.inviteCode.length; i++) {
  4346. array.push(this.inviteCode[i].cid);
  4347. }
  4348. return this.inviteCode[array.indexOf(cid)].ic;
  4349. };
  4350. },
  4351. getClassC() {
  4352. return function (c) {
  4353. let _c2 = "";
  4354. if (this.grade.length) {
  4355. for (var i = 0; i < this.grade.length; i++) {
  4356. if (this.grade[i].id == c) {
  4357. _c2 = this.grade[i].name;
  4358. break;
  4359. }
  4360. }
  4361. }
  4362. return this.grade.length ? _c2 : "";
  4363. };
  4364. },
  4365. getListClassC() {
  4366. return function (list) {
  4367. let _c2 = [];
  4368. if (this.grade.length) {
  4369. for (var j = 0; j < list.length; j++) {
  4370. let c = list[j]
  4371. for (var i = 0; i < this.grade.length; i++) {
  4372. if (this.grade[i].id == c) {
  4373. _c2.push(this.grade[i].name);
  4374. break;
  4375. }
  4376. }
  4377. }
  4378. }
  4379. return this.grade.length ? _c2.join('、') : "";
  4380. };
  4381. },
  4382. },
  4383. watch: {
  4384. unitIndex(newValue, oldValue) {
  4385. if (this.isDelete == 2) {
  4386. this.isDelete = 1;
  4387. return;
  4388. }
  4389. if (this.cid != "") {
  4390. let _unitIndex = oldValue;
  4391. if (
  4392. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4393. JSON.stringify(this.unitJson[_unitIndex])
  4394. ) {
  4395. this.$refs.rightboxR.scrollTop = 0;
  4396. return;
  4397. }
  4398. let cPan = 1;
  4399. for (
  4400. var j = 0;
  4401. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4402. j++
  4403. ) {
  4404. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4405. j
  4406. ].proVisible = false;
  4407. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4408. j
  4409. ].proVisible2 = false;
  4410. if (
  4411. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4412. .length > 1
  4413. ) {
  4414. for (
  4415. var z = 0;
  4416. z <
  4417. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4418. .length;
  4419. z++
  4420. ) {
  4421. if (
  4422. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4423. .toolChoose[z].tool.length
  4424. ) {
  4425. this.$message.error("请把工具添加完整");
  4426. cPan = 2;
  4427. break;
  4428. }
  4429. }
  4430. }
  4431. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4432. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4433. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4434. (ele) => {
  4435. return ele.value != "";
  4436. }
  4437. );
  4438. }
  4439. }
  4440. if (cPan == 2) {
  4441. this.unitIndex = oldValue;
  4442. return;
  4443. }
  4444. for (var i = 0; i < this.unitJson.length; i++) {
  4445. if (this.addindex != i) {
  4446. delete this.unitJson[i].isUpdate;
  4447. }
  4448. }
  4449. this.$refs.rightboxR.scrollTop = 0;
  4450. this.addindex = -1;
  4451. let params = [
  4452. {
  4453. cid: this.cid,
  4454. chapters: JSON.stringify(this.unitJson),
  4455. uid: this.userid,
  4456. unitIndex: _unitIndex,
  4457. },
  4458. ];
  4459. this.ajax
  4460. .post(this.$store.state.api + "updateWorkNew4", params)
  4461. .then((res) => {
  4462. // this.$message({
  4463. // message: "修改成功",
  4464. // type: "success",
  4465. // });
  4466. // this.courseId = this.cid;
  4467. })
  4468. .catch((err) => {
  4469. this.$message.error("网络不佳");
  4470. console.error(err);
  4471. });
  4472. }
  4473. },
  4474. steps(newValue, old) {
  4475. if (newValue == 4) {
  4476. let cPan = 1;
  4477. for (var i = 0; i < this.unitJson.length; i++) {
  4478. for (
  4479. var j = 0;
  4480. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4481. j++
  4482. ) {
  4483. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4484. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4485. if (
  4486. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4487. ) {
  4488. for (
  4489. var z = 0;
  4490. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4491. z++
  4492. ) {
  4493. if (
  4494. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4495. .length
  4496. ) {
  4497. this.$message.error("请把工具添加完整");
  4498. cPan = 2;
  4499. break;
  4500. }
  4501. }
  4502. }
  4503. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4504. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4505. i
  4506. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4507. return ele.value != "";
  4508. });
  4509. }
  4510. }
  4511. }
  4512. this.inputShow = true;
  4513. if (cPan == 2) {
  4514. this.steps = old;
  4515. return;
  4516. }
  4517. this.goTo(
  4518. "/course?userid=" +
  4519. this.userid +
  4520. "&oid=" +
  4521. this.oid +
  4522. "&org=" +
  4523. this.org +
  4524. "&role=" +
  4525. this.role
  4526. );
  4527. }
  4528. },
  4529. },
  4530. methods: {
  4531. tableRowClassName({ row, rowIndex }) {
  4532. if ((rowIndex + 1) % 2 === 0) {
  4533. return "even_row";
  4534. } else {
  4535. return "";
  4536. }
  4537. },
  4538. close(){
  4539. this.cetIndex = '';
  4540. this.cettIndex = '';
  4541. this.templateName = '';
  4542. this.cetBoxDialog = false;
  4543. },
  4544. openAI() {
  4545. top.postMessage({ tools: "64" }, "*");
  4546. },
  4547. setMan() {
  4548. // let teacherJuri = this.teacherJuri2;
  4549. this.ManAarray = [];
  4550. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  4551. if (_user.indexOf(this.userid) == -1) {
  4552. _user.push(this.userid);
  4553. }
  4554. if (_user.indexOf(this.courseUserid) == -1) {
  4555. _user.push(this.courseUserid);
  4556. }
  4557. let params = {
  4558. uid: _user.join(","),
  4559. };
  4560. this.ajax
  4561. .get(this.$store.state.api + "getAllUserById", params)
  4562. .then((res) => {
  4563. let teacherJuri = res.data[0];
  4564. this.ManAarray = teacherJuri;
  4565. })
  4566. .catch((err) => {
  4567. console.error(err);
  4568. });
  4569. },
  4570. previewImg(url) {
  4571. this.$hevueImgPreview(url);
  4572. },
  4573. btnDisplay(bool) {
  4574. this.isBtnDisplay = bool
  4575. },
  4576. stepDisplay(bool) {
  4577. this.isStepDisplay = bool
  4578. },
  4579. scrollChange() {
  4580. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  4581. },
  4582. addHw(e) {
  4583. var el = e.currentTarget;
  4584. el.getElementsByTagName("input")[0].click();
  4585. },
  4586. change(val) {
  4587. if (this.dialogVisible1) {
  4588. this.tdetail = val
  4589. } else if (this.dialogVisible6) {
  4590. this.AttText.text = val
  4591. } else if (this.dialogVisible2) {
  4592. this.cTemplate = val
  4593. } else if (this.dialogVisibleTable) {
  4594. this.tableJson.text = val
  4595. }
  4596. this.$forceUpdate();
  4597. console.log(val);
  4598. },
  4599. change2(val) {
  4600. console.log(val);
  4601. this.$forceUpdate();
  4602. },
  4603. handleClose(done) {
  4604. done();
  4605. },
  4606. closePan(tool) {
  4607. if (tool == 15) {
  4608. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  4609. this.dialogVisible8 = false
  4610. } else {
  4611. this.closeConfirm(tool);
  4612. }
  4613. } else if (tool == 4) {
  4614. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  4615. this.dialogVisible5 = false
  4616. } else {
  4617. this.closeConfirm(tool);
  4618. }
  4619. } else if (tool == 45) {
  4620. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  4621. this.dialogVisibleChoice = false
  4622. } else {
  4623. this.closeConfirm(tool);
  4624. }
  4625. } else if (tool == 41) {
  4626. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  4627. this.dialogVisibleSelect = false
  4628. } else {
  4629. this.closeConfirm(tool);
  4630. }
  4631. } else if (tool == 47) {
  4632. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  4633. this.dialogVisibleSentence = false
  4634. } else {
  4635. this.closeConfirm(tool);
  4636. }
  4637. }else if (tool == 69){
  4638. if (JSON.stringify(this.englishList) == JSON.stringify(this.englishList)) {
  4639. this.englishDialogVisible = false
  4640. } else {
  4641. this.closeConfirm(tool);
  4642. }
  4643. }
  4644. },
  4645. closeConfirm(tool) {
  4646. this
  4647. .$confirm("是否保存已编辑内容?", "提示", {
  4648. confirmButtonText: "保存",
  4649. cancelButtonText: "不保存",
  4650. type: "warning",
  4651. })
  4652. .then(() => {
  4653. if (tool == 15) {
  4654. this.addAnswer();
  4655. } else if (tool == 4) {
  4656. this.addAsk();
  4657. } else if (tool == 45) {
  4658. this.addTest();
  4659. } else if (tool == 41) {
  4660. this.addSelectAnswer();
  4661. } else if (tool == 47) {
  4662. this.addSentenceTool();
  4663. }else if(tool == 69){
  4664. this.addEnglish();
  4665. }
  4666. })
  4667. .catch(() => {
  4668. if (tool == 15) {
  4669. this.dialogVisible8 = false;
  4670. } else if (tool == 4) {
  4671. this.dialogVisible5 = false;
  4672. } else if (tool == 45) {
  4673. this.dialogVisibleChoice = false;
  4674. } else if (tool == 41) {
  4675. this.dialogVisibleSelect = false;
  4676. } else if (tool == 47) {
  4677. this.dialogVisibleSentence = false;
  4678. } else if (tool == 69) {
  4679. this.englishDialogVisible = false;
  4680. }
  4681. });
  4682. },
  4683. addEnglish(jsonType){
  4684. this.englishList.engTitle = this.$refs['engJson'].engList.engTitle;
  4685. this.englishList.englishText = this.$refs['engJson'].engList.englishText;
  4686. this.englishList.textJson = this.$refs['engJson'].engList.textJson;
  4687. if(this.englishList.engTitle == "" || this.englishList.englishText == ""){
  4688. this.$message.error("请将内容填写完整!");
  4689. return;
  4690. }
  4691. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4692. this.taskCount
  4693. ].toolChoose[this.toolIndex].englishList = this.englishList;
  4694. this.englishList = {};
  4695. if(jsonType && jsonType == 1){
  4696. this.englishDialogVisible = true;
  4697. }else{
  4698. this.englishDialogVisible = false;
  4699. }
  4700. if (
  4701. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  4702. .toolChoose[this.toolIndex].tool != 69
  4703. ) {
  4704. this.addTools(69, this.taskCount, this.toolIndex);
  4705. }
  4706. },
  4707. imgChange2(i, j) {
  4708. var _tmp = this.testJson.testJson[i].checkList[j];
  4709. this.noneBtnImg = _tmp.length >= 1;
  4710. },
  4711. imgChange3(i) {
  4712. var _tmp = this.testJson.testJson[i];
  4713. this.noneBtnImg = _tmp.length >= 1;
  4714. },
  4715. imgChange1(file, fileList, type, itemTaskIndex) {
  4716. if (type == 1) {
  4717. var _tmp = this.cover;
  4718. } else if (
  4719. type == 2 ||
  4720. type == 3 ||
  4721. type == 6 ||
  4722. type == 7 ||
  4723. type == 8
  4724. ) {
  4725. var _tmp =
  4726. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4727. .chapterData;
  4728. } else if (type == 4) {
  4729. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  4730. } else {
  4731. var _tmp =
  4732. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4733. .homeworkList;
  4734. }
  4735. this.noneBtnImg = _tmp.length >= 1;
  4736. },
  4737. goTo(path) {
  4738. this.$router.push(path);
  4739. },
  4740. guid() {
  4741. var _num,
  4742. i,
  4743. _guid = "";
  4744. for (i = 0; i < 32; i++) {
  4745. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4746. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4747. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4748. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4749. _guid += "-";
  4750. }
  4751. }
  4752. return _guid;
  4753. },
  4754. retrunCourse() {
  4755. this
  4756. .$confirm("是否保存已编辑内容?", "提示", {
  4757. confirmButtonText: "保存",
  4758. cancelButtonText: "不保存",
  4759. distinguishCancelAndClose: true,
  4760. type: "warning",
  4761. })
  4762. .then(() => {
  4763. if (this.cid == "" || this.cid == undefined) {
  4764. if (this.courseName == "") {
  4765. this.$message.error("请补充填写课程名称");
  4766. return;
  4767. } else {
  4768. this.addWork();
  4769. }
  4770. this.steps = 4
  4771. } else {
  4772. if (this.courseName == "") {
  4773. this.$message.error("请补充填写课程名称");
  4774. return;
  4775. } else {
  4776. if (this.userid != this.courseUserid && this.role != "1") {
  4777. this.updateWork2();
  4778. } else {
  4779. this.updateWork();
  4780. }
  4781. this.steps = 4
  4782. }
  4783. }
  4784. })
  4785. .catch((v) => {
  4786. console.log(v)
  4787. if(v == "cancel"){
  4788. this.goTo(
  4789. "/course?userid=" +
  4790. this.userid +
  4791. "&oid=" +
  4792. this.oid +
  4793. "&org=" +
  4794. this.org +
  4795. "&role=" +
  4796. this.role
  4797. );
  4798. }
  4799. });
  4800. },
  4801. lastSteps() {
  4802. if (this.steps == 4) {
  4803. this.goTo(
  4804. "/course?userid=" +
  4805. this.userid +
  4806. "&oid=" +
  4807. this.oid +
  4808. "&org=" +
  4809. this.org +
  4810. "&role=" +
  4811. this.role
  4812. );
  4813. } else {
  4814. // if (this.cidType == 0) {
  4815. // this.steps--;
  4816. // if (this.steps == 1) {
  4817. // setTimeout(() => {
  4818. // this.checkEva(this.checkId);
  4819. // setTimeout(() => {
  4820. // this.checkEva(this.checkId);
  4821. // }, 100);
  4822. // }, 100);
  4823. // }
  4824. // } else {
  4825. if (this.steps == 3) {
  4826. this.steps = 1;
  4827. setTimeout(() => {
  4828. this.checkEva(this.checkId);
  4829. setTimeout(() => {
  4830. this.checkEva(this.checkId);
  4831. }, 100);
  4832. }, 100);
  4833. }
  4834. // }
  4835. }
  4836. },
  4837. navSteps(s) {
  4838. if (this.courseName == "") {
  4839. this.$message.error("请补充填写课程名称");
  4840. return;
  4841. }
  4842. if (this.cidType == 0) {
  4843. if (this.steps == 1) {
  4844. if (this.cid == "" || this.cid == undefined) {
  4845. this.addWork();
  4846. } else {
  4847. if (this.userid != this.courseUserid && this.role != "1") {
  4848. // this.updateWork2();
  4849. } else {
  4850. this.updateWork();
  4851. }
  4852. }
  4853. }
  4854. if (s == 1) {
  4855. this.steps = 1;
  4856. setTimeout(() => {
  4857. this.checkEva(this.checkId);
  4858. setTimeout(() => {
  4859. this.checkEva(this.checkId);
  4860. }, 100);
  4861. }, 100);
  4862. }
  4863. if (s == 2) {
  4864. this.steps = 2;
  4865. }
  4866. if (s == 3) {
  4867. this.cTemplate = this.templateC.content;
  4868. this.dialogVisible2 = false;
  4869. this.steps = 3;
  4870. this.isClickColor = 1
  4871. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4872. this.$forceUpdate();
  4873. setTimeout(() => {
  4874. this.checkEva(this.checkId);
  4875. setTimeout(() => {
  4876. this.checkEva(this.checkId);
  4877. }, 100);
  4878. }, 1000);
  4879. }
  4880. } else {
  4881. if (this.steps == 1) {
  4882. if (this.cid == "" || this.cid == undefined) {
  4883. this.addWork();
  4884. } else {
  4885. if (this.userid != this.courseUserid && this.role != "1") {
  4886. // this.updateWork2();
  4887. } else {
  4888. this.updateWork();
  4889. }
  4890. }
  4891. }
  4892. if (s == 1) {
  4893. this.steps = 1;
  4894. setTimeout(() => {
  4895. this.checkEva(this.checkId);
  4896. setTimeout(() => {
  4897. this.checkEva(this.checkId);
  4898. }, 100);
  4899. }, 100);
  4900. }
  4901. if (s == 3) {
  4902. this.cTemplate = this.templateC.content;
  4903. this.dialogVisible2 = false;
  4904. this.steps = 3;
  4905. this.isClickColor = 1
  4906. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4907. this.$forceUpdate();
  4908. setTimeout(() => {
  4909. this.checkEva(this.checkId);
  4910. setTimeout(() => {
  4911. this.checkEva(this.checkId);
  4912. }, 100);
  4913. }, 1000);
  4914. }
  4915. }
  4916. this.$refs.stepBox.scrollTop = 0;
  4917. },
  4918. nextSteps() {
  4919. // if (this.cidType == 1) {
  4920. if (this.steps == 1) {
  4921. if (this.courseName != "") {
  4922. this.steps = 3;
  4923. this.isClickColor = 1
  4924. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4925. this.$forceUpdate();
  4926. setTimeout(() => {
  4927. this.checkEva(this.checkId);
  4928. setTimeout(() => {
  4929. this.checkEva(this.checkId);
  4930. }, 100);
  4931. }, 1000);
  4932. if (this.cid == "" || this.cid == undefined) {
  4933. this.addWork();
  4934. } else {
  4935. if (this.userid != this.courseUserid && this.role != "1") {
  4936. // this.updateWork2();
  4937. } else {
  4938. this.updateWork();
  4939. }
  4940. }
  4941. } else {
  4942. this.$message.error("请补充填写课程名称");
  4943. return;
  4944. }
  4945. } else if (this.steps == 3) {
  4946. if (this.cid == "" || this.cid == undefined) {
  4947. if (this.courseName == "") {
  4948. this.$message.error("请补充填写课程名称");
  4949. return;
  4950. } else {
  4951. this.addWork();
  4952. this.steps++;
  4953. }
  4954. } else {
  4955. if (this.courseName == "") {
  4956. this.$message.error("请补充填写课程名称");
  4957. return;
  4958. } else {
  4959. if (this.userid != this.courseUserid && this.role != "1") {
  4960. this.updateWork2();
  4961. } else {
  4962. this.updateWork();
  4963. }
  4964. this.steps++;
  4965. }
  4966. }
  4967. }
  4968. // } else {
  4969. // if (this.steps == 1) {
  4970. // if (this.courseName != "") {
  4971. // if (this.cid == "" || this.cid == undefined) {
  4972. // this.addWork();
  4973. // } else {
  4974. // if (this.userid != this.courseUserid && this.role != "1") {
  4975. // // this.updateWork2();
  4976. // } else {
  4977. // this.updateWork();
  4978. // }
  4979. // }
  4980. // this.steps++;
  4981. // } else {
  4982. // this.$message.error("请补充填写课程名称");
  4983. // return;
  4984. // }
  4985. // } else if (this.steps == 2) {
  4986. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  4987. // this.cTemplate = this.templateC.content;
  4988. // }
  4989. // this.dialogVisible2 = false;
  4990. // this.steps++;
  4991. // setTimeout(() => {
  4992. // this.checkEva(this.checkId);
  4993. // setTimeout(() => {
  4994. // this.checkEva(this.checkId);
  4995. // }, 100);
  4996. // }, 1000);
  4997. // } else if (this.steps == 3) {
  4998. // if (this.cid == "" || this.cid == undefined) {
  4999. // if (this.courseName == "") {
  5000. // this.$message.error("请补充填写课程名称");
  5001. // return;
  5002. // } else {
  5003. // this.addWork();
  5004. // this.steps++;
  5005. // }
  5006. // } else {
  5007. // if (this.courseName == "") {
  5008. // this.$message.error("请补充填写课程名称");
  5009. // return;
  5010. // } else {
  5011. // if (this.userid != this.courseUserid && this.role != "1") {
  5012. // this.updateWork2();
  5013. // } else {
  5014. // this.updateWork();
  5015. // }
  5016. // this.steps++;
  5017. // }
  5018. // }
  5019. // }
  5020. // }
  5021. this.$refs.stepBox.scrollTop = 0;
  5022. },
  5023. unitSet(i) {
  5024. if(this.unitIndex == i){
  5025. return;
  5026. }
  5027. this.unitIndex = i;
  5028. this.isClickColor = 1
  5029. // this.$refs.rightboxR.scrollTop = 0;
  5030. this.$refs.unitBox.scrollTop = 0
  5031. },
  5032. panUnitJson(){
  5033. let _unitIndex = this.unitIndex;
  5034. let cPan = 1;
  5035. for (
  5036. var j = 0;
  5037. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5038. j++
  5039. ) {
  5040. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5041. j
  5042. ].proVisible = false;
  5043. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5044. j
  5045. ].proVisible2 = false;
  5046. if (
  5047. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5048. .length > 1
  5049. ) {
  5050. for (
  5051. var z = 0;
  5052. z <
  5053. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5054. .length;
  5055. z++
  5056. ) {
  5057. if (
  5058. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  5059. .toolChoose[z].tool.length
  5060. ) {
  5061. this.$message.error("请把工具添加完整");
  5062. cPan = 2;
  5063. break;
  5064. }
  5065. }
  5066. }
  5067. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5068. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5069. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5070. (ele) => {
  5071. return ele.value != "";
  5072. }
  5073. );
  5074. }
  5075. }
  5076. return cPan;
  5077. },
  5078. unitOpen(i){
  5079. if(this.unitJson[i].toolOpen){
  5080. this.unitJson[i].toolOpen = false
  5081. }else {
  5082. this.unitJson[i].toolOpen = true
  5083. }
  5084. this.updateWork()
  5085. this.$forceUpdate()
  5086. },
  5087. unitSet2(i) {
  5088. if(this.panUnitJson() == 2){
  5089. return;
  5090. }
  5091. // if(this.unitJson[i].toolOpen){
  5092. // this.unitJson[i].toolOpen = false
  5093. // this.updateWork()
  5094. // this.$forceUpdate()
  5095. // return
  5096. // }else {
  5097. this.unitJson[i].toolOpen = true
  5098. // }
  5099. this.$forceUpdate()
  5100. if(this.unitIndex == i){
  5101. return;
  5102. }
  5103. this.unitIndex = i;
  5104. this.isClickColor = 1
  5105. // this.$refs.rightboxR.scrollTop = 0;
  5106. this.$refs.unitBox.scrollTop = 0
  5107. },
  5108. updateCourseState(i){
  5109. let params = [
  5110. {
  5111. cid: this.cid,
  5112. state: i,
  5113. },
  5114. ];
  5115. this.ajax
  5116. .post(this.$store.state.api + "updateCourseMode", params)
  5117. .then((res) => {
  5118. this.courseState = i
  5119. })
  5120. .catch((err) => {
  5121. this.$message.error("网络不佳");
  5122. console.error(err);
  5123. });
  5124. },
  5125. time() {
  5126. if (!this.now) {
  5127. this.now = new Date().getTime();
  5128. return true;
  5129. } else {
  5130. let time = new Date().getTime();
  5131. if (time - this.now > 3000) {
  5132. this.now = time;
  5133. return true;
  5134. } else {
  5135. return false;
  5136. }
  5137. }
  5138. },
  5139. deleteUnit(i) {
  5140. var _this = this;
  5141. if(i == 0 && _this.unitJson.length == 1){
  5142. _this
  5143. .$confirm("确定切换成任务模式吗?", "提示", {
  5144. confirmButtonText: "确定",
  5145. cancelButtonText: "取消",
  5146. type: "warning",
  5147. })
  5148. .then(() => {
  5149. _this.unitJson[i].dyName = ''
  5150. _this.updateCourseState(2)
  5151. })
  5152. .catch(() => {
  5153. return;
  5154. });
  5155. }else {
  5156. _this
  5157. .$confirm("确定删除此阶段吗?", "提示", {
  5158. confirmButtonText: "确定",
  5159. cancelButtonText: "取消",
  5160. type: "warning",
  5161. })
  5162. .then(() => {
  5163. _this.isDelete = 2;
  5164. // _this.unitIndex = _this.unitIndex - 1;
  5165. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  5166. // _this.$message.success("删除成功");
  5167. })
  5168. .catch(() => {
  5169. return;
  5170. });
  5171. }
  5172. },
  5173. deleteWork(chapid) {
  5174. let params = [
  5175. {
  5176. cid: this.cid,
  5177. chapters: JSON.stringify(this.unitJson),
  5178. uid: this.userid,
  5179. chapid: chapid,
  5180. },
  5181. ];
  5182. this.ajax
  5183. .post(this.$store.state.api + "deleteWork", params)
  5184. .then((res) => {
  5185. this.$message({
  5186. message: "删除成功",
  5187. type: "success",
  5188. });
  5189. let task = JSON.parse(JSON.stringify(this.unitJson[this.unitIndex].chapterInfo[0].taskJson))
  5190. this.unitJson.splice(this.unitIndex, 1);
  5191. if(this.unitIndex == 0){
  5192. this.unitIndex = 0;
  5193. }else{
  5194. this.unitIndex = this.unitIndex - 1;
  5195. }
  5196. if(JSON.stringify(task) != JSON.stringify(this.taskJSONa)){
  5197. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson, ...task]
  5198. }
  5199. })
  5200. .catch((err) => {
  5201. this.$message.error("网络不佳");
  5202. console.error(err);
  5203. });
  5204. },
  5205. deleteTool(itemTaskIndex, i) {
  5206. var _this = this;
  5207. if (_this.time()) {
  5208. _this
  5209. .$confirm("确定删除此工具吗?", "提示", {
  5210. confirmButtonText: "确定",
  5211. cancelButtonText: "取消",
  5212. type: "warning",
  5213. })
  5214. .then(() => {
  5215. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5216. itemTaskIndex
  5217. ].toolChoose.splice(i, 1);
  5218. _this.$message.success("删除成功");
  5219. })
  5220. .catch(() => {
  5221. return;
  5222. });
  5223. }
  5224. },
  5225. deleteSentence(i) {
  5226. var _this = this;
  5227. _this
  5228. .$confirm("确定删除此题目吗?", "提示", {
  5229. confirmButtonText: "确定",
  5230. cancelButtonText: "取消",
  5231. type: "warning",
  5232. })
  5233. .then(() => {
  5234. _this.sentenceList.splice(i, 1);
  5235. _this.$message.success("删除成功");
  5236. })
  5237. .catch(() => {
  5238. return;
  5239. });
  5240. },
  5241. deleteS(s, i, j) {
  5242. this.sentenceList[i].addSentence.splice(j, 1);
  5243. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  5244. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  5245. this.sentenceList[i].rightAnswer.splice(a, 1);
  5246. }
  5247. },
  5248. openT() {
  5249. top.postMessage({ tools: "25" }, "*");
  5250. },
  5251. deleteTask(i) {
  5252. var _this = this;
  5253. if (_this.time()) {
  5254. _this
  5255. .$confirm(
  5256. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  5257. 1 ==
  5258. i
  5259. ? "确定删除此任务吗?"
  5260. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  5261. "提示",
  5262. {
  5263. confirmButtonText: "确定",
  5264. cancelButtonText: "取消",
  5265. type: "warning",
  5266. }
  5267. )
  5268. .then(() => {
  5269. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  5270. i,
  5271. 1
  5272. );
  5273. _this.$message.success("删除成功");
  5274. })
  5275. .catch(() => {
  5276. return;
  5277. });
  5278. }
  5279. },
  5280. handlePictureCardPreview(file) {
  5281. this.dialogImageUrl = file.url;
  5282. },
  5283. clean(i, c) {
  5284. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  5285. },
  5286. handle_remove1(file, fileList, type) {
  5287. var _tmp = this.cover;
  5288. // for (var i = 0, len = _tmp.length; i < len; i++) {
  5289. // if (_tmp[i].uid == file.uid) {
  5290. // _tmp.splice(i, 1);
  5291. // break;
  5292. // }
  5293. // this.cover = _tmp;
  5294. // }
  5295. this.cover = [];
  5296. this.noneBtnImg = this.cover.length >= 1;
  5297. this.isSysPic = false;
  5298. this.isSysPic2 = false;
  5299. this.$forceUpdate();
  5300. },
  5301. addImg(e) {
  5302. var el = e.currentTarget;
  5303. el.getElementsByTagName("input")[0].click();
  5304. e.target.value = "";
  5305. },
  5306. addChaptersTools(i) {
  5307. this.chapTools = [
  5308. {
  5309. tools: [],
  5310. toolDetail: "",
  5311. },
  5312. ];
  5313. this.chapCount = i;
  5314. this.dialogVisible4 = true;
  5315. },
  5316. isNoFinsh() {
  5317. this.$message.warning("功能正在开发中");
  5318. },
  5319. addAttText(i) {
  5320. this.AttText = {
  5321. title: "",
  5322. text: "",
  5323. };
  5324. this.taskCount = i;
  5325. this.AttTextType = 0;
  5326. this.$forceUpdate();
  5327. this.dialogVisible6 = true;
  5328. setTimeout(() => {
  5329. this.$refs['fuInput'].focus();
  5330. }, 100);
  5331. },
  5332. openLine(i) {
  5333. this.line = "";
  5334. this.lineCount = i;
  5335. this.lineType = 0;
  5336. this.$forceUpdate();
  5337. this.dialogVisible7 = true;
  5338. },
  5339. pasteLine(i) {
  5340. navigator.clipboard
  5341. .readText()
  5342. .then((v) => {
  5343. console.log("获取剪贴板成功:", v);
  5344. const html = v;
  5345. const regex = /src="(.*?)"/g;
  5346. const match = regex.exec(html);
  5347. if (match && match[1]) {
  5348. console.log(match[1]);
  5349. this.$message.success("粘贴成功");
  5350. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5351. i
  5352. ].chapterData.push({
  5353. name: "链接",
  5354. title: "嵌入代码",
  5355. url: match[1],
  5356. type: 8,
  5357. });
  5358. } else {
  5359. // console.log("未找到包含 src 属性的 iframe");
  5360. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  5361. }
  5362. })
  5363. .catch((v) => {
  5364. console.log("获取剪贴板失败: ", v);
  5365. });
  5366. },
  5367. openSource(i) {
  5368. this.lineCount = i;
  5369. this.sourceData = {};
  5370. this.dialogVisibleSource = true;
  5371. this.updateSourcePan = false;
  5372. },
  5373. addSource() {
  5374. if (!Object.keys(this.sourceData).length) {
  5375. this.$message.error("请选择要上传的资源");
  5376. return;
  5377. }
  5378. let keys = Object.keys(this.sourceData);
  5379. for (var i = 0; i < keys.length; i++) {
  5380. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5381. this.lineCount
  5382. ].chapterData.push({
  5383. name: "链接",
  5384. title: this.sourceData[keys[i]].name,
  5385. url: this.sourceData[keys[i]].url,
  5386. type: 14,
  5387. id: keys[i]
  5388. });
  5389. }
  5390. this.$forceUpdate();
  5391. this.dialogVisibleSource = false;
  5392. },
  5393. updateSource() {
  5394. if (!Object.keys(this.sourceData).length) {
  5395. this.$message.error("请选择要上传的资源");
  5396. return;
  5397. }
  5398. let keys = Object.keys(this.sourceData);
  5399. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5400. this.taskCount
  5401. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  5402. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5403. this.taskCount
  5404. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  5405. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5406. this.taskCount
  5407. ].chapterData[this.lineCount].id = keys[0];
  5408. this.updateSourcePan = false;
  5409. this.$forceUpdate();
  5410. this.dialogVisibleSource = false;
  5411. },
  5412. deleteM(i, j) {
  5413. this.testJson.testJson[i].timuList.splice(j, 1);
  5414. },
  5415. beforeUploadTiMu(event, i) {
  5416. const loading = this.openLoading();
  5417. var file = event.target.files[0];
  5418. var credentials = {
  5419. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5420. secretAccessKey: "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",
  5421. }; //秘钥形式的登录上传
  5422. window.AWS.config.update(credentials);
  5423. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5424. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5425. var _this = this;
  5426. if (file) {
  5427. var params = {
  5428. Key:
  5429. file.name.split(".")[0] +
  5430. new Date().getTime() +
  5431. "." +
  5432. file.name.split(".")[file.name.split(".").length - 1],
  5433. ContentType: file.type,
  5434. Body: file,
  5435. "Access-Control-Allow-Credentials": "*",
  5436. ACL: "public-read",
  5437. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5438. var options = {
  5439. partSize: 2048 * 1024 * 1024,
  5440. queueSize: 2,
  5441. leavePartsOnError: true,
  5442. };
  5443. bucket
  5444. .upload(params, options)
  5445. .on("httpUploadProgress", function (evt) {
  5446. //这里可以写进度条
  5447. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5448. })
  5449. .send(function (err, data) {
  5450. loading.close();
  5451. if (err) {
  5452. _this.$message.error("上传失败");
  5453. } else {
  5454. if (_this.testJson.testJson[i].timuList) {
  5455. _this.testJson.testJson[i].timuList.push({
  5456. src: data.Location,
  5457. });
  5458. } else {
  5459. _this.testJson.testJson[i].timuList = [];
  5460. _this.testJson.testJson[i].timuList.push({
  5461. src: data.Location,
  5462. });
  5463. }
  5464. _this.imgChange3(i);
  5465. _this.$forceUpdate();
  5466. }
  5467. });
  5468. }
  5469. },
  5470. beforeUploadTi(event, i, j) {
  5471. const loading = this.openLoading();
  5472. var file = event.target.files[0];
  5473. var credentials = {
  5474. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5475. secretAccessKey: "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",
  5476. }; //秘钥形式的登录上传
  5477. window.AWS.config.update(credentials);
  5478. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5479. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5480. var _this = this;
  5481. if (file) {
  5482. var params = {
  5483. Key:
  5484. file.name.split(".")[0] +
  5485. new Date().getTime() +
  5486. "." +
  5487. file.name.split(".")[file.name.split(".").length - 1],
  5488. ContentType: file.type,
  5489. Body: file,
  5490. "Access-Control-Allow-Credentials": "*",
  5491. ACL: "public-read",
  5492. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5493. var options = {
  5494. partSize: 2048 * 1024 * 1024,
  5495. queueSize: 2,
  5496. leavePartsOnError: true,
  5497. };
  5498. bucket
  5499. .upload(params, options)
  5500. .on("httpUploadProgress", function (evt) {
  5501. //这里可以写进度条
  5502. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5503. })
  5504. .send(function (err, data) {
  5505. loading.close();
  5506. if (err) {
  5507. _this.$message.error("上传失败");
  5508. } else {
  5509. _this.testJson.testJson[i].checkList[j] = {};
  5510. _this.testJson.testJson[i].checkList[j].src = data.Location;
  5511. _this.testJson.testJson[i].checkList[j].imgType = 1;
  5512. _this.imgChange2(i, j);
  5513. _this.$forceUpdate();
  5514. }
  5515. });
  5516. }
  5517. },
  5518. beforeUpload1(event, type) {
  5519. // const loading = this.openLoading();
  5520. var file = event.target.files[0];
  5521. var credentials = {
  5522. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5523. secretAccessKey: "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",
  5524. }; //秘钥形式的登录上传
  5525. window.AWS.config.update(credentials);
  5526. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5527. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5528. var _this = this;
  5529. if (file) {
  5530. var params = {
  5531. Key:
  5532. file.name.split(".")[0] +
  5533. new Date().getTime() +
  5534. "." +
  5535. file.name.split(".")[file.name.split(".").length - 1],
  5536. ContentType: file.type,
  5537. Body: file,
  5538. "Access-Control-Allow-Credentials": "*",
  5539. ACL: "public-read",
  5540. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5541. var options = {
  5542. partSize: 2048 * 1024 * 1024,
  5543. queueSize: 2,
  5544. leavePartsOnError: true,
  5545. };
  5546. bucket
  5547. .upload(params, options)
  5548. .on("httpUploadProgress", function (evt) {
  5549. //这里可以写进度条
  5550. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5551. })
  5552. .send(function (err, data) {
  5553. // loading.close();
  5554. if (err) {
  5555. // var a = _this.$refs.upload1.uploadFiles;
  5556. // a.splice(a.length - 1, a.length);
  5557. _this.$message.error("上传失败");
  5558. } else {
  5559. // _this.cover.push({
  5560. // name: file.name,
  5561. // url: data.Location,
  5562. // uid: file.uid,
  5563. // });
  5564. _this.cover = [{
  5565. name: file.name,
  5566. url: data.Location,
  5567. uid: file.uid,
  5568. }];
  5569. _this.imgChange1(null, null, 1, null);
  5570. _this.choosePicVisible = false;
  5571. console.log(data.Location);
  5572. }
  5573. });
  5574. }
  5575. },
  5576. beforeUploadSelect(event, type) {
  5577. // const loading = this.openLoading();
  5578. var file = event.target.files[0];
  5579. var credentials = {
  5580. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5581. secretAccessKey: "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",
  5582. }; //秘钥形式的登录上传
  5583. window.AWS.config.update(credentials);
  5584. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5585. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5586. var _this = this;
  5587. if (file) {
  5588. var params = {
  5589. Key:
  5590. file.name.split(".")[0] +
  5591. new Date().getTime() +
  5592. "." +
  5593. file.name.split(".")[file.name.split(".").length - 1],
  5594. ContentType: file.type,
  5595. Body: file,
  5596. "Access-Control-Allow-Credentials": "*",
  5597. ACL: "public-read",
  5598. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5599. var options = {
  5600. partSize: 2048 * 1024 * 1024,
  5601. queueSize: 2,
  5602. leavePartsOnError: true,
  5603. };
  5604. bucket
  5605. .upload(params, options)
  5606. .on("httpUploadProgress", function (evt) {
  5607. //这里可以写进度条
  5608. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5609. })
  5610. .send(function (err, data) {
  5611. // loading.close();
  5612. if (err) {
  5613. _this.$message.error("上传失败");
  5614. } else {
  5615. _this.selectJson.url = data.Location;
  5616. console.log(data.Location);
  5617. }
  5618. });
  5619. }
  5620. },
  5621. chooseSysPic(p) {
  5622. this.cover = []
  5623. setTimeout(() => {
  5624. this.cover[0] = {
  5625. name: "系统图片.png",
  5626. url: p,
  5627. };
  5628. this.imgChange1(null, null, 1, null);
  5629. this.$forceUpdate();
  5630. }, 0);
  5631. this.isSysPic = true;
  5632. this.isSysPic2 = false;
  5633. this.sysPicVisible = false;
  5634. this.$forceUpdate();
  5635. },
  5636. chooseSysPic2(p) {
  5637. this.cover = []
  5638. setTimeout(() => {
  5639. this.cover[0] = {
  5640. name: "网络图片.png",
  5641. url: p,
  5642. };
  5643. this.imgChange1(null, null, 1, null);
  5644. this.$forceUpdate();
  5645. }, 0);
  5646. this.isSysPic2 = true;
  5647. this.isSysPic = false;
  5648. this.sysPicVisible2 = false;
  5649. this.$forceUpdate();
  5650. },
  5651. beforeUpload(data) {
  5652. this.$refs.upload1.uploadFiles;
  5653. this.uploadLoading1 = true;
  5654. var file = data.file;
  5655. var credentials = {
  5656. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5657. secretAccessKey: "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",
  5658. }; //秘钥形式的登录上传
  5659. window.AWS.config.update(credentials);
  5660. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5661. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5662. var _this = this;
  5663. if (file) {
  5664. var params = {
  5665. Key:
  5666. file.name.split(".")[0] +
  5667. new Date().getTime() +
  5668. "." +
  5669. file.name.split(".")[file.name.split(".").length - 1],
  5670. ContentType: file.type,
  5671. Body: file,
  5672. "Access-Control-Allow-Credentials": "*",
  5673. ACL: "public-read",
  5674. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5675. var options = {
  5676. partSize: 2048 * 1024 * 1024,
  5677. queueSize: 2,
  5678. leavePartsOnError: true,
  5679. };
  5680. bucket
  5681. .upload(params, options)
  5682. .on("httpUploadProgress", function (evt) {
  5683. //这里可以写进度条
  5684. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5685. })
  5686. .send(function (err, data) {
  5687. _this.uploadLoading1 = false;
  5688. if (err) {
  5689. // var a = _this.$refs.upload1.uploadFiles;
  5690. // a.splice(a.length - 1, a.length);
  5691. _this.$message.error("上传失败");
  5692. } else {
  5693. //上传成功处理
  5694. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5695. name: file.name,
  5696. url: data.Location,
  5697. uid: file.uid,
  5698. });
  5699. _this.imgChange();
  5700. console.log(data.Location);
  5701. }
  5702. });
  5703. }
  5704. },
  5705. onExceed() {
  5706. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  5707. },
  5708. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5709. // const loading = this.openLoading();
  5710. var file = event.target.files[0];
  5711. var credentials = {
  5712. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5713. secretAccessKey: "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",
  5714. }; //秘钥形式的登录上传
  5715. window.AWS.config.update(credentials);
  5716. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5717. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5718. var _this = this;
  5719. if (type == 3) {
  5720. var b = [
  5721. "DOC",
  5722. "DOCX",
  5723. "DOCM",
  5724. "DOTM",
  5725. "DOTX",
  5726. "PPTX",
  5727. "PPSX",
  5728. "PPT",
  5729. "PPS",
  5730. "PPTM",
  5731. "POTM",
  5732. "PPAM",
  5733. "POTX",
  5734. "PPSM",
  5735. ];
  5736. if (
  5737. b.indexOf(
  5738. file.name
  5739. .split(".")
  5740. [file.name.split(".").length - 1].toLocaleUpperCase()
  5741. ) != -1
  5742. ) {
  5743. if (file.size / 1024 / 1024 > 80) {
  5744. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5745. this.inputShow = true;
  5746. // var a = _this.$refs.upload1.uploadFiles;
  5747. // a.splice(a.length - 1, a.length);
  5748. // loading.close();
  5749. return;
  5750. }
  5751. } else if (
  5752. file.name
  5753. .split(".")
  5754. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5755. ) {
  5756. if (file.size / 1024 / 1024 > 80) {
  5757. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5758. this.inputShow = true;
  5759. // var a = _this.$refs.upload1.uploadFiles;
  5760. // a.splice(a.length - 1, a.length);
  5761. // loading.close();
  5762. return;
  5763. }
  5764. }
  5765. }
  5766. this.inputShow = false;
  5767. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5768. itemTaskIndex
  5769. ].progress = 0;
  5770. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5771. itemTaskIndex
  5772. ].proVisible = true;
  5773. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5774. itemTaskIndex
  5775. ].isFinishSize = 0;
  5776. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5777. itemTaskIndex
  5778. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5779. _this.$forceUpdate();
  5780. if (file) {
  5781. var params = {
  5782. Key:
  5783. file.name.split(".")[0] +
  5784. new Date().getTime() +
  5785. "." +
  5786. file.name.split(".")[file.name.split(".").length - 1],
  5787. ContentType: file.type,
  5788. Body: file,
  5789. "Access-Control-Allow-Credentials": "*",
  5790. ACL: "public-read",
  5791. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5792. var options = {
  5793. partSize: 2048 * 1024 * 1024,
  5794. queueSize: 2,
  5795. leavePartsOnError: true,
  5796. };
  5797. bucket
  5798. .upload(params, options)
  5799. .on("httpUploadProgress", function (evt) {
  5800. //这里可以写进度条
  5801. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5802. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5803. itemTaskIndex
  5804. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5805. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5806. itemTaskIndex
  5807. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5808. _this.$forceUpdate();
  5809. })
  5810. .send(function (err, data) {
  5811. // loading.close();
  5812. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5813. itemTaskIndex
  5814. ].progress = 100;
  5815. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5816. itemTaskIndex
  5817. ].isFinishSize =
  5818. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5819. itemTaskIndex
  5820. ].isAllSize;
  5821. _this.$forceUpdate();
  5822. setTimeout(() => {
  5823. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5824. itemTaskIndex
  5825. ].proVisible = false;
  5826. _this.$forceUpdate();
  5827. }, 1000);
  5828. _this.inputShow = true;
  5829. if (err) {
  5830. // var a = _this.$refs.upload1.uploadFiles;
  5831. // a.splice(a.length - 1, a.length);
  5832. _this.$message.error("上传失败");
  5833. } else {
  5834. if (type == 13) {
  5835. let _type = 2;
  5836. var imgA = [
  5837. "png",
  5838. "jpg",
  5839. "jpeg",
  5840. "bmp",
  5841. "gif",
  5842. "webp",
  5843. "psd",
  5844. "svg",
  5845. "tiff",
  5846. ];
  5847. var fileA = [
  5848. "PDF",
  5849. "DOC",
  5850. "DOCX",
  5851. "DOCM",
  5852. "DOTM",
  5853. "DOTX",
  5854. "PPTX",
  5855. "PPSX",
  5856. "PPT",
  5857. "PPS",
  5858. "PPTM",
  5859. "POTM",
  5860. "PPAM",
  5861. "POTX",
  5862. "PPSM",
  5863. "XLSX",
  5864. "XLS",
  5865. ];
  5866. var videoA = [
  5867. "AVI",
  5868. "NAVI",
  5869. "MPEG",
  5870. "ASF",
  5871. "MOV",
  5872. "WMV",
  5873. "3GP",
  5874. "RM",
  5875. "RMVB",
  5876. "FLV",
  5877. "F4V",
  5878. "H.264",
  5879. "H.265",
  5880. "REAL VIDEO",
  5881. "MKV",
  5882. "WebM",
  5883. "HDDVD",
  5884. "MP4",
  5885. "MPG",
  5886. "M4V",
  5887. "MGV",
  5888. "OGV",
  5889. "QTM",
  5890. "STR",
  5891. "AMC",
  5892. "DVX",
  5893. "EVO",
  5894. "DAT",
  5895. "OGG",
  5896. "OGM",
  5897. ];
  5898. if (
  5899. fileA.indexOf(
  5900. data.Location.split(".")[
  5901. data.Location.split(".").length - 1
  5902. ].toLocaleUpperCase()
  5903. ) != -1
  5904. ) {
  5905. _type = 3;
  5906. } else if (
  5907. videoA.indexOf(
  5908. data.Location.split(".")[
  5909. data.Location.split(".").length - 1
  5910. ].toLocaleUpperCase()
  5911. ) != -1
  5912. ) {
  5913. _type = 2;
  5914. } else if (
  5915. imgA.indexOf(
  5916. data.Location.split(".")[
  5917. data.Location.split(".").length - 1
  5918. ].toLocaleLowerCase()
  5919. ) != -1
  5920. ) {
  5921. _type = 13;
  5922. } else {
  5923. _type = 12;
  5924. }
  5925. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5926. itemTaskIndex
  5927. ].chapterData.push({
  5928. name: file.name,
  5929. url: data.Location,
  5930. uid: file.uid,
  5931. type: _type,
  5932. });
  5933. _this.imgChange1(null, null, _type, itemTaskIndex);
  5934. } else if (type == 2 || type == 3 || type == 12) {
  5935. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5936. itemTaskIndex
  5937. ].chapterData.push({
  5938. name: file.name,
  5939. url: data.Location,
  5940. uid: file.uid,
  5941. type: type,
  5942. });
  5943. _this.imgChange1(null, null, type, itemTaskIndex);
  5944. } else if (type == 4) {
  5945. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5946. itemTaskIndex
  5947. ].fileList1.push({
  5948. name: file.name,
  5949. url: data.Location,
  5950. uid: file.uid,
  5951. });
  5952. _this.imgChange1(null, null, type, itemTaskIndex);
  5953. } else if (type == 5) {
  5954. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5955. itemTaskIndex
  5956. ].homeworkList.push({
  5957. name: file.name,
  5958. url: data.Location,
  5959. uid: file.uid,
  5960. });
  5961. _this.imgChange1(null, null, type, itemTaskIndex);
  5962. }
  5963. console.log(data.Location);
  5964. }
  5965. });
  5966. }
  5967. },
  5968. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  5969. // const loading = this.openLoading();
  5970. var file = event.target.files[0];
  5971. var credentials = {
  5972. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5973. secretAccessKey: "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",
  5974. }; //秘钥形式的登录上传
  5975. window.AWS.config.update(credentials);
  5976. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5977. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5978. var _this = this;
  5979. if (type == 3) {
  5980. var b = [
  5981. "DOC",
  5982. "DOCX",
  5983. "DOCM",
  5984. "DOTM",
  5985. "DOTX",
  5986. "PPTX",
  5987. "PPSX",
  5988. "PPT",
  5989. "PPS",
  5990. "PPTM",
  5991. "POTM",
  5992. "PPAM",
  5993. "POTX",
  5994. "PPSM",
  5995. ];
  5996. if (
  5997. b.indexOf(
  5998. file.name
  5999. .split(".")
  6000. [file.name.split(".").length - 1].toLocaleUpperCase()
  6001. ) != -1
  6002. ) {
  6003. if (file.size / 1024 / 1024 > 80) {
  6004. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6005. this.inputShow = true;
  6006. // var a = _this.$refs.upload1.uploadFiles;
  6007. // a.splice(a.length - 1, a.length);
  6008. // loading.close();
  6009. return;
  6010. }
  6011. } else if (
  6012. file.name
  6013. .split(".")
  6014. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6015. ) {
  6016. if (file.size / 1024 / 1024 > 80) {
  6017. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6018. this.inputShow = true;
  6019. // var a = _this.$refs.upload1.uploadFiles;
  6020. // a.splice(a.length - 1, a.length);
  6021. // loading.close();
  6022. return;
  6023. }
  6024. }
  6025. }
  6026. this.inputShow = false;
  6027. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6028. itemTaskIndex
  6029. ].progress = 0;
  6030. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6031. itemTaskIndex
  6032. ].proVisible = true;
  6033. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6034. itemTaskIndex
  6035. ].isFinishSize = 0;
  6036. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6037. itemTaskIndex
  6038. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6039. _this.$forceUpdate();
  6040. if (file) {
  6041. var params = {
  6042. Key:
  6043. file.name.split(".")[0] +
  6044. new Date().getTime() +
  6045. "." +
  6046. file.name.split(".")[file.name.split(".").length - 1],
  6047. ContentType: file.type,
  6048. Body: file,
  6049. "Access-Control-Allow-Credentials": "*",
  6050. ACL: "public-read",
  6051. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6052. var options = {
  6053. partSize: 2048 * 1024 * 1024,
  6054. queueSize: 2,
  6055. leavePartsOnError: true,
  6056. };
  6057. bucket
  6058. .upload(params, options)
  6059. .on("httpUploadProgress", function (evt) {
  6060. //这里可以写进度条
  6061. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6062. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6063. itemTaskIndex
  6064. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6065. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6066. itemTaskIndex
  6067. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6068. _this.$forceUpdate();
  6069. })
  6070. .send(function (err, data) {
  6071. // loading.close();
  6072. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6073. itemTaskIndex
  6074. ].progress = 100;
  6075. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6076. itemTaskIndex
  6077. ].isFinishSize =
  6078. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6079. itemTaskIndex
  6080. ].isAllSize;
  6081. _this.$forceUpdate();
  6082. setTimeout(() => {
  6083. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6084. itemTaskIndex
  6085. ].proVisible = false;
  6086. _this.$forceUpdate();
  6087. }, 1000);
  6088. _this.inputShow = true;
  6089. if (err) {
  6090. // var a = _this.$refs.upload1.uploadFiles;
  6091. // a.splice(a.length - 1, a.length);
  6092. _this.$message.error("上传失败");
  6093. } else {
  6094. if (type == 2 || type == 3) {
  6095. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6096. itemTaskIndex
  6097. ].chapterData.push({
  6098. name: file.name,
  6099. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6100. // itemTaskIndex
  6101. // ].chapterData.length+1),
  6102. url: data.Location,
  6103. uid: file.uid,
  6104. type: type,
  6105. text: string,
  6106. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6107. // itemTaskIndex
  6108. // ].chapterData.length + 1),
  6109. });
  6110. _this.imgChange1(null, null, type, itemTaskIndex);
  6111. } else if (type == 4) {
  6112. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6113. itemTaskIndex
  6114. ].fileList1.push({
  6115. name: file.name,
  6116. url: data.Location,
  6117. uid: file.uid,
  6118. });
  6119. _this.imgChange1(null, null, type, itemTaskIndex);
  6120. } else if (type == 5) {
  6121. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6122. itemTaskIndex
  6123. ].homeworkList.push({
  6124. name: file.name,
  6125. url: data.Location,
  6126. uid: file.uid,
  6127. });
  6128. _this.imgChange1(null, null, type, itemTaskIndex);
  6129. }
  6130. console.log(data.Location);
  6131. }
  6132. });
  6133. }
  6134. },
  6135. addunit() {
  6136. this.unitJson.push({
  6137. dyName: "", //单元标题
  6138. isUpdate: 1,
  6139. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  6140. chapterInfo: [
  6141. {
  6142. isread: false,
  6143. chapterid: this.guid(),
  6144. title: "",
  6145. courseName: "",
  6146. taskJson: [
  6147. {
  6148. task: "",
  6149. taskDetail: "",
  6150. chapterData: [],
  6151. toolText: "",
  6152. toolChoose: [
  6153. {
  6154. tool: [],
  6155. toolDetail: "",
  6156. toolType: 0,
  6157. askCount: 1,
  6158. askTitle: "",
  6159. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6160. },
  6161. ],
  6162. isShowTools: false,
  6163. askCount: 1,
  6164. isFold: 1,
  6165. askTitle: "",
  6166. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6167. checkJson: [{ checkCount: [], checkPerent: [] }],
  6168. homeworkList: [],
  6169. },
  6170. ],
  6171. itemCount: 1,
  6172. fileList1: [],
  6173. video: [],
  6174. testData: [],
  6175. pData: [],
  6176. templateArray: [],
  6177. },
  6178. ],
  6179. });
  6180. this.addindex = this.unitJson.length - 1;
  6181. setTimeout(() => {
  6182. this.unitIndex = this.unitJson.length - 1;
  6183. setTimeout(() => {
  6184. console.log(this.$refs.dyInput)
  6185. this.$refs.dyInput[0].focus()
  6186. }, 100);
  6187. this.unitSet(this.unitIndex);
  6188. }, 0);
  6189. },
  6190. addToolFun(itemTaskIndex) {
  6191. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6192. itemTaskIndex
  6193. ].toolChoose.push({
  6194. tool: [],
  6195. toolDetail: "",
  6196. toolType: 0,
  6197. askCount: 1,
  6198. askTitle: "",
  6199. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6200. });
  6201. },
  6202. addTaskBorder() {
  6203. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  6204. task: "",
  6205. taskDetail: "",
  6206. chapterData: [],
  6207. toolText: "",
  6208. toolChoose: [
  6209. {
  6210. tool: [],
  6211. toolDetail: "",
  6212. toolType: 0,
  6213. askCount: 1,
  6214. askTitle: "",
  6215. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6216. },
  6217. ],
  6218. isShowTools: false,
  6219. askCount: 1,
  6220. isFold: 1,//任务收起状态
  6221. askTitle: "",
  6222. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6223. checkJson: [{ checkCount: [], checkPerent: [] }],
  6224. homeworkList: [],
  6225. });
  6226. setTimeout(() => {
  6227. this.checkEva(this.checkId);
  6228. setTimeout(() => {
  6229. this.checkEva(this.checkId);
  6230. }, 100);
  6231. }, 100);
  6232. },
  6233. add(e, i) {
  6234. var el = e.currentTarget;
  6235. el.getElementsByTagName("input")[0].click();
  6236. },
  6237. fold(i, e) {
  6238. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  6239. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  6240. } else {
  6241. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  6242. }
  6243. },
  6244. fold2(i) {
  6245. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  6246. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  6247. } else {
  6248. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  6249. }
  6250. this.$forceUpdate();
  6251. },
  6252. foldEva(i) {
  6253. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  6254. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold = false;
  6255. } else {
  6256. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold = true;
  6257. setTimeout(() => {
  6258. this.checkEva(this.checkId);
  6259. setTimeout(() => {
  6260. this.checkEva(this.checkId);
  6261. }, 500);
  6262. }, 0);
  6263. }
  6264. this.$forceUpdate();
  6265. },
  6266. foldC(i) {
  6267. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  6268. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  6269. } else {
  6270. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  6271. }
  6272. this.$forceUpdate();
  6273. },
  6274. fold3(i, ti) {
  6275. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  6276. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  6277. } else {
  6278. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  6279. }
  6280. this.$forceUpdate();
  6281. },
  6282. deleteHomeworkBox(unitIndex, index, i) {
  6283. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  6284. this.taskCount
  6285. ].homeworkList.splice(i, 1);
  6286. },
  6287. getStudent() {
  6288. let params = {
  6289. oid: this.oid,
  6290. cu: "",
  6291. cn: this.searchPeople,
  6292. };
  6293. this.ajax
  6294. .get(this.$store.state.api + "selectStudentAdd", params)
  6295. .then((res) => {
  6296. this.studentJuri = res.data[0];
  6297. })
  6298. .catch((err) => {
  6299. this.isLoading = false;
  6300. console.error(err);
  6301. });
  6302. },
  6303. getTeacher() {
  6304. let params = {
  6305. oid:
  6306. this.org && this.org != "undefined" && this.org != "null"
  6307. ? this.org
  6308. : this.oid,
  6309. cu: "",
  6310. cn: this.searchTN,
  6311. };
  6312. this.ajax
  6313. .get(
  6314. this.$store.state.api +
  6315. (this.org && this.org != "undefined" && this.org != "null"
  6316. ? "selectTeacherAddOrg"
  6317. : "selectTeacherAdd"),
  6318. params
  6319. )
  6320. .then((res) => {
  6321. let teacherJuri = res.data[0];
  6322. for (var i = 0; i < teacherJuri.length; i++) {
  6323. if (teacherJuri[i].userid == this.userid) {
  6324. teacherJuri.splice(i, 1);
  6325. break;
  6326. }
  6327. }
  6328. this.teacherJuri = teacherJuri;
  6329. let _check = []
  6330. let _check2 = []
  6331. for (var i = 0; i < this.teacherJuri.length; i++) {
  6332. var gid = this.teacherJuri[i].userid
  6333. _check.push(gid)
  6334. }
  6335. for (var i = 0; i < this.checkboxList3.length; i++) {
  6336. var _id = this.checkboxList3[i]
  6337. if (_check.indexOf(_id) !== -1) {
  6338. _check2.push(_id)
  6339. }
  6340. }
  6341. this.checkAll2 = _check2.length === _check.length;
  6342. })
  6343. .catch((err) => {
  6344. console.error(err);
  6345. });
  6346. },
  6347. searchStudent() {
  6348. this.getStudent();
  6349. },
  6350. selectGrage() {
  6351. let params = {
  6352. oid: this.oid,
  6353. };
  6354. this.ajax
  6355. .get(this.$store.state.api + "selectGrageBySchool", params)
  6356. .then((res) => {
  6357. this.gradeList = res.data[0];
  6358. })
  6359. .catch((err) => {
  6360. this.isLoading = false;
  6361. console.error(err);
  6362. });
  6363. },
  6364. //获取班级列表
  6365. getClass() {
  6366. let params = {
  6367. oid: this.oid,
  6368. gid: this.gradeId,
  6369. cn: this.classSearch,
  6370. };
  6371. this.ajax
  6372. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  6373. .then((res) => {
  6374. if (!this.grade.length) {
  6375. this.grade = res.data[0];
  6376. }
  6377. this.grade2 = res.data[0];
  6378. this.classJuri = res.data[0];
  6379. let _check = []
  6380. let _check2 = []
  6381. for (var i = 0; i < this.grade2.length; i++) {
  6382. var gid = this.grade2[i].id
  6383. _check.push(gid)
  6384. }
  6385. for (var i = 0; i < this.checkboxList2.length; i++) {
  6386. var _id = this.checkboxList2[i]
  6387. if (_check.indexOf(_id) !== -1) {
  6388. _check2.push(_id)
  6389. }
  6390. }
  6391. this.checkAll = _check2.length === _check.length;
  6392. })
  6393. .catch((err) => {
  6394. this.isLoading = false;
  6395. console.error(err);
  6396. });
  6397. },
  6398. CourseType2Change(val) {
  6399. this.pTypeCheck = [];
  6400. for (var i = 0; i < this.CourseType2.length; i++) {
  6401. let typeA = this.CourseType2[i];
  6402. if (val.indexOf(typeA.name) != -1) {
  6403. this.pTypeCheck.push(...typeA.id);
  6404. }
  6405. }
  6406. },
  6407. getChapterData(e, i, j, ic, type) {
  6408. e.stopPropagation();
  6409. this.updataC = true;
  6410. this.icc = ic;
  6411. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6412. console.log("还不能下载图片喔");
  6413. }
  6414. },
  6415. deleteChapterData(e, i, j, ic, taskI) {
  6416. e.stopPropagation();
  6417. let _this = this;
  6418. _this
  6419. .$confirm("确定删除此项?", "提示", {
  6420. confirmButtonText: "确定",
  6421. cancelButtonText: "取消",
  6422. type: "warning",
  6423. })
  6424. .then(() => {
  6425. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  6426. })
  6427. .catch(() => {
  6428. return;
  6429. });
  6430. },
  6431. updataVideoT(e, i, j, ic) {
  6432. // e.stopPropagation();
  6433. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  6434. // ic
  6435. // ].name = JSON.parse(JSON.stringify(e.target.value));
  6436. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6437. ic
  6438. ].name;
  6439. this.taskCount = j;
  6440. this.lineCount = ic;
  6441. this.dialogVisibleupdataVideoT = true;
  6442. this.$forceUpdate();
  6443. },
  6444. updataVideoC() {
  6445. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  6446. this.dialogVisibleupdataVideoT = false;
  6447. this.$forceUpdate();
  6448. },
  6449. upCd(e, i, j, taskCount, ic) {
  6450. e.stopPropagation();
  6451. if (ic == 0) {
  6452. return;
  6453. }
  6454. var a =
  6455. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  6456. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  6457. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6458. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6459. this.$forceUpdate();
  6460. },
  6461. downCd(e, i, j, taskCount, ic) {
  6462. e.stopPropagation();
  6463. if (
  6464. ic ==
  6465. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  6466. 1
  6467. ) {
  6468. return;
  6469. }
  6470. var a =
  6471. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  6472. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  6473. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6474. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6475. this.$forceUpdate();
  6476. },
  6477. async upTool(e, i, j, tooli){
  6478. e.stopPropagation();
  6479. if (tooli == 0) {
  6480. return;
  6481. }
  6482. let count1 = await this.getWorksCount(3, i, j, tooli - 1)
  6483. let count2 = await this.getWorksCount(3, i, j, tooli)
  6484. if(count1 > 0 || count2 > 0){
  6485. this.$confirm(
  6486. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6487. "提示",
  6488. {
  6489. confirmButtonText: "确定",
  6490. cancelButtonText: "取消",
  6491. type: "warning",
  6492. }
  6493. )
  6494. .then(() => {
  6495. var a =
  6496. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6497. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6498. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6499. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6500. this.$forceUpdate()
  6501. })
  6502. .catch(() => {
  6503. return;
  6504. });
  6505. }else{
  6506. var a =
  6507. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6508. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6509. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6510. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6511. this.$forceUpdate()
  6512. }
  6513. },
  6514. async downTool(e, i, j, tooli){
  6515. e.stopPropagation();
  6516. if ( tooli ==
  6517. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length -
  6518. 1) {
  6519. return;
  6520. }
  6521. let count1 = await this.getWorksCount(3, i, j, tooli + 1)
  6522. let count2 = await this.getWorksCount(3, i, j, tooli)
  6523. if(count1 > 0 || count2 > 0){
  6524. this.$confirm(
  6525. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6526. "提示",
  6527. {
  6528. confirmButtonText: "确定",
  6529. cancelButtonText: "取消",
  6530. type: "warning",
  6531. }
  6532. )
  6533. .then(() => {
  6534. var a =
  6535. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6536. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6537. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6538. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6539. this.$forceUpdate()
  6540. })
  6541. .catch(() => {
  6542. return;
  6543. });
  6544. }else{
  6545. var a =
  6546. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6547. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6548. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6549. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6550. this.$forceUpdate()
  6551. }
  6552. },
  6553. addWork() {
  6554. let cPan = 1;
  6555. for (var i = 0; i < this.unitJson.length; i++) {
  6556. for (
  6557. var j = 0;
  6558. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6559. j++
  6560. ) {
  6561. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6562. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6563. if (
  6564. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6565. ) {
  6566. for (
  6567. var z = 0;
  6568. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6569. z++
  6570. ) {
  6571. if (
  6572. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6573. .length
  6574. ) {
  6575. this.$message.error("请把工具添加完整");
  6576. cPan = 2;
  6577. break;
  6578. }
  6579. }
  6580. }
  6581. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6582. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6583. i
  6584. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6585. return ele.value != "";
  6586. });
  6587. }
  6588. }
  6589. }
  6590. this.inputShow = true;
  6591. if (cPan == 2) {
  6592. this.steps--;
  6593. return;
  6594. }
  6595. for (var i = 0; i < this.unitJson.length; i++) {
  6596. delete this.unitJson[i].isUpdate;
  6597. }
  6598. let params = [
  6599. {
  6600. uid: this.userid,
  6601. title: this.courseName.replace(/%/g, "%25"),
  6602. brief: this.courseText.replace(/%/g, "%25"),
  6603. cover:
  6604. this.cover.length > 0
  6605. ? JSON.stringify(this.cover)
  6606. : JSON.stringify([
  6607. {
  6608. name: "noBanner.jpg",
  6609. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6610. uid: 1656409780264,
  6611. status: "success",
  6612. },
  6613. ]),
  6614. evaId: this.evalua,
  6615. astudent:
  6616. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6617. see: this.isTeacherSee == true ? 1 : 0,
  6618. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6619. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  6620. courseType: JSON.stringify(this.courseTypeId),
  6621. ateacher:
  6622. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6623. inviteCode: JSON.stringify(this.inviteCode),
  6624. },
  6625. ];
  6626. this.ajax
  6627. .post(this.$store.state.api + "addWorkNew2", params)
  6628. .then((res) => {
  6629. console.log(this.steps);
  6630. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6631. this.$message({
  6632. message: "新增成功",
  6633. type: "success",
  6634. });
  6635. }
  6636. this.number = res.data.ordernumber;
  6637. this.courseId = res.data.courseId;
  6638. this.cid = res.data.courseId;
  6639. this.courseUserid = this.userid;
  6640. this.islogin = true;
  6641. })
  6642. .catch((err) => {
  6643. this.$message.error("网络不佳");
  6644. console.error(err);
  6645. });
  6646. },
  6647. goCourse() {
  6648. top.postMessage({ cid: this.courseId, type: "1" }, "*");
  6649. },
  6650. updateWork2() {
  6651. let _unitIndex = this.unitIndex;
  6652. let cPan = 1;
  6653. for (
  6654. var j = 0;
  6655. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6656. j++
  6657. ) {
  6658. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6659. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6660. j
  6661. ].proVisible2 = false;
  6662. if (
  6663. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6664. .length > 1
  6665. ) {
  6666. for (
  6667. var z = 0;
  6668. z <
  6669. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6670. .length;
  6671. z++
  6672. ) {
  6673. if (
  6674. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6675. z
  6676. ].tool.length
  6677. ) {
  6678. this.$message.error("请把工具添加完整");
  6679. cPan = 2;
  6680. break;
  6681. }
  6682. }
  6683. }
  6684. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6685. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6686. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6687. (ele) => {
  6688. return ele.value != "";
  6689. }
  6690. );
  6691. }
  6692. }
  6693. this.inputShow = true;
  6694. if (cPan == 2) {
  6695. this.steps--;
  6696. return;
  6697. }
  6698. let params = [
  6699. {
  6700. cid: this.cid,
  6701. chapters: JSON.stringify(this.unitJson),
  6702. uid: this.userid,
  6703. unitIndex: _unitIndex,
  6704. },
  6705. ];
  6706. this.ajax
  6707. .post(this.$store.state.api + "updateWorkNew4", params)
  6708. .then((res) => {
  6709. this.$message({
  6710. message: "修改成功",
  6711. type: "success",
  6712. });
  6713. this.courseId = this.cid;
  6714. })
  6715. .catch((err) => {
  6716. this.$message.error("网络不佳");
  6717. console.error(err);
  6718. });
  6719. },
  6720. updateWork3(unitIndex) {
  6721. let _unitIndex = unitIndex;
  6722. let cPan = 1;
  6723. for (
  6724. var j = 0;
  6725. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6726. j++
  6727. ) {
  6728. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6729. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6730. j
  6731. ].proVisible2 = false;
  6732. if (
  6733. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6734. .length > 1
  6735. ) {
  6736. for (
  6737. var z = 0;
  6738. z <
  6739. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6740. .length;
  6741. z++
  6742. ) {
  6743. if (
  6744. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6745. z
  6746. ].tool.length
  6747. ) {
  6748. this.$message.error("请把工具添加完整");
  6749. cPan = 2;
  6750. break;
  6751. }
  6752. }
  6753. }
  6754. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6755. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6756. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6757. (ele) => {
  6758. return ele.value != "";
  6759. }
  6760. );
  6761. }
  6762. }
  6763. this.inputShow = true;
  6764. if (cPan == 2) {
  6765. this.steps--;
  6766. return;
  6767. }
  6768. let params = [
  6769. {
  6770. cid: this.cid,
  6771. chapters: JSON.stringify(this.unitJson),
  6772. uid: this.userid,
  6773. unitIndex: _unitIndex,
  6774. },
  6775. ];
  6776. this.ajax
  6777. .post(this.$store.state.api + "updateWorkNew4", params)
  6778. .then((res) => {
  6779. // this.$message({
  6780. // message: "修改成功",
  6781. // type: "success",
  6782. // });
  6783. this.courseId = this.cid;
  6784. })
  6785. .catch((err) => {
  6786. this.$message.error("网络不佳");
  6787. console.error(err);
  6788. });
  6789. },
  6790. updateWork() {
  6791. let cPan = 1;
  6792. for (var i = 0; i < this.unitJson.length; i++) {
  6793. for (
  6794. var j = 0;
  6795. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6796. j++
  6797. ) {
  6798. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6799. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6800. if (
  6801. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6802. ) {
  6803. for (
  6804. var z = 0;
  6805. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6806. z++
  6807. ) {
  6808. if (
  6809. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6810. .length
  6811. ) {
  6812. this.$message.error("请把工具添加完整");
  6813. cPan = 2;
  6814. break;
  6815. }
  6816. }
  6817. }
  6818. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6819. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6820. i
  6821. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6822. return ele.value != "";
  6823. });
  6824. }
  6825. }
  6826. }
  6827. this.inputShow = true;
  6828. if (cPan == 2) {
  6829. this.steps--;
  6830. return;
  6831. }
  6832. for (var i = 0; i < this.unitJson.length; i++) {
  6833. delete this.unitJson[i].isUpdate;
  6834. }
  6835. let params = [
  6836. {
  6837. cid: this.cid,
  6838. title: this.courseName.replace(/%/g, "%25"),
  6839. brief: this.courseText.replace(/%/g, "%25"),
  6840. cover:
  6841. this.cover.length > 0
  6842. ? JSON.stringify(this.cover)
  6843. : JSON.stringify([
  6844. {
  6845. name: "noBanner.jpg",
  6846. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6847. uid: 1656409780264,
  6848. status: "success",
  6849. },
  6850. ]),
  6851. evaId: this.evalua,
  6852. astudent:
  6853. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6854. see: this.isTeacherSee == true ? 1 : 0,
  6855. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6856. template: this.myWord != "undefined" ? this.myWord : [],
  6857. uid: this.userid,
  6858. courseType: JSON.stringify(this.courseTypeId),
  6859. ateacher:
  6860. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6861. inviteCode: JSON.stringify(this.inviteCode),
  6862. },
  6863. ];
  6864. this.ajax
  6865. .post(this.$store.state.api + "updateWorkNew2", params)
  6866. .then((res) => {
  6867. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6868. if (this.cidType == 1) {
  6869. this.$message({
  6870. message: "修改成功",
  6871. type: "success",
  6872. });
  6873. } else {
  6874. this.$message({
  6875. message: "新增成功",
  6876. type: "success",
  6877. });
  6878. }
  6879. }
  6880. this.number = this.nbOrder;
  6881. this.courseId = this.cid;
  6882. })
  6883. .catch((err) => {
  6884. this.$message.error("网络不佳");
  6885. console.error(err);
  6886. });
  6887. },
  6888. guid() {
  6889. var _num,
  6890. i,
  6891. _guid = "";
  6892. for (i = 0; i < 32; i++) {
  6893. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6894. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6895. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6896. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6897. _guid += "-";
  6898. }
  6899. }
  6900. return _guid;
  6901. },
  6902. insertWord() {
  6903. this.dialogVisible1 = true;
  6904. this.updateBoolean2 = false;
  6905. this.tTitle = "";
  6906. this.tdetail = "";
  6907. },
  6908. addWord() {
  6909. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6910. name: this.tTitle,
  6911. content: this.tdetail,
  6912. uid: this.guid(),
  6913. });
  6914. this.dialogVisible1 = false;
  6915. },
  6916. upWord() { },
  6917. selectWord(uid, i, c) {
  6918. this.dialogVisible1 = true;
  6919. this.updateBoolean2 = true;
  6920. if (
  6921. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6922. ) {
  6923. this.tTitle =
  6924. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6925. this.tdetail =
  6926. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6927. }
  6928. },
  6929. isAddPP() {
  6930. if (this.checkboxList.length > 0) {
  6931. this.$message({
  6932. message: "添加成功",
  6933. type: "success",
  6934. });
  6935. this.dialogVisible3 = false;
  6936. } else {
  6937. this.$message({
  6938. message: "请添加课程成员",
  6939. type: "error",
  6940. });
  6941. }
  6942. },
  6943. isAddClass() {
  6944. this.dialogVisibleClass = false;
  6945. },
  6946. isAddPPTeacher() {
  6947. this.dialogVisibleMember = false;
  6948. this.setMan();
  6949. },
  6950. getTemplate() {
  6951. this.ajax
  6952. .get(this.$store.state.api + "getCourseTemplateT", "")
  6953. .then((res) => {
  6954. this.templateArray = res.data[0];
  6955. this.getTemplateOid();
  6956. this.$forceUpdate();
  6957. })
  6958. .catch((err) => { });
  6959. },
  6960. getTemplateOid() {
  6961. let params = {
  6962. oid: this.oid,
  6963. };
  6964. this.ajax
  6965. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6966. .then((res) => {
  6967. if (res.data[0].length) {
  6968. this.templateArray = [...res.data[0], ...this.templateArray];
  6969. }
  6970. this.getTemplateOrg();
  6971. this.$forceUpdate();
  6972. })
  6973. .catch((err) => { });
  6974. },
  6975. getTemplateOrg() {
  6976. let params = {
  6977. oid: this.org,
  6978. };
  6979. this.ajax
  6980. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6981. .then((res) => {
  6982. if (res.data[0].length) {
  6983. this.templateArray = [...res.data[0], ...this.templateArray];
  6984. }
  6985. this.$forceUpdate();
  6986. })
  6987. .catch((err) => { });
  6988. },
  6989. clearChoose() {
  6990. this.clearArray.splice(this.templateC.id, 1);
  6991. this.dialogVisible2 = false;
  6992. },
  6993. clearAttText() {
  6994. this.AttText = {
  6995. title: "",
  6996. text: "",
  6997. };
  6998. this.dialogVisible6 = false;
  6999. },
  7000. clearLine() {
  7001. this.line = "";
  7002. this.dialogVisible7 = false;
  7003. },
  7004. openTemplate(){
  7005. this.ctJson = {}
  7006. this.templateDialog = true
  7007. },
  7008. checkctJson(json){
  7009. if(this.ctJson.id == json.id){
  7010. this.ctJson = {}
  7011. }else{
  7012. this.ctJson = json
  7013. }
  7014. },
  7015. addTemplate(res){
  7016. let _this = this;
  7017. let _res = []
  7018. if(res.id == 1){
  7019. _res = [
  7020. {
  7021. dyName: "", //单元标题
  7022. easy: 1,
  7023. chapterInfo: [
  7024. {
  7025. isread: false,
  7026. chapterid: this.guid(),
  7027. title: "",
  7028. courseName: "",
  7029. taskJson: [
  7030. {
  7031. task: "",
  7032. taskDetail: "",
  7033. chapterData: [],
  7034. toolText: "",
  7035. toolChoose: [
  7036. {
  7037. tool: [],
  7038. toolDetail: "",
  7039. toolType: 0,
  7040. askCount: 1,
  7041. askTitle: "",
  7042. askJson: [
  7043. { askstitle: "", askItem: 1, checkList: [] },
  7044. ],
  7045. },
  7046. ],
  7047. isShowTools: false,
  7048. askCount: 1,
  7049. isFold: 1,
  7050. askTitle: "",
  7051. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7052. checkJson: [{ checkCount: [], checkPerent: [] }],
  7053. homeworkList: [],
  7054. },
  7055. ],
  7056. itemCount: 1,
  7057. fileList1: [],
  7058. video: [],
  7059. testData: [],
  7060. pData: [],
  7061. templateArray: [],
  7062. },
  7063. ],
  7064. },
  7065. ];
  7066. this.updateCourseState(1)
  7067. }else if(res.id == 2){
  7068. let stageData = []
  7069. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7070. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  7071. if (!iframe && !iframe2) {
  7072. this.$message.error("请使用AI共创生成");
  7073. return;
  7074. }
  7075. let copyData = iframe ? iframe.contentWindow.copyData : false;
  7076. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  7077. if ((!copyData || !copyData.stageData || !copyData.stageData.length) && (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)) {
  7078. this.$message.error("请使用AI共创生成");
  7079. return;
  7080. }
  7081. stageData = copyData ? copyData.stageData : copyData2 ? copyData2.stageData : [''];
  7082. for (var i = 0; i < stageData.length; i++) {
  7083. _res.push({
  7084. dyName: stageData[i], //单元标题
  7085. chapterInfo: [
  7086. {
  7087. isread: false,
  7088. chapterid: this.guid(),
  7089. title: "",
  7090. courseName: "",
  7091. taskJson: [
  7092. {
  7093. task: "",
  7094. taskDetail: "",
  7095. chapterData: [],
  7096. toolText: "",
  7097. toolChoose: [
  7098. {
  7099. tool: [],
  7100. toolDetail: "",
  7101. toolType: 0,
  7102. askCount: 1,
  7103. askTitle: "",
  7104. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7105. },
  7106. ],
  7107. isShowTools: false,
  7108. askCount: 1,
  7109. isFold: 1,
  7110. askTitle: "",
  7111. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7112. checkJson: [{ checkCount: [], checkPerent: [] }],
  7113. homeworkList: [],
  7114. },
  7115. ],
  7116. itemCount: 1,
  7117. fileList1: [],
  7118. video: [],
  7119. testData: [],
  7120. pData: [],
  7121. templateArray: [],
  7122. },
  7123. ],
  7124. });
  7125. }
  7126. this.updateCourseState(1)
  7127. }else if(!Object.keys(res).length){
  7128. this.$message.error("请选择模板")
  7129. retrun;
  7130. }else{
  7131. _res = JSON.parse(res.chapters)
  7132. this.updateCourseState(parseInt(res.state))
  7133. }
  7134. _this
  7135. .$confirm("确定选择课程模板吗?此操作将删除所有已编辑课程内容。", "提示", {
  7136. confirmButtonText: "确定",
  7137. cancelButtonText: "取消",
  7138. type: "warning",
  7139. })
  7140. .then(() => {
  7141. _this.unitJson = _res;
  7142. _this.updateWork();
  7143. // _this.steps++;
  7144. _this.templateDialog = false
  7145. setTimeout(() => {
  7146. this.checkEva(this.checkId);
  7147. setTimeout(() => {
  7148. this.checkEva(this.checkId);
  7149. }, 100);
  7150. }, 1000);
  7151. })
  7152. .catch(() => {
  7153. return;
  7154. });
  7155. },
  7156. checkTemplate(res) {
  7157. let _this = this;
  7158. _this
  7159. .$confirm("确定选择课程模板吗?此操作将删除所有已编辑课程内容。", "提示", {
  7160. confirmButtonText: "确定",
  7161. cancelButtonText: "取消",
  7162. type: "warning",
  7163. })
  7164. .then(() => {
  7165. _this.unitJson = JSON.parse(res.chapters);
  7166. _this.steps++;
  7167. setTimeout(() => {
  7168. this.checkEva(this.checkId);
  7169. setTimeout(() => {
  7170. this.checkEva(this.checkId);
  7171. }, 100);
  7172. }, 1000);
  7173. })
  7174. .catch(() => {
  7175. return;
  7176. });
  7177. },
  7178. checkTemplate1(w) {
  7179. this.steps++;
  7180. },
  7181. checkTemplate2() {
  7182. let _this = this;
  7183. _this
  7184. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  7185. confirmButtonText: "确定",
  7186. cancelButtonText: "取消",
  7187. type: "warning",
  7188. })
  7189. .then(() => {
  7190. _this.unitIndex = 0;
  7191. _this.unitJson = [
  7192. {
  7193. dyName: "", //单元标题
  7194. chapterInfo: [
  7195. {
  7196. isread: false,
  7197. chapterid: this.guid(),
  7198. title: "",
  7199. courseName: "",
  7200. taskJson: [
  7201. {
  7202. task: "",
  7203. taskDetail: "",
  7204. chapterData: [],
  7205. toolText: "",
  7206. toolChoose: [
  7207. {
  7208. tool: [],
  7209. toolDetail: "",
  7210. toolType: 0,
  7211. askCount: 1,
  7212. askTitle: "",
  7213. askJson: [
  7214. { askstitle: "", askItem: 1, checkList: [] },
  7215. ],
  7216. },
  7217. ],
  7218. isShowTools: false,
  7219. askCount: 1,
  7220. isFold: 1,
  7221. askTitle: "",
  7222. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7223. checkJson: [{ checkCount: [], checkPerent: [] }],
  7224. homeworkList: [],
  7225. },
  7226. ],
  7227. itemCount: 1,
  7228. fileList1: [],
  7229. video: [],
  7230. testData: [],
  7231. pData: [],
  7232. templateArray: [],
  7233. },
  7234. ],
  7235. },
  7236. ];
  7237. this.steps++;
  7238. setTimeout(() => {
  7239. this.checkEva(this.checkId);
  7240. setTimeout(() => {
  7241. this.checkEva(this.checkId);
  7242. }, 100);
  7243. }, 1000);
  7244. this.updateWork();
  7245. })
  7246. .catch(() => {
  7247. return;
  7248. });
  7249. },
  7250. checkTemplate3() {
  7251. let _this = this;
  7252. _this
  7253. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  7254. confirmButtonText: "确定",
  7255. cancelButtonText: "取消",
  7256. type: "warning",
  7257. })
  7258. .then(() => {
  7259. _this.unitIndex = 0;
  7260. _this.unitJson = [
  7261. {
  7262. dyName: "", //单元标题
  7263. easy: 1,
  7264. chapterInfo: [
  7265. {
  7266. isread: false,
  7267. chapterid: this.guid(),
  7268. title: "",
  7269. courseName: "",
  7270. taskJson: [
  7271. {
  7272. task: "",
  7273. taskDetail: "",
  7274. chapterData: [],
  7275. toolText: "",
  7276. toolChoose: [
  7277. {
  7278. tool: [],
  7279. toolDetail: "",
  7280. toolType: 0,
  7281. askCount: 1,
  7282. askTitle: "",
  7283. askJson: [
  7284. { askstitle: "", askItem: 1, checkList: [] },
  7285. ],
  7286. },
  7287. ],
  7288. isShowTools: false,
  7289. askCount: 1,
  7290. isFold: 1,
  7291. askTitle: "",
  7292. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7293. checkJson: [{ checkCount: [], checkPerent: [] }],
  7294. homeworkList: [],
  7295. },
  7296. ],
  7297. itemCount: 1,
  7298. fileList1: [],
  7299. video: [],
  7300. testData: [],
  7301. pData: [],
  7302. templateArray: [],
  7303. },
  7304. ],
  7305. },
  7306. ];
  7307. // this.steps++;
  7308. this.updateWork();
  7309. })
  7310. .catch(() => {
  7311. return;
  7312. });
  7313. },
  7314. checkTemplate4() {
  7315. let _this = this;
  7316. _this
  7317. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  7318. confirmButtonText: "确定",
  7319. cancelButtonText: "取消",
  7320. type: "warning",
  7321. })
  7322. .then(() => {
  7323. _this.unitIndex = 0;
  7324. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  7325. this.steps++;
  7326. this.updateWork();
  7327. })
  7328. .catch(() => {
  7329. return;
  7330. });
  7331. },
  7332. wordNext() {
  7333. this.dialogVisible2 = false;
  7334. },
  7335. isAddOrUpdateAttText() {
  7336. if (this.AttTextType == 0) {
  7337. this.addAttTextMessage();
  7338. } else {
  7339. this.updateAttText();
  7340. }
  7341. },
  7342. isAddOrUpdateLine() {
  7343. if (!this.lineTitle) {
  7344. this.$message.error("请填写链接标题");
  7345. return;
  7346. }
  7347. if (this.lineType == 0) {
  7348. this.addLine();
  7349. } else {
  7350. this.updateLine();
  7351. }
  7352. },
  7353. addAttTextMessage() {
  7354. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7355. this.taskCount
  7356. ].chapterData.push({
  7357. name: this.AttText.title,
  7358. url: this.AttText.text,
  7359. type: 6,
  7360. });
  7361. this.imgChange1(null, null, 6, this.taskCount);
  7362. this.dialogVisible6 = false;
  7363. },
  7364. selectAttText(itemTaskIndex, i) {
  7365. this.AttText.title =
  7366. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7367. itemTaskIndex
  7368. ].chapterData[i].name;
  7369. this.AttText.text =
  7370. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7371. itemTaskIndex
  7372. ].chapterData[i].url;
  7373. this.taskCount = itemTaskIndex;
  7374. this.AttTextIndex = i;
  7375. this.AttTextType = 1;
  7376. this.dialogVisible6 = true;
  7377. },
  7378. updateAttText() {
  7379. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7380. this.taskCount
  7381. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  7382. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7383. this.taskCount
  7384. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  7385. this.dialogVisible6 = false;
  7386. },
  7387. addLine() {
  7388. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7389. this.lineCount
  7390. ].chapterData.push({
  7391. name: "链接",
  7392. title: this.lineTitle,
  7393. url: this.line,
  7394. type: 8,
  7395. });
  7396. this.imgChange1(null, null, 8, this.lineCount);
  7397. this.dialogVisible7 = false;
  7398. },
  7399. selectLine(itemTaskIndex, i) {
  7400. this.line =
  7401. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7402. itemTaskIndex
  7403. ].chapterData[i].url;
  7404. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7405. itemTaskIndex
  7406. ].chapterData[i].title
  7407. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7408. .chapterData[i].title
  7409. : "";
  7410. this.taskCount = itemTaskIndex;
  7411. this.lineCount = i;
  7412. this.lineType = 1;
  7413. this.dialogVisible7 = true;
  7414. },
  7415. openUpdateSource(itemTaskIndex, i) {
  7416. this.sourceData = {}
  7417. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  7418. this.sourceData[source.id] = {}
  7419. this.sourceData[source.id].name = source.title
  7420. this.sourceData[source.id].url = source.url
  7421. this.dialogVisibleSource = true;
  7422. this.updateSourcePan = true;
  7423. this.taskCount = itemTaskIndex;
  7424. this.lineCount = i;
  7425. },
  7426. updateLine() {
  7427. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7428. this.taskCount
  7429. ].chapterData[this.lineCount].url = this.line;
  7430. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7431. this.taskCount
  7432. ].chapterData[this.lineCount].title = this.lineTitle;
  7433. this.dialogVisible7 = false;
  7434. },
  7435. addPP() {
  7436. this.dialogVisible3 = true;
  7437. },
  7438. goTo(path) {
  7439. this.$router.push(path);
  7440. },
  7441. openTools(itemTaskIndex, i, toolIndex) {
  7442. this.toolIndex = toolIndex;
  7443. this.taskCount = itemTaskIndex;
  7444. if (i == 4) {
  7445. if (toolIndex == null) {
  7446. var a =
  7447. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7448. .chapterData;
  7449. for (var i = 0; i < a.length; i++) {
  7450. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  7451. this.askJson =
  7452. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7453. itemTaskIndex
  7454. ].chapterData[i].askJson;
  7455. }
  7456. }
  7457. } else {
  7458. this.askJson = JSON.parse(
  7459. JSON.stringify(
  7460. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7461. itemTaskIndex
  7462. ].toolChoose[toolIndex]
  7463. )
  7464. );
  7465. }
  7466. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  7467. this.dialogVisible5 = true;
  7468. } else if (i == 45) {
  7469. if (
  7470. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7471. .toolChoose[toolIndex].testJson
  7472. ) {
  7473. this.testJson = JSON.parse(
  7474. JSON.stringify(
  7475. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7476. itemTaskIndex
  7477. ].toolChoose[toolIndex].testJson
  7478. )
  7479. );
  7480. } else {
  7481. var testJson = {
  7482. testCount: 1,
  7483. testTitle: "",
  7484. testJson: [
  7485. {
  7486. teststitle: "",
  7487. testItem: 1,
  7488. checkList: [],
  7489. timuList: [],
  7490. answer: [],
  7491. type: "1",
  7492. },
  7493. ],
  7494. };
  7495. this.testJson = testJson;
  7496. }
  7497. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  7498. this.dialogVisibleChoice = true;
  7499. } else if (i == 47) {
  7500. if (
  7501. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7502. .toolChoose[toolIndex].sentenceList
  7503. ) {
  7504. this.sentenceList = JSON.parse(
  7505. JSON.stringify(
  7506. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7507. itemTaskIndex
  7508. ].toolChoose[toolIndex].sentenceList
  7509. )
  7510. );
  7511. } else {
  7512. var sentenceList = [
  7513. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7514. ];
  7515. this.sentenceList = sentenceList;
  7516. }
  7517. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  7518. this.dialogVisibleSentence = true;
  7519. } else if (i == 48) {
  7520. if (
  7521. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7522. .toolChoose[toolIndex].tableJson
  7523. ) {
  7524. this.tableJson = JSON.parse(
  7525. JSON.stringify(
  7526. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7527. itemTaskIndex
  7528. ].toolChoose[toolIndex].tableJson
  7529. )
  7530. );
  7531. } else {
  7532. var tableJson = { text: "" };
  7533. this.tableJson = tableJson;
  7534. }
  7535. this.dialogVisibleTable = true;
  7536. } else if (i == 52) {
  7537. if (
  7538. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7539. .toolChoose[toolIndex].wordJson
  7540. ) {
  7541. this.wordJson = JSON.parse(
  7542. JSON.stringify(
  7543. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7544. itemTaskIndex
  7545. ].toolChoose[toolIndex].wordJson
  7546. )
  7547. );
  7548. } else {
  7549. var wordJson = { text: "" };
  7550. this.wordJson = wordJson;
  7551. }
  7552. this.dialogVisibleWord = true;
  7553. // else if (i == 50) {
  7554. // if (
  7555. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7556. // .toolChoose[toolIndex].uploadJson
  7557. // ) {
  7558. // this.uploadJson = JSON.parse(
  7559. // JSON.stringify(
  7560. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7561. // itemTaskIndex
  7562. // ].toolChoose[toolIndex].uploadJson
  7563. // )
  7564. // );
  7565. // } else {
  7566. // var uploadJson = [];
  7567. // this.uploadJson = uploadJson;
  7568. // }
  7569. // this.dialogVisibleMoreUpload = true;
  7570. // }
  7571. } else if (i == 10) {
  7572. if (
  7573. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7574. .toolChoose[toolIndex].preTime
  7575. ) {
  7576. this.preTime = JSON.parse(
  7577. JSON.stringify(
  7578. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7579. itemTaskIndex
  7580. ].toolChoose[toolIndex].preTime
  7581. )
  7582. );
  7583. } else {
  7584. var preTime = 0;
  7585. this.preTime = preTime;
  7586. }
  7587. this.dialogVisiblePreTime = true;
  7588. } else if (i == 49) {
  7589. if (
  7590. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7591. .toolChoose[toolIndex].groupJson
  7592. ) {
  7593. this.groupJson = JSON.parse(
  7594. JSON.stringify(
  7595. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7596. itemTaskIndex
  7597. ].toolChoose[toolIndex].groupJson
  7598. )
  7599. );
  7600. } else {
  7601. var groupJson = {
  7602. group: [{ name: "第1组" }],
  7603. number: undefined,
  7604. islock: 1,
  7605. };
  7606. this.groupJson = groupJson;
  7607. }
  7608. this.dialogVisibleGroup = true;
  7609. } else if (i == 62) {
  7610. if (
  7611. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7612. .toolChoose[toolIndex].videoJson
  7613. ) {
  7614. this.videoJson = JSON.parse(
  7615. JSON.stringify(
  7616. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7617. itemTaskIndex
  7618. ].toolChoose[toolIndex].videoJson
  7619. )
  7620. );
  7621. } else {
  7622. var videoJson = {
  7623. video: "",
  7624. setting: [],
  7625. };
  7626. this.videoJson = videoJson;
  7627. }
  7628. this.dialogVisibleVideo = true;
  7629. } else if (i == 15) {
  7630. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7631. itemTaskIndex
  7632. ].toolChoose[toolIndex].answerQ
  7633. ? JSON.parse(
  7634. JSON.stringify(
  7635. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7636. itemTaskIndex
  7637. ].toolChoose[toolIndex].answerQ
  7638. )
  7639. )
  7640. : "";
  7641. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  7642. this.dialogVisible8 = true;
  7643. } else if (i == 40) {
  7644. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7645. itemTaskIndex
  7646. ].toolChoose[toolIndex].rateJson
  7647. ? JSON.parse(
  7648. JSON.stringify(
  7649. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7650. itemTaskIndex
  7651. ].toolChoose[toolIndex].rateJson
  7652. )
  7653. )
  7654. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  7655. this.selectSteps = 1;
  7656. this.dialogVisibleRate = true;
  7657. } else if (i == 42) {
  7658. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7659. itemTaskIndex
  7660. ].toolChoose[toolIndex].answerQ
  7661. ? JSON.parse(
  7662. JSON.stringify(
  7663. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7664. itemTaskIndex
  7665. ].toolChoose[toolIndex].answerQ
  7666. )
  7667. )
  7668. : "";
  7669. this.dialogVisibleMp3 = true;
  7670. } else if (i == 41) {
  7671. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7672. itemTaskIndex
  7673. ].toolChoose[toolIndex].selectJson
  7674. ? JSON.parse(
  7675. JSON.stringify(
  7676. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7677. itemTaskIndex
  7678. ].toolChoose[toolIndex].selectJson
  7679. )
  7680. )
  7681. : { url: "", select: [], answer: [] };
  7682. this.selectSteps = 1;
  7683. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  7684. this.dialogVisibleSelect = true;
  7685. } else if (i == 3) {
  7686. top.postMessage(
  7687. {
  7688. tools: "3y",
  7689. cid: this.cid,
  7690. stage: this.unitIndex,
  7691. task: itemTaskIndex,
  7692. tool: toolIndex,
  7693. },
  7694. "*"
  7695. );
  7696. } else if (i == 1) {
  7697. top.postMessage(
  7698. {
  7699. tools: "1y",
  7700. cid: this.cid,
  7701. stage: this.unitIndex,
  7702. task: itemTaskIndex,
  7703. tool: toolIndex,
  7704. },
  7705. "*"
  7706. );
  7707. } else if (i == 57) {
  7708. top.postMessage(
  7709. {
  7710. tools: "57y",
  7711. cid: this.cid,
  7712. stage: this.unitIndex,
  7713. task: itemTaskIndex,
  7714. tool: toolIndex,
  7715. },
  7716. "*"
  7717. );
  7718. }else if(i == 69){
  7719. this.englishList = {};
  7720. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7721. itemTaskIndex
  7722. ].toolChoose[toolIndex].englishList
  7723. ? JSON.parse(
  7724. JSON.stringify(
  7725. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7726. itemTaskIndex
  7727. ].toolChoose[toolIndex].englishList
  7728. )
  7729. )
  7730. : { };
  7731. this.$forceUpdate();
  7732. this.englishDialogVisible = true;
  7733. }else if(i == 70){
  7734. this.englishVoiceJson = {};
  7735. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7736. itemTaskIndex
  7737. ].toolChoose[toolIndex].englishVoiceJson
  7738. ? JSON.parse(
  7739. JSON.stringify(
  7740. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7741. itemTaskIndex
  7742. ].toolChoose[toolIndex].englishVoiceJson
  7743. )
  7744. )
  7745. : {
  7746. title:'',
  7747. detail:'',
  7748. array:[]
  7749. };
  7750. this.$forceUpdate();
  7751. this.EnglishVoiceDialog = true;
  7752. }
  7753. },
  7754. setEnglishVoiceJson(val){
  7755. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(JSON.stringify(val))
  7756. this.$forceUpdate();
  7757. if (
  7758. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7759. .toolChoose[this.toolIndex].tool != 70
  7760. ) {
  7761. this.addTools(70, this.taskCount, this.toolIndex);
  7762. }
  7763. },
  7764. chapAddTools(i) {
  7765. if (this.chapTools[0].tools.length == 0) {
  7766. this.chapTools[0].tools.push(i);
  7767. } else {
  7768. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7769. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7770. } else {
  7771. this.chapTools[0].tools.push(i);
  7772. }
  7773. }
  7774. this.$forceUpdate();
  7775. },
  7776. addChaptersDataTools() {
  7777. if (this.chapTools[0].tools.indexOf(4) != -1) {
  7778. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7779. this.chapCount
  7780. ].chapterData.push({
  7781. name: this.chapTools[0].toolDetail,
  7782. url: this.chapTools[0].tools,
  7783. type: 7,
  7784. askJson: this.askJson,
  7785. });
  7786. } else {
  7787. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7788. this.chapCount
  7789. ].chapterData.push({
  7790. name: this.chapTools[0].toolDetail,
  7791. url: this.chapTools[0].tools,
  7792. type: 7,
  7793. });
  7794. }
  7795. this.imgChange1(null, null, 7, this.chapCount);
  7796. this.dialogVisible4 = false;
  7797. },
  7798. addTools(i, itemTaskIndex, toolIndex) {
  7799. // if (
  7800. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7801. // .toolChoose[toolIndex].tool.length == 0
  7802. // ) {
  7803. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7804. // itemTaskIndex
  7805. // ].toolChoose[toolIndex].tool.push(i);
  7806. // } else {
  7807. // if (
  7808. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7809. // itemTaskIndex
  7810. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7811. // ) {
  7812. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7813. // itemTaskIndex
  7814. // ].toolChoose[toolIndex].tool.splice(
  7815. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7816. // itemTaskIndex
  7817. // ].toolChoose[toolIndex].tool.indexOf(i),
  7818. // 1
  7819. // );
  7820. // } else {
  7821. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7822. // itemTaskIndex
  7823. // ].toolChoose[toolIndex].tool.push(i);
  7824. // }
  7825. // console.log(
  7826. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7827. // .toolChoose[toolIndex].tool
  7828. // );
  7829. // }
  7830. if (i == 4) {
  7831. if (
  7832. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7833. .toolChoose[toolIndex].askJson.askTitle == "" ||
  7834. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7835. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  7836. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7837. .toolChoose[toolIndex].askJson[0].checkList < 2
  7838. ) {
  7839. this.openTools(itemTaskIndex, 4, toolIndex);
  7840. // this.$message({
  7841. // message: "请填写完整问卷内容",
  7842. // type: "error",
  7843. // });
  7844. return;
  7845. }
  7846. }
  7847. if (i == 45) {
  7848. if (
  7849. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7850. .toolChoose[toolIndex].testJson ||
  7851. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7852. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  7853. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7854. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  7855. ) {
  7856. this.openTools(itemTaskIndex, 45, toolIndex);
  7857. // this.$message({
  7858. // message: "请填写完整问卷内容",
  7859. // type: "error",
  7860. // });
  7861. return;
  7862. }
  7863. }
  7864. if (i == 47) {
  7865. if (
  7866. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7867. .toolChoose[toolIndex].sentenceList ||
  7868. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7869. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  7870. ) {
  7871. this.openTools(itemTaskIndex, 47, toolIndex);
  7872. return;
  7873. }
  7874. }
  7875. if(i == 69){
  7876. if (
  7877. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7878. .toolChoose[toolIndex].englishList
  7879. ) {
  7880. this.openTools(itemTaskIndex, 69, toolIndex);
  7881. return;
  7882. }
  7883. }
  7884. if(i == 70){
  7885. if (
  7886. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7887. .toolChoose[toolIndex].englishVoiceJson
  7888. ) {
  7889. this.openTools(itemTaskIndex, 70, toolIndex);
  7890. return;
  7891. }
  7892. }
  7893. // if (i == 48) {
  7894. // if (
  7895. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7896. // .toolChoose[toolIndex].tableJson
  7897. // ) {
  7898. // this.openTools(itemTaskIndex, 48, toolIndex);
  7899. // return;
  7900. // }
  7901. // }
  7902. // if (i == 50) {
  7903. // if (
  7904. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7905. // .toolChoose[toolIndex].uploadJson
  7906. // ) {
  7907. // this.openTools(itemTaskIndex, 50, toolIndex);
  7908. // return;
  7909. // }
  7910. // }
  7911. if (i == 49) {
  7912. if (
  7913. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7914. .toolChoose[toolIndex].groupJson
  7915. ) {
  7916. this.openTools(itemTaskIndex, 49, toolIndex);
  7917. return;
  7918. }
  7919. }
  7920. if (i == 62) {
  7921. if (
  7922. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7923. .toolChoose[toolIndex].videoJson
  7924. ) {
  7925. this.openTools(itemTaskIndex, 62, toolIndex);
  7926. return;
  7927. }
  7928. }
  7929. if (i == 15) {
  7930. if (
  7931. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7932. .toolChoose[toolIndex].answerQ ||
  7933. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7934. .toolChoose[toolIndex].answerQ == ""
  7935. ) {
  7936. this.openTools(itemTaskIndex, 15, toolIndex);
  7937. // this.$message({
  7938. // message: "请填写问答内容",
  7939. // type: "error",
  7940. // });
  7941. return;
  7942. }
  7943. }
  7944. if (i == 40) {
  7945. if (
  7946. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7947. .toolChoose[toolIndex].rateJson ||
  7948. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7949. .toolChoose[toolIndex].rateJson.length
  7950. ) {
  7951. this.openTools(itemTaskIndex, 40, toolIndex);
  7952. return;
  7953. }
  7954. }
  7955. if (i == 41) {
  7956. if (
  7957. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7958. .toolChoose[toolIndex].selectJson ||
  7959. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7960. .toolChoose[toolIndex].selectJson.url == "" ||
  7961. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7962. .toolChoose[toolIndex].selectJson.select.length ||
  7963. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7964. .toolChoose[toolIndex].selectJson.answer.length
  7965. ) {
  7966. this.openTools(itemTaskIndex, 41, toolIndex);
  7967. return;
  7968. }
  7969. }
  7970. if (i == 42) {
  7971. if (
  7972. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7973. .toolChoose[toolIndex].answerQ ||
  7974. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7975. .toolChoose[toolIndex].answerQ == ""
  7976. ) {
  7977. this.openTools(itemTaskIndex, 42, toolIndex);
  7978. return;
  7979. }
  7980. }
  7981. if (
  7982. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7983. .toolChoose[toolIndex].tool.length > 0
  7984. ) {
  7985. if (
  7986. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7987. itemTaskIndex
  7988. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7989. ) {
  7990. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7991. itemTaskIndex
  7992. ].toolChoose[toolIndex].tool.splice(
  7993. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7994. itemTaskIndex
  7995. ].toolChoose[toolIndex].tool.indexOf(i),
  7996. 1
  7997. );
  7998. } else {
  7999. // this.$message({
  8000. // message: "每个工具只能添加一个",
  8001. // type: "error",
  8002. // });
  8003. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8004. itemTaskIndex
  8005. ].toolChoose[toolIndex].tool = [];
  8006. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8007. itemTaskIndex
  8008. ].toolChoose[toolIndex].tool.push(i);
  8009. }
  8010. } else {
  8011. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8012. itemTaskIndex
  8013. ].toolChoose[toolIndex].tool.push(i);
  8014. }
  8015. this.$forceUpdate();
  8016. },
  8017. addAskList(index) {
  8018. this.askJson.askJson.splice(index + 1, 0, {
  8019. askstitle: "",
  8020. askItem: 1,
  8021. checkList: [],
  8022. })
  8023. this.askJson.askCount++;
  8024. },
  8025. addTestList(index) {
  8026. this.testJson.testJson.splice(index + 1, 0, {
  8027. teststitle: "",
  8028. testItem: 1,
  8029. checkList: [],
  8030. timuList: [],
  8031. answer: [],
  8032. type: "1",
  8033. })
  8034. this.testJson.testCount++;
  8035. },
  8036. deleteAskList(index) {
  8037. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  8038. this.askJson.askJson.splice(index, 1);
  8039. this.askJson.askCount--;
  8040. } else {
  8041. let _this = this;
  8042. _this
  8043. .$confirm("此操作不可撤销,是否继续?", "提示", {
  8044. confirmButtonText: "确定",
  8045. cancelButtonText: "取消",
  8046. type: "warning",
  8047. })
  8048. .then(() => {
  8049. _this.askJson.askJson.splice(index, 1);
  8050. _this.askJson.askCount--;
  8051. })
  8052. .catch(() => {
  8053. return;
  8054. });
  8055. }
  8056. },
  8057. deleteTestList(index) {
  8058. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  8059. this.testJson.testJson.splice(index, 1);
  8060. this.testJson.testCount--;
  8061. } else {
  8062. let _this = this;
  8063. _this
  8064. .$confirm("此操作不可撤销,是否继续?", "提示", {
  8065. confirmButtonText: "确定",
  8066. cancelButtonText: "取消",
  8067. type: "warning",
  8068. })
  8069. .then(() => {
  8070. _this.testJson.testJson.splice(index, 1);
  8071. _this.testJson.testCount--;
  8072. })
  8073. .catch(() => {
  8074. return;
  8075. });
  8076. }
  8077. },
  8078. askMove(type, index) {
  8079. if (type == 1) {
  8080. if (index > 0) {
  8081. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  8082. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  8083. this.askJson.askJson[index - 1] = b;
  8084. this.askJson.askJson[index] = a;
  8085. }
  8086. } else {
  8087. if (
  8088. index < this.askJson.askJson.length - 1
  8089. ) {
  8090. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  8091. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  8092. this.askJson.askJson[index + 1] = b;
  8093. this.askJson.askJson[index] = a;
  8094. }
  8095. }
  8096. this.$forceUpdate();
  8097. },
  8098. checkMove(type, index, checkIndex) {
  8099. if (type == 1) {
  8100. if (checkIndex > 0) {
  8101. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  8102. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  8103. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  8104. this.askJson.askJson[index].checkList[checkIndex] = a;
  8105. }
  8106. } else {
  8107. if (
  8108. checkIndex < this.askJson.askJson[index].checkList.length - 1
  8109. ) {
  8110. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  8111. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  8112. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  8113. this.askJson.askJson[index].checkList[checkIndex] = a;
  8114. }
  8115. }
  8116. this.$forceUpdate();
  8117. },
  8118. testMove(type, index) {
  8119. if (type == 1) {
  8120. if (index > 0) {
  8121. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  8122. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  8123. this.testJson.testJson[index - 1] = b;
  8124. this.testJson.testJson[index] = a;
  8125. }
  8126. } else {
  8127. if (
  8128. index < this.testJson.testJson.length - 1
  8129. ) {
  8130. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  8131. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  8132. this.testJson.testJson[index + 1] = b;
  8133. this.testJson.testJson[index] = a;
  8134. }
  8135. }
  8136. this.$forceUpdate();
  8137. },
  8138. tcheckMove(type, index, checkIndex) {
  8139. if (type == 1) {
  8140. if (checkIndex > 0) {
  8141. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  8142. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8143. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  8144. this.testJson.testJson[index].checkList[checkIndex] = a;
  8145. }
  8146. } else {
  8147. if (
  8148. checkIndex < this.testJson.testJson[index].checkList.length - 1
  8149. ) {
  8150. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  8151. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8152. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  8153. this.testJson.testJson[index].checkList[checkIndex] = a;
  8154. }
  8155. }
  8156. this.$forceUpdate();
  8157. },
  8158. addcheckList(json, index) {
  8159. // json.checkList.length++;
  8160. json.checkList.splice(index + 1, 0, '')
  8161. json.askItem++;
  8162. this.$forceUpdate();
  8163. },
  8164. deletecheckList(json, index) {
  8165. // json.checkList.length--;
  8166. json.checkList.splice(index, 1)
  8167. json.askItem--;
  8168. this.$forceUpdate();
  8169. },
  8170. addTcheckList(json, index) {
  8171. // json.checkList.length++;
  8172. json.checkList.splice(index + 1, 0, '')
  8173. json.testItem++;
  8174. this.$forceUpdate();
  8175. },
  8176. deleteTcheckList(json, index) {
  8177. // json.checkList.length--;
  8178. json.checkList.splice(index, 1)
  8179. json.testItem--;
  8180. this.$forceUpdate();
  8181. },
  8182. checkTestType(type, json) {
  8183. json.type = type;
  8184. setTimeout(() => {
  8185. json.answer = [];
  8186. }, 100)
  8187. },
  8188. checkAskType(type, json) {
  8189. json.type = type;
  8190. // json.checkList = [];
  8191. this.$forceUpdate();
  8192. },
  8193. addSelectList(json) {
  8194. json.select.push("");
  8195. json.answer.push("");
  8196. },
  8197. deleteSelectList(json) {
  8198. // json.select.length--;
  8199. // json.answer.length--;
  8200. json.select.splice(json.select.length - 1, 1);
  8201. json.answer.splice(json.answer.length - 1, 1);
  8202. },
  8203. addAsk() {
  8204. if (this.askJson.askTitle === "") {
  8205. this.$message.error("标题不能为空!");
  8206. return;
  8207. }
  8208. var aj = this.askJson.askJson;
  8209. var b = 1;
  8210. for (var i = 0; i < aj.length; i++) {
  8211. if (aj[i].askstitle === "") {
  8212. var a = 1;
  8213. for (let index = 0; index < aj[i].askItem; index++) {
  8214. const element = aj[i].checkList[index]
  8215. ? aj[i].checkList[index]
  8216. : "";
  8217. if (element != "") {
  8218. b++;
  8219. this.$message.error(`请将题目${i + 1}填写完整。`);
  8220. return;
  8221. } else {
  8222. a++;
  8223. }
  8224. }
  8225. if (b == 1) {
  8226. this.$message.error("至少填写一个问题");
  8227. return;
  8228. }
  8229. } else if (aj[i].askstitle != "") {
  8230. for (let index = 0; index < aj[i].askItem; index++) {
  8231. const element = aj[i].checkList[index]
  8232. ? aj[i].checkList[index]
  8233. : "";
  8234. var index = 0;
  8235. for (var z = 0; z < aj[i].checkList.length; z++) {
  8236. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8237. if (checkC != "") {
  8238. index++;
  8239. } else {
  8240. this.$message.error(`题目${i + 1}选项不能为空!`);
  8241. return;
  8242. }
  8243. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8244. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8245. if (checkC == checkC2) {
  8246. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8247. return;
  8248. }
  8249. }
  8250. }
  8251. b++;
  8252. if (index < 2) {
  8253. this.$message.error("每道题目至少需要设置2个选项。");
  8254. return;
  8255. }
  8256. }
  8257. }
  8258. }
  8259. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  8260. var elc = el.checkList.filter((element) => {
  8261. return element != "";
  8262. });
  8263. return el.askstitle != "" && elc.length != 0;
  8264. });
  8265. if (!this.dialogVisible4) {
  8266. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8267. this.taskCount
  8268. ].toolChoose[this.toolIndex] = this.askJson;
  8269. }
  8270. this.dialogVisible5 = false;
  8271. if (
  8272. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8273. .toolChoose[this.toolIndex].tool != 4
  8274. ) {
  8275. this.addTools(4, this.taskCount, this.toolIndex);
  8276. }
  8277. },
  8278. addTest() {
  8279. // if (this.testJson.testTitle === "") {
  8280. // this.$message.error("标题不能为空!");
  8281. // return;
  8282. // }
  8283. var aj = this.testJson.testJson;
  8284. var b = 1;
  8285. for (var i = 0; i < aj.length; i++) {
  8286. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  8287. var a = 1;
  8288. for (let index = 0; index < aj[i].testItem; index++) {
  8289. const element = aj[i].checkList[index]
  8290. ? aj[i].checkList[index]
  8291. : "";
  8292. if (element != "") {
  8293. b++;
  8294. this.$message.error(`请将题目${i + 1}填写完整。`);
  8295. return;
  8296. } else {
  8297. a++;
  8298. }
  8299. }
  8300. if (b == 1) {
  8301. this.$message.error("至少填写一个问题");
  8302. return;
  8303. }
  8304. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  8305. for (let index = 0; index < aj[i].testItem; index++) {
  8306. const element = aj[i].checkList[index]
  8307. ? aj[i].checkList[index]
  8308. : "";
  8309. var index = 0;
  8310. for (var z = 0; z < aj[i].checkList.length; z++) {
  8311. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8312. if (checkC != "") {
  8313. index++;
  8314. } else {
  8315. this.$message.error(`题目${i + 1}选项不能为空!`);
  8316. return;
  8317. }
  8318. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8319. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8320. if (checkC == checkC2) {
  8321. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8322. return;
  8323. }
  8324. }
  8325. }
  8326. b++;
  8327. if (index < 2) {
  8328. this.$message.error("每道题目至少需要设置2个选项。");
  8329. return;
  8330. }
  8331. if (
  8332. (aj[i].type == "2" && !aj[i].answer.length) ||
  8333. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  8334. ) {
  8335. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  8336. return;
  8337. }
  8338. }
  8339. }
  8340. }
  8341. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8342. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8343. var elc = el.checkList.filter((element) => {
  8344. return element != "";
  8345. });
  8346. return (
  8347. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8348. );
  8349. });
  8350. isTestJson.testCount = isTestJson.testJson.length;
  8351. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8352. this.taskCount
  8353. ].toolChoose[this.toolIndex].testJson = isTestJson;
  8354. this.dialogVisibleChoice = false;
  8355. if (
  8356. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8357. .toolChoose[this.toolIndex].tool != 45
  8358. ) {
  8359. this.addTools(45, this.taskCount, this.toolIndex);
  8360. }
  8361. },
  8362. addVideoJson(videoJson) {
  8363. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8364. this.taskCount
  8365. ].toolChoose[this.toolIndex].videoJson = videoJson;
  8366. this.dialogVisibleVideo = false;
  8367. if (
  8368. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8369. .toolChoose[this.toolIndex].tool != 62
  8370. ) {
  8371. this.addTools(62, this.taskCount, this.toolIndex);
  8372. }
  8373. },
  8374. //自动获取剪贴板
  8375. pasteOption() {
  8376. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8377. if (!iframe) {
  8378. this.$message.error("请使用AI共创生成题目");
  8379. return;
  8380. }
  8381. let copyData = iframe.contentWindow.copyData;
  8382. if (!copyData || !copyData.selectData.length) {
  8383. this.$message.error("请使用AI共创生成题目");
  8384. return;
  8385. }
  8386. let selectData = copyData.selectData;
  8387. for (var i = 0; i < selectData.length; i++) {
  8388. let answer = 0;
  8389. switch (selectData[i].answer[0]) {
  8390. case "A":
  8391. answer = 0;
  8392. break;
  8393. case "B":
  8394. answer = 1;
  8395. break;
  8396. case "C":
  8397. answer = 2;
  8398. break;
  8399. case "D":
  8400. answer = 3;
  8401. break;
  8402. case "E":
  8403. answer = 4;
  8404. break;
  8405. default:
  8406. break;
  8407. }
  8408. this.testJson.testJson.push({
  8409. teststitle: selectData[i].subject,
  8410. testItem: selectData[i].options.length,
  8411. checkList: selectData[i].options,
  8412. timuList: [],
  8413. answer: answer,
  8414. type: "1",
  8415. });
  8416. this.testJson.testCount++;
  8417. }
  8418. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8419. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8420. var elc = el.checkList.filter((element) => {
  8421. return element != "";
  8422. });
  8423. return (
  8424. el.teststitle != "" || el.timuList.length > 0 || elc.length != 0
  8425. );
  8426. });
  8427. isTestJson.testCount = isTestJson.testJson.length;
  8428. if(!isTestJson.testCount){
  8429. return;
  8430. }
  8431. this.testJson = isTestJson;
  8432. this.$forceUpdate();
  8433. },
  8434. pasteTask(taskJson) {
  8435. let stageTasksData = [];
  8436. if(taskJson){
  8437. stageTasksData = taskJson
  8438. }else {
  8439. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8440. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  8441. if (!iframe && !iframe2) {
  8442. this.$message.error("请使用AI共创生成");
  8443. return;
  8444. }
  8445. let copyData = iframe ? iframe.contentWindow.copyData : false;
  8446. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  8447. if ((!copyData || !copyData.tasksData || !copyData.tasksData.length) && (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)) {
  8448. this.$message.error("请使用AI共创生成");
  8449. return;
  8450. }
  8451. stageTasksData = copyData ? copyData.tasksData : copyData2 ? copyData2.tasksData : [{taskName:'',taskDecs:''}];
  8452. }
  8453. let taskA = [];
  8454. let tasks = stageTasksData;
  8455. for (var j = 0; j < tasks.length; j++) {
  8456. taskA.push({
  8457. task: tasks[j].taskName,
  8458. taskDetail: tasks[j].taskDecs,
  8459. chapterData: [],
  8460. toolText: "",
  8461. toolChoose: [
  8462. {
  8463. tool: [],
  8464. toolDetail: "",
  8465. toolType: 0,
  8466. askCount: 1,
  8467. askTitle: "",
  8468. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8469. },
  8470. ],
  8471. isShowTools: false,
  8472. askCount: 1,
  8473. isFold: 1,
  8474. askTitle: "",
  8475. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8476. checkJson: [{ checkCount: [], checkPerent: [] }],
  8477. homeworkList: [],
  8478. });
  8479. }
  8480. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  8481. this.$forceUpdate();
  8482. },
  8483. pasteStage(stageJson) {
  8484. let stageData = [];
  8485. if(stageJson){
  8486. stageData = stageJson
  8487. }else{
  8488. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8489. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  8490. if (!iframe && !iframe2) {
  8491. this.$message.error("请使用AI共创生成");
  8492. return;
  8493. }
  8494. let copyData = iframe ? iframe.contentWindow.copyData : false;
  8495. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  8496. if ((!copyData || !copyData.stageData || !copyData.stageData.length) && (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)) {
  8497. this.$message.error("请使用AI共创生成");
  8498. return;
  8499. }
  8500. stageData = copyData ? copyData.stageData : copyData2 ? copyData2.stageData : [''];
  8501. }
  8502. let stage = [];
  8503. for (var i = 0; i < stageData.length; i++) {
  8504. stage.push({
  8505. dyName: stageData[i], //单元标题
  8506. chapterInfo: [
  8507. {
  8508. isread: false,
  8509. chapterid: this.guid(),
  8510. title: "",
  8511. courseName: "",
  8512. taskJson: [
  8513. {
  8514. task: "",
  8515. taskDetail: "",
  8516. chapterData: [],
  8517. toolText: "",
  8518. toolChoose: [
  8519. {
  8520. tool: [],
  8521. toolDetail: "",
  8522. toolType: 0,
  8523. askCount: 1,
  8524. askTitle: "",
  8525. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8526. },
  8527. ],
  8528. isShowTools: false,
  8529. askCount: 1,
  8530. isFold: 1,
  8531. askTitle: "",
  8532. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8533. checkJson: [{ checkCount: [], checkPerent: [] }],
  8534. homeworkList: [],
  8535. },
  8536. ],
  8537. itemCount: 1,
  8538. fileList1: [],
  8539. video: [],
  8540. testData: [],
  8541. pData: [],
  8542. templateArray: [],
  8543. },
  8544. ],
  8545. });
  8546. }
  8547. let _this = this;
  8548. if(stageJson){
  8549. if(!_this.cid){
  8550. _this.unitJson = stage;
  8551. }else{
  8552. _this.unitIndex = 0;
  8553. _this.unitJson = stage;
  8554. _this.updateWork();
  8555. }
  8556. }else{
  8557. _this
  8558. .$confirm("确定选择智能粘贴模板吗?修改课程时无法重置课程模板。", "提示", {
  8559. confirmButtonText: "确定",
  8560. cancelButtonText: "取消",
  8561. type: "warning",
  8562. })
  8563. .then(() => {
  8564. _this.unitIndex = 0;
  8565. _this.unitJson = stage;
  8566. // _this.steps++;
  8567. _this.updateWork();
  8568. })
  8569. .catch(() => {
  8570. return;
  8571. });
  8572. }
  8573. },
  8574. openStageBox() {
  8575. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson))
  8576. this.dialogVisibleStageChange = true;
  8577. },
  8578. updateChange() {
  8579. this.$confirm(
  8580. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  8581. "提示",
  8582. {
  8583. confirmButtonText: "确定",
  8584. cancelButtonText: "取消",
  8585. type: "warning",
  8586. }
  8587. )
  8588. .then(() => {
  8589. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3))
  8590. this.updateWork()
  8591. this.dialogVisibleStageChange = false;
  8592. })
  8593. .catch(() => {
  8594. return;
  8595. });
  8596. },
  8597. addAnswer() {
  8598. if (this.answerQ == "") {
  8599. this.$message.error("请输入您想要问的问题");
  8600. return;
  8601. }
  8602. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8603. this.taskCount
  8604. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8605. this.dialogVisible8 = false;
  8606. if (
  8607. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8608. .toolChoose[this.toolIndex].tool != 15
  8609. ) {
  8610. this.addTools(15, this.taskCount, this.toolIndex);
  8611. }
  8612. },
  8613. addMp3Answer() {
  8614. if (this.answerQ == "") {
  8615. this.$message.error("请输入您想要回答的问题");
  8616. return;
  8617. }
  8618. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8619. this.taskCount
  8620. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8621. this.dialogVisibleMp3 = false;
  8622. },
  8623. addRateAnswer() {
  8624. var a = 1;
  8625. for (var i = 0; i < this.rateJson.length; i++) {
  8626. if (this.rateJson[i].value == "") {
  8627. a = 2;
  8628. break;
  8629. }
  8630. }
  8631. if (a == 2) {
  8632. this.$message.error("请把评价信息填写完整");
  8633. return;
  8634. }
  8635. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8636. this.taskCount
  8637. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  8638. this.dialogVisibleRate = false;
  8639. if (
  8640. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8641. .toolChoose[this.toolIndex].tool != 40
  8642. ) {
  8643. this.addTools(40, this.taskCount, this.toolIndex);
  8644. }
  8645. },
  8646. addSelectAnswer() {
  8647. if (this.selectJson.url == "") {
  8648. this.$message.error("请上传题目");
  8649. return;
  8650. }
  8651. if (!this.selectJson.select.length) {
  8652. this.$message.error("请添加选项");
  8653. return;
  8654. }
  8655. if (!this.selectJson.answer.length) {
  8656. this.$message.error("请设置答案");
  8657. return;
  8658. }
  8659. var a = 1;
  8660. for (var i = 0; i < this.selectJson.answer.length; i++) {
  8661. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  8662. a = 2;
  8663. }
  8664. }
  8665. if (a == 2) {
  8666. this.$message.error("请设置答案");
  8667. return;
  8668. }
  8669. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8670. this.taskCount
  8671. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  8672. this.dialogVisibleSelect = false;
  8673. if (
  8674. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8675. .toolChoose[this.toolIndex].tool != 41
  8676. ) {
  8677. this.addTools(41, this.taskCount, this.toolIndex);
  8678. }
  8679. },
  8680. nextSelectSteps() {
  8681. if (this.selectJson.url == "") {
  8682. this.$message.error("请上传题目");
  8683. return;
  8684. }
  8685. if (!this.selectJson.select.length) {
  8686. this.$message.error("请添加选项");
  8687. return;
  8688. } else {
  8689. for (var z = 0; z < this.selectJson.select.length; z++) {
  8690. let checkC = this.selectJson.select[z];
  8691. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  8692. let checkC2 = this.selectJson.select[z2];
  8693. if (checkC == checkC2) {
  8694. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8695. return;
  8696. }
  8697. }
  8698. }
  8699. }
  8700. var a = 1;
  8701. for (var i = 0; i < this.selectJson.select.length; i++) {
  8702. if (!this.selectJson.select[i]) {
  8703. a = 2;
  8704. }
  8705. }
  8706. if (a == 2) {
  8707. this.$message.error("添加的选项不能为空");
  8708. return;
  8709. }
  8710. this.selectSteps++;
  8711. },
  8712. selectCourseDetail() {
  8713. if (this.cid == "" || this.cid == undefined) {
  8714. console.log("这是新增课程");
  8715. this.selectAllType();
  8716. } else {
  8717. this.cidType = 1;
  8718. let params = {
  8719. cid: this.cid,
  8720. };
  8721. this.ajax
  8722. .get(this.$store.state.api + "select_course_detail", params)
  8723. .then((res) => {
  8724. this.loading = true;
  8725. this.unitJson = JSON.parse(res.data[0][0].chapters);
  8726. this.courseState = res.data[0][0].state
  8727. for (var j = 0; j < this.unitJson.length; j++) {
  8728. for (
  8729. var k = 0;
  8730. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  8731. k++
  8732. ) {
  8733. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  8734. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8735. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8736. : [];
  8737. let _chapterData = [];
  8738. for (
  8739. var c = 0;
  8740. c <
  8741. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  8742. .length;
  8743. c++
  8744. ) {
  8745. if (
  8746. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8747. ) {
  8748. _chapterData.push(
  8749. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8750. );
  8751. }
  8752. }
  8753. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  8754. _chapterData;
  8755. }
  8756. }
  8757. this.$forceUpdate();
  8758. this.courseName = res.data[0][0].title;
  8759. this.courseText = res.data[0][0].brief;
  8760. this.evalua = res.data[0][0].evaId;
  8761. this.cover = JSON.parse(res.data[0][0].cover);
  8762. this.noneBtnImg = this.cover.length >= 1;
  8763. // this.checkboxList =
  8764. // res.data[0][0].course_student.length > 0
  8765. // ? JSON.parse(res.data[0][0].course_student)
  8766. // : [];
  8767. this.checkboxList2 = res.data[0][0].juri
  8768. ? res.data[0][0].juri.split(",")
  8769. : [];
  8770. this.inviteCode = [];
  8771. for (var i = 0; i < res.data[2].length; i++) {
  8772. this.inviteCode.push({
  8773. cid: res.data[2][i].classid,
  8774. ic: res.data[2][i].code,
  8775. });
  8776. }
  8777. this.checkboxList3 = res.data[0][0].course_teacher
  8778. ? res.data[0][0].course_teacher.split(",")
  8779. : [];
  8780. // this.isTeacherSee =
  8781. // res.data[0][0].is_teacher_look == 0 ? true : false;
  8782. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  8783. this.myWord = res.data[0][0].template;
  8784. this.templateC.id = "123";
  8785. this.courseUserid = res.data[0][0].userid;
  8786. // if(this.courseUserid == this.userid){
  8787. // this.InviteChange(this.checkboxList2)
  8788. // }
  8789. this.nbOrder = res.data[0][0].ordernumber;
  8790. this.courseTypeId = [];
  8791. for (var i = 0; i < res.data[1].length; i++) {
  8792. this.courseTypeId.push(res.data[1][i].typeid);
  8793. }
  8794. console.log(this.courseTypeId);
  8795. // if (this.timer) clearInterval(this.timer);
  8796. if (this.timer) clearTimeout(this.timer);
  8797. this.timer = null;
  8798. // this.timer = setInterval(() => {
  8799. this.seleteCourseUpdate();
  8800. this.setMan();
  8801. this.selectAllType();
  8802. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  8803. // }, 5000);
  8804. this.$forceUpdate();
  8805. setTimeout(() => {
  8806. this.checkEva(this.evalua);
  8807. setTimeout(() => {
  8808. this.checkEva(this.evalua);
  8809. }, 100);
  8810. }, 100);
  8811. })
  8812. .catch((err) => {
  8813. console.error(err);
  8814. });
  8815. }
  8816. },
  8817. seleteCourseUpdate() {
  8818. let params = {
  8819. cid: this.cid,
  8820. };
  8821. this.ajax
  8822. .get(this.$store.state.api + "select_course_detail", params)
  8823. .then((res) => {
  8824. // console.log(this.unitJson);
  8825. let unitJson = JSON.parse(res.data[0][0].chapters);
  8826. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  8827. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  8828. let _unitJson = [];
  8829. let _chapAarry = [];
  8830. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  8831. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  8832. let index = 1;
  8833. let chapindex;
  8834. if (_unitJson2.length > unitJson.length) {
  8835. for (let c = 0; c < _unitJson2.length; c++) {
  8836. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  8837. }
  8838. for (let j = 0; j < unitJson.length; j++) {
  8839. let count = 0;
  8840. for (let k = 0; k < _unitJson2.length; k++) {
  8841. if (
  8842. unitJson[j].chapterInfo[0].chapterid ==
  8843. _unitJson2[k].chapterInfo[0].chapterid
  8844. ) {
  8845. count++;
  8846. _chapAarry.splice(
  8847. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8848. 1
  8849. );
  8850. _unitJson.push(unitJson[j]);
  8851. break;
  8852. }
  8853. }
  8854. // if(count === 0){
  8855. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8856. // }
  8857. }
  8858. for (let k = 0; k < _unitJson2.length; k++) {
  8859. if (_unitJson2[k].isUpdate == 1) {
  8860. _chapAarry.splice(
  8861. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8862. 1
  8863. );
  8864. _unitJson.push(_unitJson2[k]);
  8865. }
  8866. }
  8867. console.log(_chapAarry);
  8868. for (let d = 0; d < _unitJson2.length; d++) {
  8869. if (
  8870. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  8871. ) {
  8872. if (_unitIndex == d) {
  8873. index = 2;
  8874. }
  8875. chapindex = d;
  8876. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8877. }
  8878. }
  8879. } else {
  8880. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  8881. }
  8882. for (let i = 0; i < unitJson.length; i++) {
  8883. if (
  8884. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  8885. _unitJson[i].chapterInfo[0].chapterid !=
  8886. unitJson[i].chapterInfo[0].chapterid
  8887. ) {
  8888. if (i == _unitJson.length - 1) {
  8889. // this.unitIndex++
  8890. _unitIndex2++;
  8891. }
  8892. _unitJson.splice(i, 0, unitJson[i]);
  8893. } else if (i > _unitJson.length - 1) {
  8894. _unitJson.push(unitJson[i]);
  8895. } else if (
  8896. _unitJson[i].chapterInfo[0].chapterid ==
  8897. unitJson[i].chapterInfo[0].chapterid
  8898. ) {
  8899. _unitJson[i] = unitJson[i];
  8900. }
  8901. // if (i == _unitIndex) {
  8902. // continue;
  8903. // } else
  8904. }
  8905. if (_chapAarry.length && index != 2) {
  8906. if (chapindex < _unitIndex) {
  8907. this.isDelete = 2;
  8908. // this.unitIndex--;
  8909. _unitIndex2--;
  8910. } else if (
  8911. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  8912. _unitJson[_unitIndex].chapterInfo[0].chapterid
  8913. ) {
  8914. this.isDelete = 2;
  8915. for (let n = 0; n < _unitJson.length; n++) {
  8916. if (
  8917. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  8918. _unitJson[n].chapterInfo[0].chapterid
  8919. ) {
  8920. // this.unitIndex = n;
  8921. _unitIndex2 = n;
  8922. _unitJson[n] = _unitJson2[_unitIndex];
  8923. break;
  8924. }
  8925. }
  8926. }
  8927. } else if (index != 2) {
  8928. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  8929. _unitJson2[_unitIndex];
  8930. for (
  8931. var ci = 0;
  8932. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  8933. ci++
  8934. ) {
  8935. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  8936. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  8937. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8938. .toolChoose
  8939. : [];
  8940. let _chapterData = [];
  8941. for (
  8942. var c = 0;
  8943. c <
  8944. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  8945. .length;
  8946. c++
  8947. ) {
  8948. if (
  8949. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8950. .chapterData[c]
  8951. ) {
  8952. _chapterData.push(
  8953. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8954. .chapterData[c]
  8955. );
  8956. }
  8957. }
  8958. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  8959. _chapterData;
  8960. }
  8961. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  8962. }
  8963. if (index == 1) {
  8964. this.unitJson = _unitJson;
  8965. this.$forceUpdate();
  8966. setTimeout(() => {
  8967. if (this.unitIndex != _unitIndex2) {
  8968. this.isDelete = 2;
  8969. this.unitIndex = _unitIndex2;
  8970. }
  8971. }, 0);
  8972. this.timer = setTimeout(() => {
  8973. this.seleteCourseUpdate();
  8974. }, 1000);
  8975. } else if (index == 2) {
  8976. let _this = this;
  8977. _this
  8978. .$confirm(
  8979. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  8980. "提示",
  8981. {
  8982. confirmButtonText: "需要",
  8983. cancelButtonText: "取消",
  8984. type: "warning",
  8985. }
  8986. )
  8987. .then(() => {
  8988. if (_this.time()) {
  8989. _this.restoreWork(
  8990. _chapAarry[0],
  8991. _unitJson,
  8992. chapindex,
  8993. _unitJson2,
  8994. _unitIndex2
  8995. );
  8996. }
  8997. })
  8998. .catch(() => {
  8999. _this.unitJson = _unitJson;
  9000. _this.$forceUpdate();
  9001. setTimeout(() => {
  9002. if (this.unitIndex != _unitIndex2) {
  9003. this.isDelete = 2;
  9004. this.unitIndex = _unitIndex2;
  9005. }
  9006. }, 0);
  9007. _this.timer = setTimeout(() => {
  9008. _this.seleteCourseUpdate();
  9009. }, 1000);
  9010. });
  9011. }
  9012. })
  9013. .catch((err) => {
  9014. console.error(err);
  9015. });
  9016. },
  9017. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  9018. let params = [
  9019. {
  9020. cid: this.cid,
  9021. chapters: JSON.stringify(this.unitJson),
  9022. uid: this.userid,
  9023. chapid: chapid,
  9024. },
  9025. ];
  9026. this.ajax
  9027. .post(this.$store.state.api + "restoreWork", params)
  9028. .then((res) => {
  9029. this.$message({
  9030. message: "恢复成功",
  9031. type: "success",
  9032. });
  9033. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  9034. this.unitJson = unitJson;
  9035. this.$forceUpdate();
  9036. setTimeout(() => {
  9037. if (this.unitIndex != unitIndex2) {
  9038. this.isDelete = 2;
  9039. this.unitIndex = unitIndex2;
  9040. }
  9041. }, 0);
  9042. this.timer = setTimeout(() => {
  9043. this.seleteCourseUpdate();
  9044. }, 1000);
  9045. })
  9046. .catch((err) => {
  9047. this.$message.error("网络不佳");
  9048. console.error(err);
  9049. });
  9050. },
  9051. getTypeName() {
  9052. console.log(this.courseTypeId);
  9053. this.$forceUpdate();
  9054. },
  9055. selectAllType() {
  9056. let params = {
  9057. org: this.org && this.org != "" ? this.org : "",
  9058. oid: this.oid && this.oid != "" ? this.oid : "",
  9059. };
  9060. this.ajax
  9061. .get(this.$store.state.api + "selectAllType", params)
  9062. .then((res) => {
  9063. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9064. res.data[0] = [...res.data[0], ...res.data[4]]
  9065. }
  9066. this.CourseType = res.data;
  9067. this.CourseType2 = [
  9068. { name: "智见课程", id: [] },
  9069. { name: "智行课程", id: [] },
  9070. { name: "智创课程", id: [] },
  9071. ];
  9072. for (var cti = 0; cti < res.data[0].length; cti++) {
  9073. if (
  9074. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  9075. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  9076. ) {
  9077. this.CourseType2[0].id.push(res.data[0][cti].id);
  9078. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  9079. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  9080. this.CourseType2[1].id.push(res.data[0][cti].id);
  9081. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  9082. this.CourseType2[2].id.push(res.data[0][cti].id);
  9083. }
  9084. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  9085. res.data[0][cti].name = "年级";
  9086. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  9087. res.data[0][cti].name = "学科";
  9088. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  9089. res.data[0][cti].name = "主题";
  9090. }
  9091. }
  9092. let _courseTypeId = [];
  9093. for (var i = 0; i < res.data[0].length; i++) {
  9094. if (!this.cid) {
  9095. this.courseTypeId[res.data[0][i].id] = [];
  9096. }
  9097. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  9098. // }
  9099. this.CourseTypeJson[res.data[0][i].id] = [];
  9100. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9101. if (res.data[0][i].name == "栏目") {
  9102. this.CourseType[0][i].name = "主题";
  9103. }
  9104. }
  9105. if (res.data[2].length == 0 && res.data[3].length == 0) {
  9106. for (var j = 0; j < res.data[1].length; j++) {
  9107. if (
  9108. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  9109. _courseTypeId.indexOf(res.data[1][j].id) == -1
  9110. ) {
  9111. _courseTypeId.push(res.data[1][j].id);
  9112. }
  9113. if (res.data[0][i].id == res.data[1][j].pid) {
  9114. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9115. }
  9116. }
  9117. } else {
  9118. if (res.data[2].length > 0) {
  9119. for (var j = 0; j < res.data[2].length; j++) {
  9120. if (
  9121. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  9122. _courseTypeId.indexOf(res.data[2][j].id) == -1
  9123. ) {
  9124. _courseTypeId.push(res.data[2][j].id);
  9125. }
  9126. if (res.data[0][i].id == res.data[2][j].pid) {
  9127. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  9128. }
  9129. }
  9130. }
  9131. if (res.data[3].length > 0) {
  9132. for (var j = 0; j < res.data[3].length; j++) {
  9133. if (
  9134. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  9135. _courseTypeId.indexOf(res.data[3][j].id) == -1
  9136. ) {
  9137. _courseTypeId.push(res.data[3][j].id);
  9138. }
  9139. if (res.data[0][i].id == res.data[3][j].pid) {
  9140. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  9141. }
  9142. }
  9143. }
  9144. }
  9145. }
  9146. this.courseTypeId = _courseTypeId;
  9147. })
  9148. .catch((err) => {
  9149. console.error(err);
  9150. });
  9151. },
  9152. selectType() {
  9153. this.ajax
  9154. .get(this.$store.state.api + "selectType")
  9155. .then((res) => {
  9156. this.CourseType = res.data;
  9157. for (var i = 0; i < res.data[0].length; i++) {
  9158. if (!this.cid) {
  9159. this.courseTypeId[res.data[0][i].id] = "";
  9160. }
  9161. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9162. if (res.data[0][i].name == "栏目") {
  9163. this.CourseType[0][i].name = "主题";
  9164. }
  9165. }
  9166. for (var j = 0; j < res.data[1].length; j++) {
  9167. if (res.data[0][i].id == res.data[1][j].pid) {
  9168. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9169. this.CourseTypeJson[res.data[0][i].id] = [];
  9170. }
  9171. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9172. }
  9173. }
  9174. }
  9175. this.selectTypeByOid();
  9176. this.selectTypeByOrg();
  9177. })
  9178. .catch((err) => {
  9179. console.error(err);
  9180. });
  9181. },
  9182. selectTypeByOid() {
  9183. let params = {
  9184. oid: this.oid,
  9185. };
  9186. this.ajax
  9187. .get(this.$store.state.api + "selectTypeByOid", params)
  9188. .then((res) => {
  9189. for (var i = 0; i < res.data[0].length; i++) {
  9190. for (var j = 0; j < res.data[1].length; j++) {
  9191. if (res.data[0][i].id == res.data[1][j].pid) {
  9192. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9193. this.CourseTypeJson[res.data[0][i].id] = [];
  9194. }
  9195. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9196. }
  9197. }
  9198. }
  9199. })
  9200. .catch((err) => {
  9201. console.error(err);
  9202. });
  9203. },
  9204. selectTypeByOrg() {
  9205. let params = {
  9206. oid: this.org,
  9207. };
  9208. this.ajax
  9209. .get(this.$store.state.api + "selectTypeByOrg", params)
  9210. .then((res) => {
  9211. for (var i = 0; i < res.data[0].length; i++) {
  9212. for (var j = 0; j < res.data[1].length; j++) {
  9213. if (res.data[0][i].id == res.data[1][j].pid) {
  9214. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9215. this.CourseTypeJson[res.data[0][i].id] = [];
  9216. }
  9217. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9218. }
  9219. }
  9220. }
  9221. this.$forceUpdate();
  9222. })
  9223. .catch((err) => {
  9224. console.error(err);
  9225. });
  9226. },
  9227. OtherMb(type, task) {
  9228. if(task === 0 || task){
  9229. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[task].isEvaFold = true;
  9230. }
  9231. this.typeMode = type;
  9232. setTimeout(() => {
  9233. this.checkEva(this.checkId);
  9234. setTimeout(() => {
  9235. this.checkEva(this.checkId);
  9236. }, 100);
  9237. }, 100);
  9238. },
  9239. openMember() {
  9240. this.searchTN = "";
  9241. this.getTeacher();
  9242. this.dialogVisibleMember = true;
  9243. },
  9244. checkEva(id, type) {
  9245. this.dialogVisiblemb = false;
  9246. this.selectEva();
  9247. if (this.evalua != id && type == 2) {
  9248. this.$message.success("导入成功");
  9249. setTimeout(() => {
  9250. this.checkEva(id)
  9251. }, 100);
  9252. }
  9253. this.evalua = id;
  9254. this.checkId = id;
  9255. if (this.evalua != "") {
  9256. for (var i = 0; i < this.evaJuri.length; i++) {
  9257. if (this.evalua == this.evaJuri[i].id) {
  9258. this.eTitle = this.evaJuri[i].title;
  9259. this.eJson = JSON.parse(this.evaJuri[i].content);
  9260. }
  9261. }
  9262. this.data.data = [];
  9263. this.$forceUpdate();
  9264. setTimeout(() => {
  9265. this.setMindData();
  9266. }, 1000);
  9267. }
  9268. },
  9269. deleteEva() {
  9270. let _this = this;
  9271. if (_this.evalua == "") {
  9272. this.$message.warning("内容已经清空了,请勿重复清空");
  9273. return;
  9274. }
  9275. _this
  9276. .$confirm("确定删除此目标吗?", "提示", {
  9277. confirmButtonText: "确定",
  9278. cancelButtonText: "取消",
  9279. type: "warning",
  9280. })
  9281. .then(() => {
  9282. _this.evalua = "";
  9283. _this.checkId = "";
  9284. _this.eTitle = "";
  9285. let _unitJson = _this.unitJson;
  9286. for (var i = 0; i < _unitJson.length; i++) {
  9287. let _task = _unitJson[i].chapterInfo[0].taskJson;
  9288. for (var j = 0; j < _task.length; j++) {
  9289. let _eList = _task[j].eList;
  9290. for (var k = 0; k < _eList.length; k++) {
  9291. delete _eList[k].target;
  9292. }
  9293. }
  9294. }
  9295. _this.$forceUpdate();
  9296. if (_this.cid) {
  9297. _this.updateWork();
  9298. }
  9299. })
  9300. .catch(() => {
  9301. return;
  9302. });
  9303. },
  9304. selectEva() {
  9305. let params = {
  9306. oid: this.oid,
  9307. };
  9308. this.ajax
  9309. .get(this.$store.state.api + "selectAllEvaluation", params)
  9310. .then((res) => {
  9311. this.evaJuri = res.data[0];
  9312. })
  9313. .catch((err) => {
  9314. console.error(err);
  9315. });
  9316. },
  9317. setMindData() {
  9318. let targetArray = [];
  9319. this.data.data = [];
  9320. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  9321. let _eJson = Object.keys(this.eJson);
  9322. let _e = this.eJson;
  9323. for (let i = 0; i < _eJson.length; i++) {
  9324. let element = _e[_eJson[i]];
  9325. this.data.data.push({
  9326. id: element.id,
  9327. parentid: "root",
  9328. topic: element.name,
  9329. });
  9330. // targetArray.push({
  9331. // id: element.id,
  9332. // parentid: "root",
  9333. // name: element.name,
  9334. // });
  9335. targetArray.push({
  9336. value: element.name,
  9337. label: element.name,
  9338. children: [],
  9339. });
  9340. let _eJsonc = Object.keys(element.child);
  9341. let _e2 = element.child;
  9342. for (let j = 0; j < _eJsonc.length; j++) {
  9343. let _ec = _e2[_eJsonc[j]];
  9344. this.data.data.push({
  9345. id: _ec.id,
  9346. parentid: element.id,
  9347. topic: _ec.name,
  9348. });
  9349. // targetArray.push({
  9350. // id: _ec.id,
  9351. // parentid: element.id,
  9352. // name: _ec.name,
  9353. // });
  9354. targetArray[i].children.push({
  9355. value: _ec.name,
  9356. label: _ec.name,
  9357. children: [],
  9358. });
  9359. let _eJsonz = Object.keys(_ec.child);
  9360. let _e3 = _ec.child;
  9361. for (let z = 0; z < _eJsonz.length; z++) {
  9362. let _ez = _e3[_eJsonz[z]];
  9363. this.data.data.push({
  9364. id: _ez.id,
  9365. parentid: _ec.id,
  9366. topic: _ez.name,
  9367. });
  9368. // targetArray.push({
  9369. // id: _ez.id,
  9370. // parentid: _ec.id,
  9371. // name: _ez.name,
  9372. // });
  9373. targetArray[i].children[j].children.push({
  9374. value: _ez.name,
  9375. label: _ez.name,
  9376. });
  9377. }
  9378. }
  9379. }
  9380. this.targetArray = targetArray;
  9381. this.$forceUpdate();
  9382. },
  9383. /*添加评价 */
  9384. addEList(index, tIndex) {
  9385. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  9386. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  9387. value: "",
  9388. detail: "",
  9389. score: 5,
  9390. })
  9391. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  9392. { value: "", detail: "", score: 5 },
  9393. ]);
  9394. this.$forceUpdate();
  9395. },
  9396. openEList(index, tIndex){
  9397. this.evaIndex = index
  9398. this.evatIndex = tIndex
  9399. this.evaBoxDialog = true
  9400. },
  9401. addCET(index,tIndex){
  9402. this.cetIndex = index;
  9403. this.cettIndex = tIndex;
  9404. this.selectAllType1();
  9405. },
  9406. addCETemplate(){
  9407. var array = this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex].eList;
  9408. let params = [
  9409. {
  9410. uid: this.userid,
  9411. n: this.templateName,
  9412. json: JSON.stringify(array),
  9413. t: 1,
  9414. oid: this.oid,
  9415. },
  9416. ];
  9417. this.ajax
  9418. .post(this.$store.state.api + "addCETShare", params)
  9419. .then((res) => {
  9420. this.addTypeByCET(res.data[0][0].id);
  9421. })
  9422. .catch((err) => {
  9423. this.$message.error("网络不佳");
  9424. console.error(err);
  9425. });
  9426. },
  9427. addTypeByCET(id) {
  9428. if (this.setTypeJson.two == "") {
  9429. this.$message.warning("请选择二级分类,如没有二级分类请前往添加!");
  9430. return;
  9431. }
  9432. let params = {
  9433. cid: id,
  9434. };
  9435. this.ajax
  9436. .get(this.$store.state.api + "deleteCETLabel", params)
  9437. .then((res) => {
  9438. for (var i = 0; i < 2; i++) {
  9439. let tid = "";
  9440. if (i == 0) {
  9441. tid = this.setTypeJson.one;
  9442. } else {
  9443. tid = this.setTypeJson.two;
  9444. }
  9445. let params = [
  9446. {
  9447. cid: id,
  9448. tid: tid,
  9449. uid: this.userid,
  9450. },
  9451. ];
  9452. this.ajax
  9453. .post(this.$store.state.api + "addCETLabel", params)
  9454. .then((res) => {
  9455. this.$message({
  9456. message: "添加成功",
  9457. type: "success",
  9458. });
  9459. this.close();
  9460. })
  9461. .catch((err) => {
  9462. this.$message.error("网络不佳");
  9463. console.error(err);
  9464. });
  9465. }
  9466. })
  9467. .catch((err) => {
  9468. this.$message.error("网络不佳");
  9469. console.error(err);
  9470. });
  9471. },
  9472. updateEvaJson(array){
  9473. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[this.evatIndex].eList = array
  9474. },
  9475. forceUpdate() {
  9476. this.$forceUpdate();
  9477. },
  9478. deletEList(index, tIndex, eIndex) {
  9479. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  9480. eIndex,
  9481. 1
  9482. );
  9483. this.$forceUpdate();
  9484. },
  9485. getChoosePic(t) {
  9486. this.chooseType = t;
  9487. this.getAllBanner();
  9488. },
  9489. getAllBanner() {
  9490. this.sysPicVisible = true;
  9491. let params = {
  9492. t: this.chooseType,
  9493. };
  9494. this.ajax
  9495. .get(this.$store.state.api + "selectAllBanner", params)
  9496. .then((res) => {
  9497. this.sysPic = res.data[0];
  9498. })
  9499. .catch((err) => {
  9500. console.error(err);
  9501. });
  9502. },
  9503. // getClass() {
  9504. // let params = {
  9505. // oid: this.oid,
  9506. // };
  9507. // this.ajax
  9508. // .get(this.$store.state.api + "selectClassBySchool", params)
  9509. // .then((res) => {
  9510. // this.classJuri = res.data[0];
  9511. // })
  9512. // .catch((err) => {
  9513. // console.error(err);
  9514. // });
  9515. // },
  9516. deleteSysPic() {
  9517. this.cover = [];
  9518. this.isSysPic = false;
  9519. this.isSysPic2 = false;
  9520. },
  9521. deleteSelectPic() {
  9522. this.selectJson.url = "";
  9523. },
  9524. setEListStar() {
  9525. this.$forceUpdate();
  9526. },
  9527. deletRateList(i) {
  9528. this.rateJson.splice(i, 1);
  9529. },
  9530. addRateList() {
  9531. this.rateJson.push({ detail: "", score: 5, value: "" });
  9532. },
  9533. addSt() {
  9534. this.sentenceList.push({
  9535. sentenceTitle: "",
  9536. addSentence: [],
  9537. rightAnswer: [],
  9538. });
  9539. },
  9540. addSen(i) {
  9541. if (!this.sentenceList[i].sentenceTitle) {
  9542. this.$message.error("请填写卡片内容!");
  9543. return;
  9544. }
  9545. if (this.sentenceList[i].sentenceTitle.length > 10) {
  9546. this.$message.error("卡片内容字数不能超过10位");
  9547. return;
  9548. }
  9549. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  9550. this.$message.error("不能添加重复的卡片内容!");
  9551. return;
  9552. }
  9553. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  9554. // this.isPushTitleList.push(this.sentenceTitle);
  9555. this.sentenceList[i].sentenceTitle = "";
  9556. },
  9557. setRightAnswer(s, i, j) {
  9558. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  9559. this.sentenceList[i].rightAnswer.push(s);
  9560. }
  9561. },
  9562. returnCard(r, i, j) {
  9563. this.sentenceList[i].rightAnswer.splice(j, 1);
  9564. },
  9565. addSentenceTool() {
  9566. for (var i = 0; i < this.sentenceList.length; i++) {
  9567. if (this.sentenceList[i].rightAnswer.length == 0) {
  9568. this.$message.error(`请将题目${i + 1}设置完整。`);
  9569. return;
  9570. }
  9571. if (
  9572. this.sentenceList[i].addSentence.length !=
  9573. this.sentenceList[i].rightAnswer.length
  9574. ) {
  9575. this.$message.error(`请将题目${i + 1}设置完整。`);
  9576. return;
  9577. }
  9578. }
  9579. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9580. this.taskCount
  9581. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  9582. this.sentenceList = [
  9583. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9584. ];
  9585. this.dialogVisibleSentence = false;
  9586. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9587. // itemTaskIndex
  9588. // ].toolChoose[toolIndex].tool = [];
  9589. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9590. // itemTaskIndex
  9591. // ].toolChoose[toolIndex].tool.push(i);
  9592. if (
  9593. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9594. .toolChoose[this.toolIndex].tool != 47
  9595. ) {
  9596. this.addTools(47, this.taskCount, this.toolIndex);
  9597. }
  9598. },
  9599. addTableJson() {
  9600. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  9601. // this.$message.error("请将信息填写完整!");
  9602. // return;
  9603. // }
  9604. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9605. this.taskCount
  9606. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  9607. // this.tableJson = [{ text: "" }];
  9608. // this.dialogVisibleTable = false;
  9609. this.$message.success("上传成功");
  9610. if (
  9611. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9612. .toolChoose[this.toolIndex].tool != 48
  9613. ) {
  9614. this.addTools(48, this.taskCount, this.toolIndex);
  9615. }
  9616. },
  9617. addWordJson() {
  9618. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9619. this.taskCount
  9620. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  9621. // this.wordJson = [{ text: "" }];
  9622. // this.dialogVisibleWord = false;
  9623. this.$message.success("上传成功");
  9624. if (
  9625. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9626. .toolChoose[this.toolIndex].tool != 52
  9627. ) {
  9628. this.addTools(52, this.taskCount, this.toolIndex);
  9629. }
  9630. },
  9631. addMoreUpload() {
  9632. if (this.uploadJson.length == 0) {
  9633. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9634. this.taskCount
  9635. ].toolChoose[this.toolIndex].uploadJson = [];
  9636. } else {
  9637. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9638. this.taskCount
  9639. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  9640. }
  9641. this.uploadJson = [];
  9642. this.dialogVisibleMoreUpload = false;
  9643. if (
  9644. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9645. .toolChoose[this.toolIndex].tool != 50
  9646. ) {
  9647. this.addTools(50, this.taskCount, this.toolIndex);
  9648. }
  9649. },
  9650. addPreTime() {
  9651. if (this.preTime == 0) {
  9652. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9653. this.taskCount
  9654. ].toolChoose[this.toolIndex].preTime = 0;
  9655. } else {
  9656. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9657. this.taskCount
  9658. ].toolChoose[this.toolIndex].preTime = this.preTime;
  9659. }
  9660. this.preTime = 0;
  9661. this.dialogVisiblePreTime = false;
  9662. if (
  9663. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9664. .toolChoose[this.toolIndex].tool != 10
  9665. ) {
  9666. this.addTools(10, this.taskCount, this.toolIndex);
  9667. }
  9668. },
  9669. goToTask(i) {
  9670. this.toolIndexType = ''
  9671. if (this.isClickColor == (i + 1)) {
  9672. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9673. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9674. // } else {
  9675. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9676. // }
  9677. this.$forceUpdate();
  9678. return;
  9679. }
  9680. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9681. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9682. // } else {
  9683. document.querySelectorAll(".basic_box")[0].scrollTop =
  9684. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  9685. this.isClickColor = i + 1;
  9686. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9687. // }
  9688. this.$forceUpdate();
  9689. },
  9690. taskOpen(i, stageIndex){
  9691. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9692. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9693. } else {
  9694. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9695. }
  9696. this.updateWork3(stageIndex)
  9697. this.$forceUpdate();
  9698. },
  9699. goToTask2(i, stage) {
  9700. this.toolIndexType = ''
  9701. if (this.isClickColor == (i + 1) && this.unitIndex == stage) {
  9702. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9703. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9704. // } else {
  9705. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9706. // }
  9707. this.$forceUpdate();
  9708. return;
  9709. }
  9710. if(this.unitIndex != stage){
  9711. if(this.panUnitJson() == 2){
  9712. return;
  9713. }
  9714. this.unitSet(stage)
  9715. }
  9716. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9717. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9718. // } else {
  9719. document.querySelectorAll(".basic_box")[0].scrollTop =
  9720. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  9721. this.isClickColor = i + 1;
  9722. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9723. // }
  9724. this.$forceUpdate();
  9725. },
  9726. taskMove(type, index) {
  9727. this.$confirm(
  9728. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  9729. "提示",
  9730. {
  9731. confirmButtonText: "确定",
  9732. cancelButtonText: "取消",
  9733. type: "warning",
  9734. }
  9735. )
  9736. .then(() => {
  9737. if (type == 1) {
  9738. if (index > 0) {
  9739. let a = JSON.parse(
  9740. JSON.stringify(
  9741. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9742. index - 1
  9743. ]
  9744. )
  9745. );
  9746. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  9747. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9748. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9749. }
  9750. } else {
  9751. if (
  9752. index <
  9753. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  9754. ) {
  9755. let a = JSON.parse(
  9756. JSON.stringify(
  9757. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9758. index + 1
  9759. ]
  9760. )
  9761. );
  9762. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  9763. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9764. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9765. }
  9766. }
  9767. this.$forceUpdate();
  9768. })
  9769. .catch(() => {
  9770. return;
  9771. });
  9772. },
  9773. stageMove(type, index) {
  9774. if (type == 1) {
  9775. if (index > 0) {
  9776. let a = JSON.parse(
  9777. JSON.stringify(
  9778. this.unitJson3[index - 1]
  9779. )
  9780. );
  9781. let acid = JSON.parse(JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid))
  9782. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  9783. this.unitJson3[index - 1] = this.unitJson3[index];
  9784. this.unitJson3[index] = a;
  9785. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  9786. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  9787. }
  9788. } else {
  9789. if (
  9790. index <
  9791. this.unitJson3.length - 1
  9792. ) {
  9793. let a = JSON.parse(
  9794. JSON.stringify(
  9795. this.unitJson3[
  9796. index + 1
  9797. ]
  9798. )
  9799. );
  9800. let acid = JSON.parse(JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid))
  9801. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  9802. this.unitJson3[index + 1] =
  9803. this.unitJson3[index];
  9804. this.unitJson3[index] = a;
  9805. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  9806. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  9807. }
  9808. }
  9809. this.$forceUpdate();
  9810. },
  9811. addGroup(i) {
  9812. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  9813. this.groupJson.group.push({
  9814. name: "第" + (this.groupJson.group.length + 1) + "组",
  9815. });
  9816. },
  9817. deleteGroup(i) {
  9818. this.groupJson.group.splice(i, 1);
  9819. },
  9820. numberPan() {
  9821. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  9822. this.$message.error('请输入2-10的数字')
  9823. this.groupJson.number = ''
  9824. }
  9825. },
  9826. addGroupJson() {
  9827. for (var i = 0; i < this.groupJson.group.length; i++) {
  9828. if (!this.groupJson.group[i].name) {
  9829. this.$message.error("请将信息填写完整!");
  9830. return;
  9831. }
  9832. }
  9833. if (!this.groupJson.number) {
  9834. this.$message.error("请将信息填写完整!");
  9835. return;
  9836. }
  9837. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9838. this.taskCount
  9839. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  9840. JSON.stringify(this.groupJson)
  9841. );
  9842. this.dialogVisibleGroup = false;
  9843. this.groupJson = {};
  9844. if (
  9845. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9846. .toolChoose[this.toolIndex].tool != 49
  9847. ) {
  9848. this.addTools(49, this.taskCount, this.toolIndex);
  9849. }
  9850. },
  9851. updateTime(preTime) {
  9852. this.preTime = preTime;
  9853. },
  9854. InviteChange(val) {
  9855. console.log(val);
  9856. let _check = []
  9857. let _check2 = []
  9858. for (var i = 0; i < this.grade2.length; i++) {
  9859. var gid = this.grade2[i].id
  9860. _check.push(gid)
  9861. }
  9862. for (var i = 0; i < this.checkboxList2.length; i++) {
  9863. var _id = this.checkboxList2[i]
  9864. if (_check.indexOf(_id) !== -1) {
  9865. _check2.push(_id)
  9866. }
  9867. }
  9868. this.checkAll = _check2.length === _check.length;
  9869. return;
  9870. let array = JSON.parse(JSON.stringify(val));
  9871. this.inviteCode = this.inviteCode.filter((el) => {
  9872. if (val.indexOf(el.cid) != -1) {
  9873. array.splice(array.indexOf(el.cid), 1);
  9874. return el;
  9875. }
  9876. });
  9877. for (var i = 0; i < array.length; i++) {
  9878. this.getInviteCode(array[i]);
  9879. }
  9880. },
  9881. InviteChange2(val) {
  9882. console.log(val);
  9883. let _check = []
  9884. let _check2 = []
  9885. for (var i = 0; i < this.teacherJuri.length; i++) {
  9886. var gid = this.teacherJuri[i].userid
  9887. _check.push(gid)
  9888. }
  9889. for (var i = 0; i < this.checkboxList3.length; i++) {
  9890. var _id = this.checkboxList3[i]
  9891. if (_check.indexOf(_id) !== -1) {
  9892. _check2.push(_id)
  9893. }
  9894. }
  9895. this.checkAll2 = _check2.length === _check.length;
  9896. this.setMan();
  9897. return;
  9898. let array = JSON.parse(JSON.stringify(val));
  9899. this.inviteCode = this.inviteCode.filter((el) => {
  9900. if (val.indexOf(el.cid) != -1) {
  9901. array.splice(array.indexOf(el.cid), 1);
  9902. return el;
  9903. }
  9904. });
  9905. for (var i = 0; i < array.length; i++) {
  9906. this.getInviteCode(array[i]);
  9907. }
  9908. },
  9909. handleCheckAllChange(val) {
  9910. if (val) {
  9911. for (var i = 0; i < this.grade2.length; i++) {
  9912. var gid = this.grade2[i].id
  9913. if (this.checkboxList2.indexOf(gid) === -1) {
  9914. this.checkboxList2.push(gid)
  9915. }
  9916. }
  9917. } else {
  9918. let _check = []
  9919. let _check2 = []
  9920. for (var i = 0; i < this.grade2.length; i++) {
  9921. var gid = this.grade2[i].id
  9922. _check.push(gid)
  9923. }
  9924. for (var i = 0; i < this.checkboxList2.length; i++) {
  9925. var _id = this.checkboxList2[i]
  9926. if (_check.indexOf(_id) === -1) {
  9927. _check2.push(_id)
  9928. }
  9929. }
  9930. this.checkboxList2 = _check2
  9931. }
  9932. this.isIndeterminate = false;
  9933. },
  9934. handleCheckAllChange2(val) {
  9935. if (val) {
  9936. for (var i = 0; i < this.teacherJuri.length; i++) {
  9937. var gid = this.teacherJuri[i].userid
  9938. if (this.checkboxList3.indexOf(gid) === -1) {
  9939. this.checkboxList3.push(gid)
  9940. }
  9941. }
  9942. } else {
  9943. let _check = []
  9944. let _check2 = []
  9945. for (var i = 0; i < this.teacherJuri.length; i++) {
  9946. var gid = this.teacherJuri[i].userid
  9947. _check.push(gid)
  9948. }
  9949. for (var i = 0; i < this.checkboxList3.length; i++) {
  9950. var _id = this.checkboxList3[i]
  9951. if (_check.indexOf(_id) === -1) {
  9952. _check2.push(_id)
  9953. }
  9954. }
  9955. this.checkboxList3 = _check2
  9956. }
  9957. this.isIndeterminate2 = false;
  9958. },
  9959. async getInviteCode(cid) {
  9960. let code = this.randomNumber();
  9961. let params = {
  9962. code: code,
  9963. oid: this.oid,
  9964. };
  9965. let type = 1;
  9966. for (var i = 0; i < this.inviteCode.length; i++) {
  9967. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  9968. type = 2;
  9969. }
  9970. }
  9971. if (type == 2) {
  9972. this.getInviteCode(cid);
  9973. return;
  9974. }
  9975. const res = await this.ajax.get(
  9976. this.$store.state.api + "selectInviteCode2",
  9977. params
  9978. );
  9979. if (
  9980. res.data.length &&
  9981. res.data[0].length &&
  9982. res.data[0][0].courseId != this.cid
  9983. ) {
  9984. this.getInviteCode(cid);
  9985. return;
  9986. }
  9987. let array = [];
  9988. for (var i = 0; i < this.inviteCode.length; i++) {
  9989. array.push(this.inviteCode[i].cid);
  9990. }
  9991. if (array.indexOf(cid) != -1) {
  9992. this.inviteCode[array.indexOf(cid)].ic = code;
  9993. } else {
  9994. this.inviteCode.push({ cid: cid, ic: code });
  9995. }
  9996. },
  9997. OpenInviteD(cid) {
  9998. let array = [];
  9999. this.icode = "";
  10000. for (var i = 0; i < this.inviteCode.length; i++) {
  10001. array.push(this.inviteCode[i].cid);
  10002. }
  10003. if (array.indexOf(cid) != -1) {
  10004. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  10005. }
  10006. this.inviteId = cid;
  10007. this.dialogVisibleInvite = true;
  10008. },
  10009. addInvite() {
  10010. let reg = /^[A-Za-z0-9]{4,}$/;
  10011. if (!reg.test(this.icode)) {
  10012. this.$message.error("请输入至少四位数字或英文组合的随机码");
  10013. return;
  10014. }
  10015. let type = 1;
  10016. for (var i = 0; i < this.inviteCode.length; i++) {
  10017. if (
  10018. this.inviteCode[i].cid != this.inviteId &&
  10019. this.icode == this.inviteCode[i].ic
  10020. ) {
  10021. type = 2;
  10022. }
  10023. }
  10024. if (type == 2) {
  10025. this.$message.error("已有此随机码,不能重复");
  10026. return;
  10027. }
  10028. let params = {
  10029. code: this.icode,
  10030. oid: this.oid,
  10031. };
  10032. this.ajax
  10033. .get(this.$store.state.api + "selectInviteCode", params)
  10034. .then((res) => {
  10035. if (
  10036. res.data.length &&
  10037. res.data[0].length &&
  10038. res.data[0][0].courseId != this.cid
  10039. ) {
  10040. this.$message.error("已有此随机码,不能重复");
  10041. return;
  10042. }
  10043. let array = [];
  10044. for (var i = 0; i < this.inviteCode.length; i++) {
  10045. array.push(this.inviteCode[i].cid);
  10046. }
  10047. if (array.indexOf(this.inviteId) != -1) {
  10048. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  10049. } else {
  10050. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  10051. }
  10052. this.icode = "";
  10053. this.dialogVisibleInvite = false;
  10054. })
  10055. .catch((err) => {
  10056. console.error(err);
  10057. });
  10058. },
  10059. randomNumber() {
  10060. // 随机生成两位数
  10061. // let num = Math.floor(Math.random() * 900) + 100;
  10062. // 生成 0 到 99 之间的随机整数
  10063. const randomNumber = Math.floor(Math.random() * 100);
  10064. // 如果随机数小于 10,补上前导零
  10065. const num =
  10066. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  10067. // 随机生成两个大写字母
  10068. let letters = "";
  10069. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  10070. for (let i = 0; i < 3; i++) {
  10071. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  10072. }
  10073. // 随机生成两位数字和字母的组合
  10074. let mix = "";
  10075. let chars =
  10076. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  10077. for (let i = 0; i < 3; i++) {
  10078. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  10079. mix += char;
  10080. }
  10081. // 随机选择一种类型
  10082. let type = Math.floor(Math.random() * 3);
  10083. return num;
  10084. // 根据类型输出结果
  10085. switch (type) {
  10086. case 0:
  10087. console.log(num); // 输出两位数
  10088. return num;
  10089. case 1:
  10090. console.log(letters); // 输出两个大写字母
  10091. return letters;
  10092. case 2:
  10093. console.log(mix); // 输出两位数字和字母的组合
  10094. return mix;
  10095. }
  10096. },
  10097. getPaste() {
  10098. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10099. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  10100. if (!iframe && !iframe2) {
  10101. return;
  10102. }
  10103. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10104. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10105. if (copyData && copyData.stageData && copyData.stageData.length) {
  10106. this.isPasteStage = true
  10107. }
  10108. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  10109. this.isPasteStage = true
  10110. }
  10111. if (copyData && copyData.selectData.length) {
  10112. this.isPasteChoice = true
  10113. }
  10114. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  10115. this.isPasteTask = true
  10116. }
  10117. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  10118. this.isPasteTask = true
  10119. }
  10120. },
  10121. searchImage() {
  10122. var _this = this;
  10123. _this.imageList = []
  10124. if (!_this.searchImageValue) {
  10125. _this.sysPicVisible2 = true
  10126. return
  10127. }
  10128. _this.imageloading = true
  10129. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  10130. page: _this.ppage,
  10131. pagesize: 9,
  10132. query: _this.searchImageValue
  10133. }).then(function (response) {
  10134. // console.log(response.data.data);
  10135. var data = response.data.FunctionResponse.result;
  10136. for (var i = 0; i < data.length; i++) {
  10137. _this.imageList.push({ url: data[i].thumbnail })
  10138. }
  10139. _this.imageloading = false
  10140. }).catch(function (error) {
  10141. console.log(error);
  10142. });
  10143. _this.sysPicVisible2 = true
  10144. },
  10145. changePicture() {
  10146. this.ppage++
  10147. this.searchImage()
  10148. },
  10149. resetImage() {
  10150. this.ppage = 1
  10151. this.searchImage()
  10152. },
  10153. jumpGj(i, j) {
  10154. if ((i + 1) != this.isClickColor) {
  10155. this.isClickColor = (i + 1)
  10156. }
  10157. var a = document.scrollingElement;
  10158. this.toolIndexType = `gj${i}${j}`
  10159. let target = document.querySelector(`#gj${i}${j}`);
  10160. if (target) {
  10161. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  10162. setTimeout(() => {
  10163. target.scrollIntoView(true);
  10164. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = false
  10165. setTimeout(() => {
  10166. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  10167. }, 0);
  10168. }, 0);
  10169. }
  10170. },
  10171. jumpGj2(i, j, k) {
  10172. if(this.unitIndex != k){
  10173. if(this.panUnitJson() == 2){
  10174. return;
  10175. }
  10176. this.unitSet(k)
  10177. }
  10178. setTimeout(() => {
  10179. if ((i + 1) != this.isClickColor) {
  10180. this.isClickColor = (i + 1)
  10181. }
  10182. var a = document.scrollingElement;
  10183. this.toolIndexType = `gj${i}${j}${k}`
  10184. let target = document.querySelector(`#gj${i}${j}`);
  10185. if (target) {
  10186. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  10187. setTimeout(() => {
  10188. target.scrollIntoView(true);
  10189. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = false
  10190. setTimeout(() => {
  10191. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  10192. }, 0);
  10193. }, 0);
  10194. }
  10195. }, 0);
  10196. },
  10197. dragStart(val, i, j) {
  10198. console.log(this.taskCount);
  10199. this.dragType = 'drag'
  10200. this.taskCount = j
  10201. this.oldIndex = i;
  10202. this.oldData = val;
  10203. },
  10204. dragOver(i, j) {
  10205. this.typeIndex = "chapter-" + j + '-' + i
  10206. this.newIndex = i;
  10207. },
  10208. dragEnd() {
  10209. if(this.dragType != 'drag'){
  10210. this.typeIndex = "";
  10211. this.newIndex = "";
  10212. this.dragType = "";
  10213. this.isdrag = "";
  10214. return;
  10215. }
  10216. console.log(this.taskCount);
  10217. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData];
  10218. // 删除老的节点
  10219. newItems.splice(this.oldIndex, 1);
  10220. // 在列表中目标位置增加新的节点
  10221. newItems.splice(this.newIndex, 0, this.oldData);
  10222. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData = [...newItems];
  10223. this.typeIndex = "";
  10224. this.newIndex = "";
  10225. this.dragType = "";
  10226. this.isdrag = "";
  10227. this.$forceUpdate()
  10228. },
  10229. dragTaskStart(val, i, j) {
  10230. this.dragType = 'task'
  10231. this.oldIndex = i;
  10232. this.oldData = val;
  10233. this.oldUnitIndex = j;
  10234. },
  10235. dragTaskOver(i, j) {
  10236. this.typeIndex = "task-" + i
  10237. this.newIndex = i;
  10238. this.checkUnitIndex = j;
  10239. },
  10240. async dragTaskEnd() {
  10241. if(this.dragType != 'task'){
  10242. this.newIndex = "";
  10243. this.dragType = "";
  10244. this.typeIndex = "";
  10245. this.checkUnitIndex = "";
  10246. this.isdrag = "";
  10247. return;
  10248. }
  10249. if((this.newIndex == this.oldIndex && this.oldUnitIndex == this.checkUnitIndex)){
  10250. this.newIndex = "";
  10251. this.dragType = "";
  10252. this.typeIndex = "";
  10253. this.checkUnitIndex = "";
  10254. this.isdrag = "";
  10255. return;
  10256. }
  10257. let count1 = await this.getWorksCount(2, this.checkUnitIndex, this.newIndex, 0)
  10258. let count2 = await this.getWorksCount(2, this.oldUnitIndex, this.oldIndex, 0)
  10259. if(count1 > 0 || count2 > 0){
  10260. this.$confirm(
  10261. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  10262. "提示",
  10263. {
  10264. confirmButtonText: "确定",
  10265. cancelButtonText: "取消",
  10266. type: "warning",
  10267. }
  10268. )
  10269. .then(() => {
  10270. if(this.oldUnitIndex != this.checkUnitIndex){
  10271. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  10272. // 删除老的节点
  10273. newItems.splice(this.oldIndex, 1);
  10274. // 在列表中目标位置增加新的节点
  10275. let newItems2 = [...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson];
  10276. newItems2.splice(this.newIndex, 0, this.oldData);
  10277. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  10278. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [...newItems2];
  10279. }else{
  10280. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  10281. // 删除老的节点
  10282. newItems.splice(this.oldIndex, 1);
  10283. // 在列表中目标位置增加新的节点
  10284. newItems.splice(this.newIndex, 0, this.oldData);
  10285. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  10286. }
  10287. this.typeIndex = "";
  10288. this.newIndex = "";
  10289. this.dragType = "";
  10290. this.checkUnitIndex = "";
  10291. this.isdrag = "";
  10292. this.updateWork();
  10293. this.$forceUpdate()
  10294. })
  10295. .catch(() => {
  10296. this.newIndex = "";
  10297. this.dragType = "";
  10298. this.typeIndex = "";
  10299. this.checkUnitIndex = "";
  10300. this.isdrag = "";
  10301. return;
  10302. });
  10303. }else{
  10304. if(this.oldUnitIndex != this.checkUnitIndex){
  10305. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  10306. // 删除老的节点
  10307. newItems.splice(this.oldIndex, 1);
  10308. // 在列表中目标位置增加新的节点
  10309. let newItems2 = [...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson];
  10310. newItems2.splice(this.newIndex, 0, this.oldData);
  10311. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  10312. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [...newItems2];
  10313. }else{
  10314. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  10315. // 删除老的节点
  10316. newItems.splice(this.oldIndex, 1);
  10317. // 在列表中目标位置增加新的节点
  10318. newItems.splice(this.newIndex, 0, this.oldData);
  10319. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  10320. }
  10321. this.typeIndex = "";
  10322. this.newIndex = "";
  10323. this.dragType = "";
  10324. this.checkUnitIndex = "";
  10325. this.isdrag = "";
  10326. this.updateWork();
  10327. this.$forceUpdate()
  10328. }
  10329. },
  10330. dragUnitStart(val, i) {
  10331. this.dragType = 'Unit'
  10332. this.oldIndex = i;
  10333. this.oldData = val;
  10334. },
  10335. dragUnitOver(i) {
  10336. this.typeIndex = "Unit-" + i
  10337. this.newIndex = i;
  10338. console.log(i,this.unitJson[i].toolOpen)
  10339. if(!this.unitJson[i].toolOpen && this.dragType == 'task'){
  10340. this.unitJson[i].toolOpen = true
  10341. this.updateWork()
  10342. this.$forceUpdate()
  10343. }
  10344. },
  10345. async dragUnitEnd() {
  10346. if(this.dragType != 'Unit'){
  10347. this.newIndex = "";
  10348. this.dragType = "";
  10349. this.typeIndex = "";
  10350. this.isdrag = "";
  10351. return;
  10352. }
  10353. if(this.newIndex == this.oldIndex){
  10354. this.newIndex = "";
  10355. this.dragType = "";
  10356. this.typeIndex = "";
  10357. this.isdrag = "";
  10358. return;
  10359. }
  10360. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0)
  10361. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0)
  10362. console.log(count1, count2)
  10363. if(count1 > 0 || count2 > 0){
  10364. this.$confirm(
  10365. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  10366. "提示",
  10367. {
  10368. confirmButtonText: "确定",
  10369. cancelButtonText: "取消",
  10370. type: "warning",
  10371. }
  10372. )
  10373. .then(() => {
  10374. let newItems = [...this.unitJson];
  10375. // 删除老的节点
  10376. newItems.splice(this.oldIndex, 1);
  10377. // 在列表中目标位置增加新的节点
  10378. newItems.splice(this.newIndex, 0, this.oldData);
  10379. this.unitJson = [...newItems];
  10380. this.typeIndex = "";
  10381. this.newIndex = "";
  10382. this.dragType = "";
  10383. this.isdrag = "";
  10384. this.updateWork();
  10385. this.$forceUpdate()
  10386. })
  10387. .catch(() => {
  10388. this.newIndex = "";
  10389. this.dragType = "";
  10390. this.typeIndex = "";
  10391. this.isdrag = "";
  10392. return;
  10393. });
  10394. }else{
  10395. let newItems = [...this.unitJson];
  10396. // 删除老的节点
  10397. newItems.splice(this.oldIndex, 1);
  10398. // 在列表中目标位置增加新的节点
  10399. newItems.splice(this.newIndex, 0, this.oldData);
  10400. this.unitJson = [...newItems];
  10401. this.typeIndex = "";
  10402. this.newIndex = "";
  10403. this.dragType = "";
  10404. this.isdrag = "";
  10405. this.updateWork();
  10406. this.$forceUpdate()
  10407. }
  10408. },
  10409. getWorksCount(type, stage, task, tool){
  10410. return new Promise((resolve, reject) => {
  10411. let params = [
  10412. {
  10413. cid: this.cid,
  10414. stage: stage,
  10415. task: task,
  10416. tool: tool,
  10417. type: type
  10418. },
  10419. ];
  10420. this.ajax
  10421. .post(this.$store.state.api + "getCourseWorkCount", params)
  10422. .then((res) => {
  10423. let count = res.data[0][0].count
  10424. resolve(count)
  10425. })
  10426. .catch((err) => {
  10427. resolve(0)
  10428. this.$message.error("网络不佳");
  10429. console.error(err);
  10430. });
  10431. });
  10432. },
  10433. getTwoType(id) {
  10434. this.twoJson = [];
  10435. var array = this.CourseTypeJson1[
  10436. "3f8eed32-aba9-11ee-b534-005056b86db5"
  10437. ].filter((e) => {
  10438. return e.ppid == id;
  10439. });
  10440. this.twoJson = array;
  10441. this.$forceUpdate();
  10442. },
  10443. ctype(){
  10444. this.oneJson = this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
  10445. },
  10446. selectAllType1() {
  10447. this.CourseType1 = [];
  10448. this.CourseTypeJson1 = {};
  10449. this.courseTypeId1 = {};
  10450. this.$forceUpdate();
  10451. let params = {
  10452. org: this.org && this.org != "" ? this.org : "",
  10453. oid: this.oid && this.oid != "" ? this.oid : "",
  10454. };
  10455. this.ajax
  10456. .get(this.$store.state.api + "selectAllEvaType", params)
  10457. .then((res) => {
  10458. this.CourseType1 = res.data;
  10459. for (var i = 0; i < res.data[0].length; i++) {
  10460. if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
  10461. res.data[0][i].name = "一级分类";
  10462. } else if (
  10463. res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
  10464. ) {
  10465. res.data[0][i].name = "二级分类";
  10466. }
  10467. if (!this.cid) {
  10468. this.courseTypeId1[res.data[0][i].id] = [];
  10469. }
  10470. if (!this.CourseTypeJson1[res.data[0][i].id]) {
  10471. this.CourseTypeJson1[res.data[0][i].id] = [];
  10472. }
  10473. // if (res.data[2].length == 0 && res.data[3].length == 0) {
  10474. for (var j = 0; j < res.data[1].length; j++) {
  10475. if (res.data[0][i].id == res.data[1][j].pid) {
  10476. this.CourseTypeJson1[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10477. }
  10478. }
  10479. // } else {
  10480. if (res.data[2].length > 0) {
  10481. for (var j = 0; j < res.data[2].length; j++) {
  10482. if (res.data[0][i].id == res.data[2][j].pid) {
  10483. this.CourseTypeJson1[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  10484. }
  10485. }
  10486. }
  10487. if (res.data[3].length > 0) {
  10488. for (var j = 0; j < res.data[3].length; j++) {
  10489. if (res.data[0][i].id == res.data[3][j].pid) {
  10490. this.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  10491. }
  10492. }
  10493. }
  10494. // }
  10495. }
  10496. this.ctype();
  10497. this.cetBoxDialog = true;
  10498. })
  10499. .catch((err) => {
  10500. console.error(err);
  10501. });
  10502. },
  10503. },
  10504. beforeDestroy() {
  10505. clearTimeout(this.timer);
  10506. this.timer = null;
  10507. clearInterval(this.timer2);
  10508. this.timer2 = null;
  10509. clearInterval(this.pasteTimer);
  10510. this.pasteTimer = null;
  10511. },
  10512. beforeRouteLeave(to, from, next) {
  10513. clearTimeout(this.timer);
  10514. this.timer = null;
  10515. clearInterval(this.timer2);
  10516. this.timer2 = null;
  10517. clearInterval(this.pasteTimer);
  10518. this.pasteTimer = null;
  10519. next();
  10520. },
  10521. created() {
  10522. this.getStudent();
  10523. this.getTeacher();
  10524. this.getClass();
  10525. this.selectGrage();
  10526. this.getTemplate();
  10527. // this.selectType();
  10528. this.selectEva();
  10529. this.loading = false;
  10530. this.timer2 = setInterval(() => {
  10531. this.selectEva();
  10532. }, 5000);
  10533. this.pasteTimer = setInterval(() => {
  10534. this.getPaste();
  10535. }, 1000);
  10536. setTimeout(() => {
  10537. this.selectCourseDetail();
  10538. }, 500);
  10539. let _this = this
  10540. window.pasteStage = function(json){
  10541. _this.pasteStage(json)
  10542. }
  10543. window.pasteTask = function(json){
  10544. _this.pasteTask(json)
  10545. }
  10546. },
  10547. };
  10548. </script>
  10549. <style scoped>
  10550. @media screen and (max-width: 1280px) {
  10551. .mbCss {
  10552. flex-direction: column !important;
  10553. }
  10554. .pjCss {
  10555. width: 100% !important;
  10556. }
  10557. .evaCss {
  10558. width: 100% !important;
  10559. margin-top: 10px;
  10560. }
  10561. }
  10562. .el-table >>> .even_row {
  10563. background-color: #f1f1f1 !important;
  10564. }
  10565. .dialog_diy>>>.el-dialog__header {
  10566. background: #3c3c3c !important;
  10567. padding: 15px 20px;
  10568. }
  10569. .dialog_diy>>>.el-dialog__title {
  10570. color: #fff;
  10571. }
  10572. .dialog_diy>>>.el-dialog__headerbtn {
  10573. top: 19px;
  10574. }
  10575. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  10576. color: #fff;
  10577. }
  10578. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  10579. color: #fff;
  10580. }
  10581. .dialog_diy>>>.el-dialog__body,
  10582. .dialog_diy>>>.el-dialog__footer {
  10583. background: #fafafa;
  10584. }
  10585. .dialog_diy3>>>.el-dialog__body,
  10586. .dialog_diy3>>>.el-dialog__footer {
  10587. background: #eee !important;
  10588. }
  10589. .dialog_diy3>>>.el-dialog__body {
  10590. padding: 20px 20px;
  10591. }
  10592. .dialog_diyStage>>>.el-dialog__body {
  10593. padding: 10px;
  10594. }
  10595. .source_diy>>>.el-dialog {
  10596. height: 100% !important;
  10597. margin: 0 auto !important;
  10598. }
  10599. .source_diy>>>.el-dialog__body {
  10600. height: calc(100% - 185px);
  10601. overflow: auto;
  10602. background: #e6eaf0;
  10603. }
  10604. .source_diy>>>.el-dialog__footer {
  10605. background: #e6eaf0 !important;
  10606. }
  10607. .left {
  10608. border-right: 1px solid rgb(60, 94, 143);
  10609. display: flex;
  10610. flex-direction: column;
  10611. align-items: center;
  10612. min-height: 600px;
  10613. width: 385px;
  10614. height: 80%;
  10615. }
  10616. .tips {
  10617. color: rgb(128, 128, 128);
  10618. font-size: 12px;
  10619. width: 270px;
  10620. margin: 40px;
  10621. }
  10622. .pb_content {
  10623. height: 100% !important;
  10624. /* margin: 0 20px 0 20px; */
  10625. }
  10626. .pb_content_body {
  10627. width: 100% !important;
  10628. height: 100%;
  10629. }
  10630. .info_solid {
  10631. width: 270px;
  10632. height: 30px;
  10633. border-left: 1px solid #bdbdbd;
  10634. margin: 10px 0px 10px 30px;
  10635. }
  10636. .info_steps {
  10637. width: 270px;
  10638. font-size: 0.875rem;
  10639. display: flex;
  10640. align-items: center;
  10641. }
  10642. .info_steps span:nth-child(1) {
  10643. width: 30px;
  10644. height: 30px;
  10645. background: rgba(0, 0, 0, 0.38);
  10646. display: block;
  10647. color: #fff;
  10648. border-radius: 40px;
  10649. text-align: center;
  10650. line-height: 30px;
  10651. }
  10652. .steps_active {
  10653. background: #3d67bc !important;
  10654. }
  10655. .info_steps span:nth-child(2) {
  10656. margin-left: 5px;
  10657. }
  10658. .right {
  10659. height: 100%;
  10660. width: 100%;
  10661. display: flex;
  10662. overflow: hidden;
  10663. flex-direction: column;
  10664. }
  10665. .basic_box {
  10666. margin: 0 auto;
  10667. position: relative;
  10668. padding: 0 20px 0 20px;
  10669. }
  10670. .basic_box_success {
  10671. width: 100%;
  10672. min-height: 455px;
  10673. padding: 50px 0;
  10674. position: relative;
  10675. text-align: center;
  10676. border-bottom: 1px solid #bfbfbf;
  10677. box-sizing: border-box;
  10678. display: flex;
  10679. align-items: center;
  10680. flex-direction: column;
  10681. justify-content: center;
  10682. }
  10683. .info_title {
  10684. font-size: 1.5em;
  10685. margin-right: 25px;
  10686. /* margin: 20px 30px 20px 30px; */
  10687. }
  10688. .bInfo_title {
  10689. text-align: left;
  10690. margin: 10px 0;
  10691. }
  10692. .small_title {
  10693. font-size: 14px;
  10694. line-height: 40px;
  10695. }
  10696. .chapter_beizhu {
  10697. font-size: 12px;
  10698. font-weight: bold;
  10699. float: right;
  10700. color: rgb(128, 128, 128);
  10701. margin-top: 5px;
  10702. }
  10703. .chapter_uploadBox1 {
  10704. text-align: left;
  10705. background-color: rgb(242, 242, 242);
  10706. width: 100%;
  10707. height: 67px;
  10708. padding: 0px 15px;
  10709. border-radius: 8px;
  10710. overflow: hidden;
  10711. font-size: 16px;
  10712. box-sizing: border-box;
  10713. position: relative;
  10714. }
  10715. .chapter_add {
  10716. width: 100%;
  10717. height: 32px;
  10718. margin-top: 15px;
  10719. cursor: pointer;
  10720. }
  10721. .chapter_add_l {
  10722. margin-left: 5px;
  10723. width: 30px;
  10724. height: 30px;
  10725. float: left;
  10726. border: 1px solid #aaa;
  10727. color: #aaa;
  10728. border-radius: 50%;
  10729. font-size: 25px;
  10730. text-align: center;
  10731. }
  10732. .chapter_add_r {
  10733. font-size: 18px;
  10734. height: 40px;
  10735. line-height: 30px;
  10736. text-indent: 10px;
  10737. color: #aaa;
  10738. }
  10739. .chapter_add_r span {
  10740. font-size: 12px;
  10741. color: rgb(204, 204, 204);
  10742. }
  10743. .chapter_add_input {
  10744. display: none;
  10745. }
  10746. .line {
  10747. width: 85%;
  10748. margin: 0 auto;
  10749. border-top: 1px solid #e5e5e5;
  10750. margin-top: 20px;
  10751. }
  10752. .info_btnBox {
  10753. width: calc(100%);
  10754. display: flex;
  10755. justify-content: center;
  10756. height: 80px;
  10757. align-items: center;
  10758. background: #fff;
  10759. margin: 0 auto;
  10760. border-top: 2px solid rgb(228, 232, 237);
  10761. box-sizing: border-box;
  10762. }
  10763. .info_btnBox2 {
  10764. width: calc(100%);
  10765. display: flex;
  10766. justify-content: center;
  10767. height: 20px;
  10768. align-items: center;
  10769. background: #fff;
  10770. margin: 0 auto;
  10771. border-top: 2px solid rgb(228, 232, 237);
  10772. box-sizing: border-box;
  10773. overflow: hidden;
  10774. cursor: pointer;
  10775. }
  10776. .info_btnBox3 {
  10777. width: calc(100%);
  10778. display: flex;
  10779. justify-content: flex-end;
  10780. padding: 0 20px;
  10781. height: 60px;
  10782. align-items: center;
  10783. background: unset;
  10784. margin: 0 auto;
  10785. /* border-top: 1px solid rgb(228, 232, 237); */
  10786. box-sizing: border-box;
  10787. overflow: hidden;
  10788. cursor: pointer;
  10789. background: #fff;
  10790. border-radius: 10px;
  10791. }
  10792. .info_btn+.info_btn {
  10793. margin-left: 15px;
  10794. }
  10795. .info_btn,
  10796. .teacherWord {
  10797. color: #fff;
  10798. background-color: #0f7eff;
  10799. padding: 8px 24px;
  10800. font-size: 0.9375rem;
  10801. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  10802. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  10803. min-width: 64px;
  10804. font-weight: 500;
  10805. border-radius: 4px;
  10806. box-sizing: border-box;
  10807. border: none;
  10808. cursor: pointer;
  10809. }
  10810. .teacherWord {
  10811. width: 105px !important;
  10812. text-align: center !important;
  10813. line-height: 36px !important;
  10814. padding: 0 !important;
  10815. font-size: 14px !important;
  10816. margin: 10px 0 !important;
  10817. }
  10818. .template_box{
  10819. display: flex;
  10820. flex-wrap: wrap;
  10821. }
  10822. .wordTeacher {
  10823. display: flex;
  10824. flex-direction: column;
  10825. width: 100px;
  10826. height: 100px;
  10827. text-align: center;
  10828. font-size: 13px;
  10829. margin: 0 20px 20px 0 ;
  10830. background: #F0F4FA;;
  10831. position: relative;
  10832. border-radius: 5px;
  10833. align-items: center;
  10834. justify-content: center;
  10835. border: 1px solid #CAD1DC;
  10836. color: #0E1E33;
  10837. /* padding: 25px 0px; */
  10838. cursor: pointer;
  10839. }
  10840. .wordTeacher::after{
  10841. content: '';
  10842. display:block;
  10843. position: absolute;
  10844. width: 15px;
  10845. height: 15px;
  10846. right:10px;
  10847. top:10px;
  10848. background-image: url(../../assets/icon/new/choose_a.png);
  10849. background-size:100% 100%;
  10850. }
  10851. .wordTeacherA::after{
  10852. background-image: url(../../assets/icon/new/choose_b.png)
  10853. }
  10854. .wordTeacher:nth-child(5n){
  10855. margin-right: 0px;
  10856. }
  10857. .wordPic {
  10858. margin: 0 auto;
  10859. width: 30px;
  10860. height: 30px;
  10861. cursor: pointer;
  10862. }
  10863. .deleteWord {
  10864. width: 22px;
  10865. height: 22px;
  10866. position: absolute;
  10867. right: 5px;
  10868. top: -15px;
  10869. cursor: pointer;
  10870. display: none;
  10871. z-index: 999;
  10872. }
  10873. .wordPic>img,
  10874. .deleteWord>img,
  10875. .addToolImg>img {
  10876. width: 100%;
  10877. height: 100%;
  10878. }
  10879. .info_btn:hover {
  10880. background-color: #4f7cd5 !important;
  10881. }
  10882. .cru_selectBox {
  10883. display: flex;
  10884. margin: 15px 0;
  10885. flex-wrap: nowrap;
  10886. white-space: nowrap;
  10887. overflow: auto;
  10888. position: relative;
  10889. height: 40px;
  10890. max-width: calc(100% - 175px);
  10891. }
  10892. .cru_selectBox::-webkit-scrollbar {
  10893. /*滚动条整体样式*/
  10894. width: 6px;
  10895. /*高宽分别对应横竖滚动条的尺寸*/
  10896. height: 6px;
  10897. }
  10898. /*定义滚动条轨道 内阴影+圆角*/
  10899. .cru_selectBox::-webkit-scrollbar-track {
  10900. border-radius: 10px;
  10901. background-color: #eee;
  10902. }
  10903. /*定义滑块 内阴影+圆角*/
  10904. .cru_selectBox::-webkit-scrollbar-thumb {
  10905. border-radius: 10px;
  10906. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  10907. background-color: rgba(0, 0, 0, 0.1);
  10908. }
  10909. .cru_line {
  10910. position: absolute;
  10911. bottom: 0px;
  10912. transition: all 0.5s;
  10913. left: 0px;
  10914. width: 50px;
  10915. height: 4px;
  10916. left: 10px;
  10917. border-radius: 2px;
  10918. background: #3681FC;
  10919. }
  10920. .cru_select {
  10921. font-size: 18px;
  10922. margin-right: 20px;
  10923. margin-left: 5px;
  10924. cursor: pointer;
  10925. color: #0E1E33;
  10926. }
  10927. .cru_select:hover {
  10928. color: #3681FC !important;
  10929. }
  10930. .cru_selected {
  10931. color: #3681FC !important;
  10932. font-weight: bold;
  10933. }
  10934. .chapter_box {
  10935. margin-top: 10px;
  10936. width: 100%;
  10937. padding: 10px 20px;
  10938. background: #fff;
  10939. border-radius: 8px;
  10940. box-sizing: border-box;
  10941. }
  10942. .chapter_contentbox {
  10943. display: flex;
  10944. align-items: center;
  10945. /* margin-top: 15px; */
  10946. }
  10947. .chapter_contentbox .cc_title {
  10948. margin: 0px;
  10949. color: black;
  10950. display: block;
  10951. white-space: nowrap;
  10952. overflow: hidden;
  10953. text-overflow: ellipsis;
  10954. margin-right: 20px;
  10955. font-size: 18px;
  10956. height: 20px;
  10957. line-height: 22px;
  10958. min-width: fit-content;
  10959. display: flex;
  10960. }
  10961. .chapter_contentbox .cc_title::before {
  10962. content: '';
  10963. height: 100%;
  10964. width: 3px;
  10965. background: #3681FC;
  10966. border-radius: 3px;
  10967. opacity: 1;
  10968. display: block;
  10969. margin-right: 10px;
  10970. }
  10971. .chapter_contentbox .cc_input {
  10972. width: 100%;
  10973. display: flex;
  10974. }
  10975. .show_taskD {
  10976. min-width: fit-content;
  10977. margin-left: 10px;
  10978. display: flex;
  10979. align-items: center;
  10980. font-size: 14px;
  10981. cursor: pointer;
  10982. color: #717C8D;
  10983. }
  10984. .show_taskD>img {
  10985. width: 15px;
  10986. margin-right: 5px;
  10987. transition: .2s all;
  10988. transform: rotate(-90deg);
  10989. }
  10990. .show_taskD.show>img {
  10991. transform: rotate(0deg);
  10992. }
  10993. .show_toolD {
  10994. min-width: fit-content;
  10995. margin-left: 10px;
  10996. display: flex;
  10997. align-items: center;
  10998. font-size: 14px;
  10999. cursor: pointer;
  11000. color: #717C8D;
  11001. /* position: absolute;
  11002. right: 45px;
  11003. top: 5px; */
  11004. }
  11005. .show_toolD>img {
  11006. width: 15px;
  11007. margin-right: 5px;
  11008. transition: .2s all;
  11009. transform: rotate(-90deg);
  11010. }
  11011. .show_toolD.show>img {
  11012. transform: rotate(0deg);
  11013. }
  11014. .remove {
  11015. background-image: url("../../assets/icon/new/delete_u.png");
  11016. cursor: pointer;
  11017. opacity: 0.5;
  11018. width: 30px;
  11019. min-width: 30px;
  11020. height: 30px;
  11021. background-size: 100% 100%;
  11022. background-repeat: no-repeat;
  11023. margin-left: 10px;
  11024. }
  11025. .remove1 {
  11026. background-image: url("../../assets/remove1.png");
  11027. background-repeat: no-repeat;
  11028. background-position: 5px 10px;
  11029. width: 40px;
  11030. height: 50px;
  11031. cursor: pointer;
  11032. margin-left: 10px;
  11033. }
  11034. .binfo_input {
  11035. width: 100%;
  11036. margin: 0;
  11037. padding: 12px 14px;
  11038. display: block;
  11039. min-width: 0;
  11040. outline: none;
  11041. box-sizing: border-box;
  11042. background: none;
  11043. border: none;
  11044. border-radius: 4px;
  11045. background: #fff;
  11046. font-size: 16px;
  11047. resize: none;
  11048. font-family: 'Microsoft YaHei';
  11049. min-height: 48px;
  11050. /* border: 1px solid #3682fc00; */
  11051. border: 1.5px solid #CAD1DC;
  11052. }
  11053. .binfo_textarea {
  11054. border: 1.5px solid #CAD1DC;
  11055. font-size: 16px;
  11056. resize: none;
  11057. /* background: #f6f6f6; */
  11058. font-family: 'Microsoft YaHei';
  11059. }
  11060. .binfo_input:focus-visible {
  11061. border: 1.5px solid #3681FC !important;
  11062. }
  11063. .time {
  11064. display: flex;
  11065. margin: 35px 0 80px 0;
  11066. }
  11067. .chapter_btnbox {
  11068. width: 160px;
  11069. border-radius: 5px;
  11070. border: 2px dashed gray;
  11071. display: flex;
  11072. padding: 8px 50px;
  11073. align-items: center;
  11074. justify-content: center;
  11075. margin: 30px auto 0;
  11076. cursor: pointer;
  11077. }
  11078. .icon_add {
  11079. position: relative;
  11080. width: 24px;
  11081. padding-top: 20px;
  11082. border-radius: 100%;
  11083. border-width: 2px;
  11084. border-style: solid;
  11085. border-color: gray;
  11086. }
  11087. .icon_add i:nth-child(1) {
  11088. position: absolute;
  11089. left: 50%;
  11090. top: 50%;
  11091. height: 60%;
  11092. transform: translate(-50%, -50%);
  11093. border-width: 1px;
  11094. border-style: solid;
  11095. border-color: inherit;
  11096. }
  11097. .icon_add i:nth-child(2) {
  11098. position: absolute;
  11099. top: 50%;
  11100. left: 50%;
  11101. width: 60%;
  11102. transform: translate(-50%, -50%);
  11103. border-width: 1px;
  11104. border-style: solid;
  11105. border-color: inherit;
  11106. }
  11107. .chapter_btn_w {
  11108. font-size: 0.9375rem;
  11109. font-weight: bold;
  11110. color: gray;
  11111. margin-left: 20px;
  11112. }
  11113. .disUoloadSty>>>.el-icon-plus {
  11114. display: none !important;
  11115. /* 上传按钮隐藏 */
  11116. }
  11117. .imgLeft {
  11118. margin: 15px 0;
  11119. }
  11120. .add_info_box {
  11121. margin: 0 0 0 auto;
  11122. display: flex;
  11123. flex-wrap: wrap;
  11124. }
  11125. .add_info_box button {
  11126. margin: 0 5px 10px 0;
  11127. }
  11128. .add_info_box2 {
  11129. display: flex;
  11130. align-items: center;
  11131. flex-wrap: wrap;
  11132. }
  11133. .add_info_box2::after {
  11134. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  11135. color: red;
  11136. font-size: 14px;
  11137. margin-bottom: 10px;
  11138. }
  11139. .add_chapters_box {
  11140. text-align: left;
  11141. background-color: #fff;
  11142. width: 100%;
  11143. border-radius: 4px;
  11144. font-size: 16px;
  11145. box-sizing: border-box;
  11146. position: relative;
  11147. padding: 0 15px;
  11148. height: auto;
  11149. overflow-y: auto;
  11150. overflow-x: hidden;
  11151. border: 1px solid #CAD1DC;
  11152. }
  11153. .add_chapters_box.add_c_none {
  11154. display: flex;
  11155. justify-content: center;
  11156. align-items: center;
  11157. padding: 15px;
  11158. }
  11159. .add_c_none>img {
  11160. width: 25px;
  11161. }
  11162. .add_chapters_box.add_c_none>span {
  11163. font-size: 14px;
  11164. font-weight: 400;
  11165. margin: 0 0 5px 5px;
  11166. }
  11167. .homework_box {
  11168. display: flex;
  11169. align-items: flex-start;
  11170. flex-wrap: wrap;
  11171. margin: 15px 0 0 0;
  11172. flex-direction: column;
  11173. align-content: flex-start;
  11174. }
  11175. .course_homework {
  11176. display: flex;
  11177. justify-content: center;
  11178. flex-direction: row;
  11179. align-items: center;
  11180. margin: 0 10px 0 0;
  11181. }
  11182. .course_homework>>>.el-input__inner {
  11183. width: 140px;
  11184. margin-left: 15px;
  11185. }
  11186. .chapter_upload_move {
  11187. position: relative;
  11188. background-color: #fff;
  11189. position: absolute;
  11190. width: 100%;
  11191. top: 0px;
  11192. left: 0px;
  11193. border: 1px solid #eee;
  11194. border-radius: 5px;
  11195. transition: width 2s;
  11196. -moz-transition: width 2s;
  11197. -webkit-transition: width 2s;
  11198. -o-transition: width 2s;
  11199. }
  11200. .chapter_upload_l_i {
  11201. background-image: url("../../assets/icon.png");
  11202. background-position: 3px -165px;
  11203. width: 30px;
  11204. height: 30px;
  11205. margin: 10px auto 0 auto;
  11206. }
  11207. .course_input_box {
  11208. display: flex;
  11209. margin-right: 20px;
  11210. width: 100%;
  11211. align-items: center;
  11212. position: relative;
  11213. }
  11214. .course_input_box>.binfo_input {
  11215. width: calc(100% - 0 - 200px - 20px);
  11216. margin: 0 10px;
  11217. }
  11218. .bb_courseIcon {
  11219. width: 57px;
  11220. height: 45px;
  11221. background: #F0F4FA;
  11222. border-radius: 5px 0px 0px 5px;
  11223. display: flex;
  11224. align-items: center;
  11225. justify-content: center;
  11226. border-right: 1.5px solid rgb(202, 209, 220);
  11227. box-sizing: border-box;
  11228. position: absolute;
  11229. left: 1.5px
  11230. }
  11231. .bb_courseIcon>img {
  11232. width: 25px;
  11233. height: auto
  11234. }
  11235. .big_box {
  11236. /* margin-top: 20px; */
  11237. display: flex;
  11238. justify-content: space-between;
  11239. /* border-bottom: 1px solid #E0E2ED; */
  11240. }
  11241. .left_first {
  11242. display: flex;
  11243. flex-direction: column;
  11244. flex-wrap: nowrap;
  11245. width: calc(100% - 310px);
  11246. padding: 20px;
  11247. box-sizing: border-box;
  11248. background: #fff;
  11249. border-radius: 5px;
  11250. }
  11251. .right_first {
  11252. width: 300px;
  11253. display: flex;
  11254. align-items: center;
  11255. justify-content: center;
  11256. /* border-left: 1px solid #E0E2ED; */
  11257. box-sizing: border-box;
  11258. padding: 20px;
  11259. flex-direction: column;
  11260. background: #fff;
  11261. border-radius: 5px;
  11262. }
  11263. .ai_box {
  11264. width: 204px;
  11265. display: flex;
  11266. justify-content: flex-end;
  11267. margin-bottom: 15px;
  11268. }
  11269. .ai_content {
  11270. display: flex;
  11271. align-items: center;
  11272. font-size: 14px;
  11273. padding: 7px 20px;
  11274. box-sizing: border-box;
  11275. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  11276. border-radius: 12px;
  11277. font-weight: 700;
  11278. cursor: pointer;
  11279. }
  11280. .ai_content>img {
  11281. width: 40px;
  11282. margin-right: 5px;
  11283. }
  11284. .c_info_title {
  11285. padding: 15px 0 15px 0;
  11286. font-size: 16px;
  11287. font-weight: bold;
  11288. margin: 0 0 0 20px;
  11289. box-sizing: border-box;
  11290. display: flex;
  11291. align-items: center;
  11292. line-height: 20px;
  11293. }
  11294. .c_info_title::before {
  11295. content: '';
  11296. display: block;
  11297. width: 3px;
  11298. height: 20px;
  11299. background: #0061FF;
  11300. border-radius: 3px;
  11301. margin: 0 5px 0 0;
  11302. }
  11303. .right_title {
  11304. height: 30px;
  11305. padding: 15px 0 15px 20px;
  11306. border-bottom: 1px solid #f2f2f2;
  11307. font-size: 1.5em;
  11308. font-weight: bold;
  11309. color: #0f7eff;
  11310. margin: 0 auto;
  11311. }
  11312. .people {
  11313. border: 1px solid rgb(229 229 229);
  11314. /* height: 495px; */
  11315. height: 350px;
  11316. border-radius: 5px;
  11317. width: 100%;
  11318. overflow: auto;
  11319. }
  11320. .people_top {
  11321. display: flex;
  11322. width: 100%;
  11323. /* justify-content: space-between; */
  11324. /* align-items: center; */
  11325. flex-direction: column;
  11326. padding: 10px 10px 0;
  11327. box-sizing: border-box;
  11328. }
  11329. .people_nav,
  11330. .people_top_right {
  11331. /* padding: 20px 0 0 20px; */
  11332. }
  11333. .people_top_right {
  11334. height: 40px;
  11335. margin-bottom: 10px;
  11336. }
  11337. .people_search {
  11338. display: flex;
  11339. position: relative;
  11340. }
  11341. .people_search>>>.el-input__inner {
  11342. /* height: 25px; */
  11343. width: 100%;
  11344. }
  11345. .search_img {
  11346. width: 20px;
  11347. height: 20px;
  11348. position: absolute;
  11349. right: 10px;
  11350. top: 50%;
  11351. transform: translateY(-50%);
  11352. }
  11353. .search_img>img {
  11354. width: 100%;
  11355. height: 100%;
  11356. }
  11357. .people_name {
  11358. display: flex;
  11359. justify-content: flex-start;
  11360. padding: 20px 10px;
  11361. flex-direction: column;
  11362. flex-wrap: wrap;
  11363. }
  11364. .p_box {
  11365. position: relative;
  11366. }
  11367. .people_name>>>.el-checkbox {
  11368. width: 100%;
  11369. display: flex;
  11370. align-items: center;
  11371. margin-bottom: 10px;
  11372. }
  11373. .people_name>>>.el-checkbox__label {
  11374. text-overflow: ellipsis;
  11375. overflow: hidden;
  11376. width: calc(100%);
  11377. }
  11378. .people_name2>>>.el-checkbox__label {
  11379. width: calc(100% - 130px);
  11380. }
  11381. .inviteCode {
  11382. position: absolute;
  11383. right: 30px;
  11384. color: #237ade;
  11385. top: 0;
  11386. cursor: pointer;
  11387. font-size: 13px;
  11388. }
  11389. .noneInvite {
  11390. color: #a8a8a8;
  11391. }
  11392. .inviteImg {
  11393. position: absolute;
  11394. right: 5px;
  11395. top: 0;
  11396. width: 20px;
  11397. }
  11398. .right_img {
  11399. width: 150px;
  11400. height: 150px;
  11401. margin: 0 auto;
  11402. }
  11403. .right_img>img {
  11404. width: 100%;
  11405. height: 100%;
  11406. }
  11407. .number {
  11408. margin-top: 20px;
  11409. color: #4aa6ff;
  11410. text-decoration: underline;
  11411. }
  11412. .success_button {
  11413. display: flex;
  11414. text-align: center;
  11415. margin: 5% 0 auto;
  11416. flex-direction: row;
  11417. justify-content: center;
  11418. }
  11419. .look_course {
  11420. margin-right: 40px;
  11421. background: #3d67bc;
  11422. width: 200px;
  11423. height: 35px;
  11424. line-height: 35px;
  11425. color: #fff;
  11426. text-align: center;
  11427. font-size: 14px;
  11428. border-radius: 5px;
  11429. cursor: pointer;
  11430. }
  11431. .attend_others {
  11432. width: 250px;
  11433. background: #4fb13c;
  11434. height: 35px;
  11435. line-height: 35px;
  11436. color: #fff;
  11437. text-align: center;
  11438. font-size: 14px;
  11439. border-radius: 5px;
  11440. cursor: pointer;
  11441. }
  11442. .dialog_diy2>>>.el-dialog__body {
  11443. text-align: center;
  11444. }
  11445. .write_togother {
  11446. position: absolute;
  11447. right: 45px;
  11448. display: flex;
  11449. top: 5%;
  11450. }
  11451. .write_people {
  11452. font-size: 14px;
  11453. line-height: 50px;
  11454. padding-right: 10px;
  11455. }
  11456. .end_write {
  11457. background: #3d67bc;
  11458. color: #fff;
  11459. width: 100px;
  11460. height: 35px;
  11461. line-height: 35px;
  11462. text-align: center;
  11463. font-size: 14px;
  11464. border-radius: 5px;
  11465. cursor: pointer;
  11466. }
  11467. .chapter_upload+.chapter_upload {
  11468. /* margin-top: 15px; */
  11469. border-top: 1px solid #E7EBF1;
  11470. }
  11471. .chapter_upload {
  11472. height: 45px;
  11473. position: relative;
  11474. display: flex;
  11475. align-items: center;
  11476. width: 100%;
  11477. min-height: 45px;
  11478. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  11479. /* border-radius: 4px; */
  11480. /* overflow: hidden; */
  11481. box-sizing: border-box;
  11482. }
  11483. .chapter_upload_drag {
  11484. position: absolute;
  11485. cursor: pointer;
  11486. width: 16px;
  11487. height: 16px;
  11488. left: -9px;
  11489. background-image: url("../../assets/icon/new/icon_course_drag.png");
  11490. background-size: 100% 100%;
  11491. z-index: 10;
  11492. display: none;
  11493. }
  11494. .isNavStage > .chapter_upload_drag{
  11495. background-image: url("../../assets/icon/new/icon_course_drag_active2.png");
  11496. }
  11497. .chapter_upload_t {
  11498. background-color: #fff;
  11499. position: absolute;
  11500. height: 100%;
  11501. top: 0px;
  11502. left: 0px;
  11503. box-sizing: border-box;
  11504. }
  11505. .chapter_upload_o {
  11506. width: 100%;
  11507. height: 100%;
  11508. position: relative;
  11509. z-index: 1;
  11510. }
  11511. .chapter_upload_ic {
  11512. margin: 0 15px 0px auto;
  11513. display: flex;
  11514. align-items: center;
  11515. }
  11516. .chapter_upload_ic_l {
  11517. width: 50px;
  11518. height: 50px;
  11519. float: left;
  11520. }
  11521. .chapter_upload_ic_l div {
  11522. width: 30px;
  11523. height: 35px;
  11524. background: url("../../assets/icon/icon.png");
  11525. }
  11526. .chapter_upload_ic_edit {
  11527. height: 100%;
  11528. display: flex;
  11529. align-items: center;
  11530. cursor: pointer;
  11531. margin: 0 10px 0 0;
  11532. }
  11533. .chapter_upload_ic_edit div {
  11534. width: 18px;
  11535. height: 18px;
  11536. background-image: url("../../assets/icon/new/edit_u.png");
  11537. background-size: 100% 100%;
  11538. }
  11539. .chapter_upload_ic_r {
  11540. height: 100%;
  11541. display: flex;
  11542. align-items: center;
  11543. cursor: pointer;
  11544. }
  11545. .chapter_upload_ic_r div {
  11546. width: 18px;
  11547. height: 18px;
  11548. background-image: url("../../assets/icon/new/delete_u.png");
  11549. background-size: 100% 100%;
  11550. }
  11551. .chapter_upload_n {
  11552. display: flex;
  11553. text-indent: 10px;
  11554. text-decoration: none;
  11555. text-overflow: ellipsis;
  11556. white-space: nowrap;
  11557. overflow: hidden;
  11558. width: 55%;
  11559. margin-left: 10px;
  11560. cursor: pointer;
  11561. margin-top: 2px;
  11562. align-items: center;
  11563. }
  11564. .chapter_upload_l_i2,
  11565. .chapter_upload_l_i3,
  11566. .chapter_upload_l_i8,
  11567. .chapter_upload_l_i6,
  11568. .chapter_upload_l_i12,
  11569. .chapter_upload_l_i14,
  11570. .chapter_upload_l_i13 {
  11571. width: 15px;
  11572. height: 15px;
  11573. background-size: 100% 100%;
  11574. }
  11575. .chapter_upload_l_i2 {
  11576. background-image: url("../../assets/icon/new/u_word.png");
  11577. }
  11578. .chapter_upload_l_i3 {
  11579. background-image: url("../../assets/icon/new/u_video.png");
  11580. }
  11581. .chapter_upload_l_i8 {
  11582. background-image: url("../../assets/icon/new/u_url.png");
  11583. }
  11584. .chapter_upload_l_i14 {
  11585. background-image: url("../../assets/icon/new/u_source.png");
  11586. }
  11587. .chapter_upload_l_i6 {
  11588. background-image: url("../../assets/icon/new/u_picture.png");
  11589. }
  11590. .chapter_upload_l_i12 {
  11591. background-image: url("../../assets/icon/new/u_word.png");
  11592. }
  11593. .chapter_upload_l_i13 {
  11594. background-image: url("../../assets/icon/new/u_img.png");
  11595. }
  11596. .chapter_upload_noSee {
  11597. background-image: url("../../assets/icon/new/u_noUpload.png");
  11598. width: 18px;
  11599. height: 18px;
  11600. background-size: 100% 100%;
  11601. display: block;
  11602. margin-right: 10px;
  11603. }
  11604. .chapter_upload_ud {
  11605. display: flex;
  11606. flex-direction: row;
  11607. justify-content: center;
  11608. margin: 0 10px 0 0;
  11609. }
  11610. .chapter_upload_ud>.chapter_upload_up {
  11611. margin-bottom: 0;
  11612. margin-right: 10px;
  11613. }
  11614. .chapter_upload_down,
  11615. .chapter_upload_up {
  11616. width: 20px;
  11617. height: 20px;
  11618. background: #e4eaf2;
  11619. cursor: pointer;
  11620. margin: 0 auto;
  11621. border-radius: 5px;
  11622. display: flex;
  11623. justify-content: center;
  11624. align-items: center;
  11625. }
  11626. .chapter_upload_up::after,
  11627. .chapter_upload_down::after {
  11628. content: '';
  11629. background-image: url('../../assets/icon/new/downBtn.png');
  11630. width: 13px;
  11631. height: 13px;
  11632. background-size: 100% 100%;
  11633. display: block;
  11634. }
  11635. .chapter_upload_up::after {
  11636. background-image: url('../../assets/icon/new/upBtn.png') !important;
  11637. }
  11638. .chapter_upload_up {
  11639. margin-bottom: 5px;
  11640. }
  11641. .chapter_upload_ud2 {
  11642. display: flex;
  11643. flex-direction: row;
  11644. justify-content: center;
  11645. margin: 0 10px 0 0;
  11646. }
  11647. .chapter_upload_ud2>.chapter_upload_up2 {
  11648. margin-bottom: 0;
  11649. margin-right: 10px;
  11650. }
  11651. .chapter_upload_down2,
  11652. .chapter_upload_up2 {
  11653. cursor: pointer;
  11654. margin: 0 auto;
  11655. border-radius: 5px;
  11656. display: flex;
  11657. justify-content: center;
  11658. align-items: center;
  11659. color: #717C8D;
  11660. font-size: 14px;
  11661. }
  11662. .chapter_upload_up2{
  11663. margin-right:10px;
  11664. }
  11665. .chapter_upload_up2::before,
  11666. .chapter_upload_down2::before {
  11667. content: '';
  11668. background-image: url('../../assets/icon/new/c_down.png');
  11669. width: 14px;
  11670. height: 14px;
  11671. background-size: 100% 100%;
  11672. display: block;
  11673. margin-right: 5px;
  11674. }
  11675. .chapter_upload_up2::before {
  11676. background-image: url('../../assets/icon/new/c_up.png') !important;
  11677. }
  11678. .addWordStyle {
  11679. display: flex;
  11680. flex-direction: row;
  11681. justify-content: flex-start;
  11682. overflow-x: auto;
  11683. white-space: nowrap;
  11684. flex-wrap: wrap;
  11685. }
  11686. /* table 样式 */
  11687. .cont>>>table {
  11688. border-top: 1px solid #ccc;
  11689. border-left: 1px solid #ccc;
  11690. }
  11691. .cont>>>table td,
  11692. .cont>>>table th {
  11693. border-bottom: 1px solid #ccc;
  11694. border-right: 1px solid #ccc;
  11695. /* padding: 20px 5px; */
  11696. padding: 5px 10px;
  11697. max-width: 0px;
  11698. height: 30px;
  11699. vertical-align: baseline;
  11700. }
  11701. .cont>>>table th {
  11702. border-bottom: 2px solid #ccc;
  11703. text-align: center;
  11704. }
  11705. /* blockquote 样式 */
  11706. .cont>>>blockquote {
  11707. display: block;
  11708. border-left: 8px solid #d0e5f2;
  11709. padding: 5px 10px;
  11710. margin: 10px 0;
  11711. line-height: 1.4;
  11712. font-size: 100%;
  11713. background-color: #f1f1f1;
  11714. }
  11715. /* code 样式 */
  11716. .cont>>>code {
  11717. display: inline-block;
  11718. /* *display: inline; */
  11719. zoom: 1;
  11720. background-color: #f1f1f1;
  11721. border-radius: 3px;
  11722. padding: 3px 5px;
  11723. margin: 0 3px;
  11724. }
  11725. .cont>>>pre code {
  11726. display: block;
  11727. }
  11728. /* ul ol 样式 */
  11729. .cont>>>ul,
  11730. ol {
  11731. margin: 10px 0 10px 20px;
  11732. }
  11733. .wordbox {
  11734. display: flex;
  11735. flex-wrap: wrap;
  11736. cursor: pointer;
  11737. width: 100%;
  11738. }
  11739. .checkword {
  11740. width: 22px;
  11741. height: 22px;
  11742. margin: 10px auto 0;
  11743. cursor: pointer;
  11744. }
  11745. .checkword img {
  11746. width: 100%;
  11747. }
  11748. .stepBg {
  11749. display: flex;
  11750. justify-content: space-between;
  11751. align-items: center;
  11752. background: #fff;
  11753. width: calc(100%);
  11754. margin: 0 auto;
  11755. }
  11756. .stepBorder {
  11757. height: 3px !important;
  11758. background: #CAD1DC;
  11759. width: 100px !important;
  11760. margin: 0 15px !important;
  11761. position: relative;
  11762. }
  11763. .border-active {
  11764. background: #3681FC !important
  11765. }
  11766. .border-active::before,
  11767. .border-active::after {
  11768. border-color: #3681FC !important
  11769. }
  11770. .stepBorder::before,
  11771. .stepBorder::after {
  11772. content: '';
  11773. width: 9px;
  11774. height: 9px;
  11775. background: #FFFFFF;
  11776. opacity: 1;
  11777. border: 2px solid #ACB4BF;
  11778. display: block;
  11779. box-sizing: border-box;
  11780. border-radius: 50%;
  11781. position: absolute;
  11782. top: 50%;
  11783. transform: translateY(-50%);
  11784. }
  11785. .stepBorder::after {
  11786. right: -9px;
  11787. }
  11788. .stepTop {
  11789. width: 100%;
  11790. /* border-radius: 10px; */
  11791. display: flex;
  11792. justify-content: center;
  11793. align-items: center;
  11794. flex-wrap: nowrap;
  11795. background: #fff;
  11796. /* top: 18%; */
  11797. height: 80px;
  11798. border-bottom: 2px solid rgb(228, 232, 237);
  11799. box-sizing: border-box;
  11800. }
  11801. .stepTop2 {
  11802. width: 100%;
  11803. /* border-radius: 10px; */
  11804. display: flex;
  11805. justify-content: center;
  11806. align-items: center;
  11807. flex-wrap: nowrap;
  11808. background: #fff;
  11809. /* top: 18%; */
  11810. height: 20px;
  11811. border-bottom: 2px solid rgb(228, 232, 237);
  11812. box-sizing: border-box;
  11813. overflow: hidden;
  11814. cursor: pointer;
  11815. }
  11816. .stepTop>div img {
  11817. width: 100%;
  11818. }
  11819. .stepTop>div {
  11820. height: 50px;
  11821. width: 180px;
  11822. cursor: pointer;
  11823. margin: 10px 0;
  11824. border-radius: 10px;
  11825. }
  11826. .first,
  11827. .second,
  11828. .third,
  11829. .four {
  11830. background: #3681FC;
  11831. height: 90px;
  11832. color: #fff;
  11833. display: flex;
  11834. flex-direction: row;
  11835. align-items: center;
  11836. justify-content: center;
  11837. }
  11838. .first>div:nth-child(1),
  11839. .second>div:nth-child(1),
  11840. .third>div:nth-child(1),
  11841. .four>div:nth-child(1) {
  11842. margin: 5px 10px 0 0;
  11843. width: 2rem;
  11844. }
  11845. .firstNo,
  11846. .secondNo,
  11847. .thirdNo,
  11848. .fourNo {
  11849. background: #e7e7e7;
  11850. color: #adadad;
  11851. display: flex;
  11852. flex-direction: row;
  11853. align-items: center;
  11854. justify-content: center;
  11855. }
  11856. .firstNo>div:nth-child(1),
  11857. .secondNo>div:nth-child(1),
  11858. .thirdNo>div:nth-child(1),
  11859. .fourNo>div:nth-child(1) {
  11860. margin: 5px 10px 0 0;
  11861. width: 2rem;
  11862. }
  11863. .uploadWidth>>>.el-upload {
  11864. width: 60px;
  11865. height: 60px;
  11866. position: relative;
  11867. }
  11868. .addPeople {
  11869. background: #fa6060;
  11870. width: 150px;
  11871. height: 40px;
  11872. color: #fff;
  11873. border-radius: 5px;
  11874. text-align: center;
  11875. line-height: 40px;
  11876. font-size: 14px;
  11877. cursor: pointer;
  11878. }
  11879. .kcImg {
  11880. width: 60px;
  11881. margin-left: 10px;
  11882. }
  11883. .zyImg {
  11884. width: 55px;
  11885. margin: 0 10px;
  11886. }
  11887. .deleteZy {
  11888. width: 20px;
  11889. position: absolute;
  11890. top: 5px;
  11891. right: 5px;
  11892. cursor: pointer;
  11893. }
  11894. .kcImg>img,
  11895. .zyImg>img,
  11896. .deleteZy>img {
  11897. width: 100%;
  11898. height: 100%;
  11899. }
  11900. .zyBox {
  11901. display: flex;
  11902. flex-direction: row;
  11903. align-items: center;
  11904. background: #67d37d;
  11905. color: #fff;
  11906. width: 210px;
  11907. margin: 20px 20px 0 0;
  11908. border-radius: 10px;
  11909. height: 70px;
  11910. position: relative;
  11911. }
  11912. .upCss {
  11913. display: flex;
  11914. flex-direction: row;
  11915. justify-content: flex-start;
  11916. }
  11917. .upCss>>>.el-icon-plus {
  11918. position: none !important;
  11919. width: 200px;
  11920. height: 100px;
  11921. display: flex;
  11922. flex-wrap: nowrap;
  11923. flex-direction: column;
  11924. align-items: center;
  11925. justify-content: center;
  11926. border: 1px dashed #ccc;
  11927. min-width: 78px;
  11928. min-height: 100px;
  11929. z-index: 999;
  11930. }
  11931. .upCss>>>.el-upload-list__item-name {
  11932. width: 100px;
  11933. white-space: nowrap;
  11934. overflow: hidden;
  11935. text-overflow: ellipsis;
  11936. }
  11937. .upCss>>>.el-upload-list__item .el-icon-close {
  11938. font-size: 20px;
  11939. z-index: 9999;
  11940. }
  11941. .addStageImg {
  11942. min-width: 20px;
  11943. min-height: 20px;
  11944. width: 20px;
  11945. height: 20px;
  11946. cursor: pointer;
  11947. }
  11948. .addHW {
  11949. width: 28px;
  11950. height: 28px;
  11951. cursor: pointer;
  11952. }
  11953. .addStageImg>img,
  11954. .addHW>img {
  11955. width: 100%;
  11956. height: 100%;
  11957. }
  11958. .addNewPP>>>.el-dialog__body {
  11959. padding: 5px 20px;
  11960. }
  11961. .addNewPP>>>.el-dialog {
  11962. margin-top: 5vh !important;
  11963. }
  11964. .addNewPP2>>>.el-dialog__body {
  11965. padding: 5px 0;
  11966. }
  11967. .addNewPP2>>>.el-dialog {
  11968. margin-top: 5vh !important;
  11969. }
  11970. .isHeight {
  11971. height: 680px;
  11972. }
  11973. .toolChoose {
  11974. display: flex;
  11975. /* width: 100%; */
  11976. flex-direction: row;
  11977. flex-wrap: wrap;
  11978. }
  11979. .tool,
  11980. .isToolChoose {
  11981. display: flex;
  11982. flex-direction: column;
  11983. flex-wrap: nowrap;
  11984. width: fit-content;
  11985. margin: 10px 0 10px 0;
  11986. align-items: center;
  11987. border: 2px solid #dbdbdb00;
  11988. padding: 10px 20px;
  11989. border-radius: 5px;
  11990. cursor: pointer;
  11991. /* box-shadow: 0 0 2px 0px #dedede; */
  11992. position: relative;
  11993. box-sizing: border-box;
  11994. }
  11995. .tool:hover {
  11996. border: 2px solid #a5c7ff;
  11997. }
  11998. .tool:hover>.noCTool {
  11999. display: block;
  12000. opacity: 0.5;
  12001. }
  12002. .isToolChoose {
  12003. border: 2px solid #438aff !important;
  12004. box-shadow: 0 0 2px 0px #438aff;
  12005. opacity: 1 !important;
  12006. }
  12007. .isCTool,
  12008. .noCTool {
  12009. width: 30px;
  12010. height: 30px;
  12011. position: absolute;
  12012. top: -4px;
  12013. right: -4px;
  12014. }
  12015. .noCTool {
  12016. display: none;
  12017. }
  12018. .isCTool>img,
  12019. .noCTool>img {
  12020. width: 100%;
  12021. height: 100%;
  12022. }
  12023. .tool+.tool {
  12024. margin-right: 10px;
  12025. }
  12026. .whiteBIcon {
  12027. width: 80px;
  12028. cursor: pointer;
  12029. display: flex;
  12030. flex-direction: column;
  12031. flex-wrap: nowrap;
  12032. align-items: center;
  12033. font-size: 14px;
  12034. }
  12035. .whiteBIcon>img,
  12036. .toolIcon>img,
  12037. .arrow>img {
  12038. width: 100%;
  12039. height: 100%;
  12040. }
  12041. .check img {
  12042. width: 20px;
  12043. height: 20px;
  12044. }
  12045. .whiteBIcon>img {
  12046. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  12047. border-radius: 15px;
  12048. }
  12049. .whiteBIcon>div:nth-child(2) {
  12050. height: 20px;
  12051. line-height: 20px;
  12052. }
  12053. .check {
  12054. /* width: 20px;
  12055. height: 20px; */
  12056. cursor: pointer;
  12057. margin: 10px 0 0;
  12058. }
  12059. .checkDiv {
  12060. display: flex;
  12061. align-items: center;
  12062. }
  12063. .checkDiv span {
  12064. margin-left: 5px;
  12065. color: #858585;
  12066. }
  12067. .customWidth>>>.el-dialog {
  12068. min-width: 500px !important;
  12069. }
  12070. .a_addBox {
  12071. margin: 10px 0;
  12072. background: #fff;
  12073. padding: 15px;
  12074. /* max-height: 600px; */
  12075. overflow: auto;
  12076. }
  12077. .a_add_box {
  12078. border-bottom: 2px solid #eee;
  12079. padding-bottom: 25px;
  12080. }
  12081. .a_add_head {
  12082. display: flex;
  12083. align-items: center;
  12084. justify-content: space-between;
  12085. margin: 10px 0 0 0;
  12086. font-size: 18px;
  12087. }
  12088. .a_add_checkType {
  12089. margin-top: 10px;
  12090. display: flex;
  12091. font-size: 14px;
  12092. align-items: center;
  12093. }
  12094. .a_add_checkType span {
  12095. box-sizing: border-box;
  12096. padding: 0 0 5px 0;
  12097. cursor: pointer;
  12098. }
  12099. .a_add_checkType span+span {
  12100. margin-left: 10px;
  12101. }
  12102. .a_add_checkType .active {
  12103. border-bottom: 2px solid #409eff;
  12104. color: #409eff;
  12105. }
  12106. .a_add_head .a_add_head_input {
  12107. /* width: 540px; */
  12108. width: 100%;
  12109. }
  12110. .a_add_head .a_add_head_div {
  12111. display: flex;
  12112. align-items: center;
  12113. justify-content: space-between;
  12114. }
  12115. .a_add_body {
  12116. display: flex;
  12117. /* align-items: center; */
  12118. align-items: flex-end;
  12119. }
  12120. .a_add_input {
  12121. display: flex;
  12122. align-items: center;
  12123. flex-wrap: wrap;
  12124. }
  12125. .a_add_input_choice {
  12126. flex-direction: column;
  12127. margin-right: 10px;
  12128. }
  12129. .a_add_input_choice>>>.el-radio {
  12130. display: flex;
  12131. align-items: center;
  12132. flex-direction: row-reverse;
  12133. margin: 30px 0 0 0;
  12134. position: relative;
  12135. }
  12136. .a_add_input_choice>>>.el-checkbox {
  12137. display: flex;
  12138. align-items: center;
  12139. flex-direction: row-reverse;
  12140. margin: 30px 0 0 0;
  12141. position: relative;
  12142. }
  12143. .width100 {
  12144. width: 100%;
  12145. }
  12146. .a_add_input .a_add_persent {
  12147. width: 100%;
  12148. }
  12149. .a_add_persent_div {
  12150. width: 100%;
  12151. display: flex;
  12152. align-items: center;
  12153. }
  12154. .a_add_persent_div span {
  12155. margin: 5px 0;
  12156. }
  12157. .a_add_persent_div span:nth-child(1) {
  12158. width: 30%;
  12159. }
  12160. .a_add_persent_div span:nth-child(2) {
  12161. width: 7%;
  12162. }
  12163. .a_add_persent_div span:nth-child(3) {
  12164. width: 40%;
  12165. }
  12166. .a_add_body_div {
  12167. display: flex;
  12168. align-items: center;
  12169. justify-content: center;
  12170. /* flex-direction: column; */
  12171. position: absolute;
  12172. right: -20px;
  12173. transform: translateX(100%);
  12174. }
  12175. .a_add_body_div>>>.el-button--primary {
  12176. background: #466b99;
  12177. border: none;
  12178. }
  12179. .all_choose {
  12180. display: flex;
  12181. flex-direction: row;
  12182. align-items: flex-start;
  12183. width: 100%;
  12184. }
  12185. .all_choose+.all_choose {
  12186. /* margin-top: 10px */
  12187. }
  12188. .all_choose>span {
  12189. min-width: fit-content;
  12190. display: block;
  12191. white-space: nowrap;
  12192. overflow: hidden;
  12193. text-overflow: ellipsis;
  12194. margin-right: 20px;
  12195. font-weight: bold;
  12196. font-size: 14px;
  12197. }
  12198. .all_choose>>>.el-checkbox-group {
  12199. display: flex;
  12200. flex-direction: row;
  12201. width: 100%;
  12202. flex-wrap: wrap;
  12203. align-content: center;
  12204. justify-content: flex-start;
  12205. align-items: center;
  12206. margin-top: 3px;
  12207. }
  12208. .all_choose>.el-checkbox-group>>>.el-checkbox {
  12209. margin-bottom: 10px;
  12210. display: flex;
  12211. flex-direction: row;
  12212. align-items: center;
  12213. margin-right: 10px;
  12214. }
  12215. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  12216. min-width: 80px;
  12217. overflow: hidden;
  12218. width: 80px;
  12219. text-overflow: ellipsis;
  12220. white-space: nowrap;
  12221. }
  12222. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  12223. width: auto;
  12224. }
  12225. .choose>div:nth-child(3)>span {
  12226. /* letter-spacing: 0 !important; */
  12227. }
  12228. .choose {
  12229. display: flex;
  12230. flex-direction: column;
  12231. flex-wrap: nowrap;
  12232. height: 100%;
  12233. justify-content: space-evenly;
  12234. align-items: flex-start;
  12235. }
  12236. .both {
  12237. display: flex;
  12238. flex-direction: row;
  12239. flex-wrap: wrap;
  12240. width: 100%;
  12241. align-items: center;
  12242. justify-content: flex-start;
  12243. margin: 15px 0;
  12244. }
  12245. .notice>>>.el-dialog {
  12246. width: 500px !important;
  12247. text-align: center;
  12248. }
  12249. .notice>>>.el-button {
  12250. margin-top: 20px;
  12251. }
  12252. .whiteBg {
  12253. /* background: #fff; */
  12254. border-radius: 10px;
  12255. }
  12256. .wb_j_box {
  12257. display: flex;
  12258. width: 100%;
  12259. padding: 0 20px 0;
  12260. box-sizing: border-box;
  12261. }
  12262. .wb_j_box_content {
  12263. width: calc(100% - 55% - 100px);
  12264. display: flex;
  12265. align-items: center;
  12266. }
  12267. .wb_j_box_p_box {
  12268. max-width: calc(100% - 200px);
  12269. word-break: break-all;
  12270. overflow: hidden;
  12271. margin: 0 0 0 10px;
  12272. font-size: 14px;
  12273. color: #6e6e6e;
  12274. z-index: 999;
  12275. }
  12276. .chooseWho {
  12277. display: flex;
  12278. width: 410px;
  12279. flex-direction: row;
  12280. flex-wrap: nowrap;
  12281. justify-content: space-between;
  12282. padding-bottom: 10px;
  12283. }
  12284. .chooseWho>div {
  12285. cursor: pointer;
  12286. padding-bottom: 10px;
  12287. font-weight: bold;
  12288. }
  12289. .isChooseActive {
  12290. color: #3e88f4;
  12291. border-bottom: 2px solid #2f80f3;
  12292. }
  12293. .toolSort {
  12294. display: flex;
  12295. flex-direction: row;
  12296. flex-wrap: wrap;
  12297. justify-content: flex-start;
  12298. align-items: flex-start;
  12299. }
  12300. .toolSort>div {
  12301. margin-right: 10px;
  12302. }
  12303. .tools {
  12304. width: 100%;
  12305. display: flex;
  12306. flex-direction: column;
  12307. flex-wrap: nowrap;
  12308. align-items: flex-start;
  12309. }
  12310. .leftTools,
  12311. .rightTools {
  12312. width: 50%;
  12313. }
  12314. .leftTools+.leftTools {
  12315. border-top: 1px solid #dbdbdb;
  12316. padding-top: 30px;
  12317. }
  12318. .rightTools {
  12319. display: flex;
  12320. flex-direction: row;
  12321. flex-wrap: nowrap;
  12322. justify-content: space-around;
  12323. }
  12324. .firstToolList {
  12325. display: flex;
  12326. flex-direction: column;
  12327. flex-wrap: nowrap;
  12328. align-items: center;
  12329. }
  12330. .iconList {
  12331. display: flex;
  12332. flex-direction: row;
  12333. flex-wrap: wrap;
  12334. justify-content: flex-start;
  12335. align-items: center;
  12336. margin: 20px 0 5px 0;
  12337. width: 240px;
  12338. min-width: 240px;
  12339. }
  12340. .iconTool {
  12341. display: flex;
  12342. flex-direction: column;
  12343. flex-wrap: nowrap;
  12344. align-items: center;
  12345. justify-content: flex-start;
  12346. margin: 15px 10px;
  12347. }
  12348. .toolIcon {
  12349. width: 50px;
  12350. }
  12351. .taskBorder {
  12352. /* border: 1px solid #CAD1DC; */
  12353. border-radius: 10px;
  12354. margin-top: 10px;
  12355. min-height: 670px;
  12356. position: relative;
  12357. background: #fff;
  12358. padding: 20px;
  12359. overflow: hidden;
  12360. box-sizing: border-box;
  12361. }
  12362. .smallTaskBorder {
  12363. height: 405px;
  12364. min-height: 405px !important;
  12365. overflow: hidden;
  12366. }
  12367. /* .taskBorder>div {
  12368. padding: 30px 30px 10px;
  12369. } */
  12370. .addTaskBorder {
  12371. /* border: 2px solid #5E9AFC; */
  12372. border-radius: 8px;
  12373. margin-top: 10px;
  12374. cursor: pointer;
  12375. /* height: 50px;
  12376. line-height: 50px; */
  12377. background: #fff;
  12378. padding: 15px 0;
  12379. display: flex;
  12380. align-items: center;
  12381. justify-content: center;
  12382. }
  12383. /* .addTaskBorder>div {
  12384. margin: 0 auto;
  12385. display: flex;
  12386. align-items: center;
  12387. justify-content: center;
  12388. }
  12389. .addTaskBorder>div>img {
  12390. width: 20px;
  12391. }
  12392. .addTaskBorder>div>span {
  12393. font-size: 16px;
  12394. margin-left: 10px;
  12395. color: #5E9AFC;
  12396. } */
  12397. .funBlock {
  12398. display: flex;
  12399. padding: 15px 0;
  12400. flex-direction: row;
  12401. justify-content: center;
  12402. align-items: center;
  12403. position: absolute;
  12404. right: 0;
  12405. bottom: 0;
  12406. background: #fff;
  12407. width: 100%;
  12408. height: 60px;
  12409. z-index: 9;
  12410. }
  12411. .fold {
  12412. display: flex;
  12413. margin: 0 20px;
  12414. flex-direction: row;
  12415. align-items: center;
  12416. cursor: pointer;
  12417. color: #2b7bff;
  12418. }
  12419. .arrow {
  12420. margin-right: 8px;
  12421. width: 16px;
  12422. height: 16px;
  12423. min-width: 16px;
  12424. min-height: 16px;
  12425. background-size: 100% 100%;
  12426. display: block;
  12427. background-image: url(../../assets/icon/new/u_up.png);
  12428. /* border-left: 7px solid transparent;
  12429. border-bottom: 7px solid #717C8D;
  12430. border-top: 0px solid transparent;
  12431. border-right: 7px solid transparent; */
  12432. /* box-sizing: border-box; */
  12433. transition: all .3s;
  12434. }
  12435. .arrowZ {
  12436. transform: rotate(180deg);
  12437. }
  12438. .addToolFun {
  12439. display: flex;
  12440. width: 150px;
  12441. flex-direction: row;
  12442. align-items: center;
  12443. justify-content: center;
  12444. border: 2px dashed #CAD1DC;
  12445. border-radius: 5px;
  12446. height: 50px;
  12447. margin: 35px auto 0;
  12448. cursor: pointer;
  12449. }
  12450. .addToolFun2 {
  12451. display: flex;
  12452. width: 150px;
  12453. border: 2px dashed #CAD1DC;
  12454. flex-direction: row;
  12455. align-items: center;
  12456. justify-content: center;
  12457. border-radius: 5px;
  12458. height: 50px;
  12459. margin: 0 auto 0;
  12460. cursor: pointer;
  12461. }
  12462. .addToolFun2>div,
  12463. .addToolFun>div {
  12464. display: flex;
  12465. line-height: 50px;
  12466. }
  12467. .addToolImg {
  12468. width: 20px;
  12469. height: 20px;
  12470. margin-right: 10px;
  12471. }
  12472. .addToolsDia>>>.el-dialog__body {
  12473. padding: 20px;
  12474. }
  12475. .addToolsDia>>>.el-dialog__body>.toolChoose {
  12476. padding: 0;
  12477. }
  12478. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  12479. padding: 0;
  12480. border-bottom: none;
  12481. margin-bottom: 0;
  12482. }
  12483. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  12484. width: 100%;
  12485. }
  12486. .lineCss>>>.el-form-item__label {
  12487. width: auto !important;
  12488. }
  12489. .lineCss>>>.el-form-item__content {
  12490. margin-left: 50px !important;
  12491. }
  12492. .newSteps {
  12493. display: flex;
  12494. width: 100% !important;
  12495. /* height: 80px; */
  12496. cursor: pointer;
  12497. margin: 10px 0;
  12498. border-radius: 10px;
  12499. flex-direction: row;
  12500. align-content: center;
  12501. justify-content: center;
  12502. align-items: center;
  12503. margin: 0 !important;
  12504. }
  12505. /* 评价样式 */
  12506. .elist_css {
  12507. padding-bottom: 75px !important;
  12508. }
  12509. .elist_title {
  12510. margin-bottom: 10px;
  12511. }
  12512. .elist_input {
  12513. width: 100%;
  12514. }
  12515. .elist_input_box {
  12516. display: flex;
  12517. align-items: center;
  12518. flex-wrap: wrap;
  12519. }
  12520. .elist_input_box+.elist_input_box {
  12521. margin-top: 30px;
  12522. }
  12523. .elist_input .elist_input_box input {
  12524. font: inherit;
  12525. color: currentColor;
  12526. width: 100%;
  12527. /* max-width: calc(100% - 385px); */
  12528. max-width: calc(100% - 150px);
  12529. padding: 8px 14px;
  12530. display: block;
  12531. min-width: 0;
  12532. outline: none;
  12533. border: 1px solid rgba(0, 0, 0, 0.23);
  12534. border-radius: 4px;
  12535. box-sizing: border-box;
  12536. background: #fff;
  12537. margin: 0 20px 0 0;
  12538. }
  12539. .elist_input .elist_input_box span {
  12540. height: 36px;
  12541. line-height: 36px;
  12542. color: rgb(82, 82, 82);
  12543. min-width: 80px;
  12544. }
  12545. .elist_input .elist_input_box .remove {
  12546. height: 20px;
  12547. width: 20px;
  12548. min-height: 20px;
  12549. min-width: 20px;
  12550. background-size: 100% 100%;
  12551. background-position: unset;
  12552. margin-left: 5px;
  12553. }
  12554. .elist_input_box>>>.el-rate {
  12555. display: flex;
  12556. height: 36px;
  12557. align-items: center;
  12558. }
  12559. .elist_input_box .elist_inptu_text {
  12560. width: 100%;
  12561. display: flex;
  12562. align-items: center;
  12563. margin-top: 10px;
  12564. }
  12565. .elist_input_box .elist_inptu_text input {
  12566. /* width: 500px; */
  12567. width: 100%;
  12568. max-width: unset;
  12569. }
  12570. .elist_input_box>>>.el-rate__icon {
  12571. font-size: 24px;
  12572. }
  12573. .elist_btn {
  12574. margin-top: 10px;
  12575. }
  12576. .lineTitle {
  12577. /* margin-top: 15px; */
  12578. width: 110px;
  12579. font-size: 16px;
  12580. display: flex;
  12581. align-items: center;
  12582. line-height: 20px;
  12583. }
  12584. .lineTitle::before {
  12585. content: '';
  12586. display: block;
  12587. width: 3px;
  12588. height: 20px;
  12589. background: #0061FF;
  12590. border-radius: 3px;
  12591. margin: 0 5px 0 0;
  12592. }
  12593. .clineTitle::before {
  12594. content: '';
  12595. display: block;
  12596. min-width: 10px;
  12597. width: 10px;
  12598. height: 10px;
  12599. background: #0061ff;
  12600. border-radius: 50%;
  12601. margin: 0 5px 0 0;
  12602. }
  12603. .courseTop {
  12604. display: flex;
  12605. flex-direction: row;
  12606. justify-content: space-between;
  12607. align-items: center;
  12608. width: calc(100% - 40px);
  12609. margin: 0 auto;
  12610. padding: 10px 0;
  12611. }
  12612. .stepsNav {
  12613. display: flex;
  12614. flex-direction: row;
  12615. justify-content: flex-start;
  12616. align-items: center;
  12617. }
  12618. .stepsWord {
  12619. font-size: 18px;
  12620. color: #fff;
  12621. font-weight: bold;
  12622. margin-left: auto;
  12623. background: rgb(15, 126, 255);
  12624. border-radius: 5px;
  12625. padding: 3px 25px;
  12626. box-sizing: border-box;
  12627. }
  12628. .stepBox {
  12629. width: calc(100% - 40px);
  12630. height: calc(100% - 50px);
  12631. overflow: hidden;
  12632. border-radius: 5px;
  12633. margin: 0 auto;
  12634. }
  12635. .rightBox {
  12636. width: calc(100%);
  12637. background: #F0F2F5;
  12638. /* border-radius: 10px; */
  12639. overflow: auto;
  12640. height: calc(100% - 150px);
  12641. margin: 0 auto;
  12642. position: relative;
  12643. box-sizing: border-box;
  12644. }
  12645. .e_add_top {
  12646. display: flex;
  12647. justify-content: space-between;
  12648. background: #fff;
  12649. position: absolute;
  12650. right: 20px;
  12651. height: 50px;
  12652. align-items: center;
  12653. }
  12654. .e_add_title2 {
  12655. display: flex;
  12656. align-items: center;
  12657. }
  12658. .e_add_title2 span {
  12659. width: 40px;
  12660. }
  12661. .e_add_title {
  12662. display: flex;
  12663. align-items: center;
  12664. color: #b8b8b8;
  12665. font-size: 18px;
  12666. position: relative;
  12667. height: 40px;
  12668. }
  12669. .e_add_title span {
  12670. margin-right: 10px;
  12671. }
  12672. .e_add_title .el_input {
  12673. width: 300px;
  12674. }
  12675. .e_add_title>>>.el-input__inner {
  12676. width: 400px;
  12677. }
  12678. .e_add_btn {}
  12679. .e_add_content {
  12680. display: flex;
  12681. width: 100%;
  12682. }
  12683. .e_add_list {
  12684. background: #fff;
  12685. height: 500px;
  12686. width: 210px;
  12687. position: relative;
  12688. margin: 15px 5px 0 0;
  12689. flex-shrink: 0;
  12690. display: flex;
  12691. flex-direction: column;
  12692. }
  12693. .e_add_list_title {
  12694. font-size: 20px;
  12695. width: 100%;
  12696. box-sizing: border-box;
  12697. padding: 15px 40px;
  12698. text-align: center;
  12699. border-bottom: 1px solid #eaeaea;
  12700. position: relative;
  12701. display: flex;
  12702. align-items: center;
  12703. justify-content: center;
  12704. height: 57px;
  12705. background: #f6f6f6;
  12706. }
  12707. .e_add_list_title span {
  12708. overflow: hidden;
  12709. white-space: nowrap;
  12710. text-overflow: ellipsis;
  12711. }
  12712. .e_add_list_title img {
  12713. position: absolute;
  12714. right: 15px;
  12715. width: 25px;
  12716. cursor: pointer;
  12717. top: 50%;
  12718. transform: translateY(-50%);
  12719. }
  12720. .e_add_list_body {
  12721. height: calc(100% - 187px);
  12722. overflow: auto;
  12723. }
  12724. .e_add_list_child {
  12725. width: 100%;
  12726. display: flex;
  12727. align-items: center;
  12728. justify-content: center;
  12729. position: relative;
  12730. box-sizing: border-box;
  12731. padding: 15px 40px;
  12732. text-align: center;
  12733. }
  12734. .e_add_list_child span {
  12735. overflow: hidden;
  12736. white-space: nowrap;
  12737. text-overflow: ellipsis;
  12738. cursor: pointer;
  12739. }
  12740. .e_add_list_child img {
  12741. position: absolute;
  12742. right: 10px;
  12743. width: 21px;
  12744. cursor: pointer;
  12745. top: 50%;
  12746. transform: translateY(-50%);
  12747. }
  12748. .e_add_list_child+.e_add_list_child {
  12749. border-top: 1px solid #eaeaea;
  12750. }
  12751. .e_add_list_child .active {
  12752. color: #409eff;
  12753. }
  12754. .e_add_list_btn {
  12755. position: absolute;
  12756. bottom: 0;
  12757. height: 50px;
  12758. background: rgb(120, 120, 254);
  12759. width: 100%;
  12760. color: #fff;
  12761. font-size: 16px;
  12762. text-align: center;
  12763. line-height: 50px;
  12764. cursor: pointer;
  12765. }
  12766. .e_add_list_detail {
  12767. position: absolute;
  12768. bottom: 0;
  12769. height: 130px;
  12770. background: rgb(120, 120, 254);
  12771. width: 100%;
  12772. color: #fff;
  12773. font-size: 16px;
  12774. display: flex;
  12775. align-items: center;
  12776. justify-content: center;
  12777. }
  12778. .e_add_list_detail textarea {
  12779. height: 90%;
  12780. width: 95%;
  12781. border: none;
  12782. resize: none;
  12783. outline: none;
  12784. padding: 5px;
  12785. box-sizing: border-box;
  12786. }
  12787. .e_add_list_pbox {
  12788. width: 100%;
  12789. }
  12790. .e_add_list_pbox_title {
  12791. height: 50px;
  12792. background: #fff;
  12793. display: flex;
  12794. align-items: center;
  12795. width: 100%;
  12796. box-sizing: border-box;
  12797. padding: 0 20px;
  12798. flex-direction: row;
  12799. flex-wrap: wrap;
  12800. }
  12801. .type_title {
  12802. font-size: 18px;
  12803. font-weight: 700;
  12804. }
  12805. .type_content {
  12806. font-size: 16px;
  12807. margin-left: 30px;
  12808. }
  12809. .type_content span+span {
  12810. margin-left: 20px;
  12811. }
  12812. .type_content span {
  12813. cursor: pointer;
  12814. padding-bottom: 5px;
  12815. box-sizing: border-box;
  12816. }
  12817. .type_content .active {
  12818. color: #409eff;
  12819. border-bottom: 2px solid #409eff;
  12820. }
  12821. .e_add_list_pbox_content {
  12822. height: calc(100% - 50px);
  12823. display: flex;
  12824. align-items: center;
  12825. width: 100%;
  12826. background: #fff;
  12827. }
  12828. .mbCss {
  12829. width: 100%;
  12830. display: flex;
  12831. flex-direction: row;
  12832. flex-wrap: nowrap;
  12833. align-content: center;
  12834. align-items: flex-start;
  12835. justify-content: flex-start;
  12836. }
  12837. .pjCss {
  12838. /* width: 42%; */
  12839. width: calc(100% - 55%);
  12840. display: flex;
  12841. flex-direction: column;
  12842. flex-wrap: nowrap;
  12843. align-items: flex-start;
  12844. }
  12845. .e_box {
  12846. /* display: flex; */
  12847. flex-wrap: wrap;
  12848. max-height: 500px;
  12849. align-items: flex-start;
  12850. overflow: auto;
  12851. width:100%;
  12852. }
  12853. .e_card {
  12854. border: 1px solid #ccc;
  12855. background: #fff;
  12856. margin-right: 20px;
  12857. width: 270px;
  12858. display: flex;
  12859. flex-direction: column;
  12860. align-items: center;
  12861. border-radius: 5px;
  12862. margin-top: 10px;
  12863. text-align: center;
  12864. }
  12865. .e_card_picture {
  12866. margin: 10px 0;
  12867. }
  12868. .e_card_picture>img {
  12869. width: 50px;
  12870. }
  12871. .e_card_name {
  12872. width: 100%;
  12873. padding: 0 10px;
  12874. box-sizing: border-box;
  12875. margin-bottom: 10px;
  12876. overflow: hidden;
  12877. text-overflow: ellipsis;
  12878. white-space: nowrap;
  12879. }
  12880. .e_card_time {
  12881. width: 100%;
  12882. padding: 0 10px;
  12883. box-sizing: border-box;
  12884. font-size: 15px;
  12885. color: #c3c3c3;
  12886. margin-bottom: 10px;
  12887. }
  12888. .e_card_btn {
  12889. height: 40px;
  12890. display: flex;
  12891. align-items: center;
  12892. width: 100%;
  12893. background: rgb(244, 244, 244);
  12894. }
  12895. .e_card_btn:hover {
  12896. background: rgb(221 221 221);
  12897. }
  12898. .e_card_btn span {
  12899. flex: 1 1 auto;
  12900. text-align: center;
  12901. cursor: pointer;
  12902. }
  12903. .addEva {
  12904. border: 1px solid #ccc;
  12905. background: #fff;
  12906. margin-right: 20px;
  12907. width: 270px;
  12908. height: 149px;
  12909. display: flex;
  12910. flex-direction: column;
  12911. align-items: center;
  12912. border-radius: 5px;
  12913. margin-top: 10px;
  12914. text-align: center;
  12915. cursor: pointer;
  12916. justify-content: center;
  12917. }
  12918. .addEva>img {
  12919. width: 50px;
  12920. object-fit: cover;
  12921. }
  12922. .uploadFm {
  12923. border: 1px dashed #ccc;
  12924. width: 100%;
  12925. height: 140px;
  12926. position: relative;
  12927. cursor: pointer;
  12928. display: flex;
  12929. flex-direction: column;
  12930. justify-content: center;
  12931. align-items: center;
  12932. font-size: 14px;
  12933. color: #6e6e6e;
  12934. position:relative;
  12935. }
  12936. .cover_p{
  12937. width: 100% !important;
  12938. height: 100%;
  12939. object-fit: cover;
  12940. }
  12941. .uploadFm2:hover .cover_mask{
  12942. display: flex !important;
  12943. }
  12944. .cover_mask{
  12945. display:none;
  12946. width:100%;
  12947. height:100%;
  12948. position:absolute;
  12949. background:#00000054;
  12950. align-items: center;
  12951. justify-content: center;
  12952. flex-direction: column;
  12953. }
  12954. .cover_mask > img{
  12955. width: 30px;
  12956. }
  12957. .cover_mask > span{
  12958. color: #fff;
  12959. font-size: 12px;
  12960. }
  12961. .uploadFm>img {
  12962. width: 50px;
  12963. }
  12964. .fileCss {
  12965. width: 100%;
  12966. display: flex;
  12967. flex-direction: row;
  12968. flex-wrap: nowrap;
  12969. justify-content: space-around;
  12970. align-items: center;
  12971. padding-top: 15px;
  12972. }
  12973. .fileCss>div {
  12974. display: flex;
  12975. flex-direction: column;
  12976. align-items: center;
  12977. }
  12978. .fileCss .spanName {
  12979. margin-top: 10px
  12980. }
  12981. .sysPicBox {
  12982. display: flex;
  12983. flex-direction: row;
  12984. flex-wrap: wrap;
  12985. align-content: flex-start;
  12986. height: 435px;
  12987. overflow: auto;
  12988. position: relative;
  12989. }
  12990. .picNone {
  12991. position: absolute;
  12992. left: 50%;
  12993. top: 45%;
  12994. transform: translate(-50%, -50%);
  12995. width: fit-content;
  12996. color: #9c9c9c;
  12997. }
  12998. .sysPic {
  12999. width: 200px;
  13000. height: 115px;
  13001. margin: 0 20px 20px 0;
  13002. cursor: pointer;
  13003. }
  13004. .sysPic>img,
  13005. .isSysPic>img,
  13006. .deletePic>img {
  13007. width: 100%;
  13008. height: 100%;
  13009. object-fit: cover;
  13010. }
  13011. .isSysPic {
  13012. width: 200px;
  13013. height: 115px;
  13014. position: relative;
  13015. }
  13016. .deletePic {
  13017. width: 20px;
  13018. height: 20px;
  13019. position: absolute;
  13020. top: 0;
  13021. right: 0;
  13022. cursor: pointer;
  13023. }
  13024. .select_box1 {
  13025. height: 100%;
  13026. }
  13027. .select_box1_img {
  13028. background: #fff;
  13029. border-radius: 5px;
  13030. padding: 15px;
  13031. box-sizing: border-box;
  13032. margin-bottom: 20px;
  13033. }
  13034. .select_box1_title {
  13035. padding: 0 0 15px 0;
  13036. border-bottom: 1px solid #eee;
  13037. margin-bottom: 15px;
  13038. }
  13039. .select_box1_title span:nth-child(1) {
  13040. font-size: 16px;
  13041. margin-right: 20px;
  13042. color: #000;
  13043. }
  13044. .select_box1_title span:nth-child(2) {
  13045. font-size: 14px;
  13046. color: rgb(112, 112, 112);
  13047. }
  13048. .select_box1_add_img {}
  13049. .select_box1_select {
  13050. background: #fff;
  13051. border-radius: 5px;
  13052. padding: 15px;
  13053. box-sizing: border-box;
  13054. height: calc(100% - 200px);
  13055. overflow: auto;
  13056. }
  13057. .select_box2 {
  13058. height: 100%;
  13059. }
  13060. .select_box2_title {
  13061. background: #fff;
  13062. border-radius: 5px;
  13063. padding: 5px 10px;
  13064. box-sizing: border-box;
  13065. margin-bottom: 10px;
  13066. }
  13067. .select_box2_box {
  13068. display: flex;
  13069. height: calc(100% - 30px);
  13070. }
  13071. .select_box2_img {
  13072. width: calc(100% - 310px);
  13073. height: 100%;
  13074. overflow: auto;
  13075. background: #fff;
  13076. border-radius: 5px;
  13077. }
  13078. .select_box2_img img {
  13079. width: 100%;
  13080. }
  13081. .select_box2_answer {
  13082. background: #fff;
  13083. margin-left: 10px;
  13084. border-radius: 5px;
  13085. width: 300px;
  13086. overflow: auto;
  13087. height: 100%;
  13088. display: flex;
  13089. flex-direction: column;
  13090. align-items: center;
  13091. padding-top: 10px;
  13092. box-sizing: border-box;
  13093. }
  13094. .select_box2_answer_box {
  13095. margin: 0 0 10px 0;
  13096. width: 85%;
  13097. }
  13098. .rate_textarea {
  13099. font: inherit;
  13100. color: currentColor;
  13101. width: 100%;
  13102. padding: 8px 14px;
  13103. display: block;
  13104. min-width: 0;
  13105. outline: none;
  13106. border: 1px solid rgba(0, 0, 0, 0.23);
  13107. border-radius: 4px;
  13108. box-sizing: border-box;
  13109. background: #fff;
  13110. margin: 0 20px 0 0;
  13111. resize: none;
  13112. }
  13113. .select_answer_title {
  13114. text-align: left;
  13115. width: 85%;
  13116. margin-bottom: 10px;
  13117. font-size: 18px;
  13118. color: #8e8e8e;
  13119. }
  13120. .mask {
  13121. background-color: rgb(0 0 0 / 30%);
  13122. /* position: fixed; */
  13123. position: absolute;
  13124. top: 0;
  13125. left: 0;
  13126. width: 100%;
  13127. height: 100%;
  13128. z-index: 90;
  13129. display: flex;
  13130. align-items: center;
  13131. justify-content: center;
  13132. }
  13133. .progressBox {
  13134. width: 300px;
  13135. height: 150px;
  13136. background: #fff;
  13137. border-radius: 10px;
  13138. box-shadow: 0 0 6px 1px #bfbfbf;
  13139. display: flex;
  13140. align-items: center;
  13141. justify-content: center;
  13142. flex-direction: column;
  13143. position: relative;
  13144. color: #6c6c6c;
  13145. }
  13146. .progressBox>>>.el-progress-bar__outer {
  13147. background-color: #d1dfff !important;
  13148. }
  13149. .progressBox .lbox {
  13150. height: 50px;
  13151. font-size: 19px;
  13152. display: flex;
  13153. align-items: center;
  13154. color: #747474;
  13155. }
  13156. .progressBox .lbox img {
  13157. width: 40px;
  13158. margin-right: 20px;
  13159. }
  13160. .closeCss {
  13161. position: absolute;
  13162. top: 8px;
  13163. right: 8px;
  13164. cursor: pointer;
  13165. width: 20px;
  13166. height: 20px;
  13167. }
  13168. .closeCss>img {
  13169. width: 100%;
  13170. height: 100%;
  13171. }
  13172. .updateTips::before {
  13173. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  13174. font-size: 14px;
  13175. margin-left: 20px;
  13176. font-weight: 400;
  13177. color: #ff3a3a;
  13178. margin-bottom: 10px;
  13179. display: block;
  13180. }
  13181. .updateMask {
  13182. width: 100%;
  13183. z-index: 3;
  13184. top: 0;
  13185. position: absolute;
  13186. /* background-color: rgba(0,0,0,.3); */
  13187. }
  13188. .t_j_box {
  13189. display: flex;
  13190. }
  13191. .t_j_box span:nth-child(1) {
  13192. width: 15%;
  13193. overflow: hidden;
  13194. margin-right: 10px;
  13195. text-overflow: ellipsis;
  13196. white-space: nowrap;
  13197. }
  13198. .t_j_box span:nth-child(2) {
  13199. width: 30%;
  13200. overflow: hidden;
  13201. text-overflow: ellipsis;
  13202. margin-right: 10px;
  13203. }
  13204. .t_j_box span:nth-child(3) {
  13205. max-width: calc(55% - 20px);
  13206. overflow: hidden;
  13207. text-overflow: ellipsis;
  13208. }
  13209. .sentenBox {
  13210. background: #fff;
  13211. height: 600px;
  13212. overflow: auto;
  13213. background-image: url("../../assets/icon/conSentences/csBg.png");
  13214. background-position: 102%;
  13215. background-repeat: no-repeat;
  13216. background-size: 60%;
  13217. }
  13218. .sentenBox>.sentenContent {
  13219. padding-bottom: 10px;
  13220. width: 97%;
  13221. margin: 0 auto;
  13222. }
  13223. .sentenBox>.sentenContent+.sentenContent {
  13224. border-top: 1px solid #cbcbcb;
  13225. }
  13226. .addSen {
  13227. background: #409efe;
  13228. width: 90px;
  13229. color: #fff;
  13230. height: 35px;
  13231. text-align: center;
  13232. line-height: 35px;
  13233. border-radius: 5px;
  13234. float: right;
  13235. margin: 10px 20px 0 0;
  13236. cursor: pointer;
  13237. }
  13238. .sentenTop {
  13239. display: flex;
  13240. flex-direction: row;
  13241. flex-wrap: nowrap;
  13242. align-items: center;
  13243. }
  13244. .sentenTop::before {
  13245. content: attr(index);
  13246. background: #3681fc;
  13247. border-radius: 50%;
  13248. color: #fff;
  13249. width: 25px;
  13250. height: 25px;
  13251. min-width: 25px;
  13252. min-height: 25px;
  13253. text-align: center;
  13254. line-height: 25px;
  13255. margin-right: 5px;
  13256. }
  13257. .sentenTop>div:nth-child(2) {
  13258. width: 300px;
  13259. margin: 0 15px;
  13260. }
  13261. .sentenTop>div:nth-child(3) {
  13262. background: #409efe;
  13263. color: #fff;
  13264. width: 65px;
  13265. height: 35px;
  13266. text-align: center;
  13267. line-height: 35px;
  13268. border-radius: 5px;
  13269. cursor: pointer;
  13270. }
  13271. .cardList {
  13272. padding: 30px 0 20px 0;
  13273. display: flex;
  13274. flex-direction: row;
  13275. flex-wrap: wrap;
  13276. align-items: center;
  13277. box-sizing: border-box;
  13278. border-bottom: 1px solid #f4f4f4;
  13279. width: 98%;
  13280. margin: 0 auto;
  13281. }
  13282. .rightCardList {
  13283. display: flex;
  13284. flex-wrap: wrap;
  13285. }
  13286. .cardBox {
  13287. display: flex;
  13288. flex-direction: row;
  13289. flex-wrap: wrap;
  13290. align-items: center;
  13291. align-content: center;
  13292. }
  13293. .isCard,
  13294. .isCard1 {
  13295. width: auto;
  13296. padding: 0 20px;
  13297. height: 65px;
  13298. text-align: center;
  13299. line-height: 65px;
  13300. font-size: 14px;
  13301. cursor: pointer;
  13302. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  13303. background-size: 100% 100%;
  13304. position: relative;
  13305. z-index: 99;
  13306. }
  13307. .isCard1 {
  13308. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  13309. }
  13310. .isCard:hover .deleteWord {
  13311. display: block;
  13312. }
  13313. .isCard>div:nth-child(1),
  13314. .isCard1>div:nth-child(1) {
  13315. white-space: nowrap;
  13316. overflow: hidden;
  13317. text-overflow: ellipsis;
  13318. width: 100%;
  13319. margin: 0 auto;
  13320. }
  13321. .card {
  13322. width: 140px;
  13323. height: 65px;
  13324. }
  13325. .card>img {
  13326. width: 100%;
  13327. height: 100%;
  13328. }
  13329. .rightCardBox {
  13330. width: 98%;
  13331. margin: 10px auto 0;
  13332. }
  13333. .rightCardBox>div:nth-child(1) {
  13334. margin-bottom: 10px;
  13335. }
  13336. .cardCss {
  13337. display: flex;
  13338. flex-direction: column;
  13339. flex-wrap: nowrap;
  13340. align-items: center;
  13341. border-bottom: 3px solid #b4c3d3;
  13342. padding: 0 0 5px 0;
  13343. /* margin-right: 10px; */
  13344. }
  13345. .cardCss>div:nth-child(2) {
  13346. background: #5b7b9d;
  13347. color: #fff;
  13348. width: 20px;
  13349. height: 20px;
  13350. border-radius: 50%;
  13351. text-align: center;
  13352. line-height: 20px;
  13353. }
  13354. .sentenTopBox {
  13355. display: flex;
  13356. flex-direction: row;
  13357. flex-wrap: nowrap;
  13358. align-items: center;
  13359. justify-content: space-between;
  13360. padding: 55px 0 0 20px;
  13361. box-sizing: border-box;
  13362. width: 85%;
  13363. }
  13364. .stepsBottom {
  13365. width: 100%;
  13366. box-shadow: 0 0 10px 10px #f7f7f7;
  13367. /* background: #f7f7f7; */
  13368. border-radius: 10px;
  13369. overflow: hidden;
  13370. height: 100%
  13371. }
  13372. .navTop {
  13373. background: #53749b;
  13374. color: #fff;
  13375. height: 40px;
  13376. line-height: 40px;
  13377. padding-left: 15px;
  13378. font-size: 18px;
  13379. }
  13380. .navBottom {
  13381. /* background: #6b91b7; */
  13382. height: 100%;
  13383. overflow: auto;
  13384. padding: 10px 0;
  13385. }
  13386. .navStage {
  13387. display: flex;
  13388. flex-direction: row;
  13389. flex-wrap: nowrap;
  13390. align-items: center;
  13391. padding: 10px 10px 10px 0;
  13392. cursor: pointer;
  13393. background: #ffffff;
  13394. width: 95%;
  13395. margin: 5px auto 5px;
  13396. box-sizing: border-box;
  13397. border-radius: 5px;
  13398. flex-wrap: wrap;
  13399. position: relative;
  13400. }
  13401. .navStage:hover > .chapter_upload_drag{
  13402. display: block;
  13403. }
  13404. .navTask:hover > .chapter_upload_drag{
  13405. display: block;
  13406. }
  13407. .chapter_upload:hover > .chapter_upload_drag{
  13408. display: block;
  13409. }
  13410. .navStage::before {
  13411. content: '';
  13412. display: block;
  13413. width: 16px;
  13414. height: 16px;
  13415. background-image: url(../../assets/icon/new/icon_stage.png);
  13416. background-size: 100%;
  13417. margin-left: 25px;
  13418. }
  13419. .navStage .chapter_unit_open {
  13420. content: '';
  13421. display: block;
  13422. width: 16px;
  13423. height: 16px;
  13424. background-image: url(../../assets/icon/new/down.png);
  13425. transform: rotate(-90deg);
  13426. background-size: 100%;
  13427. margin-left: 10px;
  13428. transition: all .5s;
  13429. }
  13430. .isNavStageOpen .chapter_unit_open {
  13431. transform: rotate(0deg);
  13432. }
  13433. .isNavStage {
  13434. background: #0061FF;
  13435. }
  13436. .isNavStage::before{
  13437. background-image: url(../../assets/icon/new/icon_stage_a.png);
  13438. }
  13439. .isNavStage .chapter_unit_open{
  13440. background-image: url(../../assets/icon/new/downC.png);
  13441. }
  13442. .isNavStage .nt_taskName {
  13443. font-weight: bold !important;
  13444. color: #FFFFFF !important;
  13445. }
  13446. .isNavStage .nt_taskTitle {
  13447. font-weight: bold !important;
  13448. color: #fff !important;
  13449. }
  13450. .navStage .nt_taskBox {
  13451. width: calc(100% - 68px);
  13452. padding: 0 0 0 5px;
  13453. box-sizing: border-box;
  13454. box-sizing: border-box;
  13455. display: flex;
  13456. flex-direction: row;
  13457. flex-wrap: nowrap;
  13458. align-items: baseline;
  13459. }
  13460. .navStage .nt_taskTitle {
  13461. color: #060E17;
  13462. line-height: 25px;
  13463. font-size: 16px;
  13464. }
  13465. .navStage .nt_taskName {
  13466. max-width: calc(100% - 82px);
  13467. white-space: nowrap;
  13468. overflow: hidden;
  13469. text-overflow: ellipsis;
  13470. font-size: 16px;
  13471. color: #060E17;
  13472. }
  13473. .navTask {
  13474. display: flex;
  13475. flex-direction: row;
  13476. flex-wrap: nowrap;
  13477. align-items: center;
  13478. padding: 10px 10px 10px 0;
  13479. cursor: pointer;
  13480. background: #ffffff;
  13481. width: 95%;
  13482. margin: 5px auto 5px;
  13483. box-sizing: border-box;
  13484. border-radius: 5px;
  13485. flex-wrap: wrap;
  13486. position: relative;
  13487. }
  13488. .navTask .chapter_upload_open {
  13489. content: '';
  13490. display: block;
  13491. width: 16px;
  13492. height: 16px;
  13493. background-image: url(../../assets/icon/new/icon_arrow.png);
  13494. background-size: 100%;
  13495. margin-left: 23px;
  13496. }
  13497. .noImage .chapter_upload_open {
  13498. display: none;
  13499. background-image: unset !important;
  13500. }
  13501. .isNavOpen .chapter_upload_open {
  13502. /* background-image: url(../../assets/icon/new/icon_arrow_a.png) !important; */
  13503. transform: rotate(90deg);
  13504. }
  13505. .isNavTask .chapter_upload_open {
  13506. background-image: url(../../assets/icon/new/icon_arrow_a.png) !important;
  13507. transform: rotate(-90deg);
  13508. }
  13509. .isNavTask.isNavOpen .chapter_upload_open{
  13510. transform: rotate(0deg);
  13511. }
  13512. .dragOverTop {
  13513. border-top: 2px solid #0061FF !important;
  13514. border-radius: 0 !important;
  13515. margin-top: 10px;
  13516. }
  13517. .dragOverBottom {
  13518. border-bottom: 2px solid #0061FF !important;
  13519. border-radius: 0 !important;
  13520. margin-top: 10px;
  13521. }
  13522. .dragOverTop2 {
  13523. border-top: 2px solid #0061FF !important;
  13524. border-radius: 0 !important;
  13525. }
  13526. .dragOverBottom2 {
  13527. border-bottom: 2px solid #0061FF !important;
  13528. border-radius: 0 !important;
  13529. }
  13530. .isNavTask {
  13531. /* background: #3681FC; */
  13532. background: #EEF3FB;
  13533. }
  13534. .isNavTask>.chapter_upload_drag {
  13535. background-image: url(../../assets/icon/new/icon_course_drag_active.png) !important;
  13536. }
  13537. .isNavTask .nt_taskName {
  13538. /* color: #fff !important; */
  13539. font-weight: bold !important;
  13540. color: #0061FF !important;
  13541. }
  13542. .isNavTask .nt_taskTitle {
  13543. /* color: #AECCFE !important; */
  13544. font-weight: bold !important;
  13545. color: #0061FF !important;
  13546. }
  13547. .navTask .nt_taskBox {
  13548. width: calc(100% - 40px);
  13549. padding: 0 0 0 5px;
  13550. box-sizing: border-box;
  13551. box-sizing: border-box;
  13552. display: flex;
  13553. flex-direction: row;
  13554. flex-wrap: nowrap;
  13555. align-items: baseline;
  13556. }
  13557. .navTask .nt_taskTitle {
  13558. /* color: #717C8D; */
  13559. color: #060E17;
  13560. line-height: 25px;
  13561. font-size: 16px;
  13562. /* min-width: 66px; */
  13563. }
  13564. .navTask .nt_taskName {
  13565. /* color: #fff; */
  13566. /* max-width: 130px; */
  13567. /* width: 100%; */
  13568. max-width: calc(100% - 66px);
  13569. font-size: 16px;
  13570. color: #060E17;
  13571. /* color: #0E1E33; */
  13572. }
  13573. .navTask .nt_taskName span{
  13574. width: 100%;
  13575. white-space: nowrap;
  13576. overflow: hidden;
  13577. text-overflow: ellipsis;
  13578. display:block;
  13579. }
  13580. .gjBox {
  13581. width: calc(100% - 25px);
  13582. padding: 0 0 0 0;
  13583. box-sizing: border-box;
  13584. border-left: 1px solid #CAD1DC;
  13585. margin-left: 25px;
  13586. }
  13587. .gjBox>div {
  13588. display: flex;
  13589. align-items: center;
  13590. }
  13591. .gjBox>div::before {
  13592. content: '';
  13593. height: 1px;
  13594. width: 10px;
  13595. background: #CAD1DC;
  13596. display: block;
  13597. margin-right: 5px;
  13598. }
  13599. .gjCss {
  13600. display: flex;
  13601. flex-direction: row;
  13602. flex-wrap: nowrap;
  13603. align-items: center;
  13604. padding: 15px 0;
  13605. box-sizing: border-box;
  13606. font-size: 14px;
  13607. cursor: pointer;
  13608. }
  13609. .isGjCss {
  13610. color: #0061ff;
  13611. }
  13612. .groupBox {}
  13613. .groupContent+.groupContent {
  13614. margin-top: 30px;
  13615. }
  13616. .groupTitle {
  13617. font-size: 24px;
  13618. color: rgb(80, 80, 80);
  13619. margin-bottom: 20px;
  13620. }
  13621. .groupName {
  13622. display: flex;
  13623. align-items: center;
  13624. }
  13625. .groupn {
  13626. font-size: 15px;
  13627. margin-right: 10px;
  13628. }
  13629. .groupName+.groupName {
  13630. margin-top: 15px;
  13631. }
  13632. .groupBtn {
  13633. margin-left: 10px;
  13634. }
  13635. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  13636. text-align: left;
  13637. }
  13638. .radioBox>div {
  13639. margin: 10px 0 0 10px;
  13640. }
  13641. .radioBox>>>.el-radio__input,
  13642. .radioBox>>>.el-checkbox__inner {
  13643. margin-left: 10px;
  13644. }
  13645. .radioBox>>>.el-radio__label,
  13646. .radioBox>>>.el-checkbox__label {
  13647. display: flex;
  13648. align-items: center;
  13649. }
  13650. .inImg {
  13651. width: 50px;
  13652. }
  13653. .inImg>img {
  13654. width: 100%;
  13655. height: 100%;
  13656. object-fit: cover;
  13657. }
  13658. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  13659. height: auto;
  13660. padding: 10px;
  13661. margin: 0;
  13662. }
  13663. .upCss>>>.el-upload-list {
  13664. width: 100%;
  13665. }
  13666. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  13667. width: 100%;
  13668. height: 120px;
  13669. object-fit: contain;
  13670. background: unset;
  13671. margin-left: 0;
  13672. }
  13673. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  13674. display: none;
  13675. }
  13676. .tcMember+.tcMember::before {
  13677. content: "、";
  13678. }
  13679. .xzUpImg {
  13680. width: 25px;
  13681. height: 25px;
  13682. min-width: 25px;
  13683. min-height: 25px;
  13684. cursor: pointer;
  13685. margin: 0 10px;
  13686. }
  13687. .xzUpImg>img {
  13688. width: 100%;
  13689. height: 100%;
  13690. }
  13691. .closeCss {
  13692. position: absolute;
  13693. top: 8px;
  13694. right: 8px;
  13695. cursor: pointer;
  13696. width: 20px;
  13697. height: 20px;
  13698. }
  13699. .closeCss>img {
  13700. width: 100%;
  13701. height: 100%;
  13702. }
  13703. .moveBtn {
  13704. display: flex;
  13705. flex-direction: row;
  13706. flex-wrap: nowrap;
  13707. align-items: center;
  13708. width: 55px;
  13709. }
  13710. .timuUpImg {
  13711. display: flex;
  13712. flex-direction: row;
  13713. align-items: center;
  13714. width: 100%;
  13715. margin-right: 10px;
  13716. }
  13717. .timuUpImg>div:nth-child(1) {
  13718. margin-right: 10px;
  13719. display: flex;
  13720. align-items: center;
  13721. width: 100%;
  13722. }
  13723. .timuImgBox {
  13724. margin: 10px 0;
  13725. display: flex;
  13726. flex-direction: column;
  13727. flex-wrap: wrap;
  13728. align-items: flex-start;
  13729. }
  13730. .timuImg {
  13731. width: 100px;
  13732. margin: 5px 0;
  13733. cursor: pointer;
  13734. position: relative;
  13735. }
  13736. .timuImg:hover .deleteWord {
  13737. display: block;
  13738. }
  13739. .deleteWord {
  13740. width: 25px;
  13741. height: 25px;
  13742. position: absolute;
  13743. right: -5px;
  13744. top: -5px;
  13745. cursor: pointer;
  13746. display: none;
  13747. }
  13748. .timuImg>img,
  13749. .deleteWord>img {
  13750. width: 100%;
  13751. height: 100%;
  13752. object-fit: cover;
  13753. }
  13754. .e_add_delete {
  13755. cursor: pointer;
  13756. margin-left: 10px;
  13757. }
  13758. .pType_box {
  13759. margin-top: 30px;
  13760. align-items: flex-end;
  13761. }
  13762. .noneBox {
  13763. height: 200px;
  13764. width: 100%;
  13765. display: flex;
  13766. align-items: center;
  13767. justify-content: center;
  13768. flex-direction: column;
  13769. /* margin-top: 150px; */
  13770. }
  13771. .noneBox>img {
  13772. width: 95px;
  13773. }
  13774. .noneBox>span {
  13775. margin-top: 10px;
  13776. color: #717C8D;
  13777. }
  13778. .rb_c_box {
  13779. width: 100%;
  13780. height: 100%;
  13781. display: flex;
  13782. /* padding: 20px; */
  13783. box-sizing: border-box;
  13784. justify-content: space-between;
  13785. }
  13786. .rb_c_box_left {
  13787. height: 100%;
  13788. background: #fff;
  13789. width: 270px;
  13790. min-width: 270px;
  13791. border-radius: 8px;
  13792. margin-right: 10px;
  13793. }
  13794. .rb_c_box_right {
  13795. height: 100%;
  13796. width: calc(100%);
  13797. overflow: hidden;
  13798. }
  13799. .rb_c_box_btn {
  13800. display: flex;
  13801. justify-content: flex-start;
  13802. height: 50px;
  13803. align-items: center;
  13804. }
  13805. .rb_c_box_right>.basic_box {
  13806. /* background: #fff; */
  13807. border-radius: 0;
  13808. height: calc(100% - 0px);
  13809. overflow: auto;
  13810. padding: 0;
  13811. }
  13812. .textarea_css {
  13813. display: block;
  13814. resize: none;
  13815. padding: 10px 15px;
  13816. line-height: 1.5;
  13817. box-sizing: border-box;
  13818. width: 100%;
  13819. font-size: 14px;
  13820. color: #606266;
  13821. background-color: #FFF;
  13822. background-image: none;
  13823. border: 1px solid #DCDFE6;
  13824. border-radius: 4px;
  13825. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  13826. outline: none;
  13827. overflow: hidden;
  13828. height: 46px;
  13829. font-family: 'Microsoft YaHei';
  13830. }
  13831. .textarea_css::-webkit-input-placeholder {
  13832. color: #C0C4CC
  13833. }
  13834. .textarea_css:focus {
  13835. border-color: #409EFF;
  13836. outline: 0;
  13837. }
  13838. .addEditor>>>.text {
  13839. height: auto;
  13840. min-height: 100px;
  13841. }
  13842. .addEditor>>>.w-e-text-container {
  13843. min-height: 100px;
  13844. }
  13845. .moveBtn2 {
  13846. flex-direction: column;
  13847. width: fit-content;
  13848. margin: 0 10px 0 10px;
  13849. }
  13850. .moveBtn2 .chapter_upload_down,
  13851. .moveBtn2 .chapter_upload_up {
  13852. width: 16px;
  13853. height: 16px;
  13854. }
  13855. .moveBtn2 .chapter_upload_up::after,
  13856. .moveBtn2 .chapter_upload_down::after {
  13857. width: 10px;
  13858. height: 10px;
  13859. }
  13860. .fullStyle>>>.el-dialog__body {
  13861. height: calc(100% - 125px) !important;
  13862. box-sizing: border-box;
  13863. }
  13864. .fullStyle1>>>.el-dialog__body {
  13865. height: auto !important;
  13866. }
  13867. .fullStyle>>>.el-dialog {
  13868. width: 100% !important;
  13869. max-width: 100% !important;
  13870. height: 100% !important;
  13871. margin: 0 !important;
  13872. }
  13873. .fullStyle {
  13874. width: 100% !important;
  13875. max-width: 100% !important;
  13876. height: 100% !important;
  13877. margin: 0 auto !important;
  13878. }
  13879. .wb_j_box_btn {
  13880. width: calc(100% - 30px);
  13881. display: flex;
  13882. height: 40px;
  13883. border: 1.5px solid #CAD1DC;
  13884. border-radius: 4px;
  13885. box-sizing: border-box;
  13886. align-items: center;
  13887. font-size: 14px;
  13888. cursor: pointer;
  13889. overflow: hidden;
  13890. }
  13891. .wb_j_box_btn:hover {
  13892. border: 1.5px solid #0061FF;
  13893. }
  13894. .wb_j_box_title {
  13895. background: #F0F4FA;
  13896. height: 100%;
  13897. line-height: 40px;
  13898. width: 90px;
  13899. text-align: center;
  13900. color: #060E17;
  13901. border-right: 1.5px solid #CAD1DC;
  13902. box-sizing: border-box;
  13903. }
  13904. .wb_j_box_btn_c {
  13905. width: calc(100% - 90px);
  13906. padding: 0 35px 0 10px;
  13907. box-sizing: border-box;
  13908. position: relative;
  13909. }
  13910. .wb_j_box_span {
  13911. width: 100%;
  13912. overflow: hidden;
  13913. white-space: nowrap;
  13914. text-overflow: ellipsis;
  13915. word-wrap: break-word;
  13916. color: #717C8D;
  13917. }
  13918. .wb_j_box_arrow {
  13919. content: '';
  13920. width: 14px;
  13921. height: 14px;
  13922. background: url(../../assets/icon/new/u_arrow.png);
  13923. background-size: 100% 100%;
  13924. position: absolute;
  13925. right: 12px;
  13926. top: 50%;
  13927. transform: translateY(-50%);
  13928. }
  13929. .check_classBox {
  13930. height: 400px;
  13931. display: flex;
  13932. border-top: 1.5px solid #E7EBF1;
  13933. border-bottom: 1.5px solid #E7EBF1;
  13934. }
  13935. .check_class_right {
  13936. width: 130px;
  13937. border-right: 1px solid #E7EBF1;
  13938. display: flex;
  13939. align-items: center;
  13940. flex-direction: column;
  13941. height: 100%;
  13942. overflow: auto;
  13943. padding: 15px 0;
  13944. box-sizing: border-box;
  13945. }
  13946. .check_class {
  13947. width: 85%;
  13948. border-radius: 5px;
  13949. height: 30px;
  13950. line-height: 30px;
  13951. text-align: center;
  13952. padding: 0 10px;
  13953. box-sizing: border-box;
  13954. cursor: pointer;
  13955. white-space: nowrap;
  13956. overflow: hidden;
  13957. text-overflow: ellipsis;
  13958. }
  13959. .check_class.activeX {
  13960. background: #E0EAFB;
  13961. color: #3681FC;
  13962. font-weight: 700;
  13963. }
  13964. .check_class+.check_class {
  13965. margin-top: 15px;
  13966. }
  13967. .check_class_left {
  13968. background: #FAFAFA;
  13969. width: calc(100% - 130px);
  13970. padding: 15px;
  13971. box-sizing: border-box;
  13972. }
  13973. .check_class_all_box {
  13974. display: flex;
  13975. margin-bottom: 10px;
  13976. }
  13977. .all_check {
  13978. display: flex;
  13979. align-items: center;
  13980. padding: 2px 0 0;
  13981. margin-left: 10px;
  13982. }
  13983. .all_check>>>.el-checkbox__label {
  13984. line-height: 18px;
  13985. }
  13986. .check_class_left_title {
  13987. font-size: 16px;
  13988. font-weight: 700;
  13989. }
  13990. .check_class_item {
  13991. display: flex;
  13992. flex-wrap: wrap;
  13993. height: calc(100% - 45px);
  13994. overflow: auto;
  13995. justify-content: flex-start;
  13996. align-items: flex-start;
  13997. align-content: flex-start;
  13998. }
  13999. .class_item:first-child {
  14000. /* margin: 0 15px 15px 67px; */
  14001. }
  14002. .class_item {
  14003. margin: 0 15px 15px 0;
  14004. }
  14005. .class_item:hover>>>.el-checkbox__label {
  14006. color: #409EFF;
  14007. }
  14008. .class_item>>>.el-checkbox__label {
  14009. color: #0E1E33;
  14010. }
  14011. .class_item:hover>>>.el-checkbox__inner {
  14012. border-color: #409EFF;
  14013. }
  14014. .class_item>>>.el-checkbox,
  14015. .class_item>>>.el-checkbox__input {
  14016. display: flex;
  14017. align-items: center;
  14018. }
  14019. .taskTitle{
  14020. font-size: 20px;
  14021. font-weight: bold;
  14022. margin-bottom: 35px;
  14023. }
  14024. .taskTitle:after{
  14025. content: '';
  14026. width: 100%;
  14027. display: block;
  14028. height: 1px;
  14029. background: #CAD1DC;
  14030. position: absolute;
  14031. left: 0;
  14032. margin: 15px 0 0;
  14033. }
  14034. .eva_btn_box{
  14035. margin: 20px 0px 0 0;
  14036. display: flex;
  14037. flex-direction: row;
  14038. flex-wrap: nowrap;
  14039. align-items: center;
  14040. justify-content: space-between;
  14041. width: 100%;
  14042. }
  14043. .eva_btn_left_box{
  14044. display: flex;
  14045. flex-direction: row;
  14046. flex-wrap: nowrap;
  14047. align-items: center;
  14048. }
  14049. .addTypeChoose {
  14050. display: flex;
  14051. flex-direction: row;
  14052. flex-wrap: nowrap;
  14053. align-items: center;
  14054. margin: 15px 0;
  14055. }
  14056. .addTypeBox {
  14057. display: flex;
  14058. flex-direction: column;
  14059. flex-wrap: nowrap;
  14060. align-items: center;
  14061. }
  14062. .addTypeChoose {
  14063. display: flex;
  14064. flex-direction: row;
  14065. flex-wrap: nowrap;
  14066. align-items: center;
  14067. margin: 15px 0;
  14068. }
  14069. </style>