addCourse.vue 380 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="stepBg">
  6. <div class="stepTop">
  7. <div v-if="steps == 1" class="first" @click="navSteps(1)">
  8. <div>
  9. <img src="../../../assets/icon/first.png" alt />
  10. </div>
  11. <div>填写基本信息</div>
  12. </div>
  13. <div v-else class="firstNo" @click="navSteps(1)">
  14. <div>
  15. <img src="../../../assets/icon/firstNo.png" alt />
  16. </div>
  17. <div>填写基本信息</div>
  18. </div>
  19. <div v-show="cidttt === 0" class="secondNo">
  20. <div
  21. v-if="steps == 2"
  22. class="newSteps second"
  23. @click="navSteps(2)"
  24. >
  25. <div style="margin: 5px 10px 0 0; width: 2rem">
  26. <img src="../../../assets/icon/second.png" alt />
  27. </div>
  28. <div>选择项目框架</div>
  29. </div>
  30. <div v-else class="newSteps secondNo" @click="navSteps(2)">
  31. <div>
  32. <img src="../../../assets/icon/secondNo.png" alt />
  33. </div>
  34. <div>选择项目框架</div>
  35. </div>
  36. </div>
  37. <div v-if="steps == 3" class="third" @click="navSteps(3)">
  38. <div>
  39. <img src="../../../assets/icon/third.png" alt />
  40. </div>
  41. <div>上传项目内容</div>
  42. </div>
  43. <div v-else class="thirdNo" @click="navSteps(3)">
  44. <div>
  45. <img src="../../../assets/icon/thirdNo.png" alt />
  46. </div>
  47. <div>上传项目内容</div>
  48. </div>
  49. <div v-if="steps == 4 && type == 2" class="four">
  50. <div>
  51. <img
  52. src="../../../assets/icon/five.png"
  53. alt
  54. style="width: 33px"
  55. />
  56. </div>
  57. <div>项目进展</div>
  58. </div>
  59. <div v-else-if="type == 2" class="fourNo" @click="navSteps(4)">
  60. <div>
  61. <img
  62. src="../../../assets/icon/fiveNo.png"
  63. alt
  64. style="width: 33px"
  65. />
  66. </div>
  67. <div>项目进展</div>
  68. </div>
  69. <div v-if="steps == 5" class="four">
  70. <div>
  71. <img src="../../../assets/icon/four.png" alt />
  72. </div>
  73. <div>上传完成</div>
  74. </div>
  75. <div v-else class="fourNo">
  76. <div>
  77. <img src="../../../assets/icon/fourNo.png" alt />
  78. </div>
  79. <div>上传完成</div>
  80. </div>
  81. </div>
  82. <div class="stepsBottom" v-if="steps == 3">
  83. <div class="navTop">辅助导航</div>
  84. <div class="navBottom">
  85. <div
  86. class="navTask"
  87. :class="{
  88. isNavTask: isClickColor > 0 && isClickColor == tIndex + 1,
  89. }"
  90. v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  91. .taskJson"
  92. :key="tIndex"
  93. @click="goToTask(tIndex)"
  94. >
  95. <div>任务{{ tIndex + 1 }}</div>
  96. <div>
  97. <el-tooltip effect="light" :content="t.task" placement="top">
  98. <span>{{ t.task }}</span>
  99. </el-tooltip>
  100. </div>
  101. <div
  102. class="moveBtn"
  103. v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length > 1"
  104. >
  105. <div
  106. class="chapter_upload_up"
  107. style="width: 15px; height: 15px"
  108. @click.stop="taskMove(1, tIndex)"
  109. ></div>
  110. <div
  111. class="chapter_upload_down"
  112. style="width: 15px; height: 15px; margin: 2px 0 0"
  113. @click.stop="taskMove(2, tIndex)"
  114. ></div>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  121. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  122. <div class="courseTop">
  123. <div class="stepsNav">
  124. <h3 class="info_title" v-if="steps == 1">项目内容填写</h3>
  125. <h3 class="info_title" v-if="steps == 2">请选择项目框架</h3>
  126. <h3 class="info_title" v-if="steps == 3">项目内容填写</h3>
  127. <h3 class="info_title" v-if="steps == 4">项目管理</h3>
  128. <h3 class="info_title" v-if="steps == 5">上传项目</h3>
  129. <el-breadcrumb
  130. separator-class="el-icon-arrow-right"
  131. style="margin-top: 15px"
  132. >
  133. <!-- /studentCourse -->
  134. <el-breadcrumb-item
  135. :to="{
  136. path:
  137. fpath +
  138. '?userid=' +
  139. userid +
  140. '&oid=' +
  141. oid +
  142. '&org=' +
  143. org + '&role=' + role ,
  144. }"
  145. >{{
  146. orgArray.indexOf(org) != -1 || oidArray.indexOf(oid) != -1
  147. ? "师生项目"
  148. : "项目管理"
  149. }}
  150. </el-breadcrumb-item>
  151. <el-breadcrumb-item>
  152. <span style="color: rgb(15, 126, 255)">添加项目</span>
  153. </el-breadcrumb-item>
  154. </el-breadcrumb>
  155. </div>
  156. <div
  157. v-if="steps == 1 || steps == 2 || steps == 3"
  158. class="stepsWord"
  159. >
  160. {{
  161. steps == 1
  162. ? "第一步"
  163. : steps == 2
  164. ? "第二步"
  165. : steps == 3
  166. ? cidttt === 0
  167. ? "第三步"
  168. : "第二步"
  169. : ""
  170. }}
  171. </div>
  172. </div>
  173. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange">
  174. <div class="updateMask" :style="{
  175. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  176. }" v-if="cid && userid != courseUserid"></div>
  177. <div class="whiteBg">
  178. <div class="right_title" :class="{ updateTips: cid && userid != courseUserid }">项目基本信息</div>
  179. <div class="basic_box">
  180. <div class="big_box">
  181. <div class="left_first">
  182. <div>
  183. <div>
  184. <div class="bInfo_title" style="margin-bottom: 15px">
  185. <!-- <span style="color: red">*</span> -->
  186. 项目名称
  187. </div>
  188. <div style="display: flex; margin-right: 20px">
  189. <img
  190. src="../../../assets/icon/projectName.png"
  191. alt
  192. style="margin-right: 8px"
  193. />
  194. <input
  195. type="text"
  196. placeholder="请输入项目名称"
  197. class="binfo_input"
  198. v-model="courseName"
  199. />
  200. </div>
  201. </div>
  202. <div class="both" v-if="CourseType.length">
  203. <div class="choose">
  204. <div
  205. class="all_choose"
  206. v-for="(item, index) in CourseType[0]"
  207. :key="index"
  208. >
  209. <span v-if="CourseTypeJson[item.id].length > 0">{{
  210. item.name
  211. }}</span>
  212. <el-checkbox-group
  213. v-model="courseTypeId"
  214. v-if="CourseTypeJson[item.id].length > 0"
  215. >
  216. <el-checkbox
  217. @change="updateType(item1)"
  218. v-for="item1 in CourseTypeJson[item.id]"
  219. :key="item1.id"
  220. :label="item1.id"
  221. >{{ item1.name }}
  222. </el-checkbox>
  223. </el-checkbox-group>
  224. <!-- <div v-else style="font-size: 14px; ">
  225. 暂无分类
  226. </div> -->
  227. </div>
  228. </div>
  229. </div>
  230. <div class="subjectBox" v-if="false">
  231. <div class="bInfo_title">添加主题</div>
  232. <div class="subjectList"></div>
  233. <div class="subjectBtn">+ 添加</div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. <div class="whiteBg" style="border-radius: 0">
  241. <div class="right_first">
  242. <div class="right_title">上传封面与成员</div>
  243. <div
  244. style="
  245. padding: 0 0 50px 20px;
  246. display: flex;
  247. align-items: baseline;
  248. justify-content: flex-start;
  249. margin: 0 auto;
  250. "
  251. >
  252. <div>
  253. <div class="bInfo_title" style="margin-top: 0 !important">
  254. 项目封面
  255. </div>
  256. <div
  257. class="uploadFm"
  258. @click="choosePicVisible = true"
  259. v-if="cover.length == 0"
  260. >
  261. <img src="../../../assets/icon/addPoster.png" alt="" />
  262. </div>
  263. <el-upload
  264. :class="{ disUoloadSty: noneBtnImg }"
  265. class="upCss"
  266. action="#"
  267. list-type="picture"
  268. v-loading="uploadLoading1"
  269. :http-request="beforeUpload1"
  270. ref="upload1"
  271. :on-preview="handlePictureCardPreview"
  272. :on-remove="handle_remove1"
  273. :show-file-list="true"
  274. :file-list="cover"
  275. accept="image/*"
  276. :limit="1"
  277. :on-exceed="onExceed"
  278. v-else
  279. >
  280. <i class="el-icon-plus"></i>
  281. </el-upload>
  282. </div>
  283. <div
  284. style="
  285. display: flex;
  286. flex-flow: row nowrap;
  287. flex-direction: row;
  288. flex-wrap: wrap;
  289. align-items: baseline;
  290. margin: 0 30px;
  291. "
  292. >
  293. <!-- <div style="margin: 0 80px">
  294. <div class="bInfo_title">
  295. 选择项目成员
  296. </div>
  297. <div
  298. class="addPeople"
  299. @click="addPP"
  300. v-if="this.checkboxList.length == 0"
  301. >添加成员</div>
  302. <div class="addPeople" @click="addPP" v-else>已添加,点击查看</div>
  303. </div>-->
  304. <!-- <div style="margin: 0 30px 0 0">
  305. <div class="bInfo_title">添加班级</div>
  306. <div class="addPeople" @click="dialogVisibleClass = true">
  307. 添加班级
  308. </div>
  309. </div> -->
  310. <div
  311. style="flex: 0.5 1 0%; margin: 0; width: 180px"
  312. v-if="courseUserid != '' ? courseUserid == userid : true"
  313. >
  314. <div class="bInfo_title">协同编辑</div>
  315. <div
  316. class="addPeople"
  317. @click="openMember"
  318. style="background: #6b92c9"
  319. >
  320. 添加协同成员
  321. </div>
  322. <div
  323. v-if="checkboxList3.length"
  324. style="
  325. max-width: 100%;
  326. word-break: break-all;
  327. overflow: hidden;
  328. margin-top: 10px;
  329. font-size: 14px;
  330. color: #6e6e6e;
  331. cursor:pointer
  332. "
  333. @click="checkBoolean = !checkBoolean"
  334. >
  335. <span
  336. :class="{ tcMember: getMan2(tc) }"
  337. v-for="(tc, tcIndex) in checkboxList3.length > 6 && checkBoolean ? checkboxList3 : checkboxList3.slice(0,6)"
  338. :key="tcIndex"
  339. >{{ getMan2(tc) }}</span
  340. ><span class="tcMember" v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  341. </div>
  342. </div>
  343. </div>
  344. </div>
  345. </div>
  346. </div>
  347. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  348. <div class="right_title">项目简要描述</div>
  349. <div style="width: 95%; padding: 15px 0px 15px 20px">
  350. <div style="width: 55%">
  351. <textarea
  352. rows="8"
  353. class="binfo_input"
  354. cols
  355. v-model="courseText"
  356. :placeholder="
  357. '1、项目内容说明' +
  358. '\n' +
  359. '2、项目学习知识目标' +
  360. '\n' +
  361. '3、项目学习技能目标'
  362. "
  363. ></textarea>
  364. </div>
  365. </div>
  366. <!-- <div style="width: 95%; margin: 15px auto">
  367. <el-switch
  368. v-model="isTeacherSee"
  369. active-text="允许给其他老师查看"
  370. style="padding-bottom: 30px"
  371. ></el-switch>
  372. </div>-->
  373. <div style="width: 95%; padding: 15px 0px 15px 20px">
  374. <el-switch
  375. v-model="isTeacherSee"
  376. active-text="是否公开此项目"
  377. style="padding-bottom: 30px"
  378. ></el-switch>
  379. </div>
  380. </div>
  381. <div
  382. class="whiteBg"
  383. style="border-radius: 0; margin-top: 15px; padding-bottom: 20px"
  384. v-if="false"
  385. >
  386. <div class="right_title">目标管理</div>
  387. <div style="margin: 15px auto; padding: 0 0 0 20px">
  388. <div
  389. style="
  390. width: 100%;
  391. display: flex;
  392. flex-direction: row;
  393. flex-wrap: nowrap;
  394. align-content: center;
  395. align-items: center;
  396. justify-content: space-between;
  397. "
  398. >
  399. <div
  400. style="
  401. display: flex;
  402. flex-flow: row nowrap;
  403. align-items: flex-start;
  404. width: 100%;
  405. flex-direction: column;
  406. flex-wrap: nowrap;
  407. position: relative;
  408. "
  409. >
  410. <!-- <div style="margin-right: 15px; min-width: 120px">
  411. 请选择评价指标
  412. </div>
  413. <div>
  414. <el-select
  415. v-model="evalua"
  416. placeholder="请选择体系"
  417. @change="checkEva"
  418. >
  419. <el-option
  420. v-for="(e, eIndex) in evaJuri"
  421. :key="eIndex"
  422. :label="e.title"
  423. :value="e.id"
  424. ></el-option>
  425. </el-select>
  426. </div> -->
  427. <!-- <div
  428. @click="openT"
  429. class="addPeople"
  430. style="
  431. background: #6b92c9;
  432. margin: 0 0 0 15px;
  433. position: absolute;
  434. right: 23%;
  435. "
  436. >
  437. 前往设置目标管理
  438. </div> -->
  439. <div class="e_box">
  440. <div
  441. class="e_card"
  442. v-for="(item, index) in evaJuri"
  443. :key="index"
  444. >
  445. <div class="e_card_picture">
  446. <img src="../../../assets/e_picture.png" />
  447. </div>
  448. <div class="e_card_name">
  449. <span>{{ item.title }}</span>
  450. </div>
  451. <!-- <div class="e_card_time">
  452. <span>{{ item.time }}</span>
  453. </div> -->
  454. <div class="e_card_btn">
  455. <span @click="checkEva(item.id)">导入</span>
  456. <!-- <span @click="openT">前往设置</span> -->
  457. </div>
  458. </div>
  459. <div class="addEva" @click="openT">
  460. <img src="../../../assets/icon/addEva.png" alt="" />
  461. </div>
  462. <div
  463. v-if="evaJuri.length === 0"
  464. style="margin: 0 auto; color: #6e6e6e"
  465. >
  466. 暂无数据
  467. </div>
  468. </div>
  469. </div>
  470. </div>
  471. <div
  472. v-if="evalua"
  473. style="
  474. border: 1px solid #e5e5e5;
  475. width: 95%;
  476. margin-top: 30px;
  477. box-shadow: 3px 1px 15px 3px #e0e0e0;
  478. "
  479. >
  480. <div class="e_add_top">
  481. <div class="e_add_title">
  482. <span>当前使用目标管理</span>
  483. <span>{{ eTitle }}</span>
  484. <img
  485. src="../../../assets/line.png"
  486. class="cru_line"
  487. style="
  488. width: 125px;
  489. height: 20px;
  490. bottom: -10px;
  491. left: 155px;
  492. "
  493. />
  494. <!-- <el-input
  495. v-model="eTitle"
  496. placeholder="请输入名称"
  497. @change="setMindData"
  498. ></el-input>-->
  499. </div>
  500. </div>
  501. <div class="e_add_content">
  502. <div class="e_add_list_pbox">
  503. <div class="e_add_list_pbox_title">
  504. <span class="type_title">切换模式</span>
  505. <div class="type_content">
  506. <span
  507. :class="{ active: typeMode == 1 }"
  508. @click="OtherMb(1)"
  509. >目标树</span
  510. >
  511. <span
  512. :class="{ active: typeMode == 2 }"
  513. @click="OtherMb(2)"
  514. >目标罗盘</span
  515. >
  516. <span
  517. :class="{ active: typeMode == 3 }"
  518. @click="OtherMb(3)"
  519. >目标看板</span
  520. >
  521. </div>
  522. </div>
  523. <div class="e_add_list_pbox_content">
  524. <Mind
  525. :showBar="false"
  526. :mindData="data"
  527. v-show="typeMode == 1"
  528. ></Mind>
  529. <Sunburst
  530. :Josn="eJson"
  531. :num="eJSONNum"
  532. style="width: 100%"
  533. v-if="typeMode == 2"
  534. ></Sunburst>
  535. <SeeBoard
  536. :Josn="eJson"
  537. :num="eJSONNum"
  538. :ename="eTitle"
  539. style="width: 100%"
  540. v-if="typeMode == 3"
  541. ></SeeBoard>
  542. </div>
  543. </div>
  544. </div>
  545. </div>
  546. </div>
  547. </div>
  548. </div>
  549. <div class="rightBox" v-if="this.steps == 2">
  550. <div
  551. class="basic_box"
  552. style="padding: 20px 30px 0px !important; box-sizing: border-box"
  553. >
  554. <!-- <div
  555. style="
  556. color: #b8b8b8;
  557. background: #fff;
  558. width: 26%;
  559. height: 40px;
  560. border-radius: 15px;
  561. padding-left: 20px;
  562. line-height: 40px;
  563. font-size: 17px;
  564. box-shadow: 0px 1px 2px 2px #e0e0e0;
  565. "
  566. >-->
  567. <div
  568. class="right_title"
  569. style="border: none; margin: 0; padding: 0"
  570. >
  571. 请选择合适的项目模板
  572. </div>
  573. <div class="wordbox">
  574. <div
  575. class="wordTeacher"
  576. v-for="(aa, indexF) in templateArray"
  577. :key="indexF"
  578. @click="checkTemplate(aa)"
  579. >
  580. <div class="wordPic">
  581. <img src="../../../assets/icon/wordMub.png" alt />
  582. </div>
  583. <div
  584. style="
  585. margin-top: 10px;
  586. line-height: 19px;
  587. overflow: hidden;
  588. text-overflow: ellipsis;
  589. white-space: nowrap;
  590. padding: 0 20px;
  591. "
  592. >
  593. {{ aa.title }}
  594. </div>
  595. </div>
  596. <div class="wordTeacher" @click="checkTemplate2()">
  597. <div class="wordPic">
  598. <img src="../../../assets/icon/wordMub.png" alt />
  599. </div>
  600. <div
  601. style="
  602. margin-top: 10px;
  603. line-height: 19px;
  604. overflow: hidden;
  605. text-overflow: ellipsis;
  606. white-space: nowrap;
  607. padding: 0 20px;
  608. "
  609. >
  610. 新建项目
  611. </div>
  612. </div>
  613. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  614. <div class="wordPic">
  615. <img src="../../../assets/icon/wordMub.png" alt />
  616. </div>
  617. <div style="
  618. margin-top: 10px;
  619. line-height: 19px;
  620. overflow: hidden;
  621. text-overflow: ellipsis;
  622. white-space: nowrap;
  623. padding: 0 20px;
  624. ">
  625. 我的项目
  626. </div>
  627. </div> -->
  628. </div>
  629. </div>
  630. </div>
  631. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  632. <div class="basic_box">
  633. <div
  634. style="
  635. display: flex;
  636. flex-direction: row;
  637. align-items: center;
  638. position: sticky;
  639. top: 0;
  640. background: #fff;
  641. z-index: 99;
  642. width: 100%;
  643. padding: 0 20px 0 20px;
  644. box-sizing: border-box;
  645. "
  646. >
  647. <div class="cru_selectBox">
  648. <div
  649. v-for="(item, index) in unitJson"
  650. :key="index"
  651. class="cru_select"
  652. :class="unitIndex == index ? 'cru_selected' : ''"
  653. @click="unitSet(index)"
  654. >
  655. 第{{ index + 1 }}阶段
  656. </div>
  657. <img
  658. src="../../../assets/line.png"
  659. class="cru_line"
  660. :style="{
  661. left: offsetLetfPx + 'px',
  662. }"
  663. />
  664. </div>
  665. <div class="addStageImg" @click="addunit()">
  666. <img src="../../../assets/icon/add.png" alt />
  667. </div>
  668. </div>
  669. <div
  670. style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  671. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  672. :key="index"
  673. >
  674. <div>
  675. <div class="chapter_contentbox">
  676. <div>第{{ unitIndex + 1 }}阶段</div>
  677. <div>
  678. <input
  679. type="text"
  680. placeholder="阶段标题"
  681. class="binfo_input"
  682. v-model="unitJson[unitIndex].dyName"
  683. />
  684. </div>
  685. <div
  686. v-if="unitJson.length > 1"
  687. @click="deleteUnit(unitIndex)"
  688. ></div>
  689. </div>
  690. </div>
  691. <div class="task_add_title">添加任务</div>
  692. <div
  693. class="taskBorder"
  694. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  695. :key="itemTaskIndex"
  696. >
  697. <div>
  698. <div>
  699. <div
  700. style="font-size: 22px; color: #8e8e8e"
  701. :id="'task' + itemTaskIndex"
  702. >
  703. 任务{{ itemTaskIndex + 1 }}
  704. </div>
  705. <div
  706. class="chapter_contentbox"
  707. style="
  708. flex-direction: row;
  709. justify-content: flex-start;
  710. align-items: center;
  711. flex-wrap: wrap;
  712. "
  713. >
  714. <div
  715. style="
  716. flex-direction: row;
  717. justify-content: flex-start;
  718. align-items: center;
  719. flex-wrap: wrap;
  720. display: flex;
  721. width: calc(100% - 115px);
  722. "
  723. >
  724. <div
  725. style="
  726. flex-direction: row;
  727. justify-content: flex-start;
  728. align-items: center;
  729. display: flex;
  730. margin-bottom: 10px;
  731. "
  732. >
  733. <div
  734. style="
  735. border-left: 6px solid #5699e8;
  736. height: 20px;
  737. padding: 0 10px;
  738. line-height: 22px;
  739. "
  740. >
  741. 任务名称
  742. </div>
  743. <div style="width: auto">
  744. <input
  745. type="text"
  746. placeholder="输入任务名称"
  747. class="binfo_input"
  748. style="border-radius: 4px"
  749. v-model="
  750. unitJson[unitIndex].chapterInfo[0].taskJson[
  751. itemTaskIndex
  752. ].task
  753. "
  754. />
  755. </div>
  756. </div>
  757. <div
  758. style="
  759. flex-direction: row;
  760. justify-content: flex-start;
  761. align-items: center;
  762. display: flex;
  763. margin-bottom: 10px;
  764. "
  765. >
  766. <div
  767. style="
  768. height: 20px;
  769. padding: 0 10px 0 16px;
  770. line-height: 22px;
  771. "
  772. >
  773. 负责人
  774. </div>
  775. <div style="width: auto">
  776. <!-- <input type="text" placeholder="输入负责人" class="binfo_input" style="border-radius: 4px"
  777. v-model="
  778. unitJson[unitIndex].chapterInfo[0].taskJson[
  779. itemTaskIndex
  780. ].people
  781. " /> -->
  782. <el-select
  783. v-model="
  784. unitJson[unitIndex].chapterInfo[0].taskJson[
  785. itemTaskIndex
  786. ].people
  787. "
  788. placeholder="请选择负责人"
  789. clearable
  790. filterable
  791. @change="
  792. peopleChange(
  793. unitJson[unitIndex].chapterInfo[0].taskJson[
  794. itemTaskIndex
  795. ].people,
  796. itemTaskIndex
  797. )
  798. "
  799. >
  800. <el-option
  801. v-for="item in ManAarray"
  802. :key="item.userid"
  803. :label="
  804. item.name +
  805. (item.type == 1 ? '(老师)' : '(学生)')
  806. "
  807. :value="item.userid"
  808. >
  809. </el-option>
  810. </el-select>
  811. </div>
  812. </div>
  813. <!-- <div class="addPeople" @click="addTcMember(itemTaskIndex)"
  814. style="background: rgb(107, 146, 201);margin: 0 0 10px 15px;margin-bottom: 10px;width: 100px;">
  815. {{
  816. (unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].tcMember
  817. &&
  818. unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].tcMember.length)
  819. ? '已添加' : '添加协同者'
  820. }}
  821. </div> -->
  822. </div>
  823. <div
  824. class="remove"
  825. v-if="item.taskJson.length > 1"
  826. @click="deleteTask(itemTaskIndex)"
  827. style="position: absolute; right: 55px"
  828. ></div>
  829. </div>
  830. <div
  831. style="
  832. flex-direction: row;
  833. justify-content: flex-start;
  834. align-items: center;
  835. display: flex;
  836. margin: 10px 0 15px;
  837. "
  838. >
  839. <div
  840. style="
  841. height: 20px;
  842. padding-left: 16px;
  843. line-height: 22px;
  844. font-size: 18px;
  845. "
  846. >
  847. 协同人员
  848. </div>
  849. <el-tooltip
  850. :content="
  851. getMen(
  852. unitJson[unitIndex].chapterInfo[0].taskJson[
  853. itemTaskIndex
  854. ].tcMember
  855. )
  856. "
  857. placement="top"
  858. effect="dark"
  859. v-if="
  860. unitJson[unitIndex].chapterInfo[0].taskJson[
  861. itemTaskIndex
  862. ].tcMember &&
  863. unitJson[unitIndex].chapterInfo[0].taskJson[
  864. itemTaskIndex
  865. ].tcMember.length
  866. "
  867. >
  868. <div
  869. class="tcMember_box"
  870. @click="addTcMember(itemTaskIndex)"
  871. >
  872. <span
  873. :class="{ tcMember: getMan(tc) }"
  874. v-for="(tc, tcIndex) in unitJson[unitIndex]
  875. .chapterInfo[0].taskJson[itemTaskIndex]
  876. .tcMember"
  877. :key="tcIndex"
  878. >{{ getMan(tc) }}</span
  879. >
  880. </div>
  881. </el-tooltip>
  882. <div
  883. class="tcMember_box"
  884. @click="addTcMember(itemTaskIndex)"
  885. v-else
  886. >
  887. <span>点击添加协同成员</span>
  888. </div>
  889. </div>
  890. <div
  891. style="
  892. flex-direction: row;
  893. justify-content: flex-start;
  894. align-items: center;
  895. display: flex;
  896. margin-top: 10px;
  897. "
  898. >
  899. <div
  900. style="
  901. height: 20px;
  902. padding-left: 16px;
  903. line-height: 22px;
  904. "
  905. >
  906. 任务起止时间
  907. </div>
  908. <div style="margin-left: 20px">
  909. <el-date-picker
  910. v-model="
  911. unitJson[unitIndex].chapterInfo[0].taskJson[
  912. itemTaskIndex
  913. ].time
  914. "
  915. type="datetimerange"
  916. range-separator="至"
  917. start-placeholder="开始日期"
  918. end-placeholder="结束日期"
  919. >
  920. </el-date-picker>
  921. </div>
  922. </div>
  923. <div
  924. style="
  925. display: flex;
  926. margin: 0 0 20px 0;
  927. flex-direction: row;
  928. justify-content: flex-start;
  929. align-items: center;
  930. width: 70.5% !important;
  931. "
  932. >
  933. <div class="lineTitle">任务描述</div>
  934. <div class="line"></div>
  935. </div>
  936. <div>
  937. <editor-bar
  938. style="
  939. width: 90% !important;
  940. margin: 0;
  941. height: 500px;
  942. "
  943. class="ed_s"
  944. placeholder="请输入任务描述"
  945. v-model="
  946. unitJson[unitIndex].chapterInfo[0].taskJson[
  947. itemTaskIndex
  948. ].taskDetail
  949. "
  950. @change="change"
  951. ></editor-bar>
  952. </div>
  953. </div>
  954. </div>
  955. <div
  956. class="basic_box"
  957. v-if="false"
  958. style="
  959. margin: 0;
  960. min-height: 0;
  961. width: 90% !important;
  962. paddint-top: 10px !important;
  963. "
  964. >
  965. <div
  966. style="
  967. display: flex;
  968. margin: 0 0 20px 0;
  969. flex-direction: row;
  970. justify-content: flex-start;
  971. align-items: center;
  972. "
  973. >
  974. <div class="lineTitle">资源库</div>
  975. <div class="line"></div>
  976. </div>
  977. <div>
  978. <div
  979. class="add_chapters_box"
  980. v-if="
  981. itemTask.chapterData &&
  982. itemTask.chapterData.length == 0
  983. "
  984. style="height: 185px"
  985. ></div>
  986. <div
  987. v-else
  988. class="add_chapters_box"
  989. style="display: flex; flex-direction: column"
  990. >
  991. <div
  992. class="chapter_upload"
  993. v-for="(item1, index1) in itemTask.chapterData"
  994. :key="item1.id"
  995. @click="
  996. getChapterData(
  997. $event,
  998. unitIndex,
  999. index,
  1000. index1,
  1001. item1.type
  1002. )
  1003. "
  1004. >
  1005. <div
  1006. class="chapter_upload_t"
  1007. style="width: 100%"
  1008. ></div>
  1009. <div
  1010. class="chapter_upload_o"
  1011. style="
  1012. position: relative;
  1013. display: flex;
  1014. align-items: center;
  1015. "
  1016. >
  1017. <div
  1018. class="chapter_upload_l"
  1019. style="padding: 1px 0 0 10px"
  1020. >
  1021. <div
  1022. v-if="item1.type == 2"
  1023. class="chapter_upload_l_i1"
  1024. ></div>
  1025. <div
  1026. v-if="
  1027. item1.type == 3 ||
  1028. item1.type == 9 ||
  1029. item1.type == 6 ||
  1030. item1.type == 7
  1031. "
  1032. class="chapter_upload_l_i5"
  1033. style="margin-left: 1px"
  1034. ></div>
  1035. <div
  1036. v-if="item1.type == 8"
  1037. class="chapter_upload_l_i8"
  1038. style="margin-left: 1px"
  1039. ></div>
  1040. </div>
  1041. <div
  1042. class="chapter_upload_ic"
  1043. style="
  1044. cursor: pointer;
  1045. position: absolute;
  1046. width: 45px;
  1047. right: 0;
  1048. top: 0;
  1049. "
  1050. >
  1051. <div class="chapter_upload_ic_l"></div>
  1052. <div
  1053. class="chapter_upload_ic_r"
  1054. style="position: absolute"
  1055. @click.stop="
  1056. deleteChapterData(
  1057. $event,
  1058. unitIndex,
  1059. index,
  1060. index1,
  1061. itemTaskIndex
  1062. )
  1063. "
  1064. >
  1065. <div></div>
  1066. </div>
  1067. </div>
  1068. <div class="chapter_upload_n">
  1069. <input
  1070. v-if="
  1071. item1.type == 2 ||
  1072. item1.type == 3 ||
  1073. item1.type == 9 ||
  1074. item1.type == 7
  1075. "
  1076. :placeholder="item1.name"
  1077. @change="
  1078. updataVideoT(
  1079. $event,
  1080. unitIndex,
  1081. chapterIndex,
  1082. index1
  1083. )
  1084. "
  1085. style="
  1086. border: none;
  1087. outline: none;
  1088. width: 80%;
  1089. minwidth: 215px;
  1090. z-index: 99;
  1091. font-size: 14px;
  1092. white-space: nowrap;
  1093. overflow: hidden;
  1094. text-overflow: ellipsis;
  1095. "
  1096. />
  1097. <input
  1098. :placeholder="item1.name"
  1099. v-if="item1.type == 6"
  1100. style="
  1101. border: none;
  1102. outline: none;
  1103. width: 80%;
  1104. white-space: nowrap;
  1105. overflow: hidden;
  1106. text-overflow: ellipsis;
  1107. "
  1108. readonly="true"
  1109. @click="selectAttText(itemTaskIndex, index1)"
  1110. />
  1111. <input
  1112. :placeholder="
  1113. item1.title ? item1.title : '链接'
  1114. "
  1115. v-if="item1.type == 8"
  1116. style="
  1117. border: none;
  1118. outline: none;
  1119. width: 80%;
  1120. white-space: nowrap;
  1121. overflow: hidden;
  1122. text-overflow: ellipsis;
  1123. "
  1124. readonly="true"
  1125. @click="selectLine(itemTaskIndex, index1)"
  1126. />
  1127. <div
  1128. class="chapter_upload_ud"
  1129. style="z-index: 99"
  1130. >
  1131. <div
  1132. class="chapter_upload_up"
  1133. @click="
  1134. upCd($event, unitIndex, index, index1)
  1135. "
  1136. ></div>
  1137. <div
  1138. class="chapter_upload_down"
  1139. @click="
  1140. downCd($event, unitIndex, index, index1)
  1141. "
  1142. ></div>
  1143. </div>
  1144. </div>
  1145. </div>
  1146. </div>
  1147. </div>
  1148. </div>
  1149. <div class="add_info_box">
  1150. <button class="info_btn" @click="addImg($event)">
  1151. 添加视频
  1152. <!-- capture="camera" -->
  1153. <input
  1154. type="file"
  1155. accept="video/mp4, video/quicktime, video/x-msvideo"
  1156. style="display: none"
  1157. v-if="inputShow"
  1158. @change="
  1159. beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  1160. "
  1161. />
  1162. </button>
  1163. <button class="info_btn" @click="addImg($event)">
  1164. 添加附件
  1165. <input
  1166. type="file"
  1167. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1168. style="display: none"
  1169. v-if="inputShow"
  1170. @change="
  1171. beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  1172. "
  1173. />
  1174. </button>
  1175. <button
  1176. class="info_btn"
  1177. @click="addAttText(itemTaskIndex)"
  1178. >
  1179. 添加图文
  1180. </button>
  1181. <button class="info_btn" @click="openLine(itemTaskIndex)">
  1182. 添加链接
  1183. </button>
  1184. </div>
  1185. <div
  1186. v-if="
  1187. unitJson[unitIndex].chapterInfo[0].taskJson[
  1188. itemTaskIndex
  1189. ].proVisible
  1190. "
  1191. class="mask"
  1192. >
  1193. <div class="progressBox">
  1194. <div class="lbox">
  1195. <img
  1196. src="../../../assets/loading.gif"
  1197. />上传中,请稍后
  1198. </div>
  1199. <el-progress
  1200. :text-inside="true"
  1201. :stroke-width="20"
  1202. :percentage="
  1203. unitJson[unitIndex].chapterInfo[0].taskJson[
  1204. itemTaskIndex
  1205. ].progress
  1206. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1207. itemTaskIndex
  1208. ].progress
  1209. : 0
  1210. "
  1211. style="width: 80%"
  1212. ></el-progress>
  1213. </div>
  1214. </div>
  1215. </div>
  1216. <div class="toolChoose" style="padding: 0 0 30px 30px">
  1217. <div class="tools" style="margin-top: 20px">
  1218. <div
  1219. class="leftTools"
  1220. style="
  1221. width: 95%;
  1222. padding: 0 0 15px 0;
  1223. border-bottom: 1px solid #efefef;
  1224. margin-bottom: 15px;
  1225. "
  1226. v-for="(itemTool, toolIndex) in itemTask.toolArray"
  1227. :key="toolIndex"
  1228. >
  1229. <div
  1230. style="
  1231. display: flex;
  1232. flex-direction: row;
  1233. align-items: center;
  1234. flex-wrap: nowrap;
  1235. justify-content: flex-start;
  1236. position: relative;
  1237. "
  1238. >
  1239. <div style="margin-right: 20px; font-weight: bold">
  1240. 步骤 {{ toolIndex + 1 }} :
  1241. </div>
  1242. <div class="chooseWho" style="padding-bottom: 0">
  1243. <span v-if="itemTool.tool == 1"> 电子白板 </span>
  1244. <span v-if="itemTool.tool == 3"> 思维导图 </span>
  1245. <span v-if="itemTool.tool == 6"> 协同文档 </span>
  1246. <span v-if="itemTool.tool == 15"> 问答工具 </span>
  1247. <span v-if="itemTool.tool == 48"> 表格 </span>
  1248. <span v-if="itemTool.tool == 51"> 资源库 </span>
  1249. <span v-if="itemTool.tool == 52"> 文档 </span>
  1250. <span v-if="itemTool.tool == 53"> 文件上传 </span>
  1251. <span v-if="itemTool.tool == 54"> 拍照 </span>
  1252. <span v-if="itemTool.tool == 55"> 文件 </span>
  1253. <span v-if="itemTool.tool == 56"> 投票 </span>
  1254. <span v-if="itemTool.tool == 57"> CocoPi </span>
  1255. </div>
  1256. <div
  1257. class="remove"
  1258. @click="deleteTool(itemTaskIndex, toolIndex)"
  1259. v-if="itemTask.toolArray.length > 0"
  1260. style="position: absolute; right: 55px"
  1261. ></div>
  1262. </div>
  1263. <div style="margin-top: 10px">
  1264. <div class="tool" v-if="itemTool.tool == 1">
  1265. <div
  1266. class="whiteBIcon"
  1267. @click="openToolFun(1, itemTaskIndex, toolIndex)"
  1268. >
  1269. <img
  1270. src="../../../assets/icon/secondToolList/whiteBoard.png"
  1271. alt
  1272. />
  1273. <div style="margin: 5px 0">电子白板</div>
  1274. </div>
  1275. </div>
  1276. <div class="tool" v-if="itemTool.tool == 3">
  1277. <div
  1278. class="whiteBIcon"
  1279. @click="openToolFun(3, itemTaskIndex, toolIndex)"
  1280. >
  1281. <img
  1282. src="../../../assets/icon/secondToolList/mindMapping.png"
  1283. alt
  1284. />
  1285. <div style="margin: 5px 0">思维导图</div>
  1286. </div>
  1287. </div>
  1288. <div class="tool" v-if="itemTool.tool == 6">
  1289. <div
  1290. class="whiteBIcon"
  1291. @click="openToolFun(6, itemTaskIndex, toolIndex)"
  1292. >
  1293. <img
  1294. src="../../../assets/icon/secondToolList/doc.png"
  1295. alt
  1296. />
  1297. <div style="margin: 5px 0">协同文档</div>
  1298. </div>
  1299. </div>
  1300. <div class="tool" v-if="itemTool.tool == 15">
  1301. <div
  1302. class="whiteBIcon"
  1303. @click="openToolFun(15, itemTaskIndex, toolIndex)"
  1304. >
  1305. <img
  1306. src="../../../assets/icon/thirdToolList/answer.png"
  1307. alt
  1308. />
  1309. <div style="margin: 5px 0">问答工具</div>
  1310. </div>
  1311. </div>
  1312. <div
  1313. class="tool"
  1314. v-if="
  1315. itemTool.tool == 48 && !itemTool.toolPhoto.length
  1316. "
  1317. >
  1318. <div
  1319. class="whiteBIcon"
  1320. @click="openToolFun(48, itemTaskIndex, toolIndex)"
  1321. >
  1322. <img
  1323. src="../../../assets/icon/fourthToolList/table.png"
  1324. alt
  1325. />
  1326. <div style="margin: 5px 0">表格</div>
  1327. </div>
  1328. </div>
  1329. <div
  1330. class="tool"
  1331. v-if="
  1332. itemTool.tool == 52 && !itemTool.toolPhoto.length
  1333. "
  1334. style="position: relative"
  1335. >
  1336. <div
  1337. class="whiteBIcon"
  1338. @click="openToolFun(52, itemTaskIndex, toolIndex)"
  1339. >
  1340. <img
  1341. src="../../../assets/icon/fourthToolList/text.png"
  1342. alt
  1343. />
  1344. <div style="margin: 5px 0">文档</div>
  1345. </div>
  1346. </div>
  1347. <div
  1348. class="tool"
  1349. v-if="itemTool.tool == 53"
  1350. style="position: relative"
  1351. >
  1352. <div
  1353. class="whiteBIcon"
  1354. :id="itemTaskIndex + '-' + toolIndex"
  1355. @click="addImg($event)"
  1356. >
  1357. <img
  1358. src="../../../assets/icon/fourthToolList/file.png"
  1359. alt
  1360. />
  1361. <div style="margin: 5px 0">文件上传</div>
  1362. <input
  1363. type="file"
  1364. accept="application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/zip"
  1365. style="display: none"
  1366. @change="
  1367. beforeUploadCC(
  1368. $event,
  1369. 1,
  1370. itemTaskIndex,
  1371. toolIndex,
  1372. 53
  1373. )
  1374. "
  1375. />
  1376. <div v-if="itemTool.proVisible" class="mask">
  1377. <div class="lbox2">
  1378. <img src="../../../assets/loading.gif" />
  1379. </div>
  1380. </div>
  1381. </div>
  1382. </div>
  1383. <div
  1384. class="tool"
  1385. v-if="itemTool.tool == 54"
  1386. style="
  1387. display: flex;
  1388. flex-direction: row;
  1389. align-items: flex-end;
  1390. "
  1391. >
  1392. <div
  1393. class="whiteBIcon"
  1394. :id="itemTaskIndex + '-' + toolIndex"
  1395. @click="addImg($event)"
  1396. style="position: relative"
  1397. >
  1398. <img
  1399. src="../../../assets/icon/fourthToolList/photo.png"
  1400. alt
  1401. />
  1402. <div style="margin: 5px 0">拍照</div>
  1403. <!-- capture="camera" -->
  1404. <input
  1405. type="file"
  1406. accept="video/mp4, video/quicktime, video/x-msvideo,image/*"
  1407. style="display: none"
  1408. @change="
  1409. beforeUploadCC(
  1410. $event,
  1411. 2,
  1412. itemTaskIndex,
  1413. toolIndex,
  1414. 54
  1415. )
  1416. "
  1417. />
  1418. <div
  1419. v-if="itemTool.proVisible"
  1420. class="mask"
  1421. style="background: unset"
  1422. @click.stop="1"
  1423. >
  1424. <div class="lbox2"></div>
  1425. </div>
  1426. </div>
  1427. <div
  1428. v-if="itemTool.proVisible"
  1429. style="margin: 5px 0"
  1430. class="f_size_box"
  1431. >
  1432. <img src="../../../assets/loading.gif" />
  1433. <div>
  1434. <span>{{ itemTool.isFinishSize }}M</span> /
  1435. <span>{{ itemTool.isAllSize }}M</span>
  1436. </div>
  1437. <!-- <el-button type="text">取消</el-button> -->
  1438. </div>
  1439. </div>
  1440. <div
  1441. class="tool"
  1442. v-if="itemTool.tool == 55"
  1443. style="
  1444. display: flex;
  1445. flex-direction: row;
  1446. align-items: flex-end;
  1447. "
  1448. >
  1449. <div
  1450. class="whiteBIcon"
  1451. :id="itemTaskIndex + '-' + toolIndex"
  1452. @click="addImg($event)"
  1453. style="position: relative"
  1454. >
  1455. <img
  1456. src="../../../assets/icon/fourthToolList/zip.png"
  1457. alt
  1458. />
  1459. <div style="margin: 5px 0">文件</div>
  1460. <input
  1461. type="file"
  1462. accept="*"
  1463. style="display: none"
  1464. @change="
  1465. beforeUploadCC(
  1466. $event,
  1467. 3,
  1468. itemTaskIndex,
  1469. toolIndex,
  1470. 55
  1471. )
  1472. "
  1473. />
  1474. <div
  1475. v-if="itemTool.proVisible"
  1476. class="mask"
  1477. style="background: unset"
  1478. @click.stop="1"
  1479. >
  1480. <div class="lbox2"></div>
  1481. </div>
  1482. </div>
  1483. <div
  1484. v-if="itemTool.proVisible"
  1485. style="margin: 5px 0"
  1486. class="f_size_box"
  1487. >
  1488. <img src="../../../assets/loading.gif" />
  1489. <div>
  1490. <span>{{ itemTool.isFinishSize }}M</span> /
  1491. <span>{{ itemTool.isAllSize }}M</span>
  1492. </div>
  1493. <!-- <el-button type="text">取消</el-button> -->
  1494. </div>
  1495. </div>
  1496. <div class="tool" v-if="itemTool.tool == 56">
  1497. <div
  1498. class="whiteBIcon"
  1499. @click="openToolFun(56, itemTaskIndex, toolIndex)"
  1500. >
  1501. <img
  1502. src="../../../assets/icon/thirdToolList/ask.png"
  1503. alt
  1504. />
  1505. <div style="margin: 5px 0">投票</div>
  1506. </div>
  1507. </div>
  1508. <div v-if="itemTool.tool == 57">
  1509. <div>
  1510. <iframe
  1511. src="https://v.cocorobo.cn"
  1512. frameborder="0"
  1513. width="100%"
  1514. height="650"
  1515. ></iframe>
  1516. </div>
  1517. </div>
  1518. <div v-if="itemTool.tool == 51">
  1519. <div class="vedioTaskBox">
  1520. <div
  1521. class="box_course"
  1522. :class="
  1523. 'box_course' + itemTaskIndex + toolIndex
  1524. "
  1525. v-if="itemTool.toolData.length > 0 && !itemTool.isNoFile"
  1526. >
  1527. <div
  1528. class="wheel"
  1529. v-if="
  1530. itemTool.toolData[itemTool.sourceIndex]
  1531. .type == 2
  1532. "
  1533. >
  1534. <div class="workd_media" style="height: 100%">
  1535. <video-player
  1536. class="video-player vjs-custom-skin"
  1537. :playsinline="true"
  1538. :options="
  1539. itemTool.toolData[itemTool.sourceIndex]
  1540. .src
  1541. "
  1542. @play="onPlayerPlay($event)"
  1543. style="width: 99%; height: 100%"
  1544. ></video-player>
  1545. </div>
  1546. </div>
  1547. <div
  1548. class="wheel"
  1549. v-if="
  1550. itemTool.toolData[itemTool.sourceIndex]
  1551. .type == 6
  1552. "
  1553. style="
  1554. box-shadow: 0 0 6px 1px #f2f2f2;
  1555. width: 99%;
  1556. background: #f1f1f1;
  1557. height: 650px;
  1558. "
  1559. >
  1560. <div class="texttitle">查看文档</div>
  1561. <el-form class="textBox">
  1562. <el-form-item class="textTitle">
  1563. <div
  1564. style="
  1565. font-size: 22px;
  1566. max-height: 100px;
  1567. overflow: auto;
  1568. "
  1569. >
  1570. {{
  1571. itemTool.toolData[
  1572. itemTool.sourceIndex
  1573. ].name
  1574. }}
  1575. </div>
  1576. </el-form-item>
  1577. <div
  1578. v-html="
  1579. itemTool.toolData[itemTool.sourceIndex]
  1580. .url
  1581. "
  1582. class="textContent"
  1583. ></div>
  1584. </el-form>
  1585. </div>
  1586. <div
  1587. class="wheel"
  1588. v-if="
  1589. itemTool.toolData[itemTool.sourceIndex]
  1590. .type == 3
  1591. "
  1592. style="height: 650px; width: 99%"
  1593. >
  1594. <iframe
  1595. style="
  1596. width: 100%;
  1597. height: 100%;
  1598. border: none;
  1599. "
  1600. :src="
  1601. itemTool.toolData[itemTool.sourceIndex]
  1602. .src
  1603. "
  1604. ></iframe>
  1605. </div>
  1606. <div
  1607. class="wheel"
  1608. v-if="
  1609. itemTool.toolData[itemTool.sourceIndex]
  1610. .type == 8
  1611. "
  1612. style="height: 650px; width: 99%"
  1613. >
  1614. <iframe
  1615. style="
  1616. width: 100%;
  1617. height: 100%;
  1618. border: none;
  1619. "
  1620. :src="
  1621. itemTool.toolData[itemTool.sourceIndex]
  1622. .src
  1623. "
  1624. security="restricted"
  1625. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts"
  1626. ></iframe>
  1627. </div>
  1628. <div
  1629. class="wheel"
  1630. v-if="
  1631. itemTool.toolData[itemTool.sourceIndex]
  1632. .type == 13
  1633. "
  1634. style="height: 650px; width: 99%"
  1635. >
  1636. <el-image
  1637. :src="itemTool.toolData[itemTool.sourceIndex].url"
  1638. fit="contain"
  1639. style="width: 100%; height: 100%; cursor: pointer"
  1640. @click="previewImg(itemTool.toolData[itemTool.sourceIndex].url)"
  1641. ></el-image>
  1642. </div>
  1643. <div
  1644. class="wheel"
  1645. v-if="
  1646. itemTool.toolData[itemTool.sourceIndex]
  1647. .type == 9
  1648. "
  1649. style="height: 650px; width: 99%"
  1650. >
  1651. <pdf
  1652. :pdfUrl="
  1653. itemTool.toolData[itemTool.sourceIndex]
  1654. .url
  1655. "
  1656. style="
  1657. width: 100%;
  1658. height: 100%;
  1659. overflow: auto;
  1660. "
  1661. >
  1662. </pdf>
  1663. </div>
  1664. </div>
  1665. <div
  1666. class="vedioList"
  1667. :class="'vedioList' + itemTaskIndex + toolIndex"
  1668. v-if="itemTool.toolData.length > 0"
  1669. >
  1670. <div class="navTitile">内容列表:</div>
  1671. <div class="navBox">
  1672. <div>
  1673. <div
  1674. class="vedioTimeBox"
  1675. v-for="(
  1676. chapter, cIndex
  1677. ) in itemTool.toolData"
  1678. :key="cIndex + '1'"
  1679. @click="setChapterIndex(itemTool, cIndex)"
  1680. >
  1681. <div
  1682. class="vedioName"
  1683. :class="{
  1684. isClickNav:
  1685. itemTool.sourceIndex == cIndex,
  1686. }"
  1687. >
  1688. {{
  1689. chapter.type == 8
  1690. ? chapter.title
  1691. : chapter.name
  1692. }}
  1693. </div>
  1694. </div>
  1695. </div>
  1696. </div>
  1697. </div>
  1698. </div>
  1699. <div
  1700. style="padding: 10px 0 0"
  1701. v-if="itemTool.toolData[itemTool.sourceIndex]"
  1702. >
  1703. <el-button
  1704. v-if="
  1705. itemTool.toolData[itemTool.sourceIndex]
  1706. .type == 3 ||
  1707. itemTool.toolData[itemTool.sourceIndex]
  1708. .type == 9
  1709. "
  1710. type="primary"
  1711. @click="
  1712. checkFileFull(
  1713. itemTool.toolData[itemTool.sourceIndex]
  1714. .type,
  1715. itemTool.toolData[itemTool.sourceIndex].src
  1716. )
  1717. "
  1718. >全屏查看</el-button
  1719. >
  1720. <el-button
  1721. v-if="
  1722. itemTool.toolData[itemTool.sourceIndex]
  1723. .type == 3 ||
  1724. itemTool.toolData[itemTool.sourceIndex]
  1725. .type == 9
  1726. "
  1727. type="primary"
  1728. @click="
  1729. downloadFile(
  1730. itemTool.toolData[itemTool.sourceIndex].src
  1731. )
  1732. "
  1733. >文件下载</el-button
  1734. >
  1735. <el-button
  1736. v-if="
  1737. itemTool.toolData[itemTool.sourceIndex]
  1738. .type == 8
  1739. "
  1740. type="primary"
  1741. @click="
  1742. openLineS(
  1743. itemTool.toolData[itemTool.sourceIndex].src
  1744. )
  1745. "
  1746. >打开链接
  1747. </el-button>
  1748. <el-button
  1749. v-if="
  1750. itemTool.toolData[itemTool.sourceIndex]
  1751. .type == 6
  1752. "
  1753. type="primary"
  1754. @click="
  1755. checkFileFull(
  1756. itemTool.toolData[itemTool.sourceIndex]
  1757. .type,
  1758. itemTool.toolData[itemTool.sourceIndex]
  1759. )
  1760. "
  1761. >全屏查看</el-button
  1762. >
  1763. <el-button
  1764. type="primary"
  1765. @click="
  1766. editSourceUpadte(itemTaskIndex, toolIndex)
  1767. "
  1768. >添加资源</el-button
  1769. >
  1770. </div>
  1771. </div>
  1772. </div>
  1773. <div v-if="itemTool.tool != 51">
  1774. <textarea
  1775. rows="3"
  1776. type="text"
  1777. placeholder="添加工具描述"
  1778. class="binfo_input"
  1779. style="
  1780. margin: 0 0 20px;
  1781. resize: none;
  1782. width: 71.5% !important;
  1783. "
  1784. v-model="itemTool.toolDetail"
  1785. ></textarea>
  1786. </div>
  1787. <div
  1788. v-if="itemTool.toolPhoto.length"
  1789. style="margin-top: 10px"
  1790. class="toolimg_box"
  1791. >
  1792. <div
  1793. class="toolimg"
  1794. v-for="(photo, pIndex) in itemTool.toolPhoto"
  1795. :key="pIndex"
  1796. :class="{ answerWidth: photo.type == 3 }"
  1797. >
  1798. <img
  1799. v-if="photo.type == 1"
  1800. :src="photo.content"
  1801. alt=""
  1802. @click="previewImg(photo.content)"
  1803. />
  1804. <div class="answerBg" v-if="photo.type == 3">
  1805. <!-- <div>{{ w.sName }}</div> -->
  1806. <el-tooltip
  1807. class="item"
  1808. effect="light"
  1809. :content="photo.content"
  1810. placement="top"
  1811. >
  1812. <div class="answerContent">
  1813. {{ photo.content }}
  1814. </div>
  1815. </el-tooltip>
  1816. </div>
  1817. <img
  1818. v-if="photo.type == 10"
  1819. src="../../../assets/icon/word2.png"
  1820. alt=""
  1821. @click="openToolFun(48, itemTaskIndex, toolIndex)"
  1822. />
  1823. <img
  1824. v-if="photo.type == 4"
  1825. src="../../../assets/icon/word2.png"
  1826. alt=""
  1827. @click="openFile(photo.content)"
  1828. />
  1829. <img
  1830. v-if="photo.type == 12"
  1831. src="../../../assets/icon/word2.png"
  1832. alt=""
  1833. @click="openToolFun(52, itemTaskIndex, toolIndex)"
  1834. />
  1835. <img
  1836. v-if="photo.type == 14"
  1837. src="../../../assets/icon/word2.png"
  1838. alt=""
  1839. @click="
  1840. openAsk(photo.content, itemTaskIndex, toolIndex)
  1841. "
  1842. />
  1843. <img
  1844. v-if="photo.type == 13"
  1845. src="../../../assets/icon/zip.png"
  1846. alt=""
  1847. @click="downloadFile(photo.content)"
  1848. />
  1849. <img
  1850. v-if="photo.type == 5"
  1851. src="../../../assets/icon/isVideo.png"
  1852. alt=""
  1853. @click="openVideo(photo.content)"
  1854. />
  1855. <img
  1856. class="deleteImg"
  1857. src="../../../assets/deleteworks.png"
  1858. v-if="
  1859. photo.userid == userid &&
  1860. itemTool.tool != 52 &&
  1861. itemTool.tool != 48
  1862. "
  1863. @click.stop="deleteWorks(photo.id)"
  1864. alt
  1865. />
  1866. <div class="comment">
  1867. <div class="worksName">
  1868. <div
  1869. v-if="
  1870. itemTool.tool == 52 || itemTool.tool == 48
  1871. "
  1872. >
  1873. <el-tooltip
  1874. v-if="itemTool.people.length > 1"
  1875. :content="itemTool.people.join('、')"
  1876. placement="top"
  1877. effect="dark"
  1878. >
  1879. <span>{{
  1880. itemTool.people.join("、")
  1881. }}</span>
  1882. </el-tooltip>
  1883. <span v-else>{{
  1884. itemTool.people.join("、")
  1885. }}</span>
  1886. </div>
  1887. <div v-else>{{ photo.username }}</div>
  1888. </div>
  1889. </div>
  1890. </div>
  1891. </div>
  1892. <div
  1893. v-if="
  1894. itemTool.toolPhoto.length && itemTool.tool == 56
  1895. "
  1896. >
  1897. <voteStatic
  1898. :askJSON="itemTool.askJson"
  1899. :checkJson="checkJson[toolIndex]"
  1900. ></voteStatic>
  1901. </div>
  1902. </div>
  1903. <div class="addToolFunBox">
  1904. <div
  1905. class="addToolFun"
  1906. @click="addToolFunD(itemTaskIndex)"
  1907. >
  1908. <div class="addToolImg">
  1909. <img src="../../../assets/icon/add.png" alt />
  1910. </div>
  1911. <div>添加工具</div>
  1912. </div>
  1913. <!-- <div class="addToolFun" @click="addSourceFunD(itemTaskIndex)">
  1914. <div class="addToolImg">
  1915. <img src="../../../assets/icon/add.png" alt />
  1916. </div>
  1917. <div>添加资源</div>
  1918. </div> -->
  1919. </div>
  1920. </div>
  1921. </div>
  1922. <div class="funBlock" style="padding: 0">
  1923. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  1924. <div>折叠</div>
  1925. <div class="arrow">
  1926. <img src="../../../assets/icon/fold.png" alt />
  1927. </div>
  1928. </div>
  1929. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  1930. <div>展开</div>
  1931. <div class="arrow">
  1932. <img src="../../../assets/icon/expand.png" alt />
  1933. </div>
  1934. </div>
  1935. </div>
  1936. </div>
  1937. <div class="addTaskBorder" @click="addTaskBorder">
  1938. <div>
  1939. <img src="../../../assets/icon/addHw.png" alt />
  1940. <span>添加任务</span>
  1941. </div>
  1942. </div>
  1943. </div>
  1944. </div>
  1945. </div>
  1946. <div class="rightBox" v-if="steps == 4">
  1947. <div class="proMan">
  1948. <div class="title">
  1949. <img src="../../../assets/icon/task.png" alt />任务进展甘特图
  1950. </div>
  1951. <ganChart :Json="unitJson" v-if="steps == 4"></ganChart>
  1952. </div>
  1953. <div class="proMan">
  1954. <div class="title">
  1955. <img src="../../../assets/icon/tupu.png" alt />图谱
  1956. </div>
  1957. <graph :Json="graphJson"></graph>
  1958. </div>
  1959. <div class="proMan">
  1960. <div class="title">
  1961. <img src="../../../assets/icon/proMan.png" alt />负责人看板
  1962. </div>
  1963. <proMan :Json="unitJson" :ManAarray="ManAarray"></proMan>
  1964. </div>
  1965. </div>
  1966. <div
  1967. style="
  1968. width: calc(100% - 20px);
  1969. background: rgb(255, 255, 255);
  1970. border-radius: 10px;
  1971. "
  1972. v-if="steps == 5"
  1973. >
  1974. <div class="basic_box_success">
  1975. <div class="right_img">
  1976. <img src="../../../assets/icon/qr_code.jpg" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'" alt />
  1977. <img src="../../../assets/icon/right.png" v-else alt />
  1978. </div>
  1979. <div style="font-weight: bold;margin:10px 0" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'">请参加双师科创成长营活动的成员</div>
  1980. <div style="font-weight: bold;margin:10px 0" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'">前往腾讯未来教室小程序活动作品展示栏提交您的作品</div>
  1981. <div style="font-weight: bold">创建成功</div>
  1982. <!-- <div>您的项目编号</div>
  1983. <div class="number">{{ number }}</div>-->
  1984. <!-- <div class="success_button">
  1985. <div class="look_course" @click="isNoFinsh">
  1986. 邀请老师协同编辑
  1987. </div>
  1988. <div class="attend_others" @click="goCourse">预览项目</div>
  1989. </div> -->
  1990. </div>
  1991. </div>
  1992. <div class="info_btnBox">
  1993. <button
  1994. class="info_btn"
  1995. v-if="steps == 1"
  1996. @click="
  1997. goTo(
  1998. fpath + '?userid=' + userid + '&oid=' + oid + '&org=' + org + '&role=' + role
  1999. )
  2000. "
  2001. >
  2002. 返回项目
  2003. </button>
  2004. <button
  2005. class="info_btn"
  2006. v-if="steps > 1 && steps != 6"
  2007. @click="lastSteps"
  2008. >
  2009. {{ steps == 5 ? "返回首页" : "上一步" }}
  2010. </button>
  2011. <button class="info_btn" v-if="steps < 5" @click="nextSteps">
  2012. {{
  2013. (steps == 4 && type == 2) || (steps == 3 && type != 2)
  2014. ? "确认上传"
  2015. : "下一步"
  2016. }}
  2017. </button>
  2018. </div>
  2019. </div>
  2020. </div>
  2021. </div>
  2022. <el-dialog
  2023. title="提示"
  2024. :visible.sync="dialogVisible"
  2025. :append-to-body="true"
  2026. width="25%"
  2027. :before-close="handleClose"
  2028. class="dialog_diy2 customWidth"
  2029. >
  2030. <div>请复制该链接邀请协同编辑</div>
  2031. <div>http://www.boomyon.com/index-zhang.com</div>
  2032. <span slot="footer" class="dialog-footer">
  2033. <el-button type="primary">复制链接分享</el-button>
  2034. <el-button @click="dialogVisible = false">取消</el-button>
  2035. </span>
  2036. </el-dialog>
  2037. <el-dialog
  2038. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  2039. :visible.sync="dialogVisible1"
  2040. :append-to-body="true"
  2041. width="25%"
  2042. :before-close="handleClose"
  2043. class="dialog_diy2 customWidth"
  2044. >
  2045. <el-form>
  2046. <el-form-item label="文档标题">
  2047. <el-input
  2048. v-model="tTitle"
  2049. auto-complete="off"
  2050. placeholder="请输入文档标题名..."
  2051. ></el-input>
  2052. </el-form-item>
  2053. <div>文档简介</div>
  2054. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2055. </el-form>
  2056. <span slot="footer" class="dialog-footer">
  2057. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2058. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  2059. >添加</el-button
  2060. >
  2061. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2062. </span>
  2063. </el-dialog>
  2064. <el-dialog
  2065. title="添加文档"
  2066. :visible.sync="dialogVisible2"
  2067. :append-to-body="true"
  2068. width="500px"
  2069. :before-close="handleClose"
  2070. class="dialog_diy"
  2071. >
  2072. <el-form>
  2073. <el-form-item label="文档标题">
  2074. <el-input
  2075. v-model="templateC.title"
  2076. auto-complete="off"
  2077. placeholder="请输入文档标题名..."
  2078. ></el-input>
  2079. </el-form-item>
  2080. <div>文档内容</div>
  2081. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2082. </el-form>
  2083. <span slot="footer" class="dialog-footer">
  2084. <el-button @click="clearChoose">取 消</el-button>
  2085. <el-button type="primary" @click="wordNext()">确定</el-button>
  2086. </span>
  2087. </el-dialog>
  2088. <el-dialog
  2089. title="添加富文本"
  2090. :visible.sync="dialogVisible6"
  2091. :append-to-body="true"
  2092. width="500px"
  2093. :before-close="handleClose"
  2094. class="dialog_diy"
  2095. >
  2096. <el-form>
  2097. <el-form-item label="文本标题">
  2098. <el-input
  2099. v-model="AttText.title"
  2100. auto-complete="off"
  2101. @input="change2"
  2102. placeholder="请输入文本标题..."
  2103. ></el-input>
  2104. </el-form-item>
  2105. <div>富文本内容</div>
  2106. <editor-bar v-model="AttText.text" @change="change"></editor-bar>
  2107. </el-form>
  2108. <span slot="footer" class="dialog-footer">
  2109. <el-button @click="clearAttText">取 消</el-button>
  2110. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2111. </span>
  2112. </el-dialog>
  2113. <el-dialog
  2114. title="添加链接"
  2115. :visible.sync="dialogVisible7"
  2116. :append-to-body="true"
  2117. width="500px"
  2118. :before-close="handleClose"
  2119. class="dialog_diy lineCss"
  2120. >
  2121. <el-form>
  2122. <el-form-item label="标题" :label-width="formLabelWidth">
  2123. <span>
  2124. <el-input
  2125. placeholder="请输入链接标题"
  2126. clearable
  2127. v-model="lineTitle"
  2128. class="add_input"
  2129. ></el-input>
  2130. </span>
  2131. </el-form-item>
  2132. <el-form-item label="链接" :label-width="formLabelWidth">
  2133. <span>
  2134. <el-input
  2135. placeholder="请输入链接"
  2136. clearable
  2137. v-model="line"
  2138. class="add_input"
  2139. ></el-input>
  2140. </span>
  2141. </el-form-item>
  2142. </el-form>
  2143. <span slot="footer" class="dialog-footer">
  2144. <el-button @click="clearLine">取 消</el-button>
  2145. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2146. </span>
  2147. </el-dialog>
  2148. <el-dialog
  2149. title="添加项目成员"
  2150. :visible.sync="dialogVisible3"
  2151. :append-to-body="true"
  2152. width="25%"
  2153. height="80%"
  2154. :before-close="handleClose"
  2155. class="addNewPP customWidth"
  2156. >
  2157. <div class="people">
  2158. <div class="people_top">
  2159. <div class="people_nav">选择成员</div>
  2160. <div class="people_top_right">
  2161. <div class="people_search">
  2162. <el-input
  2163. style="height: 100%"
  2164. placeholder="搜索成员账号"
  2165. v-model="searchPeople"
  2166. ></el-input>
  2167. <div class="search_img" @click="searchStudent">
  2168. <img src="../../../assets/icon/search.png" alt />
  2169. </div>
  2170. </div>
  2171. </div>
  2172. </div>
  2173. <el-checkbox-group v-model="checkboxList" class="people_name">
  2174. <el-checkbox
  2175. v-for="item in studentJuri"
  2176. :key="item.userid"
  2177. :label="item.userid"
  2178. >{{ item.name ? item.name : "暂无学生可选" }}
  2179. </el-checkbox>
  2180. </el-checkbox-group>
  2181. </div>
  2182. <span slot="footer" class="dialog-footer">
  2183. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2184. <el-button type="primary" @click="isAddPP">确定</el-button>
  2185. </span>
  2186. </el-dialog>
  2187. <el-dialog
  2188. title="添加班级"
  2189. :visible.sync="dialogVisibleClass"
  2190. :append-to-body="true"
  2191. width="400px"
  2192. height="80%"
  2193. :before-close="handleClose"
  2194. class="addNewPP"
  2195. >
  2196. <div class="people" style="height: 300px">
  2197. <div class="people_top">
  2198. <div class="people_nav">选择班级</div>
  2199. </div>
  2200. <el-checkbox-group v-model="checkboxList2" class="people_name">
  2201. <div v-for="(item, index) in grade" :key="item.id">
  2202. <el-checkbox :label="item.id">
  2203. {{ item.name ? item.name : "暂无班级可选" }}
  2204. </el-checkbox>
  2205. <div>
  2206. <span>{{ index }}</span>
  2207. </div>
  2208. </div>
  2209. </el-checkbox-group>
  2210. </div>
  2211. <span slot="footer" class="dialog-footer">
  2212. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2213. <el-button type="primary" @click="isAddClass">确定</el-button>
  2214. </span>
  2215. </el-dialog>
  2216. <el-dialog
  2217. title="添加协同成员"
  2218. :visible.sync="dialogVisibleMember"
  2219. :append-to-body="true"
  2220. width="25%"
  2221. height="80%"
  2222. :before-close="handleClose"
  2223. class="addNewPP customWidth"
  2224. >
  2225. <div class="people">
  2226. <div class="people_top">
  2227. <div class="people_top_right">
  2228. <div class="people_search">
  2229. <el-input
  2230. placeholder="搜索完整的姓名/账号(不含邮箱后缀)"
  2231. v-model="searchTN"
  2232. @keyup.enter.native="getTeacher"
  2233. ></el-input>
  2234. <div class="search_img" @click="getTeacher">
  2235. <img src="../../../assets/icon/search.png" alt />
  2236. </div>
  2237. </div>
  2238. </div>
  2239. <div class="people_nav">选择成员</div>
  2240. </div>
  2241. <div
  2242. class="t_j_box"
  2243. style="
  2244. padding: 20px 0 0 25px;
  2245. width: calc(100% - 55px);
  2246. margin-left: 25px;
  2247. "
  2248. >
  2249. <span>姓名</span>
  2250. <span>身份</span>
  2251. <span>账号</span>
  2252. <span>学校</span>
  2253. </div>
  2254. <el-checkbox-group
  2255. v-model="checkboxList3"
  2256. class="people_name"
  2257. v-if="teacherJuri.length"
  2258. >
  2259. <el-checkbox
  2260. v-for="item in teacherJuri"
  2261. :key="item.userid"
  2262. :label="item.userid"
  2263. >
  2264. <div class="t_j_box">
  2265. <el-tooltip
  2266. placement="top"
  2267. :content="item.name ? item.name : '暂无姓名'"
  2268. >
  2269. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2270. </el-tooltip>
  2271. <span>{{ item.type == "1" ? "老师" : "学生" }}</span>
  2272. <el-tooltip placement="top" :content="item.username">
  2273. <span>{{ item.username }}</span>
  2274. </el-tooltip>
  2275. <el-tooltip placement="top" :content="item.school">
  2276. <span>{{ item.school }}</span>
  2277. </el-tooltip>
  2278. </div>
  2279. </el-checkbox>
  2280. </el-checkbox-group>
  2281. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2282. </div>
  2283. <div style="margin-top: 10px;">
  2284. <el-pagination
  2285. background
  2286. layout="prev, pager, next"
  2287. :page-size="pageSize"
  2288. :total="total"
  2289. v-if="page && teacherJuri.length"
  2290. style="padding-bottom: 20px"
  2291. @current-change="handleCurrentChange"
  2292. ></el-pagination>
  2293. </div>
  2294. <span slot="footer" class="dialog-footer">
  2295. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2296. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2297. </span>
  2298. </el-dialog>
  2299. <el-dialog
  2300. title="添加协同者"
  2301. :visible.sync="dialogVisibleTcMember"
  2302. :append-to-body="true"
  2303. width="25%"
  2304. height="80%"
  2305. :before-close="handleClose"
  2306. class="addNewPP customWidth"
  2307. >
  2308. <div class="people">
  2309. <div class="people_top">
  2310. <!-- <div class="people_top_right">
  2311. <div class="people_search">
  2312. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2313. <div class="search_img" @click="getTeacher">
  2314. <img src="../../../assets/icon/search.png" alt />
  2315. </div>
  2316. </div>
  2317. </div> -->
  2318. <div class="people_nav">选择成员</div>
  2319. </div>
  2320. <div
  2321. class="t_j_box"
  2322. style="
  2323. padding: 20px 0 0 25px;
  2324. width: calc(100% - 55px);
  2325. margin-left: 25px;
  2326. "
  2327. >
  2328. <span>姓名</span>
  2329. <span>身份</span>
  2330. <span>账号</span>
  2331. <span>学校</span>
  2332. </div>
  2333. <el-checkbox-group
  2334. v-model="tcMember"
  2335. class="people_name"
  2336. v-if="ManAarray2.length"
  2337. >
  2338. <el-checkbox
  2339. v-for="item in ManAarray2"
  2340. :key="item.userid"
  2341. :label="item.userid"
  2342. >
  2343. <div class="t_j_box">
  2344. <el-tooltip
  2345. placement="top"
  2346. :content="item.name ? item.name : '暂无姓名'"
  2347. >
  2348. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2349. </el-tooltip>
  2350. <span>{{ item.type == "1" ? "老师" : "学生" }}</span>
  2351. <el-tooltip placement="top" :content="item.username">
  2352. <span>{{ item.username }}</span>
  2353. </el-tooltip>
  2354. <el-tooltip placement="top" :content="item.school">
  2355. <span>{{ item.school }}</span>
  2356. </el-tooltip>
  2357. </div>
  2358. </el-checkbox>
  2359. </el-checkbox-group>
  2360. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2361. </div>
  2362. <span slot="footer" class="dialog-footer">
  2363. <el-button @click="dialogVisibleTcMember = false">取 消</el-button>
  2364. <el-button type="primary" @click="isAddPPTcTeacher">确定</el-button>
  2365. </span>
  2366. </el-dialog>
  2367. <el-dialog
  2368. title="创建问卷"
  2369. :visible.sync="dialogVisible5"
  2370. :append-to-body="true"
  2371. width="800px"
  2372. :before-close="handleClose"
  2373. class="dialog_diy"
  2374. >
  2375. <div>
  2376. <div
  2377. class="a_add_title"
  2378. style="
  2379. display: flex;
  2380. flex-direction: row;
  2381. align-items: center;
  2382. justify-content: center;
  2383. "
  2384. >
  2385. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2386. <el-input
  2387. v-model="askJson.askTitle"
  2388. placeholder="请输入标题"
  2389. style="width: 400px"
  2390. ></el-input>
  2391. </div>
  2392. <div class="a_addBox">
  2393. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  2394. <div
  2395. class="a_add_box"
  2396. v-for="(item1, index1) in askJson.askCount"
  2397. :key="index1"
  2398. >
  2399. <div class="a_add_head">
  2400. <div>
  2401. {{ index1 + 1 + "、" }}
  2402. <el-input
  2403. class="a_add_head_input"
  2404. v-model="askJson.askJson[index1].askstitle"
  2405. placeholder="请输入题目..."
  2406. >
  2407. </el-input>
  2408. </div>
  2409. <div class="a_add_head_div">
  2410. <el-button type="primary" size="small" @click="addAskList()"
  2411. >添加</el-button
  2412. >
  2413. <el-button
  2414. type="primary"
  2415. size="small"
  2416. @click="deleteAskList(index1)"
  2417. v-if="askJson.askCount != 1"
  2418. >删除
  2419. </el-button>
  2420. </div>
  2421. </div>
  2422. <div class="a_add_body">
  2423. <div class="a_add_input">
  2424. <el-input
  2425. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  2426. :key="checkIndex"
  2427. v-model="askJson.askJson[index1].checkList[checkIndex]"
  2428. placeholder="请输入选项..."
  2429. style="width: 150px; margin: 10px 10px 0 0"
  2430. ></el-input>
  2431. </div>
  2432. <div class="a_add_body_div">
  2433. <el-button
  2434. style="margin: 10px 0px 0 0"
  2435. type="primary"
  2436. size="small"
  2437. @click="addcheckList(askJson.askJson[index1])"
  2438. >添加</el-button
  2439. >
  2440. <el-button
  2441. type="primary"
  2442. size="small"
  2443. style="margin: 10px 0 0 10px"
  2444. @click="deletecheckList(askJson.askJson[index1])"
  2445. v-if="askJson.askJson[index1].askItem != 1"
  2446. >删除
  2447. </el-button>
  2448. </div>
  2449. </div>
  2450. </div>
  2451. </div>
  2452. </div>
  2453. <span slot="footer" class="dialog-footer">
  2454. <el-button @click="dialogVisible5 = false">取 消</el-button>
  2455. <el-button type="primary" @click="addAsk">确 定</el-button>
  2456. </span>
  2457. </el-dialog>
  2458. <el-dialog
  2459. title="创建选择题"
  2460. :visible.sync="dialogVisibleChoice"
  2461. :append-to-body="true"
  2462. width="800px"
  2463. :before-close="handleClose"
  2464. class="dialog_diy"
  2465. >
  2466. <div>
  2467. <!-- <div class="a_add_title" style="
  2468. display: flex;
  2469. flex-direction: row;
  2470. align-items: center;
  2471. justify-content: center;
  2472. ">
  2473. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2474. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2475. </div> -->
  2476. <div class="a_addBox">
  2477. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  2478. <div
  2479. class="a_add_box"
  2480. v-for="(item1, index1) in testJson.testCount"
  2481. :key="index1"
  2482. >
  2483. <div class="a_add_checkType">
  2484. <span
  2485. :class="{ active: testJson.testJson[index1].type == '1' }"
  2486. @click="checkTestType('1', testJson.testJson[index1])"
  2487. >单选题</span
  2488. >
  2489. <span
  2490. :class="{ active: testJson.testJson[index1].type == '2' }"
  2491. @click="checkTestType('2', testJson.testJson[index1])"
  2492. >多选题</span
  2493. >
  2494. </div>
  2495. <div class="a_add_head">
  2496. <div>
  2497. {{ index1 + 1 + "、" }}
  2498. <el-input
  2499. class="a_add_head_input"
  2500. v-model="testJson.testJson[index1].teststitle"
  2501. placeholder="请输入题目..."
  2502. >
  2503. </el-input>
  2504. </div>
  2505. <div class="a_add_head_div">
  2506. <el-button type="primary" size="small" @click="addTestList()"
  2507. >添加</el-button
  2508. >
  2509. <el-button
  2510. type="primary"
  2511. size="small"
  2512. @click="deleteTestList(index1)"
  2513. v-if="testJson.testCount != 1"
  2514. >删除
  2515. </el-button>
  2516. </div>
  2517. </div>
  2518. <div class="a_add_body">
  2519. <div class="a_add_input a_add_input_choice">
  2520. <el-radio-group
  2521. v-model="testJson.testJson[index1].answer"
  2522. v-if="testJson.testJson[index1].type == 1"
  2523. >
  2524. <el-radio
  2525. v-for="(item2, checkIndex) in testJson.testJson[index1]
  2526. .testItem"
  2527. :key="checkIndex"
  2528. :label="checkIndex"
  2529. >
  2530. <el-input
  2531. v-model="testJson.testJson[index1].checkList[checkIndex]"
  2532. placeholder="请输入选项..."
  2533. style="width: 300px; margin-right: 10px"
  2534. ></el-input>
  2535. </el-radio>
  2536. </el-radio-group>
  2537. <el-checkbox-group
  2538. v-model="testJson.testJson[index1].answer"
  2539. v-if="testJson.testJson[index1].type == '2'"
  2540. >
  2541. <el-checkbox
  2542. v-for="(item2, checkIndex) in testJson.testJson[index1]
  2543. .testItem"
  2544. :key="checkIndex"
  2545. :label="checkIndex"
  2546. >
  2547. <el-input
  2548. v-model="testJson.testJson[index1].checkList[checkIndex]"
  2549. placeholder="请输入选项..."
  2550. style="width: 300px; margin-right: 10px"
  2551. ></el-input>
  2552. </el-checkbox>
  2553. </el-checkbox-group>
  2554. </div>
  2555. <div class="a_add_body_div">
  2556. <el-button
  2557. type="primary"
  2558. size="small"
  2559. @click="addTcheckList(testJson.testJson[index1])"
  2560. >添加</el-button
  2561. >
  2562. <el-button
  2563. type="primary"
  2564. size="small"
  2565. @click="deleteTcheckList(testJson.testJson[index1])"
  2566. v-if="testJson.testJson[index1].testItem != 1"
  2567. >删除
  2568. </el-button>
  2569. </div>
  2570. </div>
  2571. </div>
  2572. </div>
  2573. </div>
  2574. <span slot="footer" class="dialog-footer">
  2575. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  2576. <el-button type="primary" @click="addTest">确 定</el-button>
  2577. </span>
  2578. </el-dialog>
  2579. <el-dialog
  2580. title="添加问答"
  2581. :visible.sync="dialogVisible8"
  2582. :append-to-body="true"
  2583. width="500px"
  2584. :before-close="handleClose"
  2585. class="dialog_diy"
  2586. >
  2587. <div>
  2588. <div
  2589. class="a_add_title"
  2590. style="
  2591. display: flex;
  2592. flex-direction: column;
  2593. align-items: flex-start;
  2594. justify-content: center;
  2595. "
  2596. >
  2597. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2598. <el-input
  2599. v-model="answerQ"
  2600. placeholder="请输入您要问的问题"
  2601. ></el-input>
  2602. </div>
  2603. </div>
  2604. <span slot="footer" class="dialog-footer">
  2605. <el-button @click="dialogVisible8 = false">取 消</el-button>
  2606. <el-button type="primary" @click="addAnswer">确 定</el-button>
  2607. </span>
  2608. </el-dialog>
  2609. <el-dialog
  2610. title="添加问题"
  2611. :visible.sync="dialogVisibleMp3"
  2612. :append-to-body="true"
  2613. width="500px"
  2614. :before-close="handleClose"
  2615. class="dialog_diy"
  2616. >
  2617. <div>
  2618. <div
  2619. class="a_add_title"
  2620. style="
  2621. display: flex;
  2622. flex-direction: column;
  2623. align-items: flex-start;
  2624. justify-content: center;
  2625. "
  2626. >
  2627. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2628. <el-input
  2629. v-model="answerQ"
  2630. placeholder="请输入您想要回答的问题"
  2631. ></el-input>
  2632. </div>
  2633. </div>
  2634. <span slot="footer" class="dialog-footer">
  2635. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  2636. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  2637. </span>
  2638. </el-dialog>
  2639. <el-dialog
  2640. title="上传图片"
  2641. :visible.sync="choosePicVisible"
  2642. :append-to-body="true"
  2643. width="500px"
  2644. :before-close="handleClose"
  2645. class="dialog_diy"
  2646. >
  2647. <div>
  2648. <div class="fileCss" style="padding-top: 20px">
  2649. <div>
  2650. <button class="info_btn" @click="addImg($event)">
  2651. 选择本地文件
  2652. <input
  2653. type="file"
  2654. accept="image/*"
  2655. style="display: none"
  2656. @change="beforeUpload1"
  2657. />
  2658. </button>
  2659. </div>
  2660. <div>
  2661. <el-button
  2662. @click="getAllBanner"
  2663. v-if="isSysPic == false && cover.length == 0"
  2664. >选择系统文件</el-button
  2665. >
  2666. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  2667. <img :src="cover[0].url" alt="" />
  2668. <div class="deletePic" @click="deleteSysPic">
  2669. <img src="../../../assets/icon/delete.png" alt="" />
  2670. </div>
  2671. </div>
  2672. </div>
  2673. </div>
  2674. <div class="fileCss">
  2675. <div>选择本地文件</div>
  2676. <div>选择系统文件</div>
  2677. </div>
  2678. </div>
  2679. <span slot="footer" class="dialog-footer">
  2680. <el-button @click="choosePicVisible = false">取 消</el-button>
  2681. <el-button type="primary" @click="choosePicVisible = false"
  2682. >确 定</el-button
  2683. >
  2684. </span>
  2685. </el-dialog>
  2686. <el-dialog
  2687. title="选择系统文件"
  2688. :visible.sync="sysPicVisible"
  2689. :append-to-body="true"
  2690. width="710px"
  2691. :before-close="handleClose"
  2692. class="dialog_diy"
  2693. >
  2694. <div class="cru_selectBox" style="margin: 0">
  2695. <div
  2696. @click="getChoosePic(1)"
  2697. class="cru_select"
  2698. :class="chooseType == 1 ? 'cru_selected' : ''"
  2699. >
  2700. 绘画
  2701. </div>
  2702. <div
  2703. @click="getChoosePic(2)"
  2704. class="cru_select"
  2705. :class="chooseType == 2 ? 'cru_selected' : ''"
  2706. >
  2707. 科技
  2708. </div>
  2709. <div
  2710. @click="getChoosePic(3)"
  2711. class="cru_select"
  2712. :class="chooseType == 3 ? 'cru_selected' : ''"
  2713. >
  2714. 人文
  2715. </div>
  2716. <div
  2717. @click="getChoosePic(4)"
  2718. class="cru_select"
  2719. :class="chooseType == 4 ? 'cru_selected' : ''"
  2720. >
  2721. 艺术
  2722. </div>
  2723. </div>
  2724. <div class="sysPicBox">
  2725. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  2726. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  2727. </div>
  2728. </div>
  2729. <span slot="footer" class="dialog-footer">
  2730. <el-button @click="sysPicVisible = false">取 消</el-button>
  2731. <el-button type="primary">确 定</el-button>
  2732. </span>
  2733. </el-dialog>
  2734. <el-dialog
  2735. title="选择填空"
  2736. :visible.sync="dialogVisibleSelect"
  2737. :append-to-body="true"
  2738. width="800px"
  2739. :before-close="handleClose"
  2740. class="dialog_diy dialog_diy3"
  2741. >
  2742. <div v-if="selectJson">
  2743. <div class="select_box1" v-if="selectSteps == 1">
  2744. <div class="select_box1_img">
  2745. <div class="select_box1_title">
  2746. <span>上传题目图片</span
  2747. ><span>提示:请将题目以图片的方式上传</span>
  2748. </div>
  2749. <div class="select_box1_add_img">
  2750. <div
  2751. class="uploadFm"
  2752. @click="addImg($event)"
  2753. v-if="!selectJson.url"
  2754. >
  2755. <input
  2756. type="file"
  2757. accept="image/*"
  2758. style="display: none"
  2759. @change="beforeUploadSelect"
  2760. />
  2761. <img src="../../../assets/icon/addPoster.png" alt="" />
  2762. </div>
  2763. <div class="isSysPic" v-else>
  2764. <img :src="selectJson.url" alt="" />
  2765. <div class="deletePic" @click="deleteSelectPic">
  2766. <img src="../../../assets/icon/delete.png" alt="" />
  2767. </div>
  2768. </div>
  2769. </div>
  2770. </div>
  2771. <div class="select_box1_select">
  2772. <div class="select_box1_title">
  2773. <span>添加选项</span><span>提示:请输入题目选项</span>
  2774. </div>
  2775. <div class="select_box1_select_box">
  2776. <el-input
  2777. v-for="(item2, checkIndex) in selectJson.select"
  2778. :key="checkIndex"
  2779. v-model="selectJson.select[checkIndex]"
  2780. placeholder="请输入选项..."
  2781. style="width: 150px; margin: 10px 10px 0 0"
  2782. ></el-input>
  2783. <div class="select_box1_select_box_add">
  2784. <el-button
  2785. style="margin: 10px 0px 0 0"
  2786. type="primary"
  2787. size="small"
  2788. @click="addSelectList(selectJson)"
  2789. >
  2790. 添加</el-button
  2791. >
  2792. <el-button
  2793. type="primary"
  2794. size="small"
  2795. style="margin: 10px 0 0 0"
  2796. @click="deleteSelectList(selectJson)"
  2797. v-if="selectJson.select && selectJson.select.length > 0"
  2798. >删除</el-button
  2799. >
  2800. </div>
  2801. </div>
  2802. </div>
  2803. </div>
  2804. <div v-if="selectSteps == 2">
  2805. <div class="select_box2">
  2806. <div class="select_box2_title">设置答案</div>
  2807. <div class="select_box2_box">
  2808. <div class="select_box2_img">
  2809. <img :src="selectJson.url" alt="" />
  2810. </div>
  2811. <div class="select_box2_answer">
  2812. <div class="select_answer_title">根据题目选择对应答案</div>
  2813. <div
  2814. class="select_box2_answer_box"
  2815. v-for="(item2, checkIndex) in selectJson.select"
  2816. :key="checkIndex"
  2817. >
  2818. <span>{{ checkIndex + 1 }}、</span>
  2819. <el-select
  2820. v-model="selectJson.answer[checkIndex]"
  2821. placeholder="请选择正确答案"
  2822. >
  2823. <el-option
  2824. v-for="(e, eIndex) in selectJson.select"
  2825. :key="eIndex"
  2826. :label="e"
  2827. :value="eIndex"
  2828. >
  2829. </el-option>
  2830. </el-select>
  2831. </div>
  2832. </div>
  2833. </div>
  2834. </div>
  2835. </div>
  2836. </div>
  2837. <span slot="footer" class="dialog-footer">
  2838. <el-button
  2839. type="primary"
  2840. @click="nextSelectSteps()"
  2841. v-if="selectSteps == 1"
  2842. >下一步</el-button
  2843. >
  2844. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  2845. >上一步</el-button
  2846. >
  2847. <el-button
  2848. type="primary"
  2849. @click="addSelectAnswer"
  2850. v-if="selectSteps == 2"
  2851. >确 定</el-button
  2852. >
  2853. </span>
  2854. </el-dialog>
  2855. <el-dialog
  2856. title="添加评价"
  2857. :visible.sync="dialogVisibleRate"
  2858. :append-to-body="true"
  2859. width="650px"
  2860. :before-close="handleClose"
  2861. class="dialog_diy"
  2862. >
  2863. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  2864. <div style="font-size: 18px; color: #a9a9a9">请输入学生评价指标:</div>
  2865. <div class="pjCss" style="width: 100%">
  2866. <div
  2867. v-if="rateJson.length"
  2868. class="elist_input"
  2869. style="height: 360px; overflow: auto"
  2870. >
  2871. <div
  2872. v-for="(eItem, eIndex) in rateJson"
  2873. :key="eIndex"
  2874. class="elist_input_box"
  2875. >
  2876. <span style="min-width: 100px; text-align: right"
  2877. >学生评价指标:</span
  2878. >
  2879. <input
  2880. type="input"
  2881. v-model="eItem.value"
  2882. placeholder="填写评价名称"
  2883. />
  2884. <div class="remove" @click="deletRateList(eIndex)"></div>
  2885. <div style="width: 100%; display: flex">
  2886. <span style="min-width: 100px; text-align: right"
  2887. >评星等级:</span
  2888. >
  2889. <el-rate v-model="eItem.score" disabled></el-rate>
  2890. </div>
  2891. <div class="elist_inptu_text" style="align-items: flex-start">
  2892. <span style="min-width: 100px; text-align: right">描述:</span>
  2893. <textarea
  2894. class="rate_textarea"
  2895. :rows="3"
  2896. v-model="eItem.detail"
  2897. placeholder="填写评价描述"
  2898. ></textarea>
  2899. </div>
  2900. </div>
  2901. </div>
  2902. <div class="addToolFunBox">
  2903. <div class="addToolFun" @click="addRateList()">
  2904. <div class="addToolImg">
  2905. <img src="../../../assets/icon/add.png" alt />
  2906. </div>
  2907. <div>添加</div>
  2908. </div>
  2909. </div>
  2910. </div>
  2911. </div>
  2912. <span slot="footer" class="dialog-footer">
  2913. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  2914. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  2915. </span>
  2916. </el-dialog>
  2917. <el-dialog
  2918. title="连词成句设置"
  2919. :visible.sync="dialogVisibleSentence"
  2920. :append-to-body="true"
  2921. width="1000px"
  2922. :before-close="handleClose"
  2923. class="dialog_diy dialog_diy3"
  2924. >
  2925. <div>
  2926. <div class="sentenBox">
  2927. <div class="addSen" @click="addSt">添加题目</div>
  2928. <div
  2929. v-for="(st, stIndex) in sentenceList"
  2930. :key="stIndex"
  2931. style="padding-bottom: 20px"
  2932. >
  2933. <div class="sentenTopBox">
  2934. <div class="sentenTop">
  2935. <div>题目设置</div>
  2936. <div>
  2937. <el-input
  2938. placeholder="请输入卡片内容"
  2939. v-model="st.sentenceTitle"
  2940. ></el-input>
  2941. </div>
  2942. <div @click="addSen(stIndex)">添加</div>
  2943. </div>
  2944. <div
  2945. class="remove1"
  2946. v-if="sentenceList.length > 1"
  2947. @click="deleteSentence(stIndex)"
  2948. ></div>
  2949. </div>
  2950. <div class="cardList">
  2951. <div v-if="st.addSentence.length > 0" class="cardBox">
  2952. <div
  2953. class="isCard"
  2954. v-for="(s, sIndex) in st.addSentence"
  2955. :key="sIndex"
  2956. @click="setRightAnswer(s, stIndex, sIndex)"
  2957. >
  2958. <el-tooltip
  2959. class="item"
  2960. effect="light"
  2961. :content="s"
  2962. placement="top"
  2963. >
  2964. <div>{{ s }}</div>
  2965. </el-tooltip>
  2966. <div
  2967. class="deleteWord"
  2968. @click.stop="deleteS(s, stIndex, sIndex)"
  2969. >
  2970. <img src="../../../assets/icon/delete.png" alt="" />
  2971. </div>
  2972. </div>
  2973. </div>
  2974. <div class="card">
  2975. <img
  2976. src="../../../assets/icon/conSentences/noTitle.png"
  2977. alt=""
  2978. />
  2979. </div>
  2980. </div>
  2981. <div class="rightCardBox">
  2982. <div>正确顺序</div>
  2983. <div class="rightCardList">
  2984. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  2985. <div
  2986. v-for="(r, rIndex) in st.rightAnswer"
  2987. :key="rIndex"
  2988. class="cardCss"
  2989. >
  2990. <div
  2991. class="isCard1"
  2992. @click="returnCard(r, stIndex, rIndex)"
  2993. >
  2994. <el-tooltip
  2995. class="item"
  2996. effect="light"
  2997. :content="r"
  2998. placement="top"
  2999. >
  3000. <div>{{ r }}</div>
  3001. </el-tooltip>
  3002. </div>
  3003. <div>{{ rIndex + 1 }}</div>
  3004. </div>
  3005. </div>
  3006. <div class="card" v-if="st.rightAnswer.length == 0">
  3007. <img
  3008. src="../../../assets/icon/conSentences/noAnswer.png"
  3009. alt=""
  3010. />
  3011. </div>
  3012. </div>
  3013. </div>
  3014. </div>
  3015. </div>
  3016. </div>
  3017. <span slot="footer" class="dialog-footer">
  3018. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  3019. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  3020. </span>
  3021. </el-dialog>
  3022. <el-dialog
  3023. title="添加表格"
  3024. :visible.sync="dialogVisibleTable"
  3025. :append-to-body="true"
  3026. width="95%"
  3027. :before-close="handleClose"
  3028. class="dialog_diy"
  3029. >
  3030. <el-form>
  3031. <!-- <el-form-item label="文本标题">
  3032. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3033. </el-form-item> -->
  3034. <div>表格内容</div>
  3035. <Table
  3036. v-model="tableJson.text"
  3037. @change="change"
  3038. v-if="dialogVisibleTable"
  3039. ></Table>
  3040. </el-form>
  3041. <span slot="footer" class="dialog-footer">
  3042. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  3043. <el-button type="primary" @click="addTableJson">确定</el-button>
  3044. </span>
  3045. </el-dialog>
  3046. <el-dialog
  3047. title="添加表格"
  3048. :visible.sync="dialogVisibleTable1"
  3049. :append-to-body="true"
  3050. width="95%"
  3051. :before-close="handleClose"
  3052. class="dialog_diy"
  3053. >
  3054. <el-form>
  3055. <!-- <el-form-item label="文本标题">
  3056. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3057. </el-form-item> -->
  3058. <div>表格内容</div>
  3059. <Table
  3060. v-model="tableJson.text"
  3061. @change="change"
  3062. v-if="dialogVisibleTable1"
  3063. ></Table>
  3064. </el-form>
  3065. <span slot="footer" class="dialog-footer">
  3066. <el-button @click="dialogVisibleTable1 = false">取 消</el-button>
  3067. <el-button type="primary" @click="addTable">确定</el-button>
  3068. </span>
  3069. </el-dialog>
  3070. <el-dialog
  3071. title="查看表格"
  3072. :visible.sync="dialogVisibleTable2"
  3073. :append-to-body="true"
  3074. width="95%"
  3075. :before-close="handleClose"
  3076. class="dialog_diy"
  3077. >
  3078. <el-form>
  3079. <div
  3080. class="cont"
  3081. v-html="tableJson.text"
  3082. style="line-height: 24px"
  3083. ></div>
  3084. </el-form>
  3085. <span slot="footer" class="dialog-footer">
  3086. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  3087. </span>
  3088. </el-dialog>
  3089. <el-dialog
  3090. title="分组设置"
  3091. :visible.sync="dialogVisibleGroup"
  3092. :append-to-body="true"
  3093. width="650px"
  3094. :before-close="handleClose"
  3095. class="dialog_diy"
  3096. >
  3097. <div class="groupBox">
  3098. <div v-if="groupJson.group" class="groupContent">
  3099. <div class="groupTitle">请设置小组数量</div>
  3100. <div
  3101. v-for="(item, index) in groupJson.group"
  3102. :key="index"
  3103. class="groupName"
  3104. >
  3105. <span class="groupn">组{{ index + 1 }}名称:</span>
  3106. <el-input
  3107. v-model="item.name"
  3108. placeholder="请输入名称..."
  3109. style="width: 250px"
  3110. ></el-input>
  3111. <div class="groupBtn">
  3112. <el-button type="primary" size="small" @click="addGroup(index)">
  3113. 添加</el-button
  3114. >
  3115. <el-button
  3116. type="primary"
  3117. size="small"
  3118. @click="deleteGroup(index)"
  3119. v-if="groupJson.group && groupJson.group.length > 1"
  3120. >删除</el-button
  3121. >
  3122. </div>
  3123. </div>
  3124. </div>
  3125. <div class="groupContent">
  3126. <div class="groupTitle">请设置每组人数数量</div>
  3127. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3128. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3129. <el-input-number
  3130. v-model="groupJson.number"
  3131. :controls="false"
  3132. :min="2"
  3133. :max="10"
  3134. placeholder="2-10人以内"
  3135. ></el-input-number>
  3136. </div>
  3137. </div>
  3138. <span slot="footer" class="dialog-footer">
  3139. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3140. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3141. </span>
  3142. </el-dialog>
  3143. <el-dialog
  3144. title="添加工具"
  3145. :visible.sync="dialogVisibleTool"
  3146. :append-to-body="true"
  3147. width="600px"
  3148. :before-close="handleClose"
  3149. class="dialog_diy addToolsDia"
  3150. >
  3151. <div class="toolChoose" style="padding: 0 0 30px 30px">
  3152. <div class="tools">
  3153. <div
  3154. class="leftTools"
  3155. style="
  3156. width: 95%;
  3157. padding: 0 0 15px 0;
  3158. border-bottom: 1px solid #efefef;
  3159. margin-bottom: 15px;
  3160. "
  3161. >
  3162. <div style="min-height: 163px">
  3163. <div class="toolSort">
  3164. <div class="tool">
  3165. <div class="whiteBIcon" @click="addToolFun(1)">
  3166. <img
  3167. src="../../../assets/icon/secondToolList/whiteBoard.png"
  3168. alt
  3169. />
  3170. <div style="margin: 5px 0">电子白板</div>
  3171. </div>
  3172. </div>
  3173. <div class="tool" v-if="false">
  3174. <div class="whiteBIcon" @click="addToolFun(6)">
  3175. <img
  3176. src="../../../assets/icon/secondToolList/doc.png"
  3177. alt
  3178. />
  3179. <div style="margin: 5px 0">协同文档</div>
  3180. </div>
  3181. </div>
  3182. <div class="tool">
  3183. <div class="whiteBIcon" @click="addToolFun(3)">
  3184. <img
  3185. src="../../../assets/icon/secondToolList/mindMapping.png"
  3186. alt
  3187. />
  3188. <div style="margin: 5px 0">思维导图</div>
  3189. </div>
  3190. </div>
  3191. <div class="tool">
  3192. <div class="whiteBIcon" @click="addToolFun(48)">
  3193. <img
  3194. src="../../../assets/icon/fourthToolList/table.png"
  3195. alt
  3196. />
  3197. <div style="margin: 5px 0">表格</div>
  3198. </div>
  3199. </div>
  3200. <!-- <div class="tool">
  3201. <div class="whiteBIcon" @click="addToolFun(15)">
  3202. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3203. <div style="margin: 5px 0">问答工具</div>
  3204. </div>
  3205. </div> -->
  3206. <div class="tool">
  3207. <div class="whiteBIcon" @click="addToolFun(52)">
  3208. <img
  3209. src="../../../assets/icon/fourthToolList/text.png"
  3210. alt
  3211. />
  3212. <div style="margin: 5px 0">文档</div>
  3213. </div>
  3214. </div>
  3215. <div class="tool">
  3216. <div class="whiteBIcon" @click="addToolFun(51)">
  3217. <img
  3218. src="../../../assets/icon/fourthToolList/upload.png"
  3219. alt
  3220. />
  3221. <div style="margin: 5px 0">资源库</div>
  3222. </div>
  3223. </div>
  3224. <!-- <div class="tool">
  3225. <div class="whiteBIcon" @click="addToolFun(53)">
  3226. <img src="../../../assets/icon/fourthToolList/file.png" alt />
  3227. <div style="margin: 5px 0">文件上传</div>
  3228. </div>
  3229. </div> -->
  3230. <div class="tool">
  3231. <div class="whiteBIcon" @click="addToolFun(54)">
  3232. <img
  3233. src="../../../assets/icon/fourthToolList/photo.png"
  3234. alt
  3235. />
  3236. <div style="margin: 5px 0">拍照</div>
  3237. </div>
  3238. </div>
  3239. <!-- <div class="tool">
  3240. <div class="whiteBIcon" @click="addToolFun(55)">
  3241. <img
  3242. src="../../../assets/icon/fourthToolList/zip.png"
  3243. alt
  3244. />
  3245. <div style="margin: 5px 0">文件</div>
  3246. </div>
  3247. </div> -->
  3248. <div class="tool">
  3249. <div class="whiteBIcon" @click="addToolFun(56)">
  3250. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3251. <div style="margin: 5px 0">投票</div>
  3252. </div>
  3253. </div>
  3254. <div class="tool">
  3255. <div class="whiteBIcon" @click="addToolFun(57)">
  3256. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  3257. <div style="margin: 5px 0">CocoPi</div>
  3258. </div>
  3259. </div>
  3260. </div>
  3261. </div>
  3262. </div>
  3263. </div>
  3264. </div>
  3265. <!-- <span slot="footer" class="dialog-footer">
  3266. <el-button @click="dialogVisible4 = false">取 消</el-button>
  3267. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  3268. </span> -->
  3269. </el-dialog>
  3270. <el-dialog
  3271. title="添加资源"
  3272. :visible.sync="dialogVisibleSource"
  3273. :append-to-body="true"
  3274. width="700px"
  3275. :before-close="handleClose"
  3276. class="dialog_diy addToolsDia"
  3277. >
  3278. <div class="toolChoose">
  3279. <div class="tools">
  3280. <div class="leftTools" style="width: 100%">
  3281. <div>
  3282. <div class="basic_box">
  3283. <div>
  3284. <div
  3285. class="add_chapters_box"
  3286. v-if="sourcesData.length == 0"
  3287. style="height: 185px"
  3288. ></div>
  3289. <div
  3290. v-else
  3291. class="add_chapters_box"
  3292. style="display: flex; flex-direction: column"
  3293. >
  3294. <div
  3295. class="chapter_upload"
  3296. v-for="(item, index) in sourcesData"
  3297. :key="index"
  3298. @click="getChapterData2($event, index, item.type)"
  3299. >
  3300. <div class="chapter_upload_t" style="width: 100%"></div>
  3301. <div
  3302. class="chapter_upload_o"
  3303. style="
  3304. position: relative;
  3305. display: flex;
  3306. align-items: center;
  3307. "
  3308. >
  3309. <div
  3310. class="chapter_upload_l"
  3311. style="padding: 1px 0 0 10px"
  3312. >
  3313. <div
  3314. v-if="item.type == 2"
  3315. class="chapter_upload_l_i1"
  3316. ></div>
  3317. <div
  3318. v-if="
  3319. item.type == 3 ||
  3320. item.type == 9 ||
  3321. item.type == 6 ||
  3322. item.type == 12 ||
  3323. item.type == 13 ||
  3324. item.type == 7
  3325. "
  3326. class="chapter_upload_l_i5"
  3327. style="margin-left: 1px"
  3328. ></div>
  3329. <div
  3330. v-if="item.type == 8"
  3331. class="chapter_upload_l_i8"
  3332. style="margin-left: 1px"
  3333. ></div>
  3334. </div>
  3335. <div
  3336. class="chapter_upload_ic"
  3337. style="
  3338. cursor: pointer;
  3339. position: absolute;
  3340. width: 45px;
  3341. right: 0;
  3342. top: 0;
  3343. "
  3344. >
  3345. <div class="chapter_upload_ic_l"></div>
  3346. <div
  3347. class="chapter_upload_ic_r"
  3348. style="position: absolute"
  3349. @click.stop="deleteChapterData2($event, index)"
  3350. >
  3351. <div></div>
  3352. </div>
  3353. </div>
  3354. <div class="chapter_upload_n">
  3355. <input
  3356. v-if="
  3357. item.type == 2 ||
  3358. item.type == 3 ||
  3359. item.type == 9 ||
  3360. item.type == 12 ||
  3361. item.type == 13 ||
  3362. item.type == 7
  3363. "
  3364. :placeholder="item.name"
  3365. @change="updataVideoT2($event, index)"
  3366. style="
  3367. border: none;
  3368. outline: none;
  3369. width: 80%;
  3370. minwidth: 215px;
  3371. z-index: 99;
  3372. font-size: 14px;
  3373. white-space: nowrap;
  3374. overflow: hidden;
  3375. text-overflow: ellipsis;
  3376. "
  3377. />
  3378. <input
  3379. :placeholder="item.name"
  3380. v-if="item.type == 6"
  3381. style="
  3382. border: none;
  3383. outline: none;
  3384. width: 80%;
  3385. white-space: nowrap;
  3386. overflow: hidden;
  3387. text-overflow: ellipsis;
  3388. "
  3389. readonly="true"
  3390. @click="selectAttText2(index)"
  3391. />
  3392. <input
  3393. :placeholder="item.title ? item.title : '链接'"
  3394. v-if="item.type == 8"
  3395. style="
  3396. border: none;
  3397. outline: none;
  3398. width: 80%;
  3399. white-space: nowrap;
  3400. overflow: hidden;
  3401. text-overflow: ellipsis;
  3402. "
  3403. readonly="true"
  3404. @click="selectLine2(index)"
  3405. />
  3406. <div class="chapter_upload_ud" style="z-index: 99">
  3407. <div
  3408. class="chapter_upload_up"
  3409. @click="upCd2($event, index)"
  3410. ></div>
  3411. <div
  3412. class="chapter_upload_down"
  3413. @click="downCd2($event, index)"
  3414. ></div>
  3415. </div>
  3416. </div>
  3417. </div>
  3418. </div>
  3419. </div>
  3420. </div>
  3421. <div class="add_info_box">
  3422. <button class="info_btn" @click="addImg($event)">
  3423. 添加文件
  3424. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload3($event, 13)" />
  3425. </button>
  3426. <!-- <button class="info_btn" @click="addImg($event)">
  3427. 添加视频
  3428. <input
  3429. type="file"
  3430. accept="video/mp4, video/quicktime, video/x-msvideo"
  3431. style="display: none"
  3432. v-if="inputShow"
  3433. @change="beforeUpload3($event, 2)"
  3434. />
  3435. </button>
  3436. <button class="info_btn" @click="addImg($event)">
  3437. 添加附件
  3438. <input
  3439. type="file"
  3440. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  3441. style="display: none"
  3442. v-if="inputShow"
  3443. @change="beforeUpload3($event, 3)"
  3444. />
  3445. </button> -->
  3446. <button class="info_btn" @click="addAttText()">
  3447. 添加图文
  3448. </button>
  3449. <button class="info_btn" @click="openLine()">
  3450. 添加链接
  3451. </button>
  3452. <button class="info_btn" @click="pasteLine()">
  3453. 嵌入代码
  3454. </button>
  3455. <button class="info_btn" @click="openSource()">
  3456. 添加资源
  3457. </button>
  3458. </div>
  3459. <div v-if="proVisible" class="mask">
  3460. <div class="progressBox">
  3461. <!-- <div id="closePro" class="closeCss">
  3462. <img src="../../../assets/icon/close.png" alt />
  3463. </div> -->
  3464. <div class="lbox">
  3465. <img src="../../../assets/loading.gif" />上传中,请稍后
  3466. </div>
  3467. <div style="margin-bottom: 10px">
  3468. <span>{{ isFinishSize }}M</span> /
  3469. <span>{{ isAllSize }}M</span>
  3470. </div>
  3471. <el-progress
  3472. :text-inside="true"
  3473. :stroke-width="20"
  3474. :percentage="progress"
  3475. style="width: 80%"
  3476. ></el-progress>
  3477. </div>
  3478. </div>
  3479. </div>
  3480. </div>
  3481. </div>
  3482. </div>
  3483. </div>
  3484. <span slot="footer" class="dialog-footer">
  3485. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3486. <el-button type="primary" @click="addSourceData">确定</el-button>
  3487. </span>
  3488. </el-dialog>
  3489. <el-dialog
  3490. title="查看文档"
  3491. :visible.sync="fullDialogVisible"
  3492. :append-to-body="true"
  3493. width="100%"
  3494. :before-close="handleClose"
  3495. :show-close="false"
  3496. class="dialog_diy full_diy"
  3497. :class="{ full_diy2: fulltype == 9 }"
  3498. >
  3499. <div slot="title" class="header-title">
  3500. <div style="color: #fff">查看文档</div>
  3501. <div
  3502. @click="fullDialogVisible = false"
  3503. style="
  3504. cursor: pointer;
  3505. position: absolute;
  3506. top: 20px;
  3507. right: 20px;
  3508. color: #fff;
  3509. "
  3510. >
  3511. 退出全屏
  3512. </div>
  3513. </div>
  3514. <div style="height: 100%">
  3515. <iframe
  3516. v-if="fulltype == 3"
  3517. style="width: 100%; height: 100%; border: none"
  3518. :src="fullUrl"
  3519. ></iframe>
  3520. <pdf
  3521. v-else-if="fulltype == 9"
  3522. :pdfUrl="fullUrl"
  3523. style="width: 100%; height: 100%; overflow: auto"
  3524. >
  3525. </pdf>
  3526. <div
  3527. class="wheel"
  3528. v-if="fulltype == 6"
  3529. style="
  3530. box-shadow: 0 0 6px 1px #f2f2f2;
  3531. width: 100%;
  3532. background: #f1f1f1;
  3533. "
  3534. >
  3535. <div class="texttitle" style="width: 100%; box-sizing: border-box">
  3536. 查看文档
  3537. </div>
  3538. <el-form class="textBox" style="height: 90%">
  3539. <el-form-item class="textTitle">
  3540. <div style="font-size: 22px; max-height: 100px; overflow: auto">
  3541. {{ fullUrl.name }}
  3542. </div>
  3543. </el-form-item>
  3544. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  3545. <div
  3546. v-html="fullUrl.url"
  3547. class="textContent"
  3548. style="height: auto"
  3549. ></div>
  3550. </el-form>
  3551. </div>
  3552. </div>
  3553. <!-- <div slot="footer">
  3554. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  3555. </div> -->
  3556. </el-dialog>
  3557. <el-dialog
  3558. title="问答"
  3559. :visible.sync="answerDialogVisible"
  3560. :append-to-body="true"
  3561. width="800px"
  3562. :before-close="handleClose"
  3563. class="dialog_diy"
  3564. >
  3565. <div>
  3566. <div
  3567. style="
  3568. display: flex;
  3569. flex-wrap: nowrap;
  3570. flex-direction: column;
  3571. position: relative;
  3572. "
  3573. >
  3574. <div class="queTop" style="padding: 20px 0 20px 0">
  3575. <div class="question">
  3576. <img src="../../../assets/icon/question.png" alt />
  3577. </div>
  3578. <div class="queTitle">
  3579. <div style="width: 90px; min-width: 90px">提问:</div>
  3580. <div>{{ answerQ }}</div>
  3581. </div>
  3582. </div>
  3583. <div class="ediBottom">
  3584. <textarea
  3585. rows="6"
  3586. class="binfo_input"
  3587. cols
  3588. style="width: 95%; height: 120px"
  3589. v-model="questionAnswer"
  3590. ></textarea>
  3591. </div>
  3592. </div>
  3593. </div>
  3594. <div slot="footer">
  3595. <el-button @click="answerDialogVisible = false">取 消</el-button>
  3596. <el-button type="primary" @click="addQuestion">提 交</el-button>
  3597. </div>
  3598. </el-dialog>
  3599. <el-dialog
  3600. title="文件预览"
  3601. :visible.sync="dialogVisibleFile"
  3602. width="50%"
  3603. :before-close="handleClose"
  3604. class="dialog_diy"
  3605. :class="{ fullStyle: full }"
  3606. >
  3607. <div slot="title" class="header-title">
  3608. <div style="color: #fff">文件预览</div>
  3609. <div style="position: absolute; top: 19px; right: 50px">
  3610. <img
  3611. src="../../../assets/full.png"
  3612. style="height: 16px; cursor: pointer"
  3613. alt=""
  3614. @click="full = !full"
  3615. />
  3616. </div>
  3617. </div>
  3618. <pdf
  3619. v-if="showPDF"
  3620. :pdfUrl="pptImgUrl"
  3621. style="width: 100%; height: 520px; overflow: auto"
  3622. :class="{ fullStyle: full }"
  3623. ></pdf>
  3624. <iframe
  3625. v-else
  3626. :src="pptImgUrl"
  3627. frameborder="0"
  3628. width="100%"
  3629. height="600"
  3630. :class="{ fullStyle: full }"
  3631. ></iframe>
  3632. </el-dialog>
  3633. <el-dialog
  3634. title="添加文档"
  3635. :visible.sync="dialogVisibleText"
  3636. :append-to-body="true"
  3637. width="800px"
  3638. :before-close="handleClose"
  3639. class="dialog_diy"
  3640. >
  3641. <el-form>
  3642. <div>文档内容</div>
  3643. <editor-bar
  3644. v-model="tableJson.text"
  3645. @change="change"
  3646. v-if="dialogVisibleText"
  3647. ></editor-bar>
  3648. </el-form>
  3649. <span slot="footer" class="dialog-footer">
  3650. <el-button @click="dialogVisibleText = false">取 消</el-button>
  3651. <el-button type="primary" @click="addText">确定</el-button>
  3652. </span>
  3653. </el-dialog>
  3654. <el-dialog
  3655. title="上传文档"
  3656. :visible.sync="dialogVisibleText3"
  3657. :append-to-body="true"
  3658. width="800px"
  3659. :before-close="handleClose"
  3660. class="dialog_diy"
  3661. >
  3662. <el-form>
  3663. <div>文档内容</div>
  3664. <EditorBar2
  3665. v-model="tableJson.text"
  3666. @change="change"
  3667. v-if="dialogVisibleText3"
  3668. ></EditorBar2>
  3669. </el-form>
  3670. <span slot="footer" class="dialog-footer">
  3671. <el-button @click="dialogVisibleText3 = false">取 消</el-button>
  3672. <el-button type="primary" @click="addTextJson">确定</el-button>
  3673. </span>
  3674. </el-dialog>
  3675. <el-dialog
  3676. title="查看文档"
  3677. :visible.sync="dialogVisibleText2"
  3678. :append-to-body="true"
  3679. width="800px"
  3680. :before-close="handleClose"
  3681. class="dialog_diy"
  3682. >
  3683. <el-form>
  3684. <div
  3685. class="cont"
  3686. v-html="tableJson.text"
  3687. style="line-height: 24px"
  3688. ></div>
  3689. </el-form>
  3690. <span slot="footer" class="dialog-footer">
  3691. <el-button @click="dialogVisibleText2 = false">关 闭</el-button>
  3692. </span>
  3693. </el-dialog>
  3694. <el-dialog
  3695. title="查看视频"
  3696. :visible.sync="videoVisible"
  3697. :append-to-body="true"
  3698. width="1000px"
  3699. :before-close="handleClose"
  3700. class="dialog_diy1"
  3701. >
  3702. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  3703. <video-player
  3704. class="video-player vjs-custom-skin"
  3705. :playsinline="true"
  3706. :options="videoDetail"
  3707. @play="onPlayerPlay($event)"
  3708. style="width: 100%; height: 100%"
  3709. ></video-player>
  3710. </div>
  3711. <div slot="footer">
  3712. <el-button
  3713. style="background: #409efe; color: #fff"
  3714. @click="(videoVisible = false), (videoDetail = {})"
  3715. >
  3716. 关 闭</el-button
  3717. >
  3718. </div>
  3719. </el-dialog>
  3720. <el-dialog
  3721. title="创建投票"
  3722. :visible.sync="dialogVisibleVote"
  3723. :append-to-body="true"
  3724. width="800px"
  3725. :before-close="handleClose"
  3726. class="dialog_diy"
  3727. >
  3728. <div>
  3729. <div
  3730. class="a_add_title"
  3731. style="
  3732. display: flex;
  3733. flex-direction: row;
  3734. align-items: center;
  3735. justify-content: center;
  3736. "
  3737. >
  3738. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  3739. <el-input
  3740. v-model="askJson.askTitle"
  3741. placeholder="请输入标题"
  3742. style="width: 400px"
  3743. ></el-input>
  3744. </div>
  3745. <div class="a_addBox">
  3746. <div style="font-size: 16px; color: #c7c7c7">请输入投票内容</div>
  3747. <div
  3748. class="a_add_box"
  3749. v-for="(item1, index1) in askJson.askCount"
  3750. :key="index1"
  3751. >
  3752. <div class="a_add_head">
  3753. <div>
  3754. {{ index1 + 1 + "、" }}
  3755. <el-input
  3756. class="a_add_head_input"
  3757. v-model="askJson.askJson[index1].askstitle"
  3758. placeholder="请输入内容..."
  3759. >
  3760. </el-input>
  3761. </div>
  3762. <div class="a_add_head_div">
  3763. <el-button type="primary" size="small" @click="addAskList()"
  3764. >添加</el-button
  3765. >
  3766. <el-button
  3767. type="primary"
  3768. size="small"
  3769. @click="deleteAskList(index1)"
  3770. v-if="askJson.askCount != 1"
  3771. >删除
  3772. </el-button>
  3773. </div>
  3774. </div>
  3775. <div class="a_add_body">
  3776. <div class="a_add_input">
  3777. <el-input
  3778. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  3779. :key="checkIndex"
  3780. v-model="askJson.askJson[index1].checkList[checkIndex]"
  3781. placeholder="请输入投票选项..."
  3782. style="width: 150px; margin: 10px 10px 0 0"
  3783. ></el-input>
  3784. </div>
  3785. <div class="a_add_body_div">
  3786. <el-button
  3787. style="margin: 10px 0px 0 0"
  3788. type="primary"
  3789. size="small"
  3790. @click="addcheckList(askJson.askJson[index1])"
  3791. >添加</el-button
  3792. >
  3793. <el-button
  3794. type="primary"
  3795. size="small"
  3796. style="margin: 10px 0 0 10px"
  3797. @click="deletecheckList(askJson.askJson[index1])"
  3798. v-if="askJson.askJson[index1].askItem != 1"
  3799. >删除
  3800. </el-button>
  3801. </div>
  3802. </div>
  3803. </div>
  3804. </div>
  3805. </div>
  3806. <span slot="footer" class="dialog-footer">
  3807. <el-button @click="dialogVisibleVote = false">取 消</el-button>
  3808. <el-button type="primary" @click="addAsk">确 定</el-button>
  3809. </span>
  3810. </el-dialog>
  3811. <el-dialog
  3812. title="查看投票"
  3813. :visible.sync="dialogVisibleVote2"
  3814. :append-to-body="true"
  3815. width="1000px"
  3816. :before-close="handleClose"
  3817. class="dialog_diy dialog_diy3"
  3818. >
  3819. <div>
  3820. <div
  3821. class="a_add_title"
  3822. style="
  3823. display: flex;
  3824. flex-direction: row;
  3825. align-items: center;
  3826. justify-content: center;
  3827. "
  3828. >
  3829. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  3830. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3831. </div>
  3832. <div class="a_addBox">
  3833. <div style="font-size: 16px; color: #c7c7c7">投票内容</div>
  3834. <div
  3835. class="a_add_box"
  3836. v-for="(item1, index1) in askJson.askCount"
  3837. :key="index1"
  3838. >
  3839. <div class="a_add_head">
  3840. <div style="display: flex">
  3841. {{ index1 + 1 + "、" }}
  3842. <div>{{ askJson.askJson[index1].askstitle }}</div>
  3843. </div>
  3844. <img
  3845. v-if="askJson.askJson[index1].img"
  3846. :src="askJson.askJson[index1].img"
  3847. style="height: 300px; margin-top: 10px; max-width: 100%"
  3848. />
  3849. </div>
  3850. <div class="a_add_body">
  3851. <div class="a_add_input">
  3852. <el-radio-group v-model="radio[index1]">
  3853. <el-radio
  3854. v-for="(item2, checkIndex) in askJson.askJson[index1]
  3855. .checkList"
  3856. :key="checkIndex"
  3857. :label="checkIndex"
  3858. class="redioStyle"
  3859. ><span v-html="item2"></span
  3860. ></el-radio>
  3861. </el-radio-group>
  3862. </div>
  3863. </div>
  3864. </div>
  3865. </div>
  3866. </div>
  3867. <span slot="footer" class="dialog-footer">
  3868. <el-button @click="dialogVisibleVote2 = false">取 消</el-button>
  3869. <el-button type="primary" @click="addStudentAsk">确 定</el-button>
  3870. </span>
  3871. </el-dialog>
  3872. <el-dialog
  3873. title="查看投票"
  3874. :visible.sync="dialogVisibleVote3"
  3875. :append-to-body="true"
  3876. width="1000px"
  3877. :before-close="handleClose"
  3878. class="dialog_diy dialog_diy3"
  3879. >
  3880. <div>
  3881. <div
  3882. class="a_add_title"
  3883. style="
  3884. display: flex;
  3885. flex-direction: row;
  3886. align-items: center;
  3887. justify-content: center;
  3888. "
  3889. >
  3890. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  3891. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3892. </div>
  3893. <div class="a_addBox">
  3894. <div style="font-size: 16px; color: #c7c7c7">投票内容</div>
  3895. <div
  3896. class="a_add_box"
  3897. v-for="(item1, index1) in askJson.askCount"
  3898. :key="index1"
  3899. >
  3900. <div class="a_add_head">
  3901. <div style="display: flex">
  3902. {{ index1 + 1 + "、" }}
  3903. <div>{{ askJson.askJson[index1].askstitle }}</div>
  3904. </div>
  3905. <img
  3906. v-if="askJson.askJson[index1].img"
  3907. :src="askJson.askJson[index1].img"
  3908. style="height: 300px; margin-top: 10px; max-width: 100%"
  3909. />
  3910. </div>
  3911. <div class="a_add_body">
  3912. <div class="a_add_input">
  3913. <el-radio-group v-model="radio[index1]">
  3914. <el-radio
  3915. v-for="(item2, checkIndex) in askJson.askJson[index1]
  3916. .checkList"
  3917. :key="checkIndex"
  3918. :label="checkIndex"
  3919. disabled
  3920. class="redioStyle"
  3921. ><span v-html="item2"></span
  3922. ></el-radio>
  3923. </el-radio-group>
  3924. </div>
  3925. </div>
  3926. </div>
  3927. </div>
  3928. </div>
  3929. <span slot="footer" class="dialog-footer">
  3930. <el-button @click="dialogVisibleVote3 = false">关 闭</el-button>
  3931. </span>
  3932. </el-dialog>
  3933. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource2" :append-to-body="true" width="100%"
  3934. :before-close="handleClose" class="dialog_diy source_diy">
  3935. <div>
  3936. <sourceDialog :sourceData.sync="sourceData"></sourceDialog>
  3937. </div>
  3938. <span slot="footer" class="dialog-footer">
  3939. <el-button @click="dialogVisibleSource2 = false">取 消</el-button>
  3940. <el-button type="primary" @click="addSource">确定</el-button>
  3941. </span>
  3942. </el-dialog>
  3943. </div>
  3944. </template>
  3945. <script>
  3946. import "../../../common/aws-sdk-2.235.1.min.js";
  3947. import $ from "jquery";
  3948. import EditorBar from "../../../components/tools/wangEnduit";
  3949. import EditorBar2 from "../../../components/tools/wangEnduit";
  3950. import Table from "../../../components/tools/table";
  3951. import voteStatic from "../components/voteStatic.vue";
  3952. import TextT from "../../../components/tools/text";
  3953. import Mind from "../../tools/jsmind2";
  3954. import Sunburst from "../../tools/sunburst";
  3955. import SeeBoard from "../../tools/seeBoard";
  3956. import proMan from "../components/proMan.vue";
  3957. import ganChart from "../components/ganChart.vue";
  3958. import graph from "../components/graph.vue";
  3959. import pdf from "../components/vpdf";
  3960. import * as imageConversion from "image-conversion";
  3961. import courseDetailVue from "../courseDetail.vue";
  3962. import sourceDialog from "../teacherSource/dialog.vue";
  3963. export default {
  3964. components: {
  3965. EditorBar,
  3966. EditorBar2,
  3967. sourceDialog,
  3968. Mind,
  3969. Sunburst,
  3970. SeeBoard,
  3971. Table,
  3972. proMan,
  3973. ganChart,
  3974. graph,
  3975. pdf,
  3976. TextT,
  3977. voteStatic,
  3978. },
  3979. data() {
  3980. return {
  3981. checkAll: false,
  3982. chooseType: 1,
  3983. checkedCities: [],
  3984. isIndeterminate: true,
  3985. isSysPic: false,
  3986. steps: 1,
  3987. nbOrder: 0,
  3988. courseId: "",
  3989. chapToolsType: 0,
  3990. chapTools: [
  3991. {
  3992. tools: [],
  3993. toolDetail: "",
  3994. },
  3995. ],
  3996. line: "",
  3997. lineTitle: "",
  3998. sysPic: [],
  3999. sentenceList: [
  4000. {
  4001. sentenceTitle: "",
  4002. addSentence: [],
  4003. rightAnswer: [],
  4004. },
  4005. ],
  4006. isPushTitleList: [],
  4007. lineCount: 0,
  4008. lineType: 0,
  4009. chapCount: 0,
  4010. courseName: "",
  4011. isTeacherSee: false,
  4012. courseText: "",
  4013. formLabelWidth: "100px",
  4014. choosePicVisible: false,
  4015. sysPicVisible: false,
  4016. uploadLoading1: false,
  4017. noneBtnImg: false,
  4018. updateBoolean2: false,
  4019. unitIndex: 0,
  4020. taskCount: 0,
  4021. dialogVisible: false,
  4022. dialogVisible1: false,
  4023. dialogVisible2: false,
  4024. dialogVisible3: false,
  4025. dialogVisible4: false,
  4026. dialogVisible5: false,
  4027. dialogVisible6: false,
  4028. dialogVisible7: false,
  4029. dialogVisible8: false,
  4030. dialogVisible9: false,
  4031. dialogVisibleClass: false,
  4032. dialogVisibleMember: false,
  4033. dialogVisibleTcMember: false,
  4034. dialogVisibleMp3: false,
  4035. dialogVisibleSelect: false,
  4036. dialogVisibleSentence: false,
  4037. dialogVisibleRate: false,
  4038. dialogVisibleChoice: false,
  4039. dialogVisibleTool: false,
  4040. dialogVisibleSource: false,
  4041. dialogVisibleSource2: false,
  4042. answerDialogVisible: false,
  4043. dialogVisibleFile: false,
  4044. dialogVisibleText: false,
  4045. dialogVisibleText2: false,
  4046. dialogVisibleText3: false,
  4047. dialogVisibleVote: false,
  4048. dialogVisibleVote2: false,
  4049. dialogVisibleVote3: false,
  4050. videoVisible: false,
  4051. videoDetail: {},
  4052. showPDF: "",
  4053. pptImgUrl: "",
  4054. full: false,
  4055. isClickColor: 0,
  4056. publicTool: 0,
  4057. searchPeople: "",
  4058. searchTN: "",
  4059. tcMember: "",
  4060. userid: this.$route.query.userid,
  4061. oid: this.$route.query.oid,
  4062. org: this.$route.query.org,
  4063. role: this.$route.query.role,
  4064. type: this.$route.query.type,
  4065. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  4066. orgArray: ["150e3120-9195-11ed-b13d-005056b86db5"],
  4067. oidArray: [],
  4068. dialogVisibleTable: false,
  4069. dialogVisibleTable1: false,
  4070. dialogVisibleTable2: false,
  4071. tableJson: {
  4072. text: "",
  4073. },
  4074. cover: [], //项目封面
  4075. myWord: [],
  4076. evaJuri: [],
  4077. evalua: "",
  4078. targetArray: [],
  4079. eTitle: "",
  4080. eJson: {},
  4081. fid: "", //一级
  4082. sid: "", //二级
  4083. tid: "", //二级
  4084. typeMode: 1,
  4085. eJSONNum: 0,
  4086. data: {
  4087. meta: {
  4088. name: "example",
  4089. author: "dd@163.com",
  4090. version: "0.2",
  4091. },
  4092. format: "node_array",
  4093. data: [
  4094. {
  4095. id: "root",
  4096. isroot: true,
  4097. topic: "",
  4098. },
  4099. ],
  4100. },
  4101. askJson: {
  4102. askCount: 1,
  4103. askTitle: "",
  4104. askJson: [
  4105. {
  4106. askstitle: "",
  4107. askItem: 1,
  4108. checkList: [],
  4109. },
  4110. ],
  4111. },
  4112. testJson: {},
  4113. selectJson: {},
  4114. rateJson: [],
  4115. unitJson2: [],
  4116. unitJson: [
  4117. {
  4118. dyName: "", //单元标题
  4119. chapterInfo: [
  4120. {
  4121. isread: false,
  4122. chapterid: this.guid(),
  4123. title: "",
  4124. courseName: "",
  4125. taskJson: [
  4126. {
  4127. task: "",
  4128. people: "",
  4129. time: "",
  4130. taskDetail: "",
  4131. chapterData: [],
  4132. toolText: "",
  4133. toolChoose: [
  4134. {
  4135. tool: [],
  4136. toolDetail: "",
  4137. toolType: 0,
  4138. askCount: 1,
  4139. askTitle: "",
  4140. askJson: [
  4141. {
  4142. askstitle: "",
  4143. askItem: 1,
  4144. checkList: [],
  4145. },
  4146. ],
  4147. },
  4148. ],
  4149. toolArray: [],
  4150. isShowTools: false,
  4151. askCount: 1,
  4152. isFold: 0,
  4153. askTitle: "",
  4154. askJson: [
  4155. {
  4156. askstitle: "",
  4157. askItem: 1,
  4158. checkList: [],
  4159. },
  4160. ],
  4161. checkJson: [
  4162. {
  4163. checkCount: [],
  4164. checkPerent: [],
  4165. },
  4166. ],
  4167. homeworkList: [],
  4168. },
  4169. ],
  4170. itemCount: 1,
  4171. fileList1: [],
  4172. video: [],
  4173. testData: [],
  4174. pData: [],
  4175. templateArray: [],
  4176. },
  4177. ],
  4178. },
  4179. ],
  4180. studentJuri: [],
  4181. teacherJuri: [],
  4182. teacherJuri2: [],
  4183. checkboxList: [],
  4184. checkboxList2: [],
  4185. checkboxList3: [],
  4186. checkboxListPeople: [],
  4187. number: "",
  4188. tTitle: "",
  4189. tdetail: "",
  4190. templateC: {},
  4191. AttText: {},
  4192. AttTextType: 0,
  4193. AttTextIndex: 0,
  4194. cTemplate: "",
  4195. CourseType: [],
  4196. CourseTypeJson: {},
  4197. courseTypeId: [],
  4198. courseTypeSon: [],
  4199. clearArray: [],
  4200. loading: false,
  4201. toolType: 0,
  4202. inputShow: true,
  4203. toolIndex: 0,
  4204. cidType: 0,
  4205. cidttt: 1,
  4206. answerQ: "",
  4207. questionAnswer: "",
  4208. grade: [],
  4209. courseUserid: "",
  4210. timer: null,
  4211. checkId: "",
  4212. isDelete: 1,
  4213. addindex: 0,
  4214. selectSteps: 1,
  4215. groupJson: {},
  4216. dialogVisibleGroup: false,
  4217. fpath: "",
  4218. ManAarray: [],
  4219. ManAarray2: [],
  4220. proVisible: false,
  4221. progress: 0,
  4222. isFinishSize: 0,
  4223. isAllsize: 0,
  4224. playerOptions: {
  4225. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  4226. autoplay: false, //如果true,浏览器准备好时开始回放。
  4227. muted: false, // 默认情况下将会消除任何音频。
  4228. loop: false, // 导致视频一结束就重新开始。
  4229. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  4230. language: "zh-CN",
  4231. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  4232. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  4233. sources: [
  4234. {
  4235. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  4236. src: "", //url地址require("../../assets/media/aaa.mp4")
  4237. },
  4238. ],
  4239. // poster: require("../../assets/tu31.png"), //你的封面地址
  4240. // poster: dataRes.imgUrl, //你的封面地址
  4241. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  4242. controlBar: {
  4243. timeDivider: true, //当前时间和持续时间的分隔符
  4244. durationDisplay: true, //显示持续时间
  4245. remainingTimeDisplay: false, //是否显示剩余时间功能
  4246. fullscreenToggle: true, //全屏按钮
  4247. },
  4248. },
  4249. sourcesData: [],
  4250. fullDialogVisible: false,
  4251. fulltype: "",
  4252. fullUrl: "",
  4253. editSourceType: 1,
  4254. radio: [],
  4255. checkJson: [],
  4256. graphJson: {},
  4257. rightBoxHeight: 0,
  4258. checkBoolean:false,
  4259. pageSize:20,
  4260. total:0,
  4261. page:0,
  4262. sourceData:{}
  4263. };
  4264. },
  4265. computed: {
  4266. offsetLetfPx: function () {
  4267. //addnum可以直接在模板语法里面用,相当于data内的值
  4268. return (
  4269. $(".cru_select")[this.unitIndex] &&
  4270. $(".cru_select")[this.unitIndex].offsetLeft
  4271. );
  4272. },
  4273. getVideo() {
  4274. //此处不需要携带参数
  4275. return function (url) {
  4276. var d = JSON.parse(JSON.stringify(this.playerOptions));
  4277. d.sources[0].src = url;
  4278. return d;
  4279. };
  4280. },
  4281. getMan() {
  4282. return function (people) {
  4283. let _people = "";
  4284. if (this.ManAarray.length) {
  4285. for (var i = 0; i < this.ManAarray.length; i++) {
  4286. if (this.ManAarray[i].userid == people) {
  4287. _people = this.ManAarray[i].name;
  4288. break;
  4289. }
  4290. }
  4291. }
  4292. return _people ? _people : "";
  4293. };
  4294. },
  4295. getMan2() {
  4296. return function (people) {
  4297. let _people = people;
  4298. let _people2 = "";
  4299. if (this.ManAarray.length) {
  4300. for (var i = 0; i < this.ManAarray.length; i++) {
  4301. if (this.ManAarray[i].userid == people) {
  4302. _people2 = this.ManAarray[i].name;
  4303. break;
  4304. }
  4305. }
  4306. }
  4307. if (people == this.courseUserid) {
  4308. return "";
  4309. }
  4310. return this.ManAarray.length ? _people2 : "";
  4311. };
  4312. },
  4313. getMen() {
  4314. return function (people) {
  4315. let _people = people;
  4316. let kp = [];
  4317. if (this.ManAarray.length) {
  4318. for (var k = 0; k < _people.length; k++) {
  4319. let person = _people[k];
  4320. for (var i = 0; i < this.ManAarray.length; i++) {
  4321. if (this.ManAarray[i].userid == person) {
  4322. // _people = this.ManAarray[i].name;
  4323. kp.push(this.ManAarray[i].name);
  4324. break;
  4325. }
  4326. }
  4327. }
  4328. }
  4329. return this.ManAarray.length ? (kp.length ? kp.join("、") : "") : "";
  4330. };
  4331. },
  4332. },
  4333. watch: {
  4334. steps(newValue, oldValue) {
  4335. if (newValue == 4) {
  4336. let chapters = this.unitJson;
  4337. let gjson = {
  4338. rootId: "pid",
  4339. nodes: [{ id: "pid", text: "", borderWidth: -1, color: "#128cff" }],
  4340. lines: [],
  4341. };
  4342. gjson.nodes[0].text = this.courseName;
  4343. for (var i = 0; i < chapters.length; i++) {
  4344. let _chapter = chapters[i];
  4345. gjson.nodes.push({
  4346. id: "chap" + i,
  4347. text: "阶段" + (i + 1) + "-" + _chapter.dyName,
  4348. borderWidth: -1,
  4349. color: "#0672e1",
  4350. });
  4351. gjson.lines.push({ from: "pid", to: "chap" + i });
  4352. let tasks = _chapter.chapterInfo[0].taskJson;
  4353. for (var j = 0; j < tasks.length; j++) {
  4354. let _task = tasks[j];
  4355. gjson.nodes.push({
  4356. id: "task" + i + "-" + j,
  4357. text: "任务" + (j + 1) + "-" + _task.task,
  4358. borderWidth: -1,
  4359. color: "#3c59da",
  4360. });
  4361. gjson.lines.push({ from: "chap" + i, to: "task" + i + "-" + j });
  4362. if (_task.people) {
  4363. let _people = "负责人-" + this.getGMan(_task.people);
  4364. gjson.nodes.push({
  4365. id: "people" + i + "-" + j,
  4366. text: _people,
  4367. borderWidth: -1,
  4368. color: "#004d9b",
  4369. });
  4370. gjson.lines.push({
  4371. from: "task" + i + "-" + j,
  4372. to: "people" + i + "-" + j,
  4373. });
  4374. if (_task.tcMember && _task.tcMember.length) {
  4375. for (var tc = 0; tc < _task.tcMember.length; tc++) {
  4376. let _tc = this.getGMan(_task.tcMember[tc]);
  4377. if (_tc) {
  4378. gjson.nodes.push({
  4379. id: "tc" + i + "-" + j + "-" + tc,
  4380. text: _tc,
  4381. borderWidth: -1,
  4382. color: "#53c5fb",
  4383. });
  4384. gjson.lines.push({
  4385. from: "people" + i + "-" + j,
  4386. to: "tc" + i + "-" + j + "-" + tc,
  4387. });
  4388. }
  4389. }
  4390. }
  4391. }
  4392. }
  4393. }
  4394. this.graphJson = gjson;
  4395. }else if (newValue == 5) {
  4396. this.goTo(
  4397. this.fpath +
  4398. "?userid=" +
  4399. this.userid +
  4400. "&oid=" +
  4401. this.oid +
  4402. "&org=" +
  4403. this.org + '&role=' + this.role
  4404. );
  4405. }
  4406. },
  4407. unitIndex(newValue, oldValue) {
  4408. if (this.isDelete == 2) {
  4409. this.isDelete = 1;
  4410. return;
  4411. }
  4412. if (this.cid != "") {
  4413. let _unitIndex = oldValue;
  4414. if (
  4415. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4416. JSON.stringify(this.unitJson[_unitIndex])
  4417. ) {
  4418. this.$refs.rightboxR.scrollTop = 0;
  4419. return;
  4420. }
  4421. let cPan = 1;
  4422. for (
  4423. var j = 0;
  4424. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4425. j++
  4426. ) {
  4427. // if (
  4428. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].task
  4429. // ) {
  4430. // this.$message.error("请填写任务名称");
  4431. // cPan = 2
  4432. // break;
  4433. // }
  4434. // if (
  4435. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].people
  4436. // ) {
  4437. // this.$message.error("请填写负责人");
  4438. // cPan = 2
  4439. // break;
  4440. // }
  4441. // if (
  4442. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].time
  4443. // ) {
  4444. // this.$message.error("请填写任务起止时间");
  4445. // cPan = 2
  4446. // break;
  4447. // }
  4448. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4449. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4450. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4451. (ele) => {
  4452. return ele.value != "";
  4453. }
  4454. );
  4455. }
  4456. let _task = this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolArray
  4457. for(var _tool = 0;_tool<_task.length;_tool++){
  4458. delete _task[_tool].proVisible
  4459. }
  4460. }
  4461. if (cPan == 2) {
  4462. this.unitIndex = oldValue;
  4463. this.isDelete = 2;
  4464. return;
  4465. }
  4466. for (var i = 0; i < this.unitJson.length; i++) {
  4467. if (this.addindex != i) {
  4468. delete this.unitJson[i].isUpdate;
  4469. }
  4470. }
  4471. this.$refs.rightboxR.scrollTop = 0;
  4472. this.addindex = -1;
  4473. let params = [
  4474. {
  4475. cid: this.cid,
  4476. chapters: JSON.stringify(this.unitJson),
  4477. uid: this.userid,
  4478. unitIndex: _unitIndex,
  4479. },
  4480. ];
  4481. this.ajax
  4482. .post(this.$store.state.api + "updateStudentWorkNew4", params)
  4483. .then((res) => {
  4484. // this.$message({
  4485. // message: "修改成功",
  4486. // type: "success",
  4487. // });
  4488. // this.courseId = this.cid;
  4489. })
  4490. .catch((err) => {
  4491. this.$message.error("网络不佳");
  4492. console.error(err);
  4493. });
  4494. }
  4495. },
  4496. },
  4497. methods: {
  4498. handleCurrentChange(val) {
  4499. // console.log(`当前页: ${val}`);
  4500. this.page = val;
  4501. this.getTeacher();
  4502. },
  4503. handleCheckAllChange(val) {
  4504. this.checkedCities = val ? cityOptions : [];
  4505. this.isIndeterminate = false;
  4506. },
  4507. handleCheckedCitiesChange(value) {
  4508. let checkedCount = value.length;
  4509. this.checkAll = checkedCount === this.cities.length;
  4510. this.isIndeterminate =
  4511. checkedCount > 0 && checkedCount < this.cities.length;
  4512. },
  4513. addHw(e) {
  4514. var el = e.currentTarget;
  4515. el.getElementsByTagName("input")[0].click();
  4516. },
  4517. change(val) {
  4518. console.log(val);
  4519. this.$forceUpdate();
  4520. },
  4521. change2(val) {
  4522. console.log(val);
  4523. this.$forceUpdate();
  4524. },
  4525. handleClose(done) {
  4526. this.videoDetail = {};
  4527. done();
  4528. },
  4529. imgChange1(file, fileList, type, itemTaskIndex) {
  4530. if (type == 1) {
  4531. var _tmp = this.cover;
  4532. } else if (
  4533. type == 2 ||
  4534. type == 3 ||
  4535. type == 6 ||
  4536. type == 7 ||
  4537. type == 8
  4538. ) {
  4539. var _tmp =
  4540. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4541. .chapterData;
  4542. } else if (type == 4) {
  4543. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  4544. } else {
  4545. var _tmp =
  4546. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4547. .homeworkList;
  4548. }
  4549. this.noneBtnImg = _tmp.length >= 1;
  4550. },
  4551. goTo(path) {
  4552. this.$router.push(path);
  4553. },
  4554. guid() {
  4555. var _num,
  4556. i,
  4557. _guid = "";
  4558. for (i = 0; i < 32; i++) {
  4559. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4560. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4561. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4562. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4563. _guid += "-";
  4564. }
  4565. }
  4566. return _guid;
  4567. },
  4568. lastSteps() {
  4569. if (this.steps == 5) {
  4570. this.goTo(
  4571. this.fpath +
  4572. "?userid=" +
  4573. this.userid +
  4574. "&oid=" +
  4575. this.oid +
  4576. "&org=" +
  4577. this.org + '&role=' + this.role
  4578. );
  4579. } else {
  4580. if (this.cidttt == 0) {
  4581. this.steps--;
  4582. if (this.steps == 1) {
  4583. setTimeout(() => {
  4584. this.checkEva(this.checkId);
  4585. }, 0);
  4586. }
  4587. } else {
  4588. if (this.steps == 3) {
  4589. this.steps = 1;
  4590. setTimeout(() => {
  4591. this.checkEva(this.checkId);
  4592. }, 0);
  4593. }
  4594. if (this.steps == 4) {
  4595. this.steps--;
  4596. setTimeout(() => {
  4597. this.checkEva(this.checkId);
  4598. }, 0);
  4599. }
  4600. }
  4601. }
  4602. },
  4603. navSteps(s) {
  4604. let typeT = 1;
  4605. if (this.courseTypeId.length) {
  4606. let array = Object.keys(this.CourseTypeJson);
  4607. for (var t = 0; t < array.length; t++) {
  4608. var tp = array[t];
  4609. var tAarray = [];
  4610. for (var tt = 0; tt < this.CourseTypeJson[tp].length; tt++) {
  4611. tAarray.push(this.CourseTypeJson[tp][tt].id);
  4612. }
  4613. for (var tt = 0; tt < this.courseTypeId.length; tt++) {
  4614. if (tAarray.indexOf(this.courseTypeId[tt]) != -1) {
  4615. typeT++;
  4616. }
  4617. }
  4618. }
  4619. }
  4620. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  4621. typeT++;
  4622. }
  4623. if(this.CourseType.length == 0){
  4624. typeT = 3
  4625. }
  4626. if (this.courseName == "" || typeT != 3) {
  4627. if (typeT != 3) {
  4628. this.$message.error("分类为必选项目,请将信息补充完整后进行下一步");
  4629. } else {
  4630. this.$message.error("请将信息填写完整");
  4631. }
  4632. return;
  4633. }
  4634. if (this.cidttt == 0) {
  4635. if (this.steps == 1) {
  4636. if (this.cid == "" || this.cid == undefined) {
  4637. this.addWork();
  4638. } else {
  4639. if (this.userid != this.courseUserid) {
  4640. if (
  4641. this.checkboxListPeople.join(",") !=
  4642. this.checkboxList3.join(",")
  4643. ) {
  4644. this.updateWork();
  4645. } else {
  4646. this.updateWork2();
  4647. }
  4648. } else {
  4649. this.updateWork();
  4650. }
  4651. }
  4652. this.setMan();
  4653. }
  4654. if (s == 1) {
  4655. this.steps = 1;
  4656. setTimeout(() => {
  4657. this.checkEva(this.checkId);
  4658. }, 0);
  4659. }
  4660. if (s == 2) {
  4661. this.steps = 2;
  4662. }
  4663. if (s == 3) {
  4664. this.cTemplate = this.templateC.content;
  4665. this.dialogVisible2 = false;
  4666. this.steps = 3;
  4667. setTimeout(() => {
  4668. this.checkEva(this.checkId);
  4669. }, 1000);
  4670. }
  4671. if (s == 4 && this.cidType == 0) {
  4672. this.$message.error("请将信息填写完整");
  4673. return;
  4674. } else if (s == 4) {
  4675. let cPan = 1;
  4676. for (var i = 0; i < this.unitJson.length; i++) {
  4677. for (
  4678. var j = 0;
  4679. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4680. j++
  4681. ) {
  4682. // if (
  4683. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  4684. // ) {
  4685. // this.$message.error("请填写任务名称");
  4686. // cPan = 2
  4687. // break;
  4688. // }
  4689. // if (
  4690. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  4691. // ) {
  4692. // this.$message.error("请填写负责人");
  4693. // cPan = 2
  4694. // break;
  4695. // }
  4696. // if (
  4697. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  4698. // ) {
  4699. // this.$message.error("请填写任务起止时间");
  4700. // cPan = 2
  4701. // break;
  4702. // }
  4703. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4704. this.unitJson[i].chapterInfo[0].taskJson[j].eList =
  4705. this.unitJson[i].chapterInfo[0].taskJson[j].eList.filter(
  4706. (ele) => {
  4707. return ele.value != "";
  4708. }
  4709. );
  4710. }
  4711. }
  4712. }
  4713. if (cPan == 2) {
  4714. return;
  4715. }
  4716. if (this.userid != this.courseUserid) {
  4717. if (
  4718. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  4719. ) {
  4720. this.updateWork();
  4721. } else {
  4722. this.updateWork2();
  4723. }
  4724. } else {
  4725. this.updateWork();
  4726. }
  4727. this.steps = 4;
  4728. }
  4729. } else {
  4730. if (this.steps == 1) {
  4731. if (this.cid == "" || this.cid == undefined) {
  4732. this.addWork();
  4733. } else {
  4734. if (this.userid != this.courseUserid) {
  4735. if (
  4736. this.checkboxListPeople.join(",") !=
  4737. this.checkboxList3.join(",")
  4738. ) {
  4739. this.updateWork();
  4740. } else {
  4741. this.updateWork2();
  4742. }
  4743. } else {
  4744. this.updateWork();
  4745. }
  4746. }
  4747. this.setMan();
  4748. }
  4749. if (s == 1) {
  4750. this.steps = 1;
  4751. setTimeout(() => {
  4752. this.checkEva(this.checkId);
  4753. }, 0);
  4754. }
  4755. if (s == 3) {
  4756. this.cTemplate = this.templateC.content;
  4757. this.dialogVisible2 = false;
  4758. this.steps = 3;
  4759. setTimeout(() => {
  4760. this.checkEva(this.checkId);
  4761. }, 1000);
  4762. }
  4763. if (s == 4 && this.cidType == 0) {
  4764. this.$message.error("请将信息填写完整");
  4765. return;
  4766. } else if (s == 4) {
  4767. let cPan = 1;
  4768. for (var i = 0; i < this.unitJson.length; i++) {
  4769. for (
  4770. var j = 0;
  4771. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4772. j++
  4773. ) {
  4774. // if (
  4775. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  4776. // ) {
  4777. // this.$message.error("请填写任务名称");
  4778. // cPan = 2
  4779. // break;
  4780. // }
  4781. // if (
  4782. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  4783. // ) {
  4784. // this.$message.error("请填写负责人");
  4785. // cPan = 2
  4786. // break;
  4787. // }
  4788. // if (
  4789. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  4790. // ) {
  4791. // this.$message.error("请填写任务起止时间");
  4792. // cPan = 2
  4793. // break;
  4794. // }
  4795. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4796. this.unitJson[i].chapterInfo[0].taskJson[j].eList =
  4797. this.unitJson[i].chapterInfo[0].taskJson[j].eList.filter(
  4798. (ele) => {
  4799. return ele.value != "";
  4800. }
  4801. );
  4802. }
  4803. }
  4804. }
  4805. if (cPan == 2) {
  4806. return;
  4807. }
  4808. if (this.userid != this.courseUserid) {
  4809. if (
  4810. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  4811. ) {
  4812. this.updateWork();
  4813. } else {
  4814. this.updateWork2();
  4815. }
  4816. } else {
  4817. this.updateWork();
  4818. }
  4819. this.steps = 4;
  4820. }
  4821. }
  4822. this.$refs.stepBox.scrollTop = 0;
  4823. this.setVHeight();
  4824. },
  4825. nextSteps() {
  4826. let typeT = 1;
  4827. if (this.courseTypeId.length) {
  4828. let array = Object.keys(this.CourseTypeJson);
  4829. for (var t = 0; t < array.length; t++) {
  4830. var tp = array[t];
  4831. var tAarray = [];
  4832. for (var tt = 0; tt < this.CourseTypeJson[tp].length; tt++) {
  4833. tAarray.push(this.CourseTypeJson[tp][tt].id);
  4834. }
  4835. for (var tt = 0; tt < this.courseTypeId.length; tt++) {
  4836. if (tAarray.indexOf(this.courseTypeId[tt]) != -1) {
  4837. typeT++;
  4838. }
  4839. }
  4840. }
  4841. }
  4842. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  4843. typeT++;
  4844. }
  4845. if(this.CourseType.length == 0){
  4846. typeT = 3
  4847. }
  4848. if (this.cidttt == 1) {
  4849. if (this.steps == 1) {
  4850. if (this.courseName != "" && typeT == 3) {
  4851. this.steps = 3;
  4852. setTimeout(() => {
  4853. this.checkEva(this.checkId);
  4854. }, 1000);
  4855. if (this.cid == "" || this.cid == undefined) {
  4856. this.addWork();
  4857. } else {
  4858. if (this.userid != this.courseUserid) {
  4859. if (
  4860. this.checkboxListPeople.join(",") !=
  4861. this.checkboxList3.join(",")
  4862. ) {
  4863. this.updateWork();
  4864. } else {
  4865. this.updateWork2();
  4866. }
  4867. } else {
  4868. this.updateWork();
  4869. }
  4870. }
  4871. } else {
  4872. if (typeT != 3) {
  4873. this.$message.error(
  4874. "分类为必选项目,请将信息补充完整后进行下一步"
  4875. );
  4876. } else {
  4877. this.$message.error("请将信息填写完整");
  4878. }
  4879. return;
  4880. }
  4881. this.setMan();
  4882. } else if (this.steps == 3) {
  4883. if (this.cid == "" || this.cid == undefined) {
  4884. if (this.courseName == "" || typeT != 3) {
  4885. if (typeT != 3) {
  4886. this.$message.error(
  4887. "分类为必选项目,请将信息补充完整后进行下一步"
  4888. );
  4889. } else {
  4890. this.$message.error("请将信息填写完整");
  4891. }
  4892. return;
  4893. } else {
  4894. this.addWork();
  4895. if (this.type != 2) {
  4896. this.steps = 5;
  4897. } else {
  4898. this.steps++;
  4899. }
  4900. }
  4901. } else {
  4902. if (this.courseName == "" || typeT != 3) {
  4903. if (typeT != 3) {
  4904. this.$message.error(
  4905. "分类为必选项目,请将信息补充完整后进行下一步"
  4906. );
  4907. } else {
  4908. this.$message.error("请将信息填写完整");
  4909. }
  4910. return;
  4911. } else {
  4912. if (this.type != 2) {
  4913. this.steps = 5;
  4914. } else {
  4915. this.steps++;
  4916. }
  4917. if (this.userid != this.courseUserid) {
  4918. if (
  4919. this.checkboxListPeople.join(",") !=
  4920. this.checkboxList3.join(",")
  4921. ) {
  4922. this.updateWork();
  4923. } else {
  4924. this.updateWork2();
  4925. }
  4926. } else {
  4927. this.updateWork();
  4928. }
  4929. }
  4930. }
  4931. } else if (this.steps == 4) {
  4932. if (this.userid != this.courseUserid) {
  4933. this.updateWork2();
  4934. // this.updateWork();
  4935. } else {
  4936. this.updateWork();
  4937. }
  4938. this.steps++;
  4939. }
  4940. } else {
  4941. if (this.steps == 1) {
  4942. if (this.courseName != "" && typeT == 3) {
  4943. if (this.cid == "" || this.cid == undefined) {
  4944. this.addWork();
  4945. } else {
  4946. if (this.userid != this.courseUserid) {
  4947. if (
  4948. this.checkboxListPeople.join(",") !=
  4949. this.checkboxList3.join(",")
  4950. ) {
  4951. this.updateWork();
  4952. } else {
  4953. this.updateWork2();
  4954. }
  4955. } else {
  4956. this.updateWork();
  4957. }
  4958. }
  4959. this.steps++;
  4960. } else {
  4961. if (typeT != 3) {
  4962. this.$message.error(
  4963. "分类为必选项目,请将信息补充完整后进行下一步"
  4964. );
  4965. } else {
  4966. this.$message.error("请将信息填写完整");
  4967. }
  4968. return;
  4969. }
  4970. this.setMan();
  4971. } else if (this.steps == 2) {
  4972. if (this.templateC.id != "" || this.templateC.id != undefined) {
  4973. this.cTemplate = this.templateC.content;
  4974. }
  4975. this.dialogVisible2 = false;
  4976. this.steps++;
  4977. setTimeout(() => {
  4978. this.checkEva(this.checkId);
  4979. }, 1000);
  4980. } else if (this.steps == 3) {
  4981. if (this.cid == "" || this.cid == undefined) {
  4982. if (this.courseName == "" || typeT != 3) {
  4983. if (typeT != 3) {
  4984. this.$message.error(
  4985. "分类为必选项目,请将信息补充完整后进行下一步"
  4986. );
  4987. } else {
  4988. this.$message.error("请将信息填写完整");
  4989. }
  4990. return;
  4991. } else {
  4992. this.addWork();
  4993. if (this.type != 2) {
  4994. this.steps = 5;
  4995. } else {
  4996. this.steps++;
  4997. }
  4998. }
  4999. } else {
  5000. if (this.courseName == "" || typeT != 3) {
  5001. if (typeT != 3) {
  5002. this.$message.error(
  5003. "分类为必选项目,请将信息补充完整后进行下一步"
  5004. );
  5005. } else {
  5006. this.$message.error("请将信息填写完整");
  5007. }
  5008. return;
  5009. } else {
  5010. if (this.type != 2) {
  5011. this.steps = 5;
  5012. } else {
  5013. this.steps++;
  5014. }
  5015. if (this.userid != this.courseUserid) {
  5016. if (
  5017. this.checkboxListPeople.join(",") !=
  5018. this.checkboxList3.join(",")
  5019. ) {
  5020. this.updateWork();
  5021. } else {
  5022. this.updateWork2();
  5023. }
  5024. } else {
  5025. this.updateWork();
  5026. }
  5027. }
  5028. }
  5029. } else if (this.steps == 4) {
  5030. if (this.userid != this.courseUserid) {
  5031. if (
  5032. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  5033. ) {
  5034. this.updateWork();
  5035. } else {
  5036. this.updateWork2();
  5037. }
  5038. } else {
  5039. this.updateWork();
  5040. }
  5041. this.steps++;
  5042. }
  5043. }
  5044. this.$refs.stepBox.scrollTop = 0;
  5045. this.setVHeight();
  5046. },
  5047. unitSet(i) {
  5048. this.unitIndex = i;
  5049. // this.$refs.rightboxR.scrollTop = 0;
  5050. this.setVHeight();
  5051. },
  5052. time() {
  5053. if (!this.now) {
  5054. this.now = new Date().getTime();
  5055. return true;
  5056. } else {
  5057. let time = new Date().getTime();
  5058. if (time - this.now > 3000) {
  5059. this.now = time;
  5060. return true;
  5061. } else {
  5062. return false;
  5063. }
  5064. }
  5065. },
  5066. deleteUnit(i) {
  5067. var _this = this;
  5068. if (_this.time()) {
  5069. _this
  5070. .$confirm("确定删除此单元吗?", "提示", {
  5071. confirmButtonText: "确定",
  5072. cancelButtonText: "取消",
  5073. type: "warning",
  5074. })
  5075. .then(() => {
  5076. _this.isDelete = 2;
  5077. // _this.unitIndex = _this.unitIndex - 1;
  5078. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  5079. // _this.$message.success("删除成功");
  5080. })
  5081. .catch(() => {
  5082. return;
  5083. });
  5084. }
  5085. },
  5086. deleteWork(chapid) {
  5087. let params = [
  5088. {
  5089. cid: this.cid,
  5090. chapters: JSON.stringify(this.unitJson),
  5091. uid: this.userid,
  5092. chapid: chapid,
  5093. },
  5094. ];
  5095. this.ajax
  5096. .post(this.$store.state.api + "deleteStudentWork", params)
  5097. .then((res) => {
  5098. this.$message({
  5099. message: "删除成功",
  5100. type: "success",
  5101. });
  5102. this.unitJson.splice(this.unitIndex, 1);
  5103. this.deleteStudentToolS(this.unitIndex);
  5104. this.unitIndex = this.unitIndex - 1;
  5105. })
  5106. .catch((err) => {
  5107. this.$message.error("网络不佳");
  5108. console.error(err);
  5109. });
  5110. },
  5111. deleteTool(itemTaskIndex, i) {
  5112. // var _this = this;
  5113. // if (_this.time()) {
  5114. // _this
  5115. // .$confirm("确定删除此工具吗?", "提示", {
  5116. // confirmButtonText: "确定",
  5117. // cancelButtonText: "取消",
  5118. // type: "warning",
  5119. // })
  5120. // .then(() => {
  5121. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5122. // itemTaskIndex
  5123. // ].toolChoose.splice(i, 1);
  5124. // _this.$message.success("删除成功");
  5125. // })
  5126. // .catch(() => {
  5127. // return;
  5128. // });
  5129. // }
  5130. var _this = this;
  5131. _this
  5132. .$confirm("确定删除此步骤吗?", "提示", {
  5133. confirmButtonText: "确定",
  5134. cancelButtonText: "取消",
  5135. type: "warning",
  5136. })
  5137. .then(() => {
  5138. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5139. itemTaskIndex
  5140. ].toolArray.splice(i, 1);
  5141. this.deleteStudentToolSTT(itemTaskIndex, i);
  5142. _this.$message.success("删除成功");
  5143. })
  5144. .catch(() => {
  5145. return;
  5146. });
  5147. },
  5148. deleteStudentToolSTT(task, tool) {
  5149. let params = [
  5150. {
  5151. cid: this.cid,
  5152. stage: this.unitIndex,
  5153. task: task,
  5154. tool: tool,
  5155. },
  5156. ];
  5157. this.ajax
  5158. .post(this.$store.state.api + "deleteStudentToolSTT", params)
  5159. .then((res) => {})
  5160. .catch((err) => {
  5161. console.error(err);
  5162. });
  5163. },
  5164. deleteStudentToolST(task) {
  5165. let params = [
  5166. {
  5167. cid: this.cid,
  5168. stage: this.unitIndex,
  5169. task: task,
  5170. },
  5171. ];
  5172. this.ajax
  5173. .post(this.$store.state.api + "deleteStudentToolST", params)
  5174. .then((res) => {})
  5175. .catch((err) => {
  5176. console.error(err);
  5177. });
  5178. },
  5179. deleteStudentToolS() {
  5180. let params = [
  5181. {
  5182. cid: this.cid,
  5183. stage: this.unitIndex,
  5184. },
  5185. ];
  5186. this.ajax
  5187. .post(this.$store.state.api + "deleteStudentToolS", params)
  5188. .then((res) => {})
  5189. .catch((err) => {
  5190. console.error(err);
  5191. });
  5192. },
  5193. deleteSentence(i) {
  5194. var _this = this;
  5195. if (_this.time()) {
  5196. _this
  5197. .$confirm("确定删除此题目吗?", "提示", {
  5198. confirmButtonText: "确定",
  5199. cancelButtonText: "取消",
  5200. type: "warning",
  5201. })
  5202. .then(() => {
  5203. _this.sentenceList.splice(i, 1);
  5204. _this.$message.success("删除成功");
  5205. })
  5206. .catch(() => {
  5207. return;
  5208. });
  5209. }
  5210. },
  5211. deleteS(s, i, j) {
  5212. this.sentenceList[i].addSentence.splice(j, 1);
  5213. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  5214. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  5215. this.sentenceList[i].rightAnswer.splice(a, 1);
  5216. }
  5217. },
  5218. openT() {
  5219. window.parent.postMessage(
  5220. {
  5221. tools: "25",
  5222. },
  5223. "*"
  5224. );
  5225. },
  5226. deleteTask(i) {
  5227. var _this = this;
  5228. if (_this.time()) {
  5229. _this
  5230. .$confirm("确定删除此任务吗?", "提示", {
  5231. confirmButtonText: "确定",
  5232. cancelButtonText: "取消",
  5233. type: "warning",
  5234. })
  5235. .then(() => {
  5236. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  5237. i,
  5238. 1
  5239. );
  5240. this.deleteStudentToolST(i);
  5241. _this.$message.success("删除成功");
  5242. })
  5243. .catch(() => {
  5244. return;
  5245. });
  5246. }
  5247. },
  5248. handlePictureCardPreview(file) {
  5249. this.dialogImageUrl = file.url;
  5250. },
  5251. clean(i, c) {
  5252. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  5253. },
  5254. handle_remove1(file, fileList, type) {
  5255. var _tmp = this.cover;
  5256. for (var i = 0, len = _tmp.length; i < len; i++) {
  5257. if (_tmp[i].uid == file.uid) {
  5258. _tmp.splice(i, 1);
  5259. break;
  5260. }
  5261. this.cover = _tmp;
  5262. }
  5263. this.noneBtnImg = _tmp.length >= 1;
  5264. this.isSysPic = false;
  5265. },
  5266. addImg(e) {
  5267. var el = e.currentTarget || e;
  5268. el.getElementsByTagName("input")[0].click();
  5269. e.target.value = "";
  5270. },
  5271. addChaptersTools(i) {
  5272. this.chapTools = [
  5273. {
  5274. tools: [],
  5275. toolDetail: "",
  5276. },
  5277. ];
  5278. this.chapCount = i;
  5279. this.dialogVisible4 = true;
  5280. },
  5281. isNoFinsh() {
  5282. this.$message.warning("功能正在开发中");
  5283. },
  5284. addAttText(i) {
  5285. this.AttText = {
  5286. title: "",
  5287. text: "",
  5288. };
  5289. // this.taskCount = i;
  5290. this.AttTextType = 0;
  5291. this.$forceUpdate();
  5292. this.dialogVisible6 = true;
  5293. },
  5294. openSource(i) {
  5295. this.lineCount = i;
  5296. this.sourceData = {};
  5297. this.dialogVisibleSource2 = true;
  5298. },
  5299. addSource() {
  5300. if (!Object.keys(this.sourceData).length) {
  5301. this.$message.error("请选择要上传的资源");
  5302. return;
  5303. }
  5304. let keys = Object.keys(this.sourceData);
  5305. for (var i = 0; i < keys.length; i++) {
  5306. this.sourcesData.push({
  5307. name: "链接",
  5308. title: this.sourceData[keys[i]].name,
  5309. src: this.sourceData[keys[i]].url,
  5310. type: 8,
  5311. });
  5312. }
  5313. this.$forceUpdate();
  5314. this.dialogVisibleSource2 = false;
  5315. },
  5316. downloadFile2(f) {
  5317. const loading = this.$loading.service({
  5318. background: "rgba(255, 255, 255, 0.7)",
  5319. target: document.body,
  5320. text: "文件加载中...",
  5321. });
  5322. let url2 = f.url;
  5323. let _url2 = "";
  5324. if (
  5325. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  5326. ) {
  5327. _url2 = url2.split(
  5328. "https://view.officeapps.live.com/op/view.aspx?src="
  5329. )[1];
  5330. } else {
  5331. _url2 = url2;
  5332. }
  5333. let params = {
  5334. url: _url2,
  5335. name: f.name,
  5336. };
  5337. this.ajax
  5338. .get(this.$store.state.api + "download", params)
  5339. .then((res) => {
  5340. loading.close();
  5341. let content = res.data.data.data;
  5342. let ab = new ArrayBuffer(content.length);
  5343. let view = new Uint8Array(ab);
  5344. for (var i = 0; i < content.length; ++i) {
  5345. view[i] = content[i];
  5346. }
  5347. let elink = document.createElement("a");
  5348. elink.download = f.name;
  5349. elink.style.display = "none";
  5350. let blob = new Blob([ab], {
  5351. type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  5352. });
  5353. elink.href = URL.createObjectURL(blob);
  5354. document.body.appendChild(elink);
  5355. elink.click();
  5356. document.body.removeChild(elink);
  5357. })
  5358. .catch((err) => {
  5359. loading.close();
  5360. console.error(err);
  5361. });
  5362. },
  5363. pasteLine(i) {
  5364. navigator.clipboard
  5365. .readText()
  5366. .then((v) => {
  5367. console.log("获取剪贴板成功:", v);
  5368. const html = v;
  5369. const regex = /src="(.*?)"/g;
  5370. const match = regex.exec(html);
  5371. if (match && match[1]) {
  5372. console.log(match[1]);
  5373. this.$message.success("粘贴成功");
  5374. this.sourcesData.push({
  5375. name: "链接",
  5376. title: "嵌入代码",
  5377. src: match[1],
  5378. type: 8,
  5379. });
  5380. } else {
  5381. // console.log("未找到包含 src 属性的 iframe");
  5382. this.$message.error("没有找到粘贴的链接");
  5383. }
  5384. })
  5385. .catch((v) => {
  5386. console.log("获取剪贴板失败: ", v);
  5387. });
  5388. },
  5389. openLine(i) {
  5390. this.line = "";
  5391. this.lineTitle = "";
  5392. // this.lineCount = i;
  5393. this.lineType = 0;
  5394. this.$forceUpdate();
  5395. this.dialogVisible7 = true;
  5396. },
  5397. beforeUpload1(event, type) {
  5398. const loading = this.openLoading();
  5399. var file = event.target.files[0];
  5400. var credentials = {
  5401. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5402. secretAccessKey: "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",
  5403. }; //秘钥形式的登录上传
  5404. window.AWS.config.update(credentials);
  5405. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5406. var bucket = new window.AWS.S3({
  5407. params: {
  5408. Bucket: "ccrb",
  5409. },
  5410. }); //选择桶
  5411. var _this = this;
  5412. if (file) {
  5413. var params = {
  5414. Key:
  5415. file.name.split(".")[0] +
  5416. new Date().getTime() +
  5417. "." +
  5418. file.name.split(".")[file.name.split(".").length - 1],
  5419. ContentType: file.type,
  5420. Body: file,
  5421. "Access-Control-Allow-Credentials": "*",
  5422. ACL: "public-read",
  5423. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5424. var options = {
  5425. partSize: 2048 * 1024 * 1024,
  5426. queueSize: 2,
  5427. leavePartsOnError: true,
  5428. };
  5429. bucket
  5430. .upload(params, options)
  5431. .on("httpUploadProgress", function (evt) {
  5432. //这里可以写进度条
  5433. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5434. })
  5435. .send(function (err, data) {
  5436. loading.close();
  5437. if (err) {
  5438. _this.$message.error("上传失败");
  5439. } else {
  5440. _this.cover.push({
  5441. name: file.name,
  5442. url: data.Location,
  5443. uid: file.uid,
  5444. });
  5445. _this.imgChange1(null, null, 1, null);
  5446. _this.choosePicVisible = false;
  5447. console.log(data.Location);
  5448. }
  5449. });
  5450. }
  5451. },
  5452. beforeUploadSelect(event, type) {
  5453. const loading = this.openLoading();
  5454. var file = event.target.files[0];
  5455. var credentials = {
  5456. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5457. secretAccessKey: "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",
  5458. }; //秘钥形式的登录上传
  5459. window.AWS.config.update(credentials);
  5460. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5461. var bucket = new window.AWS.S3({
  5462. params: {
  5463. Bucket: "ccrb",
  5464. },
  5465. }); //选择桶
  5466. var _this = this;
  5467. if (file) {
  5468. var params = {
  5469. Key:
  5470. file.name.split(".")[0] +
  5471. new Date().getTime() +
  5472. "." +
  5473. file.name.split(".")[file.name.split(".").length - 1],
  5474. ContentType: file.type,
  5475. Body: file,
  5476. "Access-Control-Allow-Credentials": "*",
  5477. ACL: "public-read",
  5478. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5479. var options = {
  5480. partSize: 2048 * 1024 * 1024,
  5481. queueSize: 2,
  5482. leavePartsOnError: true,
  5483. };
  5484. bucket
  5485. .upload(params, options)
  5486. .on("httpUploadProgress", function (evt) {
  5487. //这里可以写进度条
  5488. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5489. })
  5490. .send(function (err, data) {
  5491. loading.close();
  5492. if (err) {
  5493. _this.$message.error("上传失败");
  5494. } else {
  5495. _this.selectJson.url = data.Location;
  5496. console.log(data.Location);
  5497. }
  5498. });
  5499. }
  5500. },
  5501. chooseSysPic(p) {
  5502. this.cover.push({
  5503. name: "系统图片.png",
  5504. url: p,
  5505. });
  5506. this.imgChange1(null, null, 1, null);
  5507. this.isSysPic = true;
  5508. this.sysPicVisible = false;
  5509. },
  5510. beforeUpload(data) {
  5511. this.uploadLoading1 = true;
  5512. var file = data.file;
  5513. var credentials = {
  5514. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5515. secretAccessKey: "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",
  5516. }; //秘钥形式的登录上传
  5517. window.AWS.config.update(credentials);
  5518. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5519. var bucket = new window.AWS.S3({
  5520. params: {
  5521. Bucket: "ccrb",
  5522. },
  5523. }); //选择桶
  5524. var _this = this;
  5525. if (file) {
  5526. var params = {
  5527. Key:
  5528. file.name.split(".")[0] +
  5529. new Date().getTime() +
  5530. "." +
  5531. file.name.split(".")[file.name.split(".").length - 1],
  5532. ContentType: file.type,
  5533. Body: file,
  5534. "Access-Control-Allow-Credentials": "*",
  5535. ACL: "public-read",
  5536. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5537. var options = {
  5538. partSize: 2048 * 1024 * 1024,
  5539. queueSize: 2,
  5540. leavePartsOnError: true,
  5541. };
  5542. bucket
  5543. .upload(params, options)
  5544. .on("httpUploadProgress", function (evt) {
  5545. //这里可以写进度条
  5546. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5547. })
  5548. .send(function (err, data) {
  5549. _this.uploadLoading1 = false;
  5550. if (err) {
  5551. _this.$message.error("上传失败");
  5552. } else {
  5553. //上传成功处理
  5554. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5555. name: file.name,
  5556. url: data.Location,
  5557. uid: file.uid,
  5558. });
  5559. _this.imgChange();
  5560. console.log(data.Location);
  5561. }
  5562. });
  5563. }
  5564. },
  5565. onExceed() {
  5566. this.$message.error("项目封面仅支持上传一张,请删除后再进行上传");
  5567. },
  5568. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5569. // const loading = this.openLoading();
  5570. var file = event.target.files[0];
  5571. var credentials = {
  5572. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5573. secretAccessKey: "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",
  5574. }; //秘钥形式的登录上传
  5575. window.AWS.config.update(credentials);
  5576. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5577. var bucket = new window.AWS.S3({
  5578. params: {
  5579. Bucket: "ccrb",
  5580. },
  5581. }); //选择桶
  5582. var _this = this;
  5583. if (type == 3) {
  5584. var b = [
  5585. "DOC",
  5586. "DOCX",
  5587. "DOCM",
  5588. "DOTM",
  5589. "DOTX",
  5590. "PPTX",
  5591. "PPSX",
  5592. "PPT",
  5593. "PPS",
  5594. "PPTM",
  5595. "POTM",
  5596. "PPAM",
  5597. "POTX",
  5598. "PPSM",
  5599. ];
  5600. if (
  5601. b.indexOf(
  5602. file.name
  5603. .split(".")
  5604. [file.name.split(".").length - 1].toLocaleUpperCase()
  5605. ) != -1
  5606. ) {
  5607. if (file.size / 1024 / 1024 > 80) {
  5608. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5609. this.inputShow = true;
  5610. // loading.close();
  5611. return;
  5612. }
  5613. } else if (
  5614. file.name
  5615. .split(".")
  5616. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5617. ) {
  5618. if (file.size / 1024 / 1024 > 80) {
  5619. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5620. this.inputShow = true;
  5621. // loading.close();
  5622. return;
  5623. }
  5624. }
  5625. }
  5626. this.inputShow = false;
  5627. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5628. itemTaskIndex
  5629. ].progress = 0;
  5630. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5631. itemTaskIndex
  5632. ].proVisible = true;
  5633. if (file) {
  5634. var params = {
  5635. Key:
  5636. file.name.split(".")[0] +
  5637. new Date().getTime() +
  5638. "." +
  5639. file.name.split(".")[file.name.split(".").length - 1],
  5640. ContentType: file.type,
  5641. Body: file,
  5642. "Access-Control-Allow-Credentials": "*",
  5643. ACL: "public-read",
  5644. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5645. var options = {
  5646. partSize: 2048 * 1024 * 1024,
  5647. queueSize: 2,
  5648. leavePartsOnError: true,
  5649. };
  5650. bucket
  5651. .upload(params, options)
  5652. .on("httpUploadProgress", function (evt) {
  5653. //这里可以写进度条
  5654. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5655. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5656. itemTaskIndex
  5657. ].progress = parseInt((evt.loaded * 80) / evt.total);
  5658. })
  5659. .send(function (err, data) {
  5660. // loading.close();
  5661. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5662. itemTaskIndex
  5663. ].progress = 100;
  5664. setTimeout(() => {
  5665. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5666. itemTaskIndex
  5667. ].proVisible = false;
  5668. _this.$forceUpdate();
  5669. }, 1000);
  5670. _this.inputShow = true;
  5671. if (err) {
  5672. _this.$message.error("上传失败");
  5673. } else {
  5674. if (type == 2 || type == 3) {
  5675. if (
  5676. data.Location.split(".")[
  5677. data.Location.split(".").length - 1
  5678. ].toLocaleUpperCase() == "PDF"
  5679. ) {
  5680. type = 9;
  5681. }
  5682. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5683. itemTaskIndex
  5684. ].chapterData.push({
  5685. name: file.name,
  5686. url: data.Location,
  5687. uid: file.uid,
  5688. type: type,
  5689. });
  5690. _this.imgChange1(null, null, type, itemTaskIndex);
  5691. } else if (type == 4) {
  5692. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5693. itemTaskIndex
  5694. ].fileList1.push({
  5695. name: file.name,
  5696. url: data.Location,
  5697. uid: file.uid,
  5698. });
  5699. _this.imgChange1(null, null, type, itemTaskIndex);
  5700. } else if (type == 5) {
  5701. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5702. itemTaskIndex
  5703. ].homeworkList.push({
  5704. name: file.name,
  5705. url: data.Location,
  5706. uid: file.uid,
  5707. });
  5708. _this.imgChange1(null, null, type, itemTaskIndex);
  5709. }
  5710. console.log(data.Location);
  5711. }
  5712. });
  5713. }
  5714. },
  5715. getVideo2(url) {
  5716. var d = JSON.parse(JSON.stringify(this.playerOptions));
  5717. d.sources[0].src = url;
  5718. return d;
  5719. },
  5720. beforeUpload3(event, type) {
  5721. // const loading = this.openLoading();
  5722. var file = event.target.files[0];
  5723. var credentials = {
  5724. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5725. secretAccessKey: "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",
  5726. }; //秘钥形式的登录上传
  5727. window.AWS.config.update(credentials);
  5728. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5729. var bucket = new window.AWS.S3({
  5730. params: {
  5731. Bucket: "ccrb",
  5732. },
  5733. }); //选择桶
  5734. var _this = this;
  5735. if (type == 3) {
  5736. var b = [
  5737. "DOC",
  5738. "DOCX",
  5739. "DOCM",
  5740. "DOTM",
  5741. "DOTX",
  5742. "PPTX",
  5743. "PPSX",
  5744. "PPT",
  5745. "PPS",
  5746. "PPTM",
  5747. "POTM",
  5748. "PPAM",
  5749. "POTX",
  5750. "PPSM",
  5751. ];
  5752. if (
  5753. b.indexOf(
  5754. file.name
  5755. .split(".")
  5756. [file.name.split(".").length - 1].toLocaleUpperCase()
  5757. ) != -1
  5758. ) {
  5759. if (file.size / 1024 / 1024 > 80) {
  5760. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5761. this.inputShow = true;
  5762. // loading.close();
  5763. return;
  5764. }
  5765. } else if (
  5766. file.name
  5767. .split(".")
  5768. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5769. ) {
  5770. if (file.size / 1024 / 1024 > 80) {
  5771. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5772. this.inputShow = true;
  5773. // loading.close();
  5774. return;
  5775. }
  5776. }
  5777. }
  5778. _this.inputShow = false;
  5779. _this.progress = 0;
  5780. _this.proVisible = true;
  5781. _this.isFinishSize = 0;
  5782. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5783. if (file) {
  5784. var params = {
  5785. Key:
  5786. file.name.split(".")[0] +
  5787. new Date().getTime() +
  5788. "." +
  5789. file.name.split(".")[file.name.split(".").length - 1],
  5790. ContentType: file.type,
  5791. Body: file,
  5792. "Access-Control-Allow-Credentials": "*",
  5793. ACL: "public-read",
  5794. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5795. var options = {
  5796. partSize: 2048 * 1024 * 1024,
  5797. queueSize: 2,
  5798. leavePartsOnError: true,
  5799. };
  5800. bucket
  5801. .upload(params, options)
  5802. .on("httpUploadProgress", function (evt) {
  5803. //这里可以写进度条
  5804. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5805. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  5806. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5807. })
  5808. .send(function (err, data) {
  5809. // loading.close();
  5810. _this.progress = 100;
  5811. _this.isFinishSize = _this.isAllSize;
  5812. setTimeout(() => {
  5813. _this.proVisible = false;
  5814. // _this.dialogVisibleSource = false;
  5815. _this.$forceUpdate();
  5816. }, 1000);
  5817. _this.inputShow = true;
  5818. if (err) {
  5819. _this.$message.error("上传失败");
  5820. } else {
  5821. if (type == 13) {
  5822. let _type = 2;
  5823. let src = "";
  5824. var imgA = [
  5825. "png",
  5826. "jpg",
  5827. "jpeg",
  5828. "bmp",
  5829. "gif",
  5830. "webp",
  5831. "psd",
  5832. "svg",
  5833. "tiff",
  5834. ];
  5835. var fileA = [
  5836. "DOC",
  5837. "DOCX",
  5838. "DOCM",
  5839. "DOTM",
  5840. "DOTX",
  5841. "PPTX",
  5842. "PPSX",
  5843. "PPT",
  5844. "PPS",
  5845. "PPTM",
  5846. "POTM",
  5847. "PPAM",
  5848. "POTX",
  5849. "PPSM",
  5850. "XLSX",
  5851. "XLS",
  5852. ];
  5853. var videoA = [
  5854. "AVI",
  5855. "NAVI",
  5856. "MPEG",
  5857. "ASF",
  5858. "MOV",
  5859. "WMV",
  5860. "3GP",
  5861. "RM",
  5862. "RMVB",
  5863. "FLV",
  5864. "F4V",
  5865. "H.264",
  5866. "H.265",
  5867. "REAL VIDEO",
  5868. "MKV",
  5869. "WebM",
  5870. "HDDVD",
  5871. "MP4",
  5872. "MPG",
  5873. "M4V",
  5874. "MGV",
  5875. "OGV",
  5876. "QTM",
  5877. "STR",
  5878. "AMC",
  5879. "DVX",
  5880. "EVO",
  5881. "DAT",
  5882. "OGG",
  5883. "OGM",
  5884. ];
  5885. if (
  5886. fileA.indexOf(
  5887. data.Location.split(".")[
  5888. data.Location.split(".").length - 1
  5889. ].toLocaleUpperCase()
  5890. ) != -1
  5891. ) {
  5892. _type = 3;
  5893. src =
  5894. "https://view.officeapps.live.com/op/view.aspx?src=" +
  5895. data.Location;
  5896. } else if (
  5897. videoA.indexOf(
  5898. data.Location.split(".")[
  5899. data.Location.split(".").length - 1
  5900. ].toLocaleUpperCase()
  5901. ) != -1
  5902. ) {
  5903. _type = 2;
  5904. src = _this.getVideo2(data.Location);
  5905. } else if (
  5906. imgA.indexOf(
  5907. data.Location.split(".")[
  5908. data.Location.split(".").length - 1
  5909. ].toLocaleLowerCase()
  5910. ) != -1
  5911. ) {
  5912. _type = 13;
  5913. }else if (
  5914. data.Location.split(".")[
  5915. data.Location.split(".").length - 1
  5916. ].toLocaleUpperCase() == "PDF"
  5917. ) {
  5918. _type = 9;
  5919. } else {
  5920. _type = 12;
  5921. }
  5922. _this.sourcesData.push({
  5923. name: file.name,
  5924. url: data.Location,
  5925. uid: file.uid,
  5926. type: _type,
  5927. src: src,
  5928. });
  5929. } if (type == 2 || type == 3) {
  5930. var src = "";
  5931. if (
  5932. data.Location.split(".")[
  5933. data.Location.split(".").length - 1
  5934. ].toLocaleUpperCase() == "PDF"
  5935. ) {
  5936. type = 9;
  5937. }
  5938. if (type == 2) {
  5939. src = _this.getVideo2(data.Location);
  5940. } else if (type == 3) {
  5941. src =
  5942. "https://view.officeapps.live.com/op/view.aspx?src=" +
  5943. data.Location;
  5944. } else {
  5945. src = data.Location;
  5946. }
  5947. // _this.unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolArray.push({
  5948. // tool: 51,
  5949. // toolDetail: "",
  5950. // toolPhoto: "",
  5951. // toolEdit: false,
  5952. // toolId: _this.guid(),
  5953. // toolData: {
  5954. // name: file.name,
  5955. // url: data.Location,
  5956. // uid: file.uid,
  5957. // type: type,
  5958. // src: src,
  5959. // }
  5960. // });
  5961. _this.sourcesData.push({
  5962. name: file.name,
  5963. url: data.Location,
  5964. uid: file.uid,
  5965. type: type,
  5966. src: src,
  5967. });
  5968. }
  5969. console.log(data.Location);
  5970. }
  5971. });
  5972. }
  5973. },
  5974. async beforeUploadCC(event, type, task, toolindex, tool) {
  5975. // this.$message.success('进入上传')
  5976. var file = "";
  5977. file = event.target.files[0];
  5978. var credentials = {
  5979. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5980. secretAccessKey: "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",
  5981. }; //秘钥形式的登录上传
  5982. window.AWS.config.update(credentials);
  5983. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5984. var bucket = new window.AWS.S3({
  5985. params: {
  5986. Bucket: "ccrb",
  5987. },
  5988. }); //选择桶
  5989. var _this = this;
  5990. if(type == 3 && (file.size / 1024 / 1024) > 100){
  5991. _this.$message.error("上传文件大于100兆,请重新选择文件!");
  5992. return;
  5993. }
  5994. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = 0;
  5995. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  5996. toolindex
  5997. ].proVisible = true;
  5998. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  5999. toolindex
  6000. ].isFinishSize = 0;
  6001. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  6002. toolindex
  6003. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6004. _this.$forceUpdate();
  6005. var b = [
  6006. "DOC",
  6007. "DOCX",
  6008. "DOCM",
  6009. "DOTM",
  6010. "DOTX",
  6011. "PPTX",
  6012. "PPSX",
  6013. "PPT",
  6014. "PPS",
  6015. "PPTM",
  6016. "POTM",
  6017. "PPAM",
  6018. "POTX",
  6019. "PPSM",
  6020. ];
  6021. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  6022. var photoA = [
  6023. "BMP",
  6024. "GIF",
  6025. "PNG",
  6026. "JPGE",
  6027. "JPG",
  6028. "TIF",
  6029. "PCX",
  6030. "TGA",
  6031. "EXIF",
  6032. "FPX",
  6033. "SVG",
  6034. "APNG",
  6035. ];
  6036. if (
  6037. photoA.indexOf(
  6038. file.name
  6039. .split(".")
  6040. [file.name.split(".").length - 1].toLocaleUpperCase()
  6041. ) != -1 &&
  6042. type != 4
  6043. ) {
  6044. // const blob = await imageConversion.compress(file, 0.8)
  6045. file = await this.pngToWhiteBg(file);
  6046. const blob = await imageConversion.compressAccurately(file, 256);
  6047. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  6048. file = new File([blob], file.name, {
  6049. type: file.type,
  6050. });
  6051. }
  6052. if (file) {
  6053. var params = {
  6054. Key:
  6055. file.name.split(".")[0] +
  6056. new Date().getTime() +
  6057. "." +
  6058. file.name.split(".")[file.name.split(".").length - 1],
  6059. ContentType: file.type,
  6060. Body: file,
  6061. "Access-Control-Allow-Credentials": "*",
  6062. ACL: "public-read",
  6063. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6064. var options = {
  6065. // partSize: 2048 * 1024 * 1024,
  6066. partSize: 1024 * 1024 * 1024,
  6067. queueSize: 2,
  6068. leavePartsOnError: true,
  6069. };
  6070. bucket
  6071. .upload(params, options)
  6072. .on("httpUploadProgress", function (evt) {
  6073. //这里可以写进度条
  6074. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6075. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = parseInt((evt.loaded * 80) / evt.total);
  6076. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6077. task
  6078. ].toolArray[toolindex].isFinishSize = (
  6079. evt.loaded /
  6080. 1024 /
  6081. 1024
  6082. ).toFixed(2);
  6083. _this.$forceUpdate();
  6084. })
  6085. .send(function (err, data) {
  6086. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = 100;
  6087. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6088. task
  6089. ].toolArray[toolindex].isFinishSize =
  6090. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6091. task
  6092. ].toolArray[toolindex].isAllSize;
  6093. _this.$forceUpdate();
  6094. setTimeout(() => {
  6095. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6096. task
  6097. ].toolArray[toolindex].proVisible = false;
  6098. }, 1000);
  6099. if (err) {
  6100. // var a = _this.$refs.upload1.uploadFiles;
  6101. // a.splice(a.length - 1, a.length);
  6102. _this.$message.error("上传失败");
  6103. } else {
  6104. // _this.$message.success('上传成功')
  6105. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  6106. var c = [
  6107. "AVI",
  6108. "NAVI",
  6109. "MPEG",
  6110. "ASF",
  6111. "MOV",
  6112. "WMV",
  6113. "3GP",
  6114. "RM",
  6115. "RMVB",
  6116. "FLV",
  6117. "F4V",
  6118. "H.264",
  6119. "H.265",
  6120. "REAL VIDEO",
  6121. "MKV",
  6122. "WebM",
  6123. "HDDVD",
  6124. "MP4",
  6125. "MPG",
  6126. "M4V",
  6127. "MGV",
  6128. "OGV",
  6129. "QTM",
  6130. "STR",
  6131. "AMC",
  6132. "DVX",
  6133. "EVO",
  6134. "DAT",
  6135. "OGG",
  6136. "OGM",
  6137. ];
  6138. if (type == 1) {
  6139. if (
  6140. ["ZIP"].indexOf(
  6141. data.Location.split(".")[
  6142. data.Location.split(".").length - 1
  6143. ].toLocaleUpperCase()
  6144. ) != -1
  6145. ) {
  6146. _this.addCourseWorksS(
  6147. tool,
  6148. 13,
  6149. data.Location,
  6150. task,
  6151. toolindex
  6152. );
  6153. } else {
  6154. _this.addCourseWorksS(
  6155. tool,
  6156. 4,
  6157. data.Location,
  6158. task,
  6159. toolindex
  6160. );
  6161. }
  6162. } else if (type == 2) {
  6163. if (
  6164. c.indexOf(
  6165. data.Location.split(".")[
  6166. data.Location.split(".").length - 1
  6167. ].toLocaleUpperCase()
  6168. ) != -1
  6169. ) {
  6170. _this.addCourseWorksS(
  6171. tool,
  6172. 5,
  6173. data.Location,
  6174. task,
  6175. toolindex
  6176. );
  6177. } else {
  6178. _this.addCourseWorksS(
  6179. tool,
  6180. 1,
  6181. data.Location,
  6182. task,
  6183. toolindex
  6184. );
  6185. }
  6186. } else if (type == 3) {
  6187. let _type = 13
  6188. var imgA = [
  6189. "png",
  6190. "jpg",
  6191. "jpeg",
  6192. "bmp",
  6193. "gif",
  6194. "webp",
  6195. "psd",
  6196. "svg",
  6197. "tiff",
  6198. ];
  6199. var fileA = [
  6200. "PDF",
  6201. "DOC",
  6202. "DOCX",
  6203. "DOCM",
  6204. "DOTM",
  6205. "DOTX",
  6206. "PPTX",
  6207. "PPSX",
  6208. "PPT",
  6209. "PPS",
  6210. "PPTM",
  6211. "POTM",
  6212. "PPAM",
  6213. "POTX",
  6214. "PPSM",
  6215. "XLSX",
  6216. "XLS",
  6217. ];
  6218. var videoA = [
  6219. "AVI",
  6220. "NAVI",
  6221. "MPEG",
  6222. "ASF",
  6223. "MOV",
  6224. "WMV",
  6225. "3GP",
  6226. "RM",
  6227. "RMVB",
  6228. "FLV",
  6229. "F4V",
  6230. "H.264",
  6231. "H.265",
  6232. "REAL VIDEO",
  6233. "MKV",
  6234. "WebM",
  6235. "HDDVD",
  6236. "MP4",
  6237. "MPG",
  6238. "M4V",
  6239. "MGV",
  6240. "OGV",
  6241. "QTM",
  6242. "STR",
  6243. "AMC",
  6244. "DVX",
  6245. "EVO",
  6246. "DAT",
  6247. "OGG",
  6248. "OGM",
  6249. ];
  6250. if (
  6251. fileA.indexOf(
  6252. data.Location.split(".")[
  6253. data.Location.split(".").length - 1
  6254. ].toLocaleUpperCase()
  6255. ) != -1
  6256. ) {
  6257. _type = 4;
  6258. } else if (
  6259. videoA.indexOf(
  6260. data.Location.split(".")[
  6261. data.Location.split(".").length - 1
  6262. ].toLocaleUpperCase()
  6263. ) != -1
  6264. ) {
  6265. _type = 5;
  6266. } else if (
  6267. imgA.indexOf(
  6268. data.Location.split(".")[
  6269. data.Location.split(".").length - 1
  6270. ].toLocaleLowerCase()
  6271. ) != -1
  6272. ) {
  6273. _type = 1;
  6274. } else {
  6275. _type = 13;
  6276. }
  6277. _this.addCourseWorksS(tool, _type, data.Location, task, toolindex);
  6278. }
  6279. console.log(data.Location);
  6280. // _this.$message.success('上传成功'+data.Location)
  6281. }
  6282. });
  6283. }
  6284. },
  6285. pngToWhiteBg(file) {
  6286. const _file = file;
  6287. let read = new FileReader();
  6288. read.readAsDataURL(file); // 文件转base64
  6289. return new Promise((resolve, reject) => {
  6290. read.onload = (e) => {
  6291. let img = new Image();
  6292. img.src = e.target.result;
  6293. img.onload = async () => {
  6294. // 生成canvas
  6295. let canvas = document.createElement("canvas");
  6296. let context = canvas.getContext("2d");
  6297. // 绘制图片到canvas上
  6298. canvas.width = img.width;
  6299. canvas.height = img.height;
  6300. // 在canvas绘制前填充白色背景
  6301. context.fillStyle = "#fff";
  6302. context.fillRect(0, 0, canvas.width, canvas.height);
  6303. context.drawImage(img, 0, 0);
  6304. let base64 = canvas.toDataURL(file["type"], 1);
  6305. let newFile = this.dataUrlToFile(base64, _file);
  6306. resolve(newFile);
  6307. };
  6308. };
  6309. });
  6310. },
  6311. dataUrlToFile(dataurl, file) {
  6312. let arr = dataurl.split(","),
  6313. mime = arr[0].match(/:(.*?);/)[1],
  6314. bstr = atob(arr[1]),
  6315. n = bstr.length,
  6316. u8arr = new Uint8Array(n);
  6317. while (n--) {
  6318. u8arr[n] = bstr.charCodeAt(n);
  6319. }
  6320. // return new Blob([u8arr], { type: mime });
  6321. return new File(
  6322. [
  6323. new Blob([u8arr], {
  6324. type: mime,
  6325. }),
  6326. ],
  6327. file.name,
  6328. {
  6329. type: mime,
  6330. }
  6331. );
  6332. },
  6333. addunit() {
  6334. if (this.cid != "") {
  6335. let _unitIndex = this.unitIndex;
  6336. let cPan = 1;
  6337. for (
  6338. var j = 0;
  6339. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6340. j++
  6341. ) {
  6342. // if (
  6343. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].task
  6344. // ) {
  6345. // this.$message.error("请填写任务名称");
  6346. // cPan = 2
  6347. // break;
  6348. // }
  6349. // if (
  6350. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].people
  6351. // ) {
  6352. // this.$message.error("请填写负责人");
  6353. // cPan = 2
  6354. // break;
  6355. // }
  6356. // if (
  6357. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].time
  6358. // ) {
  6359. // this.$message.error("请填写任务起止时间");
  6360. // cPan = 2
  6361. // break;
  6362. // }
  6363. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6364. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6365. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6366. (ele) => {
  6367. return ele.value != "";
  6368. }
  6369. );
  6370. }
  6371. }
  6372. if (cPan == 2) {
  6373. return;
  6374. }
  6375. }
  6376. this.unitJson.push({
  6377. dyName: "", //单元标题
  6378. isUpdate: 1,
  6379. chapterInfo: [
  6380. {
  6381. isread: false,
  6382. chapterid: this.guid(),
  6383. title: "",
  6384. courseName: "",
  6385. taskJson: [
  6386. {
  6387. task: "",
  6388. people: "",
  6389. time: "",
  6390. taskDetail: "",
  6391. chapterData: [],
  6392. toolText: "",
  6393. toolChoose: [
  6394. {
  6395. tool: [],
  6396. toolDetail: "",
  6397. toolType: 0,
  6398. askCount: 1,
  6399. askTitle: "",
  6400. askJson: [
  6401. {
  6402. askstitle: "",
  6403. askItem: 1,
  6404. checkList: [],
  6405. },
  6406. ],
  6407. },
  6408. ],
  6409. toolArray: [],
  6410. isShowTools: false,
  6411. askCount: 1,
  6412. isFold: 0,
  6413. askTitle: "",
  6414. askJson: [
  6415. {
  6416. askstitle: "",
  6417. askItem: 1,
  6418. checkList: [],
  6419. },
  6420. ],
  6421. checkJson: [
  6422. {
  6423. checkCount: [],
  6424. checkPerent: [],
  6425. },
  6426. ],
  6427. homeworkList: [],
  6428. },
  6429. ],
  6430. itemCount: 1,
  6431. fileList1: [],
  6432. video: [],
  6433. testData: [],
  6434. pData: [],
  6435. templateArray: [],
  6436. },
  6437. ],
  6438. });
  6439. this.addindex = this.unitJson.length - 1;
  6440. setTimeout(() => {
  6441. this.unitIndex = this.unitJson.length - 1;
  6442. this.unitSet(this.unitIndex);
  6443. }, 0);
  6444. },
  6445. addToolFun(tool) {
  6446. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6447. // itemTaskIndex
  6448. // ].toolChoose.push({
  6449. // tool: [],
  6450. // toolDetail: "",
  6451. // toolType: 0,
  6452. // askCount: 1,
  6453. // askTitle: "",
  6454. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6455. // });
  6456. if (tool == 15) {
  6457. this.tableJson.text = "";
  6458. this.dialogVisible8 = true;
  6459. } else if (tool == 48) {
  6460. this.tableJson.text = "";
  6461. this.dialogVisibleTable1 = true;
  6462. } else if (tool == 52) {
  6463. this.tableJson.text = "";
  6464. this.dialogVisibleText = true;
  6465. } else if (tool == 51) {
  6466. this.addSourceFunD(this.taskCount);
  6467. } else if (tool == 56) {
  6468. this.askJson = {
  6469. askCount: 1,
  6470. askTitle: "",
  6471. askJson: [
  6472. {
  6473. askstitle: "",
  6474. askItem: 1,
  6475. checkList: [],
  6476. },
  6477. ],
  6478. };
  6479. this.dialogVisibleVote = true;
  6480. } else {
  6481. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6482. this.taskCount
  6483. ].toolArray.push({
  6484. tool: tool,
  6485. toolDetail: "",
  6486. toolPhoto: "",
  6487. toolEdit: false,
  6488. toolId: this.guid(),
  6489. });
  6490. this.$forceUpdate();
  6491. this.dialogVisibleTool = false;
  6492. if (tool == 1 || tool == 3 || tool == 6) {
  6493. setTimeout(() => {
  6494. this.openToolFun(
  6495. tool,
  6496. this.taskCount,
  6497. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6498. this.taskCount
  6499. ].toolArray.length - 1
  6500. );
  6501. }, 500);
  6502. } else if (tool == 53 || tool == 54 || tool == 55) {
  6503. setTimeout(() => {
  6504. this.addImg(
  6505. document.getElementById(
  6506. this.taskCount.toString() +
  6507. "-" +
  6508. (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6509. this.taskCount
  6510. ].toolArray.length -
  6511. 1)
  6512. )
  6513. );
  6514. }, 500);
  6515. }
  6516. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  6517. }
  6518. },
  6519. addToolFunD(itemTaskIndex) {
  6520. this.taskCount = itemTaskIndex;
  6521. this.dialogVisibleTool = true;
  6522. },
  6523. addSourceFunD(itemTaskIndex) {
  6524. this.sourcesData = [];
  6525. this.proVisible = false;
  6526. this.progress = 0;
  6527. this.inputShow = true;
  6528. this.taskCount = itemTaskIndex;
  6529. this.dialogVisibleSource = true;
  6530. },
  6531. setChapterIndex(itemTool, index) {
  6532. if(itemTool.toolData[index].type == 12){
  6533. this.downloadFile2(itemTool.toolData[index])
  6534. return;
  6535. }
  6536. itemTool.sourceIndex = index;
  6537. this.setVHeight();
  6538. this.$forceUpdate();
  6539. },
  6540. setVHeight() {
  6541. this.$nextTick(function () {
  6542. setTimeout(() => {
  6543. let task = this.unitJson[this.unitIndex].chapterInfo[0].taskJson;
  6544. for (var j = 0; j < task.length; j++) {
  6545. let tool = task[j].toolArray;
  6546. for (var z = 0; z < tool.length; z++) {
  6547. let _tool = tool[z];
  6548. if (_tool.tool == 51) {
  6549. let ci = 0
  6550. for(var li = 0;li<_tool.toolData.length;li++){
  6551. if(_tool.toolData[li].type != 12){
  6552. ci++
  6553. }
  6554. }
  6555. if(ci == 0){
  6556. _tool.isNoFile = true;
  6557. document.getElementsByClassName(
  6558. "vedioList" + j + z
  6559. )[0].style.height = 650 + "px";
  6560. document.getElementsByClassName(
  6561. "vedioList" + j + z
  6562. )[0].style.width = "100%";
  6563. }else{
  6564. _tool.isNoFile = false;
  6565. var a = document.getElementsByClassName("box_course" + j + z)[0] ? document.getElementsByClassName("box_course" + j + z)[0]
  6566. .offsetHeight : 650;
  6567. document.getElementsByClassName(
  6568. "vedioList" + j + z
  6569. )[0].style.height = a + "px";
  6570. document.getElementsByClassName(
  6571. "vedioList" + j + z
  6572. )[0].style.width = "calc(100% - 83%)";
  6573. }
  6574. this.$forceUpdate();
  6575. }
  6576. }
  6577. }
  6578. }, 0);
  6579. });
  6580. },
  6581. addSourceData() {
  6582. if (!this.sourcesData.length) {
  6583. this.$message.error("请上传资源");
  6584. return;
  6585. }
  6586. let ic = 0
  6587. for(let i = 0; i < this.sourcesData.length; i++){
  6588. if(this.sourcesData[i].type != 12){
  6589. ic = i
  6590. break;
  6591. }
  6592. }
  6593. if (this.editSourceType == 1) {
  6594. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6595. this.taskCount
  6596. ].toolArray.push({
  6597. tool: 51,
  6598. toolDetail: "",
  6599. toolPhoto: "",
  6600. toolEdit: false,
  6601. toolId: this.guid(),
  6602. toolData: JSON.parse(JSON.stringify(this.sourcesData)),
  6603. sourceIndex: ic,
  6604. });
  6605. } else {
  6606. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6607. this.taskCount
  6608. ].toolArray[this.toolIndex].toolData = JSON.parse(
  6609. JSON.stringify(this.sourcesData)
  6610. );
  6611. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6612. this.taskCount
  6613. ].toolArray[this.toolIndex].sourceIndex = ic;
  6614. }
  6615. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  6616. this.editSourceType = 1;
  6617. this.sourcesData = [];
  6618. this.dialogVisibleSource = false;
  6619. this.dialogVisibleTool = false;
  6620. this.setVHeight();
  6621. },
  6622. openToolFun(tool, taskCount, i) {
  6623. this.taskCount = taskCount;
  6624. this.toolIndex = i;
  6625. if (tool == 48) {
  6626. const array =
  6627. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  6628. .toolArray[i].toolPhoto;
  6629. let txt = "";
  6630. if (array.length) {
  6631. txt = JSON.parse(JSON.stringify(array[0].content));
  6632. }
  6633. // for (var l = 0; l < array.length; l++) {
  6634. // let _uid = array[l].userid
  6635. // if (_uid == this.userid) {
  6636. // txt = JSON.parse(JSON.stringify(array[l].content))
  6637. // break;
  6638. // }
  6639. // }
  6640. this.tableJson.text = txt
  6641. ? JSON.parse(txt)
  6642. : this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  6643. .toolArray[i].table
  6644. ? JSON.parse(
  6645. JSON.stringify(
  6646. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  6647. .toolArray[i].table
  6648. )
  6649. )
  6650. : "";
  6651. // this.tableJson.text = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].table ? JSON.parse(JSON.stringify(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].table)) : ''
  6652. this.dialogVisibleTable = true;
  6653. } else if (tool == 15) {
  6654. this.answerQ = JSON.parse(
  6655. JSON.stringify(
  6656. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  6657. .toolArray[i].answerQ
  6658. )
  6659. );
  6660. this.answerDialogVisible = true;
  6661. } else if (tool == 52) {
  6662. const array =
  6663. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  6664. .toolArray[i].toolPhoto;
  6665. let txt = "";
  6666. if (array.length) {
  6667. txt = JSON.parse(JSON.stringify(array[0].content));
  6668. }
  6669. // for (var l = 0; l < array.length; l++) {
  6670. // let _uid = array[l].userid
  6671. // if (_uid == this.userid) {
  6672. // txt = JSON.parse(JSON.stringify(array[l].content))
  6673. // break;
  6674. // }
  6675. // }
  6676. this.tableJson.text = txt
  6677. ? JSON.parse(txt)
  6678. : JSON.parse(
  6679. JSON.stringify(
  6680. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  6681. .toolArray[i].text
  6682. )
  6683. );
  6684. this.dialogVisibleText3 = true;
  6685. } else if (tool == 56) {
  6686. const array =
  6687. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  6688. .toolArray[i].toolPhoto;
  6689. let txt = JSON.stringify([]);
  6690. for (var l = 0; l < array.length; l++) {
  6691. let _uid = array[l].userid;
  6692. if (_uid == this.userid) {
  6693. txt = JSON.parse(JSON.stringify(array[l].content));
  6694. break;
  6695. }
  6696. }
  6697. this.radio = JSON.parse(txt);
  6698. this.askJson = JSON.parse(
  6699. JSON.stringify(
  6700. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  6701. .toolArray[i].askJson
  6702. )
  6703. );
  6704. this.dialogVisibleVote2 = true;
  6705. } else {
  6706. window.parent.postMessage(
  6707. {
  6708. tools: tool + "s",
  6709. cid: this.cid,
  6710. stage: this.unitIndex,
  6711. task: taskCount,
  6712. tool: i,
  6713. },
  6714. "*"
  6715. );
  6716. if (tool == 1 || tool == 3 || tool == 6) {
  6717. this.setPeople(this.unitIndex, taskCount, this.userid);
  6718. }
  6719. }
  6720. },
  6721. previewImg(url) {
  6722. this.$hevueImgPreview(url);
  6723. },
  6724. scrollChange() {
  6725. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  6726. },
  6727. openTable(content) {
  6728. this.tableJson.text = JSON.parse(content);
  6729. this.dialogVisibleTable2 = true;
  6730. },
  6731. addTaskBorder() {
  6732. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  6733. task: "",
  6734. people: "",
  6735. time: "",
  6736. taskDetail: "",
  6737. chapterData: [],
  6738. toolText: "",
  6739. toolChoose: [
  6740. {
  6741. tool: [],
  6742. toolDetail: "",
  6743. toolType: 0,
  6744. askCount: 1,
  6745. askTitle: "",
  6746. askJson: [
  6747. {
  6748. askstitle: "",
  6749. askItem: 1,
  6750. checkList: [],
  6751. },
  6752. ],
  6753. },
  6754. ],
  6755. toolArray: [],
  6756. isShowTools: false,
  6757. askCount: 1,
  6758. isFold: 0,
  6759. askTitle: "",
  6760. askJson: [
  6761. {
  6762. askstitle: "",
  6763. askItem: 1,
  6764. checkList: [],
  6765. },
  6766. ],
  6767. checkJson: [
  6768. {
  6769. checkCount: [],
  6770. checkPerent: [],
  6771. },
  6772. ],
  6773. homeworkList: [],
  6774. });
  6775. },
  6776. add(e, i) {
  6777. var el = e.currentTarget;
  6778. el.getElementsByTagName("input")[0].click();
  6779. },
  6780. fold(i, e, type) {
  6781. var a = e.currentTarget.parentElement.parentElement;
  6782. var b = e.currentTarget.parentElement;
  6783. if (type == 1) {
  6784. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  6785. a.className += " smallTaskBorder";
  6786. b.className += " funBlockTop";
  6787. } else {
  6788. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  6789. a.className = "taskBorder";
  6790. b.className = "funBlock";
  6791. }
  6792. console.log(e);
  6793. },
  6794. deleteHomeworkBox(unitIndex, index, i) {
  6795. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  6796. this.taskCount
  6797. ].homeworkList.splice(i, 1);
  6798. },
  6799. getStudent() {
  6800. let params = {
  6801. oid: this.oid,
  6802. cu: "",
  6803. cn: this.searchPeople,
  6804. };
  6805. this.ajax
  6806. .get(this.$store.state.api + "selectStudentAdd", params)
  6807. .then((res) => {
  6808. this.studentJuri = res.data[0];
  6809. })
  6810. .catch((err) => {
  6811. this.isLoading = false;
  6812. console.error(err);
  6813. });
  6814. },
  6815. onPlayerPlay() {},
  6816. getTeacher() {
  6817. let params = {
  6818. org:
  6819. this.org && this.org != "undefined" && this.org != "null"
  6820. ? this.org
  6821. : "",
  6822. oid: this.oid,
  6823. cu: "",
  6824. cn: this.searchTN,
  6825. page: this.page,
  6826. pageSize: this.pageSize,
  6827. };
  6828. this.ajax
  6829. .get(
  6830. this.$store.state.api +
  6831. (this.org && this.org != "undefined" && this.org != "null"
  6832. ? "selectUserByOidS2"
  6833. : "selectUserByOidS2"),
  6834. params
  6835. )
  6836. .then((res) => {
  6837. let teacherJuri = res.data[0];
  6838. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  6839. this.teacherJuri2 = JSON.parse(JSON.stringify(res.data[0]));
  6840. for (var i = 0; i < teacherJuri.length; i++) {
  6841. if (teacherJuri[i].userid == this.userid) {
  6842. teacherJuri.splice(i, 1);
  6843. break;
  6844. }
  6845. }
  6846. this.teacherJuri = teacherJuri;
  6847. })
  6848. .catch((err) => {
  6849. console.error(err);
  6850. });
  6851. },
  6852. setMan() {
  6853. let _unitJosn = this.unitJson;
  6854. // let teacherJuri = this.teacherJuri2;
  6855. this.ManAarray = [];
  6856. if (this.checkboxList3.indexOf(this.courseUserid) != -1) {
  6857. this.checkboxList3.splice(
  6858. this.checkboxList3.indexOf(this.courseUserid),
  6859. 1
  6860. );
  6861. }
  6862. let array = JSON.parse(JSON.stringify(this.checkboxList3));
  6863. if (array.indexOf(this.courseUserid || this.userid) == -1) {
  6864. array.push(this.courseUserid || this.userid);
  6865. }
  6866. for (var i = 0; i < _unitJosn.length; i++) {
  6867. let _chapter = _unitJosn[i].chapterInfo[0].taskJson;
  6868. for (var j = 0; j < _chapter.length; j++) {
  6869. let _task = _chapter[j];
  6870. if (array.indexOf(_task.people) == -1) {
  6871. _task.people = "";
  6872. }
  6873. if (_task.tcMember && _task.tcMember.length) {
  6874. let _tc = _task.tcMember;
  6875. let _tc2 = [];
  6876. for (var k = 0; k < _tc.length; k++) {
  6877. if (array.indexOf(_tc[k]) != -1) {
  6878. _tc2.push(_tc[k]);
  6879. }
  6880. }
  6881. _task.tcMember = _tc2;
  6882. }
  6883. }
  6884. }
  6885. let params = {
  6886. uid: array.join(","),
  6887. };
  6888. this.ajax
  6889. .get(this.$store.state.api + "getAllUserById", params)
  6890. .then((res) => {
  6891. let teacherJuri = res.data[0];
  6892. this.ManAarray = teacherJuri;
  6893. })
  6894. .catch((err) => {
  6895. console.error(err);
  6896. });
  6897. },
  6898. searchStudent() {
  6899. this.getStudent();
  6900. },
  6901. //获取班级列表
  6902. getClass() {
  6903. let params = {
  6904. oid: this.oid,
  6905. };
  6906. this.ajax
  6907. .get(this.$store.state.api + "selectClassBySchool", params)
  6908. .then((res) => {
  6909. this.grade = res.data[0];
  6910. })
  6911. .catch((err) => {
  6912. this.isLoading = false;
  6913. console.error(err);
  6914. });
  6915. },
  6916. getChapterData(e, i, j, ic, type) {
  6917. e.stopPropagation();
  6918. this.updataC = true;
  6919. this.icc = ic;
  6920. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6921. console.log("还不能下载图片喔");
  6922. }
  6923. },
  6924. getChapterData2(e, ic, type) {
  6925. e.stopPropagation();
  6926. this.updataC = true;
  6927. this.icc = ic;
  6928. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6929. console.log("还不能下载图片喔");
  6930. }
  6931. },
  6932. deleteChapterData(e, i, j, ic, taskI) {
  6933. e.stopPropagation();
  6934. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  6935. },
  6936. deleteChapterData2(e, ic) {
  6937. e.stopPropagation();
  6938. this.sourcesData.splice(ic, 1);
  6939. },
  6940. updataVideoT(e, i, j, ic) {
  6941. e.stopPropagation();
  6942. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  6943. ic
  6944. ].name = e.target.value;
  6945. },
  6946. updataVideoT2(e, ic) {
  6947. e.stopPropagation();
  6948. this.sourcesData[ic].name = e.target.value;
  6949. },
  6950. upCd(e, i, j, ic) {
  6951. e.stopPropagation();
  6952. if (ic == 0) {
  6953. return;
  6954. }
  6955. var a =
  6956. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  6957. ic - 1
  6958. ];
  6959. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  6960. ic - 1
  6961. ] =
  6962. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  6963. ic
  6964. ];
  6965. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  6966. a;
  6967. },
  6968. downCd(e, i, j, ic) {
  6969. e.stopPropagation();
  6970. if (
  6971. ic ==
  6972. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData
  6973. .length -
  6974. 1
  6975. ) {
  6976. return;
  6977. }
  6978. var a =
  6979. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  6980. ic + 1
  6981. ];
  6982. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  6983. ic + 1
  6984. ] =
  6985. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  6986. ic
  6987. ];
  6988. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  6989. a;
  6990. },
  6991. upCd2(e, ic) {
  6992. e.stopPropagation();
  6993. if (ic == 0) {
  6994. return;
  6995. }
  6996. var a = this.sourcesData[ic - 1];
  6997. this.sourcesData[ic - 1] = this.sourcesData[ic];
  6998. this.sourcesData[ic] = a;
  6999. this.$forceUpdate();
  7000. },
  7001. downCd2(e, ic) {
  7002. e.stopPropagation();
  7003. if (ic == this.sourcesData.length - 1) {
  7004. return;
  7005. }
  7006. var a = this.sourcesData[ic + 1];
  7007. this.sourcesData[ic + 1] = this.sourcesData[ic];
  7008. this.sourcesData[ic] = a;
  7009. this.$forceUpdate();
  7010. },
  7011. addWork() {
  7012. let cPan = 1;
  7013. for (var i = 0; i < this.unitJson.length; i++) {
  7014. for (
  7015. var j = 0;
  7016. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  7017. j++
  7018. ) {
  7019. if (
  7020. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  7021. ) {
  7022. for (
  7023. var z = 0;
  7024. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  7025. z++
  7026. ) {
  7027. if (
  7028. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  7029. .length
  7030. ) {
  7031. this.$message.error("请把工具添加完整");
  7032. cPan = 2;
  7033. break;
  7034. }
  7035. }
  7036. }
  7037. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  7038. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  7039. i
  7040. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  7041. return ele.value != "";
  7042. });
  7043. }
  7044. }
  7045. }
  7046. if (cPan == 2) {
  7047. if (this.steps != 3) {
  7048. this.steps--;
  7049. }
  7050. return;
  7051. }
  7052. for (var i = 0; i < this.unitJson.length; i++) {
  7053. delete this.unitJson[i].isUpdate;
  7054. }
  7055. let params = [
  7056. {
  7057. uid: this.userid,
  7058. title: this.courseName.replace(/%/g, "%25"),
  7059. brief: this.courseText.replace(/%/g, "%25"),
  7060. cover:
  7061. this.cover.length > 0
  7062. ? JSON.stringify(this.cover)
  7063. : JSON.stringify([
  7064. {
  7065. name: "noBanner.jpg",
  7066. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  7067. uid: 1656409780264,
  7068. status: "success",
  7069. },
  7070. ]),
  7071. evaId: this.evalua,
  7072. astudent:
  7073. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  7074. see: this.isTeacherSee == true ? 1 : 0,
  7075. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  7076. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  7077. courseType: JSON.stringify(this.courseTypeId),
  7078. ateacher:
  7079. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  7080. },
  7081. ];
  7082. this.ajax
  7083. .post(this.$store.state.api + "addCourseWorkNew22", params)
  7084. .then((res) => {
  7085. console.log(this.steps);
  7086. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  7087. this.$message({
  7088. message: "新增成功",
  7089. type: "success",
  7090. });
  7091. }
  7092. this.number = res.data.ordernumber;
  7093. this.courseId = res.data.courseId;
  7094. this.cid = res.data.courseId;
  7095. this.courseUserid = this.userid;
  7096. this.islogin = true;
  7097. this.selectCourseDetail();
  7098. })
  7099. .catch((err) => {
  7100. this.$message.error("网络不佳");
  7101. console.error(err);
  7102. });
  7103. },
  7104. goCourse() {
  7105. window.parent.postMessage(
  7106. {
  7107. cid: this.courseId,
  7108. type: "1",
  7109. },
  7110. "*"
  7111. );
  7112. },
  7113. updateWork2() {
  7114. let _unitIndex = this.unitIndex;
  7115. let cPan = 1;
  7116. for (
  7117. var j = 0;
  7118. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  7119. j++
  7120. ) {
  7121. // if (
  7122. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].task
  7123. // ) {
  7124. // this.$message.error("请填写任务名称");
  7125. // cPan = 2
  7126. // break;
  7127. // }
  7128. // if (
  7129. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].people
  7130. // ) {
  7131. // this.$message.error("请填写负责人");
  7132. // cPan = 2
  7133. // break;
  7134. // }
  7135. // if (
  7136. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].time
  7137. // ) {
  7138. // this.$message.error("请填写任务起止时间");
  7139. // cPan = 2
  7140. // break;
  7141. // }
  7142. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  7143. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  7144. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  7145. (ele) => {
  7146. return ele.value != "";
  7147. }
  7148. );
  7149. }
  7150. }
  7151. if (cPan == 2) {
  7152. if (this.steps != 3) {
  7153. if (this.type == 2 && this.steps == 5) {
  7154. this.steps == 3;
  7155. } else {
  7156. this.steps--;
  7157. }
  7158. }
  7159. return;
  7160. }
  7161. let params = [
  7162. {
  7163. cid: this.cid,
  7164. chapters: JSON.stringify(this.unitJson),
  7165. uid: this.userid,
  7166. unitIndex: _unitIndex,
  7167. },
  7168. ];
  7169. this.ajax
  7170. .post(this.$store.state.api + "updateStudentWorkNew4", params)
  7171. .then((res) => {
  7172. if (
  7173. this.steps != 1 &&
  7174. this.steps != 2 &&
  7175. this.steps != 3 &&
  7176. this.steps != 4
  7177. ) {
  7178. this.$message({
  7179. message: "修改成功",
  7180. type: "success",
  7181. });
  7182. }
  7183. this.courseId = this.cid;
  7184. })
  7185. .catch((err) => {
  7186. this.$message.error("网络不佳");
  7187. console.error(err);
  7188. });
  7189. },
  7190. updateWork() {
  7191. let cPan = 1;
  7192. for (var i = 0; i < this.unitJson.length; i++) {
  7193. for (
  7194. var j = 0;
  7195. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  7196. j++
  7197. ) {
  7198. // if (
  7199. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  7200. // ) {
  7201. // this.$message.error("请填写任务名称");
  7202. // cPan = 2
  7203. // break;
  7204. // }
  7205. // if (
  7206. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  7207. // ) {
  7208. // this.$message.error("请填写负责人");
  7209. // cPan = 2
  7210. // break;
  7211. // }
  7212. // if (
  7213. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  7214. // ) {
  7215. // this.$message.error("请填写任务起止时间");
  7216. // cPan = 2
  7217. // break;
  7218. // }
  7219. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  7220. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  7221. i
  7222. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  7223. return ele.value != "";
  7224. });
  7225. }
  7226. }
  7227. }
  7228. if (cPan == 2) {
  7229. if (this.steps != 3) {
  7230. this.steps--;
  7231. }
  7232. return;
  7233. }
  7234. for (var i = 0; i < this.unitJson.length; i++) {
  7235. delete this.unitJson[i].isUpdate;
  7236. }
  7237. let params = [
  7238. {
  7239. cid: this.cid,
  7240. title: this.courseName.replace(/%/g, "%25"),
  7241. brief: this.courseText.replace(/%/g, "%25"),
  7242. cover:
  7243. this.cover.length > 0
  7244. ? JSON.stringify(this.cover)
  7245. : JSON.stringify([
  7246. {
  7247. name: "noBanner.jpg",
  7248. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  7249. uid: 1656409780264,
  7250. status: "success",
  7251. },
  7252. ]),
  7253. evaId: this.evalua,
  7254. astudent:
  7255. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  7256. see: this.isTeacherSee == true ? 1 : 0,
  7257. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  7258. template: this.myWord != "undefined" ? this.myWord : [],
  7259. uid: this.userid,
  7260. courseType: JSON.stringify(this.courseTypeId),
  7261. ateacher:
  7262. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  7263. },
  7264. ];
  7265. this.ajax
  7266. .post(this.$store.state.api + "updateStudentWorkNew22", params)
  7267. .then((res) => {
  7268. if (
  7269. this.steps != 1 &&
  7270. this.steps != 2 &&
  7271. this.steps != 3 &&
  7272. this.steps != 4
  7273. ) {
  7274. if (this.cidttt == 1) {
  7275. this.$message({
  7276. message: "修改成功",
  7277. type: "success",
  7278. });
  7279. } else {
  7280. this.$message({
  7281. message: "新增成功",
  7282. type: "success",
  7283. });
  7284. }
  7285. }
  7286. this.checkboxListPeople = JSON.parse(
  7287. JSON.stringify(this.checkboxList3)
  7288. );
  7289. this.number = this.nbOrder;
  7290. this.courseId = this.cid;
  7291. })
  7292. .catch((err) => {
  7293. this.$message.error("网络不佳");
  7294. console.error(err);
  7295. });
  7296. },
  7297. guid() {
  7298. var _num,
  7299. i,
  7300. _guid = "";
  7301. for (i = 0; i < 32; i++) {
  7302. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  7303. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  7304. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  7305. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  7306. _guid += "-";
  7307. }
  7308. }
  7309. return _guid;
  7310. },
  7311. insertWord() {
  7312. this.dialogVisible1 = true;
  7313. this.updateBoolean2 = false;
  7314. this.tTitle = "";
  7315. this.tdetail = "";
  7316. },
  7317. addWord() {
  7318. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  7319. name: this.tTitle,
  7320. content: this.tdetail,
  7321. uid: this.guid(),
  7322. });
  7323. this.dialogVisible1 = false;
  7324. },
  7325. upWord() {},
  7326. selectWord(uid, i, c) {
  7327. this.dialogVisible1 = true;
  7328. this.updateBoolean2 = true;
  7329. if (
  7330. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  7331. ) {
  7332. this.tTitle =
  7333. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  7334. this.tdetail =
  7335. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  7336. }
  7337. },
  7338. isAddPP() {
  7339. if (this.checkboxList.length > 0) {
  7340. this.$message({
  7341. message: "添加成功",
  7342. type: "success",
  7343. });
  7344. this.dialogVisible3 = false;
  7345. } else {
  7346. this.$message({
  7347. message: "请添加项目成员",
  7348. type: "error",
  7349. });
  7350. }
  7351. },
  7352. isAddClass() {
  7353. this.dialogVisibleClass = false;
  7354. },
  7355. isAddPPTeacher() {
  7356. this.dialogVisibleMember = false;
  7357. // let array = JSON.parse(JSON.stringify(this.checkboxList3))
  7358. // if (array.indexOf(this.courseUserid || this.userid) == -1) {
  7359. // array.push(this.courseUserid || this.userid)
  7360. // }
  7361. this.setMan();
  7362. },
  7363. isAddPPTcTeacher() {
  7364. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7365. this.taskCount
  7366. ].tcMember = this.tcMember;
  7367. this.dialogVisibleTcMember = false;
  7368. },
  7369. addTcMember(index) {
  7370. this.taskCount = index;
  7371. // this.searchTN = ""
  7372. let tcMember = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7373. index
  7374. ].tcMember
  7375. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember
  7376. : [];
  7377. const people =
  7378. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].people;
  7379. let ManAarray = JSON.parse(JSON.stringify(this.ManAarray));
  7380. for (var i = 0; i < ManAarray.length; i++) {
  7381. if (ManAarray[i].userid === people) {
  7382. ManAarray.splice(i, 1);
  7383. }
  7384. }
  7385. this.tcMember = tcMember;
  7386. this.ManAarray2 = ManAarray;
  7387. // this.getTeacher();
  7388. this.dialogVisibleTcMember = true;
  7389. },
  7390. peopleChange(people, index) {
  7391. let tcMember = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7392. index
  7393. ].tcMember
  7394. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember
  7395. : [];
  7396. if (tcMember.indexOf(people) != -1) {
  7397. tcMember.splice(tcMember.indexOf(people), 1);
  7398. }
  7399. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember =
  7400. tcMember;
  7401. },
  7402. getTemplate() {
  7403. let params = {
  7404. oid: this.oid,
  7405. };
  7406. this.ajax
  7407. .get(this.$store.state.api + "getCourseTemplateTs", params)
  7408. .then((res) => {
  7409. this.templateArray = res.data[0];
  7410. this.getTemplateOrg();
  7411. this.$forceUpdate();
  7412. })
  7413. .catch((err) => {});
  7414. },
  7415. getTemplateOrg() {
  7416. let params = {
  7417. oid: this.org,
  7418. };
  7419. this.ajax
  7420. .get(this.$store.state.api + "getCourseTemplateTs", params)
  7421. .then((res) => {
  7422. if (res.data[0].length) {
  7423. let ta = res.data[0].filter(el => {
  7424. return el.oid
  7425. });
  7426. this.templateArray = [...ta, ...this.templateArray];
  7427. this.templateArray = this.templateArray.sort(function(a, b) {
  7428. return b.create_at < a.create_at? -1 : 1
  7429. })
  7430. }
  7431. this.$forceUpdate();
  7432. })
  7433. .catch((err) => { });
  7434. },
  7435. clearChoose() {
  7436. this.clearArray.splice(this.templateC.id, 1);
  7437. this.dialogVisible2 = false;
  7438. },
  7439. clearAttText() {
  7440. this.AttText = {
  7441. title: "",
  7442. text: "",
  7443. };
  7444. this.dialogVisible6 = false;
  7445. },
  7446. clearLine() {
  7447. this.line = "";
  7448. this.dialogVisible7 = false;
  7449. },
  7450. checkTemplate(res) {
  7451. let _this = this;
  7452. _this
  7453. .$confirm("确定选择此模板吗?", "提示", {
  7454. confirmButtonText: "确定",
  7455. cancelButtonText: "取消",
  7456. type: "warning",
  7457. })
  7458. .then(() => {
  7459. _this.unitJson = JSON.parse(res.chapters);
  7460. _this.steps++;
  7461. setTimeout(() => {
  7462. this.checkEva(this.checkId);
  7463. }, 1000);
  7464. })
  7465. .catch(() => {
  7466. return;
  7467. });
  7468. },
  7469. checkTemplate1(w) {
  7470. this.steps++;
  7471. },
  7472. checkTemplate2() {
  7473. let _this = this;
  7474. _this
  7475. .$confirm("确定选择空模板吗?", "提示", {
  7476. confirmButtonText: "确定",
  7477. cancelButtonText: "取消",
  7478. type: "warning",
  7479. })
  7480. .then(() => {
  7481. _this.unitJson = [
  7482. {
  7483. dyName: "", //单元标题
  7484. chapterInfo: [
  7485. {
  7486. isread: false,
  7487. chapterid: this.guid(),
  7488. title: "",
  7489. courseName: "",
  7490. taskJson: [
  7491. {
  7492. task: "",
  7493. people: "",
  7494. time: "",
  7495. taskDetail: "",
  7496. chapterData: [],
  7497. toolText: "",
  7498. toolChoose: [
  7499. {
  7500. tool: [],
  7501. toolDetail: "",
  7502. toolType: 0,
  7503. askCount: 1,
  7504. askTitle: "",
  7505. askJson: [
  7506. {
  7507. askstitle: "",
  7508. askItem: 1,
  7509. checkList: [],
  7510. },
  7511. ],
  7512. },
  7513. ],
  7514. toolArray: [],
  7515. isShowTools: false,
  7516. askCount: 1,
  7517. isFold: 0,
  7518. askTitle: "",
  7519. askJson: [
  7520. {
  7521. askstitle: "",
  7522. askItem: 1,
  7523. checkList: [],
  7524. },
  7525. ],
  7526. checkJson: [
  7527. {
  7528. checkCount: [],
  7529. checkPerent: [],
  7530. },
  7531. ],
  7532. homeworkList: [],
  7533. },
  7534. ],
  7535. itemCount: 1,
  7536. fileList1: [],
  7537. video: [],
  7538. testData: [],
  7539. pData: [],
  7540. templateArray: [],
  7541. },
  7542. ],
  7543. },
  7544. ];
  7545. this.steps++;
  7546. })
  7547. .catch(() => {
  7548. return;
  7549. });
  7550. },
  7551. wordNext() {
  7552. this.dialogVisible2 = false;
  7553. },
  7554. isAddOrUpdateAttText() {
  7555. if (this.AttTextType == 0) {
  7556. this.addAttTextMessage();
  7557. } else {
  7558. this.updateAttText();
  7559. }
  7560. },
  7561. isAddOrUpdateLine() {
  7562. if (!this.lineTitle) {
  7563. this.$message.error("请填写链接标题");
  7564. return;
  7565. }
  7566. if (this.lineType == 0) {
  7567. this.addLine();
  7568. } else {
  7569. this.updateLine();
  7570. }
  7571. },
  7572. addAttTextMessage() {
  7573. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7574. // this.taskCount
  7575. // ].chapterData.push({
  7576. // name: this.AttText.title,
  7577. // url: this.AttText.text,
  7578. // type: 6,
  7579. // });
  7580. // this.imgChange1(null, null, 6, this.taskCount);
  7581. // this.dialogVisible6 = false;
  7582. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].toolArray.push({
  7583. // tool: 51,
  7584. // toolDetail: "",
  7585. // toolPhoto: "",
  7586. // toolEdit: false,
  7587. // toolId: this.guid(),
  7588. // toolData: {
  7589. // name: this.AttText.title,
  7590. // url: this.AttText.text,
  7591. // type: 6,
  7592. // }
  7593. // });
  7594. this.sourcesData.push({
  7595. name: this.AttText.title,
  7596. url: this.AttText.text,
  7597. type: 6,
  7598. });
  7599. this.dialogVisible6 = false;
  7600. // this.dialogVisibleSource = false;
  7601. },
  7602. selectAttText(itemTaskIndex, i) {
  7603. this.AttText.title =
  7604. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7605. itemTaskIndex
  7606. ].chapterData[i].name;
  7607. this.AttText.text =
  7608. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7609. itemTaskIndex
  7610. ].chapterData[i].url;
  7611. this.taskCount = itemTaskIndex;
  7612. this.AttTextIndex = i;
  7613. this.AttTextType = 1;
  7614. this.dialogVisible6 = true;
  7615. },
  7616. selectAttText2(i) {
  7617. this.AttText.title = this.sourcesData[i].name;
  7618. this.AttText.text = this.sourcesData[i].url;
  7619. this.AttTextIndex = i;
  7620. this.AttTextType = 1;
  7621. this.dialogVisible6 = true;
  7622. },
  7623. updateAttText() {
  7624. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7625. // this.taskCount
  7626. // ].chapterData[this.AttTextIndex].name = this.AttText.title;
  7627. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7628. // this.taskCount
  7629. // ].chapterData[this.AttTextIndex].url = this.AttText.text;
  7630. this.sourcesData[this.AttTextIndex].name = this.AttText.title;
  7631. this.sourcesData[this.AttTextIndex].url = this.AttText.text;
  7632. this.dialogVisible6 = false;
  7633. },
  7634. addLine() {
  7635. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7636. // this.lineCount
  7637. // ].chapterData.push({
  7638. // name: "链接",
  7639. // title: this.lineTitle,
  7640. // url: this.line,
  7641. // type: 8,
  7642. // });
  7643. // this.imgChange1(null, null, 8, this.lineCount);
  7644. // this.dialogVisible7 = false;
  7645. let src = "";
  7646. if (
  7647. this.line.indexOf("https://") == -1 &&
  7648. this.line.indexOf("http://") == -1
  7649. ) {
  7650. src = "https://" + this.line;
  7651. } else {
  7652. src = this.line;
  7653. }
  7654. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].toolArray.push({
  7655. // tool: 51,
  7656. // toolDetail: "",
  7657. // toolPhoto: "",
  7658. // toolEdit: false,
  7659. // toolId: this.guid(),
  7660. // toolData: {
  7661. // name: "链接",
  7662. // // title: this.lineTitle,
  7663. // url: this.line,
  7664. // src: src,
  7665. // type: 8,
  7666. // }
  7667. // });
  7668. this.sourcesData.push({
  7669. name: "链接",
  7670. title: this.lineTitle,
  7671. url: this.line,
  7672. src: src,
  7673. type: 8,
  7674. });
  7675. this.dialogVisible7 = false;
  7676. // this.dialogVisibleSource = false;
  7677. },
  7678. selectLine(itemTaskIndex, i) {
  7679. this.line =
  7680. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7681. itemTaskIndex
  7682. ].chapterData[i].url;
  7683. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7684. itemTaskIndex
  7685. ].chapterData[i].title
  7686. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7687. .chapterData[i].title
  7688. : "";
  7689. this.taskCount = itemTaskIndex;
  7690. this.lineCount = i;
  7691. this.lineType = 1;
  7692. this.dialogVisible7 = true;
  7693. },
  7694. selectLine2(i) {
  7695. this.line = this.sourcesData[i].url;
  7696. this.lineTitle = this.sourcesData[i].title
  7697. ? this.sourcesData[i].title
  7698. : "";
  7699. this.lineCount = i;
  7700. this.lineType = 1;
  7701. this.dialogVisible7 = true;
  7702. },
  7703. updateLine() {
  7704. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7705. // this.taskCount
  7706. // ].chapterData[this.lineCount].url = this.line;
  7707. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7708. // this.taskCount
  7709. // ].chapterData[this.lineCount].title = this.lineTitle;
  7710. if (!this.lineTitle) {
  7711. this.$message.error("请填写链接标题");
  7712. return;
  7713. }
  7714. this.sourcesData[this.lineCount].url = this.line;
  7715. this.sourcesData[this.lineCount].title = this.lineTitle;
  7716. this.dialogVisible7 = false;
  7717. },
  7718. addPP() {
  7719. this.dialogVisible3 = true;
  7720. },
  7721. goTo(path) {
  7722. this.$router.push(path);
  7723. },
  7724. openTools(itemTaskIndex, i, toolIndex) {
  7725. this.toolIndex = toolIndex;
  7726. this.taskCount = itemTaskIndex;
  7727. if (i == 4) {
  7728. if (toolIndex == null) {
  7729. var a =
  7730. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7731. .chapterData;
  7732. for (var i = 0; i < a.length; i++) {
  7733. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  7734. this.askJson =
  7735. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7736. itemTaskIndex
  7737. ].chapterData[i].askJson;
  7738. }
  7739. }
  7740. } else {
  7741. this.askJson = JSON.parse(
  7742. JSON.stringify(
  7743. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7744. itemTaskIndex
  7745. ].toolChoose[toolIndex]
  7746. )
  7747. );
  7748. }
  7749. this.dialogVisible5 = true;
  7750. } else if (i == 45) {
  7751. if (
  7752. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7753. .toolChoose[toolIndex].testJson
  7754. ) {
  7755. this.testJson = JSON.parse(
  7756. JSON.stringify(
  7757. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7758. itemTaskIndex
  7759. ].toolChoose[toolIndex].testJson
  7760. )
  7761. );
  7762. } else {
  7763. var testJson = {
  7764. testCount: 1,
  7765. testTitle: "",
  7766. testJson: [
  7767. {
  7768. teststitle: "",
  7769. testItem: 1,
  7770. checkList: [],
  7771. answer: [],
  7772. type: "1",
  7773. },
  7774. ],
  7775. };
  7776. this.testJson = testJson;
  7777. }
  7778. this.dialogVisibleChoice = true;
  7779. } else if (i == 47) {
  7780. if (
  7781. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7782. .toolChoose[toolIndex].sentenceList
  7783. ) {
  7784. this.sentenceList = JSON.parse(
  7785. JSON.stringify(
  7786. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7787. itemTaskIndex
  7788. ].toolChoose[toolIndex].sentenceList
  7789. )
  7790. );
  7791. } else {
  7792. var sentenceList = [
  7793. {
  7794. sentenceTitle: "",
  7795. addSentence: [],
  7796. rightAnswer: [],
  7797. },
  7798. ];
  7799. this.sentenceList = sentenceList;
  7800. }
  7801. this.dialogVisibleSentence = true;
  7802. } else if (i == 48) {
  7803. if (
  7804. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7805. .toolChoose[toolIndex].tableJson
  7806. ) {
  7807. this.tableJson = JSON.parse(
  7808. JSON.stringify(
  7809. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7810. itemTaskIndex
  7811. ].toolChoose[toolIndex].tableJson
  7812. )
  7813. );
  7814. } else {
  7815. var tableJson = {
  7816. text: "",
  7817. };
  7818. this.tableJson = tableJson;
  7819. }
  7820. this.dialogVisibleTable = true;
  7821. } else if (i == 49) {
  7822. if (
  7823. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7824. .toolChoose[toolIndex].groupJson
  7825. ) {
  7826. this.groupJson = JSON.parse(
  7827. JSON.stringify(
  7828. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7829. itemTaskIndex
  7830. ].toolChoose[toolIndex].groupJson
  7831. )
  7832. );
  7833. } else {
  7834. var groupJson = {
  7835. group: [
  7836. {
  7837. name: "第1组",
  7838. },
  7839. ],
  7840. number: undefined,
  7841. islock: 1,
  7842. };
  7843. this.groupJson = groupJson;
  7844. }
  7845. this.dialogVisibleGroup = true;
  7846. } else if (i == 15) {
  7847. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7848. itemTaskIndex
  7849. ].toolChoose[toolIndex].answerQ
  7850. ? JSON.parse(
  7851. JSON.stringify(
  7852. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7853. itemTaskIndex
  7854. ].toolChoose[toolIndex].answerQ
  7855. )
  7856. )
  7857. : "";
  7858. this.dialogVisible8 = true;
  7859. } else if (i == 40) {
  7860. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7861. itemTaskIndex
  7862. ].toolChoose[toolIndex].rateJson
  7863. ? JSON.parse(
  7864. JSON.stringify(
  7865. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7866. itemTaskIndex
  7867. ].toolChoose[toolIndex].rateJson
  7868. )
  7869. )
  7870. : [
  7871. {
  7872. detail: "",
  7873. score: 5,
  7874. value: "",
  7875. },
  7876. ]; //{detail:"",score:5,value:""}
  7877. this.selectSteps = 1;
  7878. this.dialogVisibleRate = true;
  7879. } else if (i == 42) {
  7880. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7881. itemTaskIndex
  7882. ].toolChoose[toolIndex].answerQ
  7883. ? JSON.parse(
  7884. JSON.stringify(
  7885. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7886. itemTaskIndex
  7887. ].toolChoose[toolIndex].answerQ
  7888. )
  7889. )
  7890. : "";
  7891. this.dialogVisibleMp3 = true;
  7892. } else if (i == 41) {
  7893. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7894. itemTaskIndex
  7895. ].toolChoose[toolIndex].selectJson
  7896. ? JSON.parse(
  7897. JSON.stringify(
  7898. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7899. itemTaskIndex
  7900. ].toolChoose[toolIndex].selectJson
  7901. )
  7902. )
  7903. : {
  7904. url: "",
  7905. select: [],
  7906. answer: [],
  7907. };
  7908. this.selectSteps = 1;
  7909. this.dialogVisibleSelect = true;
  7910. }
  7911. },
  7912. chapAddTools(i) {
  7913. if (this.chapTools[0].tools.length == 0) {
  7914. this.chapTools[0].tools.push(i);
  7915. } else {
  7916. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7917. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7918. } else {
  7919. this.chapTools[0].tools.push(i);
  7920. }
  7921. }
  7922. this.$forceUpdate();
  7923. },
  7924. addChaptersDataTools() {
  7925. if (this.chapTools[0].tools.indexOf(4) != -1) {
  7926. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7927. this.chapCount
  7928. ].chapterData.push({
  7929. name: this.chapTools[0].toolDetail,
  7930. url: this.chapTools[0].tools,
  7931. type: 7,
  7932. askJson: this.askJson,
  7933. });
  7934. } else {
  7935. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7936. this.chapCount
  7937. ].chapterData.push({
  7938. name: this.chapTools[0].toolDetail,
  7939. url: this.chapTools[0].tools,
  7940. type: 7,
  7941. });
  7942. }
  7943. this.imgChange1(null, null, 7, this.chapCount);
  7944. this.dialogVisible4 = false;
  7945. },
  7946. addTools(i, itemTaskIndex, toolIndex) {
  7947. // if (
  7948. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7949. // .toolChoose[toolIndex].tool.length == 0
  7950. // ) {
  7951. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7952. // itemTaskIndex
  7953. // ].toolChoose[toolIndex].tool.push(i);
  7954. // } else {
  7955. // if (
  7956. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7957. // itemTaskIndex
  7958. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7959. // ) {
  7960. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7961. // itemTaskIndex
  7962. // ].toolChoose[toolIndex].tool.splice(
  7963. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7964. // itemTaskIndex
  7965. // ].toolChoose[toolIndex].tool.indexOf(i),
  7966. // 1
  7967. // );
  7968. // } else {
  7969. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7970. // itemTaskIndex
  7971. // ].toolChoose[toolIndex].tool.push(i);
  7972. // }
  7973. // console.log(
  7974. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7975. // .toolChoose[toolIndex].tool
  7976. // );
  7977. // }
  7978. if (i == 4) {
  7979. if (
  7980. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7981. .toolChoose[toolIndex].askJson.askTitle == "" ||
  7982. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7983. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  7984. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7985. .toolChoose[toolIndex].askJson[0].checkList < 2
  7986. ) {
  7987. this.openTools(itemTaskIndex, 4, toolIndex);
  7988. // this.$message({
  7989. // message: "请填写完整问卷内容",
  7990. // type: "error",
  7991. // });
  7992. return;
  7993. }
  7994. }
  7995. if (i == 45) {
  7996. if (
  7997. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7998. .toolChoose[toolIndex].testJson ||
  7999. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8000. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  8001. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8002. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  8003. ) {
  8004. this.openTools(itemTaskIndex, 45, toolIndex);
  8005. // this.$message({
  8006. // message: "请填写完整问卷内容",
  8007. // type: "error",
  8008. // });
  8009. return;
  8010. }
  8011. }
  8012. if (i == 47) {
  8013. if (
  8014. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8015. .toolChoose[toolIndex].sentenceList ||
  8016. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8017. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  8018. ) {
  8019. this.openTools(itemTaskIndex, 47, toolIndex);
  8020. return;
  8021. }
  8022. }
  8023. if (i == 48) {
  8024. if (
  8025. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8026. .toolChoose[toolIndex].tableJson
  8027. ) {
  8028. this.openTools(itemTaskIndex, 48, toolIndex);
  8029. return;
  8030. }
  8031. }
  8032. if (i == 49) {
  8033. if (
  8034. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8035. .toolChoose[toolIndex].groupJson
  8036. ) {
  8037. this.openTools(itemTaskIndex, 49, toolIndex);
  8038. return;
  8039. }
  8040. }
  8041. if (i == 15) {
  8042. if (
  8043. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8044. .toolChoose[toolIndex].answerQ ||
  8045. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8046. .toolChoose[toolIndex].answerQ == ""
  8047. ) {
  8048. this.openTools(itemTaskIndex, 15, toolIndex);
  8049. // this.$message({
  8050. // message: "请填写问答内容",
  8051. // type: "error",
  8052. // });
  8053. return;
  8054. }
  8055. }
  8056. if (i == 40) {
  8057. if (
  8058. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8059. .toolChoose[toolIndex].rateJson ||
  8060. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8061. .toolChoose[toolIndex].rateJson.length
  8062. ) {
  8063. this.openTools(itemTaskIndex, 40, toolIndex);
  8064. return;
  8065. }
  8066. }
  8067. if (i == 41) {
  8068. if (
  8069. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8070. .toolChoose[toolIndex].selectJson ||
  8071. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8072. .toolChoose[toolIndex].selectJson.url == "" ||
  8073. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8074. .toolChoose[toolIndex].selectJson.select.length ||
  8075. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8076. .toolChoose[toolIndex].selectJson.answer.length
  8077. ) {
  8078. this.openTools(itemTaskIndex, 41, toolIndex);
  8079. return;
  8080. }
  8081. }
  8082. if (i == 42) {
  8083. if (
  8084. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8085. .toolChoose[toolIndex].answerQ ||
  8086. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8087. .toolChoose[toolIndex].answerQ == ""
  8088. ) {
  8089. this.openTools(itemTaskIndex, 42, toolIndex);
  8090. return;
  8091. }
  8092. }
  8093. if (
  8094. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8095. .toolChoose[toolIndex].tool.length > 0
  8096. ) {
  8097. if (
  8098. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8099. itemTaskIndex
  8100. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  8101. ) {
  8102. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8103. itemTaskIndex
  8104. ].toolChoose[toolIndex].tool.splice(
  8105. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8106. itemTaskIndex
  8107. ].toolChoose[toolIndex].tool.indexOf(i),
  8108. 1
  8109. );
  8110. } else {
  8111. // this.$message({
  8112. // message: "每个工具只能添加一个",
  8113. // type: "error",
  8114. // });
  8115. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8116. itemTaskIndex
  8117. ].toolChoose[toolIndex].tool = [];
  8118. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8119. itemTaskIndex
  8120. ].toolChoose[toolIndex].tool.push(i);
  8121. }
  8122. } else {
  8123. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8124. itemTaskIndex
  8125. ].toolChoose[toolIndex].tool.push(i);
  8126. }
  8127. this.$forceUpdate();
  8128. },
  8129. addAskList() {
  8130. this.askJson.askJson.push({
  8131. askstitle: "",
  8132. askItem: 1,
  8133. checkList: [],
  8134. });
  8135. this.askJson.askCount++;
  8136. },
  8137. addTestList() {
  8138. this.testJson.testJson.push({
  8139. teststitle: "",
  8140. testItem: 1,
  8141. checkList: [],
  8142. answer: [],
  8143. type: "1",
  8144. });
  8145. this.testJson.testCount++;
  8146. },
  8147. deleteAskList(index) {
  8148. this.askJson.askJson.splice(index, 1);
  8149. this.askJson.askCount--;
  8150. },
  8151. deleteTestList(index) {
  8152. this.testJson.testJson.splice(index, 1);
  8153. this.testJson.testCount--;
  8154. },
  8155. addcheckList(json) {
  8156. json.checkList.length++;
  8157. json.askItem++;
  8158. },
  8159. deletecheckList(json) {
  8160. json.checkList.length--;
  8161. json.askItem--;
  8162. },
  8163. addTcheckList(json) {
  8164. json.checkList.length++;
  8165. json.testItem++;
  8166. },
  8167. deleteTcheckList(json) {
  8168. json.checkList.length--;
  8169. json.testItem--;
  8170. },
  8171. checkTestType(type, json) {
  8172. json.type = type;
  8173. json.answer = [];
  8174. },
  8175. addSelectList(json) {
  8176. json.select.push("");
  8177. json.answer.push("");
  8178. },
  8179. deleteSelectList(json) {
  8180. // json.select.length--;
  8181. // json.answer.length--;
  8182. json.select.splice(json.select.length - 1, 1);
  8183. json.answer.splice(json.answer.length - 1, 1);
  8184. },
  8185. addAsk() {
  8186. if (this.askJson.askTitle === "") {
  8187. this.$message.error("标题不能为空!");
  8188. return;
  8189. }
  8190. var aj = this.askJson.askJson;
  8191. var b = 1;
  8192. for (var i = 0; i < aj.length; i++) {
  8193. if (aj[i].askstitle === "") {
  8194. var a = 1;
  8195. for (let index = 0; index < aj[i].askItem; index++) {
  8196. const element = aj[i].checkList[index]
  8197. ? aj[i].checkList[index]
  8198. : "";
  8199. if (element != "") {
  8200. b++;
  8201. this.$message.error("填写了选项,题目不能为空!");
  8202. return;
  8203. } else {
  8204. a++;
  8205. }
  8206. }
  8207. if (b == 1) {
  8208. this.$message.error("至少填写一个问题");
  8209. return;
  8210. }
  8211. } else if (aj[i].askstitle != "") {
  8212. for (let index = 0; index < aj[i].askItem; index++) {
  8213. const element = aj[i].checkList[index]
  8214. ? aj[i].checkList[index]
  8215. : "";
  8216. var index = 0;
  8217. for (var z = 0; z < aj[i].checkList.length; z++) {
  8218. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8219. if (checkC != "") {
  8220. index++;
  8221. } else {
  8222. this.$message.error("选项不能为空!");
  8223. return;
  8224. }
  8225. }
  8226. b++;
  8227. if (index < 2) {
  8228. this.$message.error("填写了的题目,选项至少要有两项!");
  8229. return;
  8230. }
  8231. }
  8232. }
  8233. }
  8234. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  8235. var elc = el.checkList.filter((element) => {
  8236. return element != "";
  8237. });
  8238. return el.askstitle != "" && elc.length != 0;
  8239. });
  8240. this.dialogVisibleTool = false;
  8241. this.dialogVisibleVote = false;
  8242. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8243. this.taskCount
  8244. ].toolArray.push({
  8245. tool: 56,
  8246. toolDetail: "",
  8247. toolPhoto: "",
  8248. toolEdit: false,
  8249. toolId: this.guid(),
  8250. askJson: JSON.parse(JSON.stringify(this.askJson)),
  8251. });
  8252. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  8253. },
  8254. addTest() {
  8255. // if (this.testJson.testTitle === "") {
  8256. // this.$message.error("标题不能为空!");
  8257. // return;
  8258. // }
  8259. var aj = this.testJson.testJson;
  8260. var b = 1;
  8261. for (var i = 0; i < aj.length; i++) {
  8262. if (aj[i].teststitle === "") {
  8263. var a = 1;
  8264. for (let index = 0; index < aj[i].testItem; index++) {
  8265. const element = aj[i].checkList[index]
  8266. ? aj[i].checkList[index]
  8267. : "";
  8268. if (element != "") {
  8269. b++;
  8270. this.$message.error("填写了选项,题目不能为空!");
  8271. return;
  8272. } else {
  8273. a++;
  8274. }
  8275. }
  8276. if (b == 1) {
  8277. this.$message.error("至少填写一个问题");
  8278. return;
  8279. }
  8280. } else if (aj[i].teststitle != "") {
  8281. for (let index = 0; index < aj[i].testItem; index++) {
  8282. const element = aj[i].checkList[index]
  8283. ? aj[i].checkList[index]
  8284. : "";
  8285. var index = 0;
  8286. for (var z = 0; z < aj[i].checkList.length; z++) {
  8287. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8288. if (checkC != "") {
  8289. index++;
  8290. } else {
  8291. this.$message.error("选项不能为空!");
  8292. return;
  8293. }
  8294. }
  8295. b++;
  8296. if (index < 2) {
  8297. this.$message.error("填写了的题目,选项至少要有两项!");
  8298. return;
  8299. }
  8300. if (
  8301. (aj[i].type == "2" && !aj[i].answer.length) ||
  8302. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  8303. ) {
  8304. this.$message.error("有题目未选择答案请选择答案");
  8305. return;
  8306. }
  8307. }
  8308. }
  8309. }
  8310. this.testJson.testJson = this.testJson.testJson.filter((el) => {
  8311. var elc = el.checkList.filter((element) => {
  8312. return element != "";
  8313. });
  8314. return el.teststitle != "" && elc.length != 0;
  8315. });
  8316. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8317. this.taskCount
  8318. ].toolChoose[this.toolIndex].testJson = this.testJson;
  8319. this.dialogVisibleChoice = false;
  8320. if (
  8321. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8322. .toolChoose[this.toolIndex].tool != 45
  8323. ) {
  8324. this.addTools(45, this.taskCount, this.toolIndex);
  8325. }
  8326. },
  8327. addAnswer() {
  8328. if (this.answerQ == "") {
  8329. this.$message.error("请输入您想要问的问题");
  8330. return;
  8331. }
  8332. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8333. // this.taskCount
  8334. // ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8335. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8336. this.taskCount
  8337. ].toolArray.push({
  8338. tool: 15,
  8339. toolDetail: "",
  8340. toolPhoto: "",
  8341. toolEdit: false,
  8342. toolId: this.guid(),
  8343. answerQ: this.answerQ,
  8344. });
  8345. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  8346. this.$forceUpdate();
  8347. this.dialogVisibleTool = false;
  8348. this.dialogVisible8 = false;
  8349. // if (
  8350. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8351. // .toolChoose[this.toolIndex].tool != 15
  8352. // ) {
  8353. // this.addTools(15, this.taskCount, this.toolIndex);
  8354. // }
  8355. },
  8356. addText() {
  8357. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8358. this.$message.error("请填写信息!");
  8359. return;
  8360. }
  8361. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8362. this.taskCount
  8363. ].toolArray.push({
  8364. tool: 52,
  8365. toolDetail: "",
  8366. toolPhoto: "",
  8367. toolEdit: false,
  8368. toolId: this.guid(),
  8369. text: this.tableJson.text,
  8370. });
  8371. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  8372. this.$forceUpdate();
  8373. this.dialogVisibleTool = false;
  8374. this.dialogVisibleText = false;
  8375. setTimeout(() => {
  8376. // this.openToolFun(52, this.taskCount, this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8377. // this.taskCount
  8378. // ].toolArray.length-1)
  8379. this.toolIndex =
  8380. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8381. .toolArray.length - 1;
  8382. this.addTextJson();
  8383. }, 500);
  8384. // if (
  8385. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8386. // .toolChoose[this.toolIndex].tool != 15
  8387. // ) {
  8388. // this.addTools(15, this.taskCount, this.toolIndex);
  8389. // }
  8390. },
  8391. addTable() {
  8392. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8393. this.$message.error("请填写信息!");
  8394. return;
  8395. }
  8396. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8397. this.taskCount
  8398. ].toolArray.push({
  8399. tool: 48,
  8400. toolDetail: "",
  8401. toolPhoto: "",
  8402. toolEdit: false,
  8403. toolId: this.guid(),
  8404. table: this.tableJson.text,
  8405. });
  8406. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  8407. this.$forceUpdate();
  8408. this.dialogVisibleTool = false;
  8409. this.dialogVisibleTable1 = false;
  8410. setTimeout(() => {
  8411. // this.openToolFun(48, this.taskCount, this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8412. // this.taskCount
  8413. // ].toolArray.length-1)
  8414. this.toolIndex =
  8415. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8416. .toolArray.length - 1;
  8417. this.addTableJson();
  8418. }, 500);
  8419. // if (
  8420. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8421. // .toolChoose[this.toolIndex].tool != 15
  8422. // ) {
  8423. // this.addTools(15, this.taskCount, this.toolIndex);
  8424. // }
  8425. },
  8426. addMp3Answer() {
  8427. if (this.answerQ == "") {
  8428. this.$message.error("请输入您想要回答的问题");
  8429. return;
  8430. }
  8431. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8432. this.taskCount
  8433. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8434. this.dialogVisibleMp3 = false;
  8435. },
  8436. addRateAnswer() {
  8437. var a = 1;
  8438. for (var i = 0; i < this.rateJson.length; i++) {
  8439. if (this.rateJson[i].value == "") {
  8440. a = 2;
  8441. break;
  8442. }
  8443. }
  8444. if (a == 2) {
  8445. this.$message.error("请把评价信息填写完整");
  8446. return;
  8447. }
  8448. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8449. this.taskCount
  8450. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  8451. this.dialogVisibleRate = false;
  8452. if (
  8453. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8454. .toolChoose[this.toolIndex].tool != 40
  8455. ) {
  8456. this.addTools(40, this.taskCount, this.toolIndex);
  8457. }
  8458. },
  8459. addSelectAnswer() {
  8460. if (this.selectJson.url == "") {
  8461. this.$message.error("请上传题目");
  8462. return;
  8463. }
  8464. if (!this.selectJson.select.length) {
  8465. this.$message.error("请添加选项");
  8466. return;
  8467. }
  8468. if (!this.selectJson.answer.length) {
  8469. this.$message.error("请设置答案");
  8470. return;
  8471. }
  8472. var a = 1;
  8473. for (var i = 0; i < this.selectJson.answer.length; i++) {
  8474. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  8475. a = 2;
  8476. }
  8477. }
  8478. if (a == 2) {
  8479. this.$message.error("请设置答案");
  8480. return;
  8481. }
  8482. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8483. this.taskCount
  8484. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  8485. this.dialogVisibleSelect = false;
  8486. if (
  8487. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8488. .toolChoose[this.toolIndex].tool != 41
  8489. ) {
  8490. this.addTools(41, this.taskCount, this.toolIndex);
  8491. }
  8492. },
  8493. nextSelectSteps() {
  8494. if (this.selectJson.url == "") {
  8495. this.$message.error("请上传题目");
  8496. return;
  8497. }
  8498. if (!this.selectJson.select.length) {
  8499. this.$message.error("请添加选项");
  8500. return;
  8501. }
  8502. var a = 1;
  8503. for (var i = 0; i < this.selectJson.select.length; i++) {
  8504. if (!this.selectJson.select[i]) {
  8505. a = 2;
  8506. }
  8507. }
  8508. if (a == 2) {
  8509. this.$message.error("添加的选项不能为空");
  8510. return;
  8511. }
  8512. this.selectSteps++;
  8513. },
  8514. selectCourseDetail() {
  8515. if (this.cid == "" || this.cid == undefined) {
  8516. console.log("这是新增项目");
  8517. this.selectAllType();
  8518. this.cidttt = 0;
  8519. } else {
  8520. this.cidType = 1;
  8521. let params = {
  8522. cid: this.cid,
  8523. };
  8524. this.ajax
  8525. .get(this.$store.state.api + "select_student_course_detail2", params)
  8526. .then((res) => {
  8527. this.loading = true;
  8528. this.unitJson = JSON.parse(res.data[0][0].chapters);
  8529. for (var j in this.unitJson) {
  8530. for (var i in this.unitJson[j].chapterInfo) {
  8531. this.unitJson[j].chapterInfo[i].taskJson[
  8532. this.taskCount
  8533. ].toolChoose = this.unitJson[j].chapterInfo[i].taskJson[
  8534. this.taskCount
  8535. ].toolChoose
  8536. ? this.unitJson[j].chapterInfo[i].taskJson[this.taskCount]
  8537. .toolChoose
  8538. : [];
  8539. for (var k in this.unitJson[j].chapterInfo[i].taskJson) {
  8540. let _chapterData = [];
  8541. for (var c in this.unitJson[j].chapterInfo[i].taskJson[k]
  8542. .chapterData) {
  8543. if (
  8544. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[c]
  8545. ) {
  8546. _chapterData.push(
  8547. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[
  8548. c
  8549. ]
  8550. );
  8551. }
  8552. }
  8553. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData =
  8554. _chapterData;
  8555. let _task = this.unitJson[j].chapterInfo[i].taskJson[k].toolArray
  8556. for(var _tool = 0;_tool<_task.length;_tool++){
  8557. delete _task[_tool].proVisible
  8558. }
  8559. }
  8560. }
  8561. }
  8562. this.courseName = res.data[0][0].title;
  8563. this.courseText = res.data[0][0].brief;
  8564. this.evalua = res.data[0][0].evaId;
  8565. this.cover = JSON.parse(res.data[0][0].cover);
  8566. this.noneBtnImg = this.cover.length >= 1;
  8567. // this.checkboxList =
  8568. // res.data[0][0].course_student.length > 0
  8569. // ? JSON.parse(res.data[0][0].course_student)
  8570. // : [];
  8571. this.checkboxList2 = res.data[0][0].juri
  8572. ? res.data[0][0].juri.split(",")
  8573. : [];
  8574. this.checkboxList3 = res.data[0][0].course_teacher
  8575. ? res.data[0][0].course_teacher.split(",")
  8576. : [];
  8577. this.checkboxListPeople = res.data[0][0].course_teacher
  8578. ? res.data[0][0].course_teacher.split(",")
  8579. : [];
  8580. // this.isTeacherSee =
  8581. // res.data[0][0].is_teacher_look == 0 ? true : false;
  8582. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  8583. this.myWord = res.data[0][0].template;
  8584. this.templateC.id = "123";
  8585. this.courseUserid = res.data[0][0].userid;
  8586. this.nbOrder = res.data[0][0].ordernumber;
  8587. if (res.data[1].length) {
  8588. this.courseTypeId = [];
  8589. for (var i = 0; i < res.data[1].length; i++) {
  8590. this.courseTypeId.push(res.data[1][i].typeid);
  8591. }
  8592. }
  8593. console.log(this.courseTypeId);
  8594. // if (this.timer) clearInterval(this.timer);
  8595. if (this.timer) clearTimeout(this.timer);
  8596. this.timer = null;
  8597. // this.timer = setInterval(() => {
  8598. this.seleteCourseUpdate();
  8599. this.setMan();
  8600. this.selectAllType();
  8601. // }, 5000);
  8602. this.$forceUpdate();
  8603. setTimeout(() => {
  8604. this.checkEva(this.evalua);
  8605. }, 0);
  8606. })
  8607. .catch((err) => {
  8608. console.error(err);
  8609. });
  8610. }
  8611. },
  8612. seleteCourseUpdate() {
  8613. let params = {
  8614. cid: this.cid,
  8615. };
  8616. this.ajax
  8617. .get(this.$store.state.api + "select_student_course_detail", params)
  8618. .then((res) => {
  8619. console.log(res.data[2]);
  8620. let unitJson = this.unitJson;
  8621. let works = res.data[2];
  8622. for (var i = 0; i < unitJson.length; i++) {
  8623. let task = unitJson[i].chapterInfo[0].taskJson;
  8624. for (var j = 0; j < task.length; j++) {
  8625. var tool = task[j].toolArray;
  8626. for (var z = 0; z < tool.length; z++) {
  8627. let _tool = tool[z];
  8628. _tool.toolPhoto = [];
  8629. _tool.people = [];
  8630. this.checkJson[z] = [];
  8631. let checkPeople = 0;
  8632. for (var k = 0; k < works.length; k++) {
  8633. let _work = works[k];
  8634. if (
  8635. _work.stage == i &&
  8636. _work.task == j &&
  8637. _work.tool == z &&
  8638. _work.atool == _tool.tool
  8639. ) {
  8640. if (_tool.tool == 48 || _tool.tool == 52) {
  8641. _tool.toolPhoto[0] = _work;
  8642. if (_tool.people.indexOf(_work.username) == -1) {
  8643. _tool.people.push(_work.username);
  8644. }
  8645. } else {
  8646. _tool.toolPhoto.push(_work);
  8647. }
  8648. if (_tool.tool == 56) {
  8649. checkPeople++;
  8650. var checkL = JSON.parse(_work.content);
  8651. for (var kz = 0; kz < checkL.length; kz++) {
  8652. if (!this.checkJson[z][kz]) {
  8653. this.checkJson[z].push({
  8654. checkCount: [],
  8655. checkPerson: [],
  8656. rightPerson: [],
  8657. });
  8658. }
  8659. if (!this.checkJson[z][kz].checkCount.length) {
  8660. this.checkJson[z][kz].checkCount = [];
  8661. let _askItemCount = _tool.askJson.askJson[kz].askItem;
  8662. for (var aic = 0; aic < _askItemCount; aic++) {
  8663. this.checkJson[z][kz].checkCount.push(0);
  8664. }
  8665. }
  8666. this.checkJson[z][kz].checkPerson[parseInt(checkL[kz])]
  8667. ? this.checkJson[z][kz].checkPerson[
  8668. parseInt(checkL[kz])
  8669. ].push(_work.username)
  8670. : (this.checkJson[z][kz].checkPerson[
  8671. parseInt(checkL[kz])
  8672. ] = [_work.username]);
  8673. this.checkJson[z][kz].checkCount[parseInt(checkL[kz])]
  8674. ? this.checkJson[z][kz].checkCount[
  8675. parseInt(checkL[kz])
  8676. ]++
  8677. : (this.checkJson[z][kz].checkCount[
  8678. parseInt(checkL[kz])
  8679. ] = 1);
  8680. }
  8681. }
  8682. }
  8683. }
  8684. for (var kz = 0; kz < this.checkJson[z].length; kz++) {
  8685. this.checkJson[z][kz].checkPerent = [];
  8686. let aaaa = this.checkJson[z][kz];
  8687. console.log(aaaa);
  8688. for (
  8689. var kc = 0;
  8690. kc < this.checkJson[z][kz].checkCount.length;
  8691. kc++
  8692. ) {
  8693. this.checkJson[z][kz].checkPerent.push(
  8694. Math.round(
  8695. (this.checkJson[z][kz].checkCount[kc] / checkPeople) *
  8696. 100
  8697. )
  8698. );
  8699. }
  8700. }
  8701. }
  8702. }
  8703. }
  8704. this.$forceUpdate();
  8705. let unitJson2 = JSON.parse(res.data[0][0].chapters);
  8706. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  8707. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  8708. let _unitJson = [];
  8709. let _chapAarry = [];
  8710. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  8711. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  8712. let index = 1;
  8713. let chapindex;
  8714. if (_unitJson2.length > unitJson2.length) {
  8715. for (let c = 0; c < _unitJson2.length; c++) {
  8716. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  8717. }
  8718. for (let j = 0; j < unitJson2.length; j++) {
  8719. let count = 0;
  8720. for (let k = 0; k < _unitJson2.length; k++) {
  8721. if (
  8722. unitJson2[j].chapterInfo[0].chapterid ==
  8723. _unitJson2[k].chapterInfo[0].chapterid
  8724. ) {
  8725. count++;
  8726. _chapAarry.splice(
  8727. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8728. 1
  8729. );
  8730. _unitJson.push(unitJson2[j]);
  8731. break;
  8732. }
  8733. }
  8734. // if(count === 0){
  8735. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8736. // }
  8737. }
  8738. for (let k = 0; k < _unitJson2.length; k++) {
  8739. if (_unitJson2[k].isUpdate == 1) {
  8740. _chapAarry.splice(
  8741. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8742. 1
  8743. );
  8744. _unitJson.push(_unitJson2[k]);
  8745. }
  8746. }
  8747. console.log(_chapAarry);
  8748. for (let d = 0; d < _unitJson2.length; d++) {
  8749. if (
  8750. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  8751. ) {
  8752. if (_unitIndex == d) {
  8753. index = 2;
  8754. }
  8755. chapindex = d;
  8756. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8757. }
  8758. }
  8759. } else {
  8760. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  8761. }
  8762. for (let i = 0; i < unitJson2.length; i++) {
  8763. if (
  8764. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  8765. _unitJson[i].chapterInfo[0].chapterid !=
  8766. unitJson2[i].chapterInfo[0].chapterid
  8767. ) {
  8768. if (i == _unitJson.length - 1) {
  8769. // this.unitIndex++
  8770. _unitIndex2++;
  8771. }
  8772. _unitJson.splice(i, 0, unitJson2[i]);
  8773. } else if (i > _unitJson.length - 1) {
  8774. _unitJson.push(unitJson2[i]);
  8775. } else if (
  8776. _unitJson[i].chapterInfo[0].chapterid ==
  8777. unitJson2[i].chapterInfo[0].chapterid
  8778. ) {
  8779. _unitJson[i] = unitJson2[i];
  8780. }
  8781. // if (i == _unitIndex) {
  8782. // continue;
  8783. // } else
  8784. }
  8785. if (_chapAarry.length && index != 2) {
  8786. if (chapindex < _unitIndex) {
  8787. this.isDelete = 2;
  8788. // this.unitIndex--;
  8789. _unitIndex2--;
  8790. } else if (
  8791. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  8792. _unitJson[_unitIndex].chapterInfo[0].chapterid
  8793. ) {
  8794. this.isDelete = 2;
  8795. for (let n = 0; n < _unitJson.length; n++) {
  8796. if (
  8797. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  8798. _unitJson[n].chapterInfo[0].chapterid
  8799. ) {
  8800. // this.unitIndex = n;
  8801. _unitIndex2 = n;
  8802. _unitJson[n] = _unitJson2[_unitIndex];
  8803. break;
  8804. }
  8805. }
  8806. }
  8807. } else if (index != 2) {
  8808. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  8809. _unitJson2[_unitIndex];
  8810. for (
  8811. var ci = 0;
  8812. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  8813. ci++
  8814. ) {
  8815. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  8816. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  8817. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8818. .toolChoose
  8819. : [];
  8820. let _chapterData = [];
  8821. for (
  8822. var c = 0;
  8823. c <
  8824. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  8825. .length;
  8826. c++
  8827. ) {
  8828. if (
  8829. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8830. .chapterData[c]
  8831. ) {
  8832. _chapterData.push(
  8833. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8834. .chapterData[c]
  8835. );
  8836. }
  8837. }
  8838. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  8839. _chapterData;
  8840. }
  8841. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  8842. }
  8843. if (index == 1) {
  8844. this.unitJson = _unitJson;
  8845. this.$forceUpdate();
  8846. setTimeout(() => {
  8847. if (this.unitIndex != _unitIndex2) {
  8848. this.isDelete = 2;
  8849. this.unitIndex = _unitIndex2;
  8850. }
  8851. }, 0);
  8852. this.timer = setTimeout(() => {
  8853. this.seleteCourseUpdate();
  8854. }, 1000);
  8855. } else if (index == 2) {
  8856. let _this = this;
  8857. _this
  8858. .$confirm(
  8859. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  8860. "提示",
  8861. {
  8862. confirmButtonText: "需要",
  8863. cancelButtonText: "取消",
  8864. type: "warning",
  8865. }
  8866. )
  8867. .then(() => {
  8868. if (_this.time()) {
  8869. _this.restoreWork(
  8870. _chapAarry[0],
  8871. _unitJson,
  8872. chapindex,
  8873. _unitJson2,
  8874. _unitIndex2
  8875. );
  8876. }
  8877. })
  8878. .catch(() => {
  8879. _this.unitJson = _unitJson;
  8880. _this.$forceUpdate();
  8881. setTimeout(() => {
  8882. if (this.unitIndex != _unitIndex2) {
  8883. this.isDelete = 2;
  8884. this.unitIndex = _unitIndex2;
  8885. }
  8886. }, 0);
  8887. _this.timer = setTimeout(() => {
  8888. _this.seleteCourseUpdate();
  8889. }, 1000);
  8890. });
  8891. }
  8892. // this.$forceUpdate();
  8893. // if (this.timer) {
  8894. // clearTimeout(this.timer);
  8895. // this.timer = null;
  8896. // }
  8897. // this.timer = setTimeout(() => {
  8898. // this.seleteCourseUpdate();
  8899. // }, 1000);
  8900. })
  8901. .catch((err) => {
  8902. console.error(err);
  8903. });
  8904. },
  8905. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  8906. let params = [
  8907. {
  8908. cid: this.cid,
  8909. chapters: JSON.stringify(this.unitJson),
  8910. uid: this.userid,
  8911. chapid: chapid,
  8912. },
  8913. ];
  8914. this.ajax
  8915. .post(this.$store.state.api + "restoreStudentWork", params)
  8916. .then((res) => {
  8917. this.$message({
  8918. message: "恢复成功",
  8919. type: "success",
  8920. });
  8921. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  8922. this.unitJson = unitJson;
  8923. this.$forceUpdate();
  8924. setTimeout(() => {
  8925. if (this.unitIndex != unitIndex2) {
  8926. this.isDelete = 2;
  8927. this.unitIndex = unitIndex2;
  8928. }
  8929. }, 0);
  8930. this.timer = setTimeout(() => {
  8931. this.seleteCourseUpdate();
  8932. }, 1000);
  8933. })
  8934. .catch((err) => {
  8935. this.$message.error("网络不佳");
  8936. console.error(err);
  8937. });
  8938. },
  8939. getTypeName() {
  8940. console.log(this.courseTypeId);
  8941. this.$forceUpdate();
  8942. },
  8943. selectAllType() {
  8944. let params = {
  8945. org: this.org && this.org != "" ? this.org : "",
  8946. oid: this.oid && this.oid != "" ? this.oid : "",
  8947. };
  8948. this.ajax
  8949. .get(this.$store.state.api + "selectAllTypeS", params)
  8950. .then((res) => {
  8951. this.CourseType = res.data;
  8952. let _courseTypeId = [];
  8953. for (var i = 0; i < res.data[0].length; i++) {
  8954. if(res.data[0][i].id == "34629ce3-d02f-11ec-8c78-005056b86db5"){
  8955. res.data[0][i].name = "赛道";
  8956. }else if(res.data[0][i].id == "2f8beae3-d030-11ec-8c78-005056b86db5"){
  8957. res.data[0][i].name = "主题";
  8958. }
  8959. if (!this.cid) {
  8960. this.courseTypeId[res.data[0][i].id] = "";
  8961. }
  8962. this.CourseTypeJson[res.data[0][i].id] = [];
  8963. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  8964. if (res.data[0][i].name == "赛道") {
  8965. this.CourseType[0][i].name = "项目类型";
  8966. }
  8967. }
  8968. if (res.data[2].length == 0 && res.data[3].length == 0) {
  8969. if(this.org == '150e3120-9195-11ed-b13d-005056b86db5'){
  8970. for (var j = 0; j < res.data[1].length; j++) {
  8971. if (
  8972. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  8973. _courseTypeId.indexOf(res.data[1][j].id) == -1
  8974. ) {
  8975. _courseTypeId.push(res.data[1][j].id);
  8976. }
  8977. if (res.data[0][i].id == res.data[1][j].pid) {
  8978. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8979. }
  8980. }
  8981. }else{
  8982. this.CourseType = []
  8983. }
  8984. } else {
  8985. if (res.data[2].length > 0) {
  8986. for (var j = 0; j < res.data[2].length; j++) {
  8987. if (
  8988. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  8989. _courseTypeId.indexOf(res.data[2][j].id) == -1
  8990. ) {
  8991. _courseTypeId.push(res.data[2][j].id);
  8992. }
  8993. if (res.data[0][i].id == res.data[2][j].pid) {
  8994. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  8995. }
  8996. }
  8997. }
  8998. if (res.data[3].length > 0) {
  8999. for (var j = 0; j < res.data[3].length; j++) {
  9000. if (
  9001. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  9002. _courseTypeId.indexOf(res.data[3][j].id) == -1
  9003. ) {
  9004. _courseTypeId.push(res.data[3][j].id);
  9005. }
  9006. if (res.data[0][i].id == res.data[3][j].pid) {
  9007. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  9008. }
  9009. }
  9010. }
  9011. }
  9012. }
  9013. this.courseTypeId = _courseTypeId;
  9014. })
  9015. .catch((err) => {
  9016. console.error(err);
  9017. });
  9018. },
  9019. selectType() {
  9020. this.ajax
  9021. .get(this.$store.state.api + "selectStudentType")
  9022. .then((res) => {
  9023. this.CourseType = res.data;
  9024. for (var i = 0; i < res.data[0].length; i++) {
  9025. if (!this.cid) {
  9026. this.courseTypeId[res.data[0][i].id] = "";
  9027. }
  9028. for (var j = 0; j < res.data[1].length; j++) {
  9029. if (res.data[0][i].id == res.data[1][j].pid) {
  9030. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9031. this.CourseTypeJson[res.data[0][i].id] = [];
  9032. }
  9033. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9034. }
  9035. }
  9036. }
  9037. this.selectTypeByOid();
  9038. this.selectTypeByOrg();
  9039. })
  9040. .catch((err) => {
  9041. console.error(err);
  9042. });
  9043. },
  9044. selectTypeByOid() {
  9045. let params = {
  9046. oid: this.oid,
  9047. };
  9048. this.ajax
  9049. .get(this.$store.state.api + "selectStudentTypeByOid", params)
  9050. .then((res) => {
  9051. for (var i = 0; i < res.data[0].length; i++) {
  9052. for (var j = 0; j < res.data[1].length; j++) {
  9053. if (res.data[0][i].id == res.data[1][j].pid) {
  9054. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9055. this.CourseTypeJson[res.data[0][i].id] = [];
  9056. }
  9057. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9058. }
  9059. }
  9060. }
  9061. })
  9062. .catch((err) => {
  9063. console.error(err);
  9064. });
  9065. },
  9066. selectTypeByOrg() {
  9067. let params = {
  9068. oid: this.org,
  9069. };
  9070. this.ajax
  9071. .get(this.$store.state.api + "selectStudentTypeByOid", params)
  9072. .then((res) => {
  9073. for (var i = 0; i < res.data[0].length; i++) {
  9074. for (var j = 0; j < res.data[1].length; j++) {
  9075. if (res.data[0][i].id == res.data[1][j].pid) {
  9076. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9077. this.CourseTypeJson[res.data[0][i].id] = [];
  9078. }
  9079. this.CourseTypeJson[res.data[0][i].id].unshift(res.data[1][j]);
  9080. }
  9081. }
  9082. }
  9083. this.$forceUpdate();
  9084. })
  9085. .catch((err) => {
  9086. console.error(err);
  9087. });
  9088. },
  9089. OtherMb(type) {
  9090. this.typeMode = type;
  9091. setTimeout(() => {
  9092. this.checkEva(this.checkId);
  9093. }, 0);
  9094. },
  9095. checkEva(id) {
  9096. this.selectEva();
  9097. this.evalua = id;
  9098. this.checkId = id;
  9099. if (this.evalua != "") {
  9100. for (var i = 0; i < this.evaJuri.length; i++) {
  9101. if (this.evalua == this.evaJuri[i].id) {
  9102. this.eTitle = this.evaJuri[i].title;
  9103. this.eJson = JSON.parse(this.evaJuri[i].content);
  9104. }
  9105. }
  9106. this.data.data = [];
  9107. this.$forceUpdate();
  9108. setTimeout(() => {
  9109. this.setMindData();
  9110. }, 500);
  9111. }
  9112. },
  9113. selectEva() {
  9114. let params = {
  9115. oid: this.oid,
  9116. };
  9117. this.ajax
  9118. .get(this.$store.state.api + "selectAllEvaluation", params)
  9119. .then((res) => {
  9120. this.evaJuri = res.data[0];
  9121. })
  9122. .catch((err) => {
  9123. console.error(err);
  9124. });
  9125. },
  9126. setMindData() {
  9127. let targetArray = [];
  9128. this.data.data = [];
  9129. this.data.data.push({
  9130. id: "root",
  9131. isroot: true,
  9132. topic: this.eTitle,
  9133. });
  9134. let _eJson = Object.keys(this.eJson);
  9135. let _e = this.eJson;
  9136. for (let i = 0; i < _eJson.length; i++) {
  9137. let element = _e[_eJson[i]];
  9138. this.data.data.push({
  9139. id: element.id,
  9140. parentid: "root",
  9141. topic: element.name,
  9142. });
  9143. // targetArray.push({
  9144. // id: element.id,
  9145. // parentid: "root",
  9146. // name: element.name,
  9147. // });
  9148. targetArray.push({
  9149. value: element.name,
  9150. label: element.name,
  9151. children: [],
  9152. });
  9153. let _eJsonc = Object.keys(element.child);
  9154. let _e2 = element.child;
  9155. for (let j = 0; j < _eJsonc.length; j++) {
  9156. let _ec = _e2[_eJsonc[j]];
  9157. this.data.data.push({
  9158. id: _ec.id,
  9159. parentid: element.id,
  9160. topic: _ec.name,
  9161. });
  9162. // targetArray.push({
  9163. // id: _ec.id,
  9164. // parentid: element.id,
  9165. // name: _ec.name,
  9166. // });
  9167. targetArray[i].children.push({
  9168. value: _ec.name,
  9169. label: _ec.name,
  9170. children: [],
  9171. });
  9172. let _eJsonz = Object.keys(_ec.child);
  9173. let _e3 = _ec.child;
  9174. for (let z = 0; z < _eJsonz.length; z++) {
  9175. let _ez = _e3[_eJsonz[z]];
  9176. this.data.data.push({
  9177. id: _ez.id,
  9178. parentid: _ec.id,
  9179. topic: _ez.name,
  9180. });
  9181. // targetArray.push({
  9182. // id: _ez.id,
  9183. // parentid: _ec.id,
  9184. // name: _ez.name,
  9185. // });
  9186. targetArray[i].children[j].children.push({
  9187. value: _ez.name,
  9188. label: _ez.name,
  9189. });
  9190. }
  9191. }
  9192. }
  9193. this.targetArray = targetArray;
  9194. this.$forceUpdate();
  9195. },
  9196. /*添加评价 */
  9197. addEList(index, tIndex) {
  9198. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  9199. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  9200. value: "",
  9201. detail: "",
  9202. score: 5,
  9203. })
  9204. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  9205. {
  9206. value: "",
  9207. detail: "",
  9208. score: 5,
  9209. },
  9210. ]);
  9211. this.$forceUpdate();
  9212. },
  9213. forceUpdate() {
  9214. this.$forceUpdate();
  9215. },
  9216. deletEList(index, tIndex, eIndex) {
  9217. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  9218. eIndex,
  9219. 1
  9220. );
  9221. this.$forceUpdate();
  9222. },
  9223. getChoosePic(t) {
  9224. this.chooseType = t;
  9225. this.getAllBanner();
  9226. },
  9227. getAllBanner() {
  9228. this.sysPicVisible = true;
  9229. let params = {
  9230. t: this.chooseType,
  9231. };
  9232. this.ajax
  9233. .get(this.$store.state.api + "selectAllBanner", params)
  9234. .then((res) => {
  9235. this.sysPic = res.data[0];
  9236. })
  9237. .catch((err) => {
  9238. console.error(err);
  9239. });
  9240. },
  9241. deleteSysPic() {
  9242. this.cover = [];
  9243. this.isSysPic = false;
  9244. },
  9245. deleteSelectPic() {
  9246. this.selectJson.url = "";
  9247. },
  9248. setEListStar() {
  9249. this.$forceUpdate();
  9250. },
  9251. deletRateList(i) {
  9252. this.rateJson.splice(i, 1);
  9253. },
  9254. addRateList() {
  9255. this.rateJson.push({
  9256. detail: "",
  9257. score: 5,
  9258. value: "",
  9259. });
  9260. },
  9261. addSt() {
  9262. this.sentenceList.push({
  9263. sentenceTitle: "",
  9264. addSentence: [],
  9265. rightAnswer: [],
  9266. });
  9267. },
  9268. addSen(i) {
  9269. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  9270. // this.isPushTitleList.push(this.sentenceTitle);
  9271. this.sentenceList[i].sentenceTitle = "";
  9272. },
  9273. setRightAnswer(s, i, j) {
  9274. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  9275. this.sentenceList[i].rightAnswer.push(s);
  9276. }
  9277. },
  9278. returnCard(r, i, j) {
  9279. this.sentenceList[i].rightAnswer.splice(j, 1);
  9280. },
  9281. addSentenceTool() {
  9282. for (var i = 0; i < this.sentenceList.length; i++) {
  9283. if (this.sentenceList[i].rightAnswer.length == 0) {
  9284. this.$message.error("请将信息填写完整!");
  9285. return;
  9286. }
  9287. if (
  9288. this.sentenceList[i].addSentence.length !=
  9289. this.sentenceList[i].rightAnswer.length
  9290. ) {
  9291. this.$message.error("请将信息填写完整!");
  9292. return;
  9293. }
  9294. }
  9295. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9296. this.taskCount
  9297. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  9298. this.sentenceList = [
  9299. {
  9300. sentenceTitle: "",
  9301. addSentence: [],
  9302. rightAnswer: [],
  9303. },
  9304. ];
  9305. this.dialogVisibleSentence = false;
  9306. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9307. // itemTaskIndex
  9308. // ].toolChoose[toolIndex].tool = [];
  9309. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9310. // itemTaskIndex
  9311. // ].toolChoose[toolIndex].tool.push(i);
  9312. if (
  9313. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9314. .toolChoose[this.toolIndex].tool != 47
  9315. ) {
  9316. this.addTools(47, this.taskCount, this.toolIndex);
  9317. }
  9318. },
  9319. addTableJson() {
  9320. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  9321. this.$message.error("请填写信息!");
  9322. return;
  9323. }
  9324. let params = [
  9325. {
  9326. uid: this.userid,
  9327. cid: this.courseId,
  9328. stage: this.unitIndex,
  9329. task: this.taskCount,
  9330. tool: this.toolIndex,
  9331. content: JSON.stringify(this.tableJson.text).replaceAll(/%/g, "%25"),
  9332. type: 10,
  9333. atool: 48,
  9334. },
  9335. ];
  9336. this.ajax
  9337. .post(this.$store.state.api + "addCourseWorksS", params)
  9338. .then((res) => {
  9339. this.$message({
  9340. message: "提交成功",
  9341. type: "success",
  9342. });
  9343. this.seleteCourseUpdate();
  9344. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  9345. this.dialogVisibleTable = false;
  9346. })
  9347. .catch((err) => {
  9348. this.$message.error("提交失败");
  9349. console.error(err);
  9350. });
  9351. },
  9352. addStudentAsk() {
  9353. if (!this.radio.length) {
  9354. this.$message.error("请选择选项");
  9355. return;
  9356. }
  9357. for (var i = 0; i < this.askJson.askCount; i++) {
  9358. if (this.radio[i] !== 0 && !this.radio[i]) {
  9359. this.$message.error("请选择选项");
  9360. return;
  9361. }
  9362. }
  9363. let params = [
  9364. {
  9365. uid: this.userid,
  9366. cid: this.courseId,
  9367. stage: this.unitIndex,
  9368. task: this.taskCount,
  9369. tool: this.toolIndex,
  9370. content: JSON.stringify(this.radio),
  9371. type: 14,
  9372. atool: 56,
  9373. },
  9374. ];
  9375. this.ajax
  9376. .post(this.$store.state.api + "addCourseWorksS", params)
  9377. .then((res) => {
  9378. this.$message({
  9379. message: "提交成功",
  9380. type: "success",
  9381. });
  9382. this.radio = [];
  9383. this.seleteCourseUpdate();
  9384. this.dialogVisibleVote2 = false;
  9385. })
  9386. .catch((err) => {
  9387. this.$message.error("提交失败");
  9388. console.error(err);
  9389. });
  9390. },
  9391. addTextJson() {
  9392. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  9393. this.$message.error("请填写信息!");
  9394. return;
  9395. }
  9396. let params = [
  9397. {
  9398. uid: this.userid,
  9399. cid: this.courseId,
  9400. stage: this.unitIndex,
  9401. task: this.taskCount,
  9402. tool: this.toolIndex,
  9403. content: JSON.stringify(this.tableJson.text).replaceAll(/%/g, "%25"),
  9404. type: 12,
  9405. atool: 52,
  9406. },
  9407. ];
  9408. this.ajax
  9409. .post(this.$store.state.api + "addCourseWorksS", params)
  9410. .then((res) => {
  9411. this.$message({
  9412. message: "提交成功",
  9413. type: "success",
  9414. });
  9415. this.tableJson.text = "";
  9416. this.seleteCourseUpdate();
  9417. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  9418. this.dialogVisibleText3 = false;
  9419. })
  9420. .catch((err) => {
  9421. this.$message.error("提交失败");
  9422. console.error(err);
  9423. });
  9424. },
  9425. setPeople(i, task, uid) {
  9426. if (this.checkboxList3.indexOf(uid) == -1 && uid != this.courseUserid) {
  9427. this.checkboxList3.push(uid);
  9428. this.setMan();
  9429. }
  9430. // debugger
  9431. if (
  9432. this.unitJson[i].chapterInfo[0].taskJson[task].people != uid &&
  9433. (!this.unitJson[i].chapterInfo[0].taskJson[task].tcMember ||
  9434. this.unitJson[i].chapterInfo[0].taskJson[task].tcMember.indexOf(
  9435. uid
  9436. ) == -1)
  9437. ) {
  9438. this.unitJson[i].chapterInfo[0].taskJson[task].tcMember
  9439. ? this.unitJson[i].chapterInfo[0].taskJson[task].tcMember.push(uid)
  9440. : (this.unitJson[i].chapterInfo[0].taskJson[task].tcMember = [uid]);
  9441. }
  9442. this.$forceUpdate();
  9443. },
  9444. goToTask(i) {
  9445. document.getElementsByClassName("rightBox")[0].scrollTop =
  9446. document.getElementsByClassName("taskBorder")[i].offsetTop - 100;
  9447. this.isClickColor = i + 1;
  9448. },
  9449. taskMove(type, index) {
  9450. if (type == 1) {
  9451. if (index > 0) {
  9452. let a = JSON.parse(
  9453. JSON.stringify(
  9454. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  9455. )
  9456. );
  9457. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  9458. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9459. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9460. }
  9461. } else {
  9462. if (
  9463. index <
  9464. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  9465. ) {
  9466. let a = JSON.parse(
  9467. JSON.stringify(
  9468. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  9469. )
  9470. );
  9471. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  9472. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9473. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9474. }
  9475. }
  9476. this.$forceUpdate();
  9477. },
  9478. addGroup(i) {
  9479. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  9480. this.groupJson.group.push({
  9481. name: "第" + (this.groupJson.group.length + 1) + "组",
  9482. });
  9483. },
  9484. deleteGroup(i) {
  9485. this.groupJson.group.splice(i, 1);
  9486. },
  9487. addGroupJson() {
  9488. for (var i = 0; i < this.groupJson.group.length; i++) {
  9489. if (!this.groupJson.group[i].name) {
  9490. this.$message.error("请将信息填写完整!");
  9491. return;
  9492. }
  9493. }
  9494. if (!this.groupJson.number) {
  9495. this.$message.error("请将信息填写完整!");
  9496. return;
  9497. }
  9498. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9499. this.taskCount
  9500. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  9501. JSON.stringify(this.groupJson)
  9502. );
  9503. this.dialogVisibleGroup = false;
  9504. this.groupJson = {};
  9505. if (
  9506. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9507. .toolChoose[this.toolIndex].tool != 49
  9508. ) {
  9509. this.addTools(49, this.taskCount, this.toolIndex);
  9510. }
  9511. },
  9512. deleteWorks(id) {
  9513. this.$confirm("确定删除此作业吗?", "提示", {
  9514. confirmButtonText: "确定",
  9515. cancelButtonText: "取消",
  9516. type: "warning",
  9517. })
  9518. .then(() => {
  9519. let params = [
  9520. {
  9521. id: id,
  9522. },
  9523. ];
  9524. this.ajax
  9525. .post(this.$store.state.api + "deleteCourseWorkS", params)
  9526. .then((res) => {
  9527. this.$message({
  9528. message: "删除成功",
  9529. type: "success",
  9530. });
  9531. this.seleteCourseUpdate();
  9532. })
  9533. .catch((err) => {
  9534. this.$message.error("网络异常");
  9535. console.error(err);
  9536. });
  9537. })
  9538. .catch(() => {});
  9539. },
  9540. openLineS(url) {
  9541. window.open(url);
  9542. },
  9543. checkFileFull(type, url) {
  9544. this.fullDialogVisible = true;
  9545. this.fulltype = type;
  9546. this.fullUrl = url;
  9547. },
  9548. downloadFile(url) {
  9549. let _this = this;
  9550. let _url = "";
  9551. if (
  9552. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  9553. ) {
  9554. _url = url.split(
  9555. "https://view.officeapps.live.com/op/view.aspx?src="
  9556. )[1];
  9557. } else {
  9558. _url = url;
  9559. }
  9560. const x = new XMLHttpRequest();
  9561. x.open("GET", _url, true);
  9562. x.responseType = "blob";
  9563. const loading = _this.$loading.service({
  9564. background: "rgba(255, 255, 255, 0.7)",
  9565. target: document.body,
  9566. text:'文件加载中...'
  9567. });
  9568. // _this.$message.success("文件下载中...");
  9569. x.onload = function (e) {
  9570. loading.close();
  9571. // const url = window.URL.createObjectURL(x.response);
  9572. // const a = document.createElement("a");
  9573. // a.href = url;
  9574. // a.target = "_blank";
  9575. // a.download = url;
  9576. // a.click();
  9577. // a.remove();
  9578. let content = x.response;
  9579. let elink = document.createElement("a");
  9580. elink.download = decodeURI(
  9581. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  9582. );
  9583. elink.style.display = "none";
  9584. let blob = new Blob([content]);
  9585. elink.href = URL.createObjectURL(blob);
  9586. document.body.appendChild(elink);
  9587. elink.click();
  9588. document.body.removeChild(elink);
  9589. };
  9590. x.send();
  9591. },
  9592. editSourceUpadte(taskCount, index) {
  9593. this.taskCount = taskCount;
  9594. this.toolIndex = index;
  9595. this.editSourceType = 2;
  9596. this.sourcesData = JSON.parse(
  9597. JSON.stringify(
  9598. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  9599. .toolArray[index].toolData
  9600. )
  9601. );
  9602. this.proVisible = false;
  9603. this.progress = 0;
  9604. this.inputShow = true;
  9605. this.dialogVisibleSource = true;
  9606. },
  9607. addQuestion() {
  9608. let params = [
  9609. {
  9610. uid: this.userid,
  9611. cid: this.courseId,
  9612. stage: this.unitIndex,
  9613. task: this.taskCount,
  9614. tool: this.toolIndex,
  9615. content: this.questionAnswer.replaceAll(/%/g, "%25"),
  9616. type: 3,
  9617. atool: 15,
  9618. },
  9619. ];
  9620. this.ajax
  9621. .post(this.$store.state.api + "addCourseWorksS", params)
  9622. .then((res) => {
  9623. this.$message({
  9624. message: "提交成功",
  9625. type: "success",
  9626. });
  9627. this.questionAnswer = "";
  9628. this.answerDialogVisible = false;
  9629. this.seleteCourseUpdate();
  9630. })
  9631. .catch((err) => {
  9632. this.$message.error("提交失败");
  9633. console.error(err);
  9634. });
  9635. },
  9636. addCourseWorksS(tool, type, content, task, toolindex) {
  9637. let params = [
  9638. {
  9639. uid: this.userid,
  9640. cid: this.courseId,
  9641. stage: this.unitIndex,
  9642. task: task,
  9643. tool: toolindex,
  9644. content: content,
  9645. type: type,
  9646. atool: tool,
  9647. },
  9648. ];
  9649. this.ajax
  9650. .post(this.$store.state.api + "addCourseWorksS", params)
  9651. .then((res) => {
  9652. this.$message({
  9653. message: "提交成功",
  9654. type: "success",
  9655. });
  9656. this.setPeople(this.unitIndex, task, this.userid);
  9657. this.seleteCourseUpdate();
  9658. })
  9659. .catch((err) => {
  9660. this.$message.error("提交失败");
  9661. console.error(err);
  9662. });
  9663. },
  9664. openFile(f) {
  9665. this.pptImgUrl = "";
  9666. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  9667. if (
  9668. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  9669. -1
  9670. ) {
  9671. this.pptImgUrl =
  9672. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  9673. this.showPDF = false;
  9674. this.dialogVisibleFile = true;
  9675. } else if (
  9676. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  9677. ) {
  9678. this.pptImgUrl = f;
  9679. this.showPDF = true;
  9680. this.dialogVisibleFile = true;
  9681. }
  9682. },
  9683. openText(f) {
  9684. this.tableJson.text = JSON.parse(f);
  9685. this.dialogVisibleText2 = true;
  9686. },
  9687. openAsk(f, taskCount, i) {
  9688. this.askJson = JSON.parse(
  9689. JSON.stringify(
  9690. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  9691. .toolArray[i].askJson
  9692. )
  9693. );
  9694. this.radio = JSON.parse(f);
  9695. this.dialogVisibleVote3 = true;
  9696. },
  9697. openMember() {
  9698. this.searchTN = "";
  9699. this.page = 1
  9700. this.getTeacher();
  9701. this.dialogVisibleMember = true;
  9702. },
  9703. updateType(sid) {
  9704. var a = this.courseTypeId;
  9705. var a1 = JSON.parse(JSON.stringify(this.courseTypeId));
  9706. var c = [];
  9707. var b = sid.pid;
  9708. var d = [];
  9709. // for (var i = 0; i < this.CourseType[1].length; i++) {
  9710. // if (this.CourseType[1][i].id == sid) {
  9711. // b = this.CourseType[1][i].pid;
  9712. // }
  9713. // }
  9714. for (var j = 0; j < this.CourseTypeJson[b].length; j++) {
  9715. d.push(this.CourseTypeJson[b][j].id);
  9716. }
  9717. for (var i = 0; i < a.length; i++) {
  9718. if (d.indexOf(a[i]) == -1) {
  9719. c.push(a[i]);
  9720. }
  9721. }
  9722. c.push(sid.id);
  9723. this.courseTypeId = c;
  9724. },
  9725. openVideo(w) {
  9726. this.videoDetail = JSON.parse(JSON.stringify(this.playerOptions));
  9727. this.videoDetail.sources[0].src = w;
  9728. this.videoVisible = true;
  9729. },
  9730. getGMan(people) {
  9731. let _people = "";
  9732. if (this.ManAarray.length) {
  9733. for (var i = 0; i < this.ManAarray.length; i++) {
  9734. if (this.ManAarray[i].userid == people) {
  9735. _people = this.ManAarray[i].name;
  9736. break;
  9737. }
  9738. }
  9739. }
  9740. return _people ? _people : "无";
  9741. },
  9742. },
  9743. beforeDestroy() {
  9744. clearTimeout(this.timer);
  9745. this.timer = null;
  9746. },
  9747. beforeRouteLeave(to, from, next) {
  9748. clearTimeout(this.timer);
  9749. this.timer = null;
  9750. next();
  9751. },
  9752. beforeRouteEnter(to, from, next) {
  9753. next((vm) => {
  9754. vm.fpath = from.path;
  9755. });
  9756. },
  9757. created() {
  9758. this.getStudent();
  9759. this.getTeacher();
  9760. this.getClass();
  9761. this.getTemplate();
  9762. // this.selectEva();
  9763. this.loading = false;
  9764. setTimeout(() => {
  9765. this.selectCourseDetail();
  9766. // this.selectEva();
  9767. }, 500);
  9768. },
  9769. };
  9770. </script>
  9771. <style scoped>
  9772. @media screen and (max-width: 1280px) {
  9773. .mbCss {
  9774. flex-direction: column !important;
  9775. }
  9776. .pjCss {
  9777. width: 100% !important;
  9778. }
  9779. .evaCss {
  9780. width: 100% !important;
  9781. }
  9782. }
  9783. .dialog_diy >>> .el-dialog__header {
  9784. background: #3c3c3c !important;
  9785. padding: 15px 20px;
  9786. }
  9787. .dialog_diy >>> .el-dialog__title {
  9788. color: #fff;
  9789. }
  9790. .dialog_diy >>> .el-dialog__headerbtn {
  9791. top: 19px;
  9792. }
  9793. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  9794. color: #fff;
  9795. }
  9796. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  9797. color: #fff;
  9798. }
  9799. .dialog_diy >>> .el-dialog__body,
  9800. .dialog_diy >>> .el-dialog__footer {
  9801. background: #fafafa;
  9802. }
  9803. .dialog_diy3 >>> .el-dialog__body,
  9804. .dialog_diy3 >>> .el-dialog__footer {
  9805. background: #eee !important;
  9806. }
  9807. .dialog_diy3 >>> .el-dialog__body {
  9808. padding: 20px 20px;
  9809. }
  9810. .source_diy>>>.el-dialog {
  9811. height: 100% !important;
  9812. margin: 0 auto !important;
  9813. }
  9814. .source_diy>>>.el-dialog__body {
  9815. height: calc(100% - 185px);
  9816. overflow: auto;
  9817. background: #e6eaf0;
  9818. }
  9819. .source_diy>>>.el-dialog__footer {
  9820. background: #e6eaf0 !important;
  9821. }
  9822. .left {
  9823. border-right: 1px solid rgb(60, 94, 143);
  9824. display: flex;
  9825. flex-direction: column;
  9826. align-items: center;
  9827. min-height: 600px;
  9828. width: 385px;
  9829. height: 80%;
  9830. }
  9831. .tips {
  9832. color: rgb(128, 128, 128);
  9833. font-size: 12px;
  9834. width: 270px;
  9835. margin: 40px;
  9836. }
  9837. .pb_content {
  9838. height: 100% !important;
  9839. /* margin: 0 20px 0 20px; */
  9840. }
  9841. .pb_content_body {
  9842. width: 100% !important;
  9843. height: 100%;
  9844. }
  9845. .info_solid {
  9846. width: 270px;
  9847. height: 30px;
  9848. border-left: 1px solid #bdbdbd;
  9849. margin: 10px 0px 10px 30px;
  9850. }
  9851. .info_steps {
  9852. width: 270px;
  9853. font-size: 0.875rem;
  9854. display: flex;
  9855. align-items: center;
  9856. }
  9857. .info_steps span:nth-child(1) {
  9858. width: 30px;
  9859. height: 30px;
  9860. background: rgba(0, 0, 0, 0.38);
  9861. display: block;
  9862. color: #fff;
  9863. border-radius: 40px;
  9864. text-align: center;
  9865. line-height: 30px;
  9866. }
  9867. .steps_active {
  9868. background: #3d67bc !important;
  9869. }
  9870. .info_steps span:nth-child(2) {
  9871. margin-left: 5px;
  9872. }
  9873. .right {
  9874. height: 100%;
  9875. width: 100%;
  9876. display: flex;
  9877. overflow: hidden;
  9878. }
  9879. .basic_box {
  9880. margin: 0 auto;
  9881. position: relative;
  9882. padding: 0 20px 0 20px;
  9883. }
  9884. .basic_box_success {
  9885. width: 100%;
  9886. min-height: 455px;
  9887. padding: 50px 0;
  9888. position: relative;
  9889. text-align: center;
  9890. border-bottom: 1px solid #bfbfbf;
  9891. box-sizing: border-box;
  9892. display: flex;
  9893. align-items: center;
  9894. flex-direction: column;
  9895. justify-content: center;
  9896. }
  9897. .info_title {
  9898. font-size: 1.5em;
  9899. margin-right: 25px;
  9900. /* margin: 20px 30px 20px 30px; */
  9901. }
  9902. .bInfo_title {
  9903. text-align: left;
  9904. margin: 10px 0;
  9905. }
  9906. .small_title {
  9907. font-size: 14px;
  9908. line-height: 40px;
  9909. }
  9910. .chapter_beizhu {
  9911. font-size: 12px;
  9912. font-weight: bold;
  9913. float: right;
  9914. color: rgb(128, 128, 128);
  9915. margin-top: 5px;
  9916. }
  9917. .chapter_uploadBox1 {
  9918. text-align: left;
  9919. background-color: rgb(242, 242, 242);
  9920. width: 100%;
  9921. height: 67px;
  9922. padding: 0px 15px;
  9923. border-radius: 8px;
  9924. overflow: hidden;
  9925. font-size: 16px;
  9926. box-sizing: border-box;
  9927. position: relative;
  9928. }
  9929. .chapter_add {
  9930. width: 100%;
  9931. height: 32px;
  9932. margin-top: 15px;
  9933. cursor: pointer;
  9934. }
  9935. .chapter_add_l {
  9936. margin-left: 5px;
  9937. width: 30px;
  9938. height: 30px;
  9939. float: left;
  9940. border: 1px solid #aaa;
  9941. color: #aaa;
  9942. border-radius: 50%;
  9943. font-size: 25px;
  9944. text-align: center;
  9945. }
  9946. .chapter_add_r {
  9947. font-size: 18px;
  9948. height: 40px;
  9949. line-height: 30px;
  9950. text-indent: 10px;
  9951. color: #aaa;
  9952. }
  9953. .chapter_add_r span {
  9954. font-size: 12px;
  9955. color: rgb(204, 204, 204);
  9956. }
  9957. .chapter_add_input {
  9958. display: none;
  9959. }
  9960. .line {
  9961. width: 85%;
  9962. margin: 0 auto;
  9963. border-top: 1px solid #e5e5e5;
  9964. margin-top: 20px;
  9965. }
  9966. .info_btnBox {
  9967. width: 100%;
  9968. display: flex;
  9969. justify-content: space-evenly;
  9970. margin: 10px 0 10px 0;
  9971. }
  9972. .info_btn,
  9973. .teacherWord {
  9974. color: #fff;
  9975. background-color: #0f7eff;
  9976. padding: 8px 24px;
  9977. font-size: 0.9375rem;
  9978. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  9979. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  9980. min-width: 64px;
  9981. font-weight: 500;
  9982. border-radius: 4px;
  9983. box-sizing: border-box;
  9984. border: none;
  9985. cursor: pointer;
  9986. }
  9987. .teacherWord {
  9988. width: 105px !important;
  9989. text-align: center !important;
  9990. line-height: 36px !important;
  9991. padding: 0 !important;
  9992. font-size: 14px !important;
  9993. margin: 10px 0 !important;
  9994. }
  9995. .wordTeacher {
  9996. display: flex;
  9997. flex-direction: column;
  9998. width: 20%;
  9999. text-align: center;
  10000. font-size: 14px;
  10001. margin: 30px 30px 0 10px;
  10002. background: #fff;
  10003. position: relative;
  10004. border-radius: 5px;
  10005. padding: 25px 0px;
  10006. }
  10007. .wordPic {
  10008. margin: 0 auto;
  10009. width: 60px;
  10010. height: 60px;
  10011. cursor: pointer;
  10012. }
  10013. .deleteWord {
  10014. width: 22px;
  10015. height: 22px;
  10016. position: absolute;
  10017. right: 5px;
  10018. top: -15px;
  10019. cursor: pointer;
  10020. display: none;
  10021. z-index: 999;
  10022. }
  10023. .wordPic > img,
  10024. .deleteWord > img,
  10025. .addToolImg > img {
  10026. width: 100%;
  10027. height: 100%;
  10028. }
  10029. .info_btn:hover {
  10030. background-color: #4f7cd5 !important;
  10031. }
  10032. .cru_selectBox {
  10033. display: flex;
  10034. margin: 24px 0 10px;
  10035. flex-wrap: nowrap;
  10036. white-space: nowrap;
  10037. overflow: auto;
  10038. position: relative;
  10039. height: 47px;
  10040. }
  10041. .cru_selectBox::-webkit-scrollbar {
  10042. /*滚动条整体样式*/
  10043. width: 6px;
  10044. /*高宽分别对应横竖滚动条的尺寸*/
  10045. height: 6px;
  10046. }
  10047. /*定义滚动条轨道 内阴影+圆角*/
  10048. .cru_selectBox::-webkit-scrollbar-track {
  10049. border-radius: 10px;
  10050. background-color: #eee;
  10051. }
  10052. /*定义滑块 内阴影+圆角*/
  10053. .cru_selectBox::-webkit-scrollbar-thumb {
  10054. border-radius: 10px;
  10055. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  10056. background-color: rgba(0, 0, 0, 0.1);
  10057. }
  10058. .cru_line {
  10059. position: absolute;
  10060. bottom: 0px;
  10061. transition: all 0.5s;
  10062. left: 0px;
  10063. width: 125px;
  10064. margin-left: -25px;
  10065. }
  10066. .cru_select {
  10067. font-size: 21px;
  10068. margin-right: 37px;
  10069. margin-left: 5px;
  10070. cursor: pointer;
  10071. color: #a6a6a6;
  10072. }
  10073. .cru_selected {
  10074. color: #0b7fc2 !important;
  10075. }
  10076. .chapter_contentbox {
  10077. display: flex;
  10078. align-items: center;
  10079. margin-top: 15px;
  10080. }
  10081. .chapter_contentbox > div:nth-child(1) {
  10082. /* width: 150px; */
  10083. margin: 0px;
  10084. /* font-size: 2em; */
  10085. color: black;
  10086. display: block;
  10087. white-space: nowrap;
  10088. overflow: hidden;
  10089. text-overflow: ellipsis;
  10090. /* font-weight: 600; */
  10091. margin-right: 20px;
  10092. font-size: 18px;
  10093. }
  10094. .chapter_contentbox > div:nth-child(2) {
  10095. width: 380px;
  10096. }
  10097. .chapter_contentbox > div:nth-child(3),
  10098. .remove {
  10099. background-image: url("../../../assets/remove.png");
  10100. cursor: pointer;
  10101. opacity: 0.5;
  10102. width: 40px !important;
  10103. height: 50px;
  10104. background-repeat: no-repeat;
  10105. background-position: 5px 10px;
  10106. }
  10107. .remove1 {
  10108. background-image: url("../../../assets/remove1.png");
  10109. background-repeat: no-repeat;
  10110. background-position: 5px 10px;
  10111. width: 40px;
  10112. height: 50px;
  10113. cursor: pointer;
  10114. }
  10115. .binfo_input {
  10116. font: inherit;
  10117. color: currentColor;
  10118. width: 100%;
  10119. margin: 0;
  10120. /* padding: 15px 14px; */
  10121. padding: 8px 14px;
  10122. display: block;
  10123. min-width: 0;
  10124. outline: none;
  10125. box-sizing: content-box;
  10126. background: none;
  10127. border: 1px solid rgba(0, 0, 0, 0.23);
  10128. border-radius: 4px;
  10129. box-sizing: border-box;
  10130. background: #fff;
  10131. font-size: 18px;
  10132. }
  10133. .binfo_input:focus-visible {
  10134. border: 1px solid rgba(61, 103, 188);
  10135. }
  10136. .time {
  10137. display: flex;
  10138. margin: 35px 0 80px 0;
  10139. }
  10140. .chapter_btnbox {
  10141. width: 160px;
  10142. border-radius: 5px;
  10143. border: 2px dashed gray;
  10144. display: flex;
  10145. padding: 8px 50px;
  10146. align-items: center;
  10147. justify-content: center;
  10148. margin: 30px auto 0;
  10149. cursor: pointer;
  10150. }
  10151. .icon_add {
  10152. position: relative;
  10153. width: 24px;
  10154. padding-top: 20px;
  10155. border-radius: 100%;
  10156. border-width: 2px;
  10157. border-style: solid;
  10158. border-color: gray;
  10159. }
  10160. .icon_add i:nth-child(1) {
  10161. position: absolute;
  10162. left: 50%;
  10163. top: 50%;
  10164. height: 60%;
  10165. transform: translate(-50%, -50%);
  10166. border-width: 1px;
  10167. border-style: solid;
  10168. border-color: inherit;
  10169. }
  10170. .icon_add i:nth-child(2) {
  10171. position: absolute;
  10172. top: 50%;
  10173. left: 50%;
  10174. width: 60%;
  10175. transform: translate(-50%, -50%);
  10176. border-width: 1px;
  10177. border-style: solid;
  10178. border-color: inherit;
  10179. }
  10180. .chapter_btn_w {
  10181. font-size: 0.9375rem;
  10182. font-weight: bold;
  10183. color: gray;
  10184. margin-left: 20px;
  10185. }
  10186. .disUoloadSty >>> .el-icon-plus {
  10187. display: none !important;
  10188. /* 上传按钮隐藏 */
  10189. }
  10190. .imgLeft {
  10191. margin: 15px 0;
  10192. }
  10193. .add_info_box {
  10194. margin: 20px 0;
  10195. }
  10196. .add_info_box button {
  10197. margin: 0 10px 10px 0;
  10198. }
  10199. .add_chapters_box {
  10200. text-align: left;
  10201. background-color: rgb(232 234 237);
  10202. width: 100%;
  10203. padding: 0px 15px;
  10204. border-radius: 15px;
  10205. font-size: 16px;
  10206. box-sizing: border-box;
  10207. position: relative;
  10208. padding: 0 10px 5px 10px;
  10209. height: 185px;
  10210. overflow-y: auto;
  10211. overflow-x: hidden;
  10212. }
  10213. .homework_box {
  10214. display: flex;
  10215. align-items: flex-start;
  10216. flex-wrap: wrap;
  10217. margin: 15px 0 0 0;
  10218. flex-direction: column;
  10219. align-content: flex-start;
  10220. }
  10221. .course_homework {
  10222. display: flex;
  10223. justify-content: center;
  10224. flex-direction: row;
  10225. align-items: center;
  10226. margin: 0 10px 0 0;
  10227. }
  10228. .course_homework >>> .el-input__inner {
  10229. width: 140px;
  10230. margin-left: 15px;
  10231. }
  10232. .chapter_upload_move {
  10233. position: relative;
  10234. background-color: #fff;
  10235. position: absolute;
  10236. width: 100%;
  10237. top: 0px;
  10238. left: 0px;
  10239. border: 1px solid #eee;
  10240. border-radius: 5px;
  10241. transition: width 2s;
  10242. -moz-transition: width 2s;
  10243. -webkit-transition: width 2s;
  10244. -o-transition: width 2s;
  10245. }
  10246. .chapter_upload_l_i {
  10247. background-image: url("../../../assets/icon.png");
  10248. background-position: 3px -165px;
  10249. width: 30px;
  10250. height: 30px;
  10251. margin: 10px auto 0 auto;
  10252. }
  10253. .left_first {
  10254. display: flex;
  10255. flex-direction: column;
  10256. flex-wrap: nowrap;
  10257. }
  10258. .right_first {
  10259. width: 100%;
  10260. height: 100%;
  10261. margin-top: 15px;
  10262. }
  10263. .right_title {
  10264. height: 30px;
  10265. padding: 15px 0 15px 20px;
  10266. border-bottom: 1px solid #f2f2f2;
  10267. font-size: 1.5em;
  10268. font-weight: bold;
  10269. color: #0f7eff;
  10270. margin: 0 auto;
  10271. }
  10272. .addNewPP>>>.el-dialog{
  10273. margin-top:5vh !important;
  10274. }
  10275. .people {
  10276. border: 1px solid rgb(229 229 229);
  10277. height: 350px;
  10278. border-radius: 5px;
  10279. width: 100%;
  10280. overflow: auto;
  10281. }
  10282. .people_top {
  10283. display: flex;
  10284. width: 100%;
  10285. /* justify-content: space-between; */
  10286. /* align-items: center; */
  10287. flex-direction: column;
  10288. padding: 10px 25px 0;
  10289. box-sizing: border-box;
  10290. }
  10291. .people_nav,
  10292. .people_top_right {
  10293. /* padding: 20px 0 0 20px; */
  10294. }
  10295. .people_top_right {
  10296. height: 40px;
  10297. margin-bottom: 10px;
  10298. }
  10299. .people_search {
  10300. display: flex;
  10301. position: relative;
  10302. }
  10303. .people_search >>> .el-input__inner {
  10304. /* height: 25px; */
  10305. width: 95%;
  10306. }
  10307. .search_img {
  10308. width: 20px;
  10309. height: 20px;
  10310. position: absolute;
  10311. right: 30px;
  10312. top: 50%;
  10313. transform: translateY(-50%);
  10314. }
  10315. .search_img > img {
  10316. width: 100%;
  10317. height: 100%;
  10318. }
  10319. .people_name {
  10320. display: flex;
  10321. justify-content: flex-start;
  10322. padding: 10px 0 0 25px;
  10323. flex-direction: column;
  10324. flex-wrap: nowrap;
  10325. height: calc(100% - 140px);
  10326. overflow-y: auto;
  10327. overflow-x: hidden;
  10328. flex-direction: column;
  10329. }
  10330. .people_name >>> .el-checkbox {
  10331. width: 100%;
  10332. display: flex;
  10333. align-items: center;
  10334. margin-bottom: 10px;
  10335. }
  10336. .people_name >>> .el-checkbox__label {
  10337. text-overflow: ellipsis;
  10338. overflow: hidden;
  10339. width: 100%;
  10340. }
  10341. .right_img {
  10342. width: 150px;
  10343. height: 150px;
  10344. margin: 0 auto;
  10345. }
  10346. .right_img > img {
  10347. width: 100%;
  10348. height: 100%;
  10349. }
  10350. .number {
  10351. margin-top: 20px;
  10352. color: #4aa6ff;
  10353. text-decoration: underline;
  10354. }
  10355. .success_button {
  10356. display: flex;
  10357. text-align: center;
  10358. margin: 5% 0 auto;
  10359. flex-direction: row;
  10360. justify-content: center;
  10361. }
  10362. .look_course {
  10363. margin-right: 40px;
  10364. background: #3d67bc;
  10365. width: 200px;
  10366. height: 35px;
  10367. line-height: 35px;
  10368. color: #fff;
  10369. text-align: center;
  10370. font-size: 14px;
  10371. border-radius: 5px;
  10372. cursor: pointer;
  10373. }
  10374. .attend_others {
  10375. width: 250px;
  10376. background: #4fb13c;
  10377. height: 35px;
  10378. line-height: 35px;
  10379. color: #fff;
  10380. text-align: center;
  10381. font-size: 14px;
  10382. border-radius: 5px;
  10383. cursor: pointer;
  10384. }
  10385. .dialog_diy2 >>> .el-dialog__body {
  10386. text-align: center;
  10387. }
  10388. .write_togother {
  10389. position: absolute;
  10390. right: 45px;
  10391. display: flex;
  10392. top: 5%;
  10393. }
  10394. .write_people {
  10395. font-size: 14px;
  10396. line-height: 50px;
  10397. padding-right: 10px;
  10398. }
  10399. .end_write {
  10400. background: #3d67bc;
  10401. color: #fff;
  10402. width: 100px;
  10403. height: 35px;
  10404. line-height: 35px;
  10405. text-align: center;
  10406. font-size: 14px;
  10407. border-radius: 5px;
  10408. cursor: pointer;
  10409. }
  10410. .chapter_upload {
  10411. height: 50px;
  10412. margin-top: 12px;
  10413. position: relative;
  10414. display: flex;
  10415. align-items: center;
  10416. width: 100%;
  10417. min-height: 50px;
  10418. }
  10419. .chapter_upload_t {
  10420. background-color: #fff;
  10421. position: absolute;
  10422. height: 100%;
  10423. top: 0px;
  10424. left: 0px;
  10425. border-radius: 40px;
  10426. box-sizing: border-box;
  10427. box-shadow: 0 0 3px 3px #dfdfdf;
  10428. }
  10429. .chapter_upload_o {
  10430. width: 100%;
  10431. height: 100%;
  10432. position: relative;
  10433. z-index: 1;
  10434. }
  10435. .chapter_upload_ic {
  10436. height: 30px;
  10437. float: right;
  10438. }
  10439. .chapter_upload_ic_l {
  10440. width: 50px;
  10441. height: 50px;
  10442. float: left;
  10443. }
  10444. .chapter_upload_ic_l div {
  10445. width: 30px;
  10446. height: 35px;
  10447. background: url("../../../assets/icon/icon.png");
  10448. }
  10449. .chapter_upload_ic_r {
  10450. width: 50px;
  10451. height: 50px;
  10452. float: left;
  10453. margin-left: 0px;
  10454. display: flex;
  10455. align-items: center;
  10456. }
  10457. .chapter_upload_ic_r div {
  10458. width: 25px;
  10459. height: 25px;
  10460. background-image: url("../../../assets/delete.png");
  10461. background-size: 100% 100%;
  10462. }
  10463. .chapter_upload_n {
  10464. display: flex;
  10465. text-indent: 10px;
  10466. text-decoration: none;
  10467. text-overflow: ellipsis;
  10468. white-space: nowrap;
  10469. overflow: hidden;
  10470. width: 55%;
  10471. margin-left: 10px;
  10472. cursor: pointer;
  10473. margin-top: 2px;
  10474. }
  10475. .chapter_upload_l_i1 {
  10476. background-image: url("../../../assets/icon/video.png");
  10477. width: 28px;
  10478. height: 28px;
  10479. background-size: 100% 100%;
  10480. }
  10481. .chapter_upload_l_i5 {
  10482. background-image: url("../../../assets/icon/word.png");
  10483. width: 24px;
  10484. height: 24px;
  10485. background-size: 100% 100%;
  10486. }
  10487. .chapter_upload_l_i8 {
  10488. background-image: url("../../../assets/icon/line.png");
  10489. width: 24px;
  10490. height: 24px;
  10491. background-size: 100% 100%;
  10492. }
  10493. .chapter_upload_ud {
  10494. display: flex;
  10495. flex-direction: column;
  10496. margin-left: 5px;
  10497. justify-content: center;
  10498. }
  10499. .chapter_upload_up {
  10500. background-image: url("../../../assets/icon/up.png");
  10501. width: 17px;
  10502. height: 15px;
  10503. background-size: 100% 100%;
  10504. cursor: pointer;
  10505. }
  10506. .chapter_upload_down {
  10507. background-image: url("../../../assets/icon/down.png");
  10508. width: 17px;
  10509. height: 15px;
  10510. margin: 2px auto 0 auto;
  10511. background-size: 100% 100%;
  10512. cursor: pointer;
  10513. }
  10514. .addWordStyle {
  10515. display: flex;
  10516. flex-direction: row;
  10517. justify-content: flex-start;
  10518. overflow-x: auto;
  10519. white-space: nowrap;
  10520. flex-wrap: wrap;
  10521. }
  10522. /* table 样式 */
  10523. .cont >>> table {
  10524. border-top: 1px solid #ccc;
  10525. border-left: 1px solid #ccc;
  10526. }
  10527. .cont >>> table td,
  10528. .cont >>> table th {
  10529. border-bottom: 1px solid #ccc;
  10530. border-right: 1px solid #ccc;
  10531. /* padding: 20px 5px; */
  10532. padding: 5px 10px;
  10533. max-width: 0px;
  10534. height: 30px;
  10535. vertical-align: baseline;
  10536. }
  10537. .cont >>> table th {
  10538. border-bottom: 2px solid #ccc;
  10539. text-align: center;
  10540. }
  10541. /* blockquote 样式 */
  10542. .cont >>> blockquote {
  10543. display: block;
  10544. border-left: 8px solid #d0e5f2;
  10545. padding: 5px 10px;
  10546. margin: 10px 0;
  10547. line-height: 1.4;
  10548. font-size: 100%;
  10549. background-color: #f1f1f1;
  10550. }
  10551. /* code 样式 */
  10552. .cont >>> code {
  10553. display: inline-block;
  10554. *display: inline;
  10555. *zoom: 1;
  10556. background-color: #f1f1f1;
  10557. border-radius: 3px;
  10558. padding: 3px 5px;
  10559. margin: 0 3px;
  10560. }
  10561. .cont >>> pre code {
  10562. display: block;
  10563. }
  10564. /* ul ol 样式 */
  10565. .cont >>> ul,
  10566. ol {
  10567. margin: 10px 0 10px 20px;
  10568. }
  10569. .wordbox {
  10570. display: flex;
  10571. flex-wrap: wrap;
  10572. cursor: pointer;
  10573. width: 100%;
  10574. }
  10575. .checkword {
  10576. width: 22px;
  10577. height: 22px;
  10578. margin: 10px auto 0;
  10579. cursor: pointer;
  10580. }
  10581. .checkword img {
  10582. width: 100%;
  10583. }
  10584. .stepBg {
  10585. display: flex;
  10586. flex-direction: column;
  10587. justify-content: space-between;
  10588. align-items: center;
  10589. background: #fff;
  10590. width: 300px;
  10591. margin: 0 25px 0 0;
  10592. }
  10593. .stepTop {
  10594. min-width: 300px;
  10595. width: 300px;
  10596. /* border-radius: 10px; */
  10597. display: flex;
  10598. flex-direction: column;
  10599. justify-content: flex-start;
  10600. align-items: center;
  10601. flex-wrap: nowrap;
  10602. background: #fff;
  10603. /* top: 18%; */
  10604. }
  10605. .stepTop > div {
  10606. height: 80px;
  10607. width: 85%;
  10608. cursor: pointer;
  10609. margin: 10px 0;
  10610. border-radius: 10px;
  10611. }
  10612. .first,
  10613. .second,
  10614. .third,
  10615. .four {
  10616. background: #4a83d0;
  10617. height: 90px;
  10618. color: #fff;
  10619. display: flex;
  10620. flex-direction: row;
  10621. align-items: center;
  10622. justify-content: center;
  10623. }
  10624. .first > div:nth-child(1),
  10625. .second > div:nth-child(1),
  10626. .third > div:nth-child(1),
  10627. .four > div:nth-child(1) {
  10628. margin: 5px 10px 0 0;
  10629. width: 2rem;
  10630. }
  10631. .firstNo,
  10632. .secondNo,
  10633. .thirdNo,
  10634. .fourNo {
  10635. background: #e7e7e7;
  10636. color: #adadad;
  10637. display: flex;
  10638. flex-direction: row;
  10639. align-items: center;
  10640. justify-content: center;
  10641. }
  10642. .firstNo > div:nth-child(1),
  10643. .secondNo > div:nth-child(1),
  10644. .thirdNo > div:nth-child(1),
  10645. .fourNo > div:nth-child(1) {
  10646. margin: 5px 10px 0 0;
  10647. width: 2rem;
  10648. }
  10649. .uploadWidth >>> .el-upload {
  10650. width: 60px;
  10651. height: 60px;
  10652. position: relative;
  10653. }
  10654. .addPeople {
  10655. background: #fa6060;
  10656. width: 150px;
  10657. height: 40px;
  10658. color: #fff;
  10659. border-radius: 5px;
  10660. text-align: center;
  10661. line-height: 40px;
  10662. font-size: 14px;
  10663. cursor: pointer;
  10664. margin-top: 20px;
  10665. }
  10666. .kcImg {
  10667. width: 60px;
  10668. margin-left: 10px;
  10669. }
  10670. .zyImg {
  10671. width: 55px;
  10672. margin: 0 10px;
  10673. }
  10674. .deleteZy {
  10675. width: 20px;
  10676. position: absolute;
  10677. top: 5px;
  10678. right: 5px;
  10679. cursor: pointer;
  10680. }
  10681. .kcImg > img,
  10682. .zyImg > img,
  10683. .deleteZy > img {
  10684. width: 100%;
  10685. height: 100%;
  10686. }
  10687. .zyBox {
  10688. display: flex;
  10689. flex-direction: row;
  10690. align-items: center;
  10691. background: #67d37d;
  10692. color: #fff;
  10693. width: 210px;
  10694. margin: 20px 20px 0 0;
  10695. border-radius: 10px;
  10696. height: 70px;
  10697. position: relative;
  10698. }
  10699. .upCss {
  10700. display: flex;
  10701. flex-direction: row;
  10702. justify-content: flex-start;
  10703. }
  10704. .upCss >>> .el-icon-plus {
  10705. position: none !important;
  10706. width: 200px;
  10707. height: 100px;
  10708. display: flex;
  10709. flex-wrap: nowrap;
  10710. flex-direction: column;
  10711. align-items: center;
  10712. justify-content: center;
  10713. border: 1px dashed #ccc;
  10714. min-width: 78px;
  10715. min-height: 100px;
  10716. z-index: 999;
  10717. }
  10718. .upCss >>> .el-upload-list__item-name {
  10719. width: 100px;
  10720. white-space: nowrap;
  10721. overflow: hidden;
  10722. text-overflow: ellipsis;
  10723. }
  10724. .addStageImg {
  10725. min-width: 25px;
  10726. min-height: 25px;
  10727. width: 25px;
  10728. height: 25px;
  10729. cursor: pointer;
  10730. }
  10731. .addHW {
  10732. width: 28px;
  10733. height: 28px;
  10734. cursor: pointer;
  10735. }
  10736. .addStageImg > img,
  10737. .addHW > img {
  10738. width: 100%;
  10739. height: 100%;
  10740. }
  10741. .addNewPP >>> .el-dialog__body {
  10742. padding: 5px 20px;
  10743. }
  10744. .isHeight {
  10745. height: 680px;
  10746. }
  10747. .toolChoose {
  10748. display: flex;
  10749. /* width: 100%; */
  10750. flex-direction: row;
  10751. flex-wrap: wrap;
  10752. }
  10753. .tool {
  10754. display: flex;
  10755. flex-direction: column;
  10756. flex-wrap: nowrap;
  10757. width: fit-content;
  10758. margin: 10px 0 10px 0;
  10759. align-items: center;
  10760. }
  10761. .tool + .tool {
  10762. margin-right: 45px;
  10763. }
  10764. .whiteBIcon {
  10765. width: 80px;
  10766. cursor: pointer;
  10767. display: flex;
  10768. flex-direction: column;
  10769. flex-wrap: nowrap;
  10770. align-items: center;
  10771. }
  10772. .whiteBIcon > img,
  10773. .toolIcon > img,
  10774. .arrow > img {
  10775. width: 100%;
  10776. height: 100%;
  10777. }
  10778. .check img {
  10779. width: 20px;
  10780. height: 20px;
  10781. }
  10782. .whiteBIcon > img {
  10783. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  10784. border-radius: 15px;
  10785. }
  10786. .check {
  10787. /* width: 20px;
  10788. height: 20px; */
  10789. cursor: pointer;
  10790. margin: 10px 0;
  10791. }
  10792. .checkDiv {
  10793. display: flex;
  10794. align-items: center;
  10795. }
  10796. .checkDiv span {
  10797. margin-left: 5px;
  10798. color: #858585;
  10799. }
  10800. .customWidth >>> .el-dialog {
  10801. min-width: 500px !important;
  10802. }
  10803. .a_addBox {
  10804. margin: 10px 0;
  10805. background: #fff;
  10806. padding: 15px;
  10807. max-height: 600px;
  10808. overflow: auto;
  10809. }
  10810. .a_add_box {
  10811. border-bottom: 2px solid #eee;
  10812. padding-bottom: 10px;
  10813. }
  10814. .a_add_head {
  10815. display: flex;
  10816. align-items: center;
  10817. justify-content: space-between;
  10818. margin: 10px 0;
  10819. font-size: 18px;
  10820. }
  10821. .a_add_checkType {
  10822. margin-top: 10px;
  10823. display: flex;
  10824. font-size: 16px;
  10825. }
  10826. .a_add_checkType span {
  10827. box-sizing: border-box;
  10828. padding: 0 0 5px 0;
  10829. cursor: pointer;
  10830. }
  10831. .a_add_checkType span + span {
  10832. margin-left: 10px;
  10833. }
  10834. .a_add_checkType .active {
  10835. border-bottom: 2px solid #409eff;
  10836. color: #409eff;
  10837. }
  10838. .a_add_head .a_add_head_input {
  10839. width: 300px;
  10840. }
  10841. .a_add_head .a_add_head_div {
  10842. display: flex;
  10843. align-items: center;
  10844. justify-content: space-between;
  10845. }
  10846. .a_add_body {
  10847. display: flex;
  10848. /* align-items: center; */
  10849. align-items: flex-end;
  10850. }
  10851. .a_add_input {
  10852. display: flex;
  10853. align-items: center;
  10854. flex-wrap: wrap;
  10855. }
  10856. .a_add_input_choice {
  10857. flex-direction: column;
  10858. margin-right: 10px;
  10859. }
  10860. .a_add_input_choice >>> .el-radio {
  10861. display: flex;
  10862. align-items: center;
  10863. flex-direction: row-reverse;
  10864. margin: 10px 0 0 0;
  10865. }
  10866. .a_add_input_choice >>> .el-checkbox {
  10867. display: flex;
  10868. align-items: center;
  10869. flex-direction: row-reverse;
  10870. margin: 10px 0 0 0;
  10871. }
  10872. .width100 {
  10873. width: 100%;
  10874. }
  10875. .a_add_input .a_add_persent {
  10876. width: 100%;
  10877. }
  10878. .a_add_persent_div {
  10879. width: 100%;
  10880. display: flex;
  10881. align-items: center;
  10882. }
  10883. .a_add_persent_div span {
  10884. margin: 5px 0;
  10885. }
  10886. .a_add_persent_div span:nth-child(1) {
  10887. width: 30%;
  10888. }
  10889. .a_add_persent_div span:nth-child(2) {
  10890. width: 7%;
  10891. }
  10892. .a_add_persent_div span:nth-child(3) {
  10893. width: 40%;
  10894. }
  10895. .a_add_body_div {
  10896. display: flex;
  10897. align-items: center;
  10898. justify-content: center;
  10899. /* flex-direction: column; */
  10900. }
  10901. .all_choose {
  10902. display: flex;
  10903. flex-direction: row;
  10904. align-items: flex-start;
  10905. width: 100%;
  10906. }
  10907. .all_choose > span {
  10908. min-width: 80px;
  10909. width: 80px;
  10910. display: block;
  10911. white-space: nowrap;
  10912. overflow: hidden;
  10913. text-overflow: ellipsis;
  10914. text-align-last: justify;
  10915. margin-right: 10px;
  10916. }
  10917. .all_choose >>> .el-checkbox-group {
  10918. display: flex;
  10919. flex-direction: row;
  10920. width: 100%;
  10921. flex-wrap: wrap;
  10922. align-content: center;
  10923. justify-content: flex-start;
  10924. align-items: center;
  10925. margin-top: 3px;
  10926. }
  10927. .all_choose > .el-checkbox-group >>> .el-checkbox {
  10928. margin-bottom: 10px;
  10929. display: flex;
  10930. flex-direction: row;
  10931. align-items: center;
  10932. }
  10933. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  10934. min-width: 80px;
  10935. overflow: hidden;
  10936. width: 80px;
  10937. text-overflow: ellipsis;
  10938. white-space: nowrap;
  10939. }
  10940. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  10941. width: auto;
  10942. }
  10943. .choose > div:nth-child(3) > span {
  10944. /* letter-spacing: 0 !important; */
  10945. }
  10946. .choose {
  10947. display: flex;
  10948. flex-direction: column;
  10949. flex-wrap: nowrap;
  10950. height: 100%;
  10951. justify-content: space-evenly;
  10952. align-items: flex-start;
  10953. }
  10954. .both {
  10955. display: flex;
  10956. flex-direction: row;
  10957. flex-wrap: wrap;
  10958. width: 100%;
  10959. align-items: center;
  10960. justify-content: flex-start;
  10961. margin: 30px 0;
  10962. }
  10963. .subjectBox {
  10964. display: flex;
  10965. flex-wrap: wrap;
  10966. width: 100%;
  10967. align-items: center;
  10968. }
  10969. .subjectList {
  10970. }
  10971. .subjectBtn {
  10972. margin-left: 10px;
  10973. border-radius: 5px;
  10974. border: 1px dashed #bfbfbf;
  10975. padding: 2px 5px;
  10976. cursor: pointer;
  10977. font-size: 14px;
  10978. color: #545454;
  10979. }
  10980. .notice >>> .el-dialog {
  10981. width: 500px !important;
  10982. text-align: center;
  10983. }
  10984. .notice >>> .el-button {
  10985. margin-top: 20px;
  10986. }
  10987. .whiteBg {
  10988. background: #fff;
  10989. border-radius: 10px;
  10990. }
  10991. .chooseWho {
  10992. display: flex;
  10993. width: 380px;
  10994. flex-direction: row;
  10995. flex-wrap: nowrap;
  10996. justify-content: space-between;
  10997. padding-bottom: 10px;
  10998. }
  10999. .chooseWho > div {
  11000. cursor: pointer;
  11001. padding-bottom: 10px;
  11002. font-weight: bold;
  11003. }
  11004. .isChooseActive {
  11005. color: #3e88f4;
  11006. border-bottom: 2px solid #2f80f3;
  11007. }
  11008. .toolSort {
  11009. display: flex;
  11010. flex-direction: row;
  11011. flex-wrap: wrap;
  11012. justify-content: flex-start;
  11013. align-items: flex-start;
  11014. }
  11015. .toolSort > div {
  11016. margin-right: 45px;
  11017. }
  11018. .tools {
  11019. width: 100%;
  11020. display: flex;
  11021. flex-direction: column;
  11022. flex-wrap: nowrap;
  11023. align-items: flex-start;
  11024. }
  11025. .leftTools,
  11026. .rightTools {
  11027. width: 50%;
  11028. }
  11029. .rightTools {
  11030. display: flex;
  11031. flex-direction: row;
  11032. flex-wrap: nowrap;
  11033. justify-content: space-around;
  11034. }
  11035. .firstToolList {
  11036. display: flex;
  11037. flex-direction: column;
  11038. flex-wrap: nowrap;
  11039. align-items: center;
  11040. }
  11041. .iconList {
  11042. display: flex;
  11043. flex-direction: row;
  11044. flex-wrap: wrap;
  11045. justify-content: flex-start;
  11046. align-items: center;
  11047. margin: 20px 0 5px 0;
  11048. width: 240px;
  11049. min-width: 240px;
  11050. }
  11051. .iconTool {
  11052. display: flex;
  11053. flex-direction: column;
  11054. flex-wrap: nowrap;
  11055. align-items: center;
  11056. justify-content: flex-start;
  11057. margin: 15px 10px;
  11058. }
  11059. .toolIcon {
  11060. width: 50px;
  11061. }
  11062. .taskBorder {
  11063. border: 1px solid #e1e1e1;
  11064. border-radius: 10px;
  11065. margin-top: 20px;
  11066. min-height: 690px;
  11067. position: relative;
  11068. background: #fbfbfb;
  11069. }
  11070. .smallTaskBorder {
  11071. height: 170px;
  11072. min-height: 170px !important;
  11073. overflow: hidden;
  11074. }
  11075. .taskBorder > div {
  11076. padding: 30px 0 10px 30px;
  11077. }
  11078. .addTaskBorder {
  11079. border: 2px solid #e1e1e1;
  11080. border-radius: 10px;
  11081. margin-top: 25px;
  11082. cursor: pointer;
  11083. }
  11084. .addTaskBorder > div {
  11085. margin: 0 auto;
  11086. display: flex;
  11087. align-items: center;
  11088. justify-content: center;
  11089. }
  11090. .addTaskBorder > div > img {
  11091. width: 100px;
  11092. }
  11093. .addTaskBorder > div > span {
  11094. font-size: 23px;
  11095. color: #dbdbdb;
  11096. }
  11097. .task_add_title {
  11098. margin: 50px 0px 10px;
  11099. font-size: 1.5em;
  11100. font-weight: 700;
  11101. color: #0f7eff;
  11102. }
  11103. .task_add_title::after {
  11104. content: "提示:建议不要多账户同时编辑同一个任务";
  11105. font-size: 14px;
  11106. margin-left: 5px;
  11107. font-weight: 400;
  11108. color: #ff3a3a;
  11109. }
  11110. .funBlock {
  11111. display: flex;
  11112. padding: 15px 0;
  11113. flex-direction: row;
  11114. justify-content: flex-end;
  11115. align-items: center;
  11116. position: absolute;
  11117. right: 15px;
  11118. bottom: 35px;
  11119. }
  11120. .fold {
  11121. display: flex;
  11122. margin: 0 10px;
  11123. flex-direction: row;
  11124. align-items: center;
  11125. cursor: pointer;
  11126. }
  11127. .arrow {
  11128. width: 15px;
  11129. height: 15px;
  11130. margin-left: 10px;
  11131. }
  11132. .addToolFunBox {
  11133. display: flex;
  11134. width: 100%;
  11135. align-items: center;
  11136. justify-content: center;
  11137. margin-bottom: 35px;
  11138. }
  11139. .addToolFun + .addToolFun {
  11140. margin-left: 10px;
  11141. }
  11142. .addToolFun {
  11143. display: flex;
  11144. width: 150px;
  11145. flex-direction: row;
  11146. align-items: center;
  11147. justify-content: center;
  11148. border: 1px dashed;
  11149. border-radius: 5px;
  11150. height: 50px;
  11151. /* margin: 35px auto 0; */
  11152. cursor: pointer;
  11153. }
  11154. .addToolImg {
  11155. width: 30px;
  11156. height: 30px;
  11157. margin-right: 20px;
  11158. }
  11159. .addToolsDia >>> .el-dialog__body {
  11160. padding: 20px;
  11161. }
  11162. .addToolsDia >>> .el-dialog__body > .toolChoose {
  11163. padding: 0;
  11164. }
  11165. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  11166. padding: 0;
  11167. border-bottom: none;
  11168. margin-bottom: 0;
  11169. }
  11170. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  11171. width: 100%;
  11172. }
  11173. .lineCss >>> .el-form-item__label {
  11174. width: auto !important;
  11175. }
  11176. .lineCss >>> .el-form-item__content {
  11177. margin-left: 50px !important;
  11178. }
  11179. .newSteps {
  11180. display: flex;
  11181. width: 100% !important;
  11182. height: 80px;
  11183. cursor: pointer;
  11184. margin: 10px 0;
  11185. border-radius: 10px;
  11186. flex-direction: row;
  11187. align-content: center;
  11188. justify-content: center;
  11189. align-items: center;
  11190. margin: 0 !important;
  11191. }
  11192. /* 评价样式 */
  11193. .elist_css {
  11194. padding-bottom: 60px !important;
  11195. }
  11196. .elist_title {
  11197. margin-bottom: 10px;
  11198. }
  11199. .elist_input {
  11200. }
  11201. .elist_input_box {
  11202. display: flex;
  11203. align-items: center;
  11204. flex-wrap: wrap;
  11205. }
  11206. .elist_input_box + .elist_input_box {
  11207. margin-top: 30px;
  11208. }
  11209. .elist_input .elist_input_box input {
  11210. font: inherit;
  11211. color: currentColor;
  11212. /* width: 200px; */
  11213. max-width: 200px;
  11214. padding: 8px 14px;
  11215. display: block;
  11216. min-width: 0;
  11217. outline: none;
  11218. border: 1px solid rgba(0, 0, 0, 0.23);
  11219. border-radius: 4px;
  11220. box-sizing: border-box;
  11221. background: #fff;
  11222. margin: 0 20px 0 0;
  11223. }
  11224. .elist_input .elist_input_box span {
  11225. height: 36px;
  11226. line-height: 36px;
  11227. color: rgb(82, 82, 82);
  11228. min-width: 80px;
  11229. }
  11230. .elist_input .elist_input_box .remove {
  11231. height: 20px;
  11232. width: 20px;
  11233. background-size: 100% 100%;
  11234. background-position: unset;
  11235. margin-left: 5px;
  11236. }
  11237. .elist_input_box >>> .el-rate {
  11238. display: flex;
  11239. height: 36px;
  11240. align-items: center;
  11241. }
  11242. .elist_input_box .elist_inptu_text {
  11243. width: 100%;
  11244. display: flex;
  11245. align-items: center;
  11246. margin-top: 10px;
  11247. }
  11248. .elist_input_box .elist_inptu_text input {
  11249. /* width: 500px; */
  11250. width: 100%;
  11251. max-width: unset;
  11252. }
  11253. .elist_input_box >>> .el-rate__icon {
  11254. font-size: 24px;
  11255. }
  11256. .elist_btn {
  11257. margin-top: 10px;
  11258. }
  11259. .lineTitle {
  11260. margin-top: 15px;
  11261. width: 110px;
  11262. }
  11263. .courseTop {
  11264. display: flex;
  11265. flex-direction: row;
  11266. justify-content: flex-start;
  11267. align-items: center;
  11268. /* width: 100%; */
  11269. width: calc(100% - 20px);
  11270. /* background: rgb(255, 255, 255); */
  11271. /* border-radius: 10px; */
  11272. padding: 20px 0;
  11273. }
  11274. .stepsNav {
  11275. display: flex;
  11276. flex-direction: row;
  11277. justify-content: flex-start;
  11278. align-items: center;
  11279. }
  11280. .stepsWord {
  11281. font-size: 18px;
  11282. color: #fff;
  11283. font-weight: bold;
  11284. margin-left: auto;
  11285. background: rgb(15, 126, 255);
  11286. border-radius: 5px;
  11287. padding: 3px 25px;
  11288. box-sizing: border-box;
  11289. }
  11290. .rightBox {
  11291. width: calc(100% - 20px);
  11292. background: rgb(255, 255, 255);
  11293. border-radius: 10px;
  11294. overflow: auto;
  11295. height: calc(100% - 130px);
  11296. position: relative;
  11297. }
  11298. .e_add_top {
  11299. display: flex;
  11300. justify-content: space-between;
  11301. padding: 20px 20px 0 20px;
  11302. border-radius: 3px;
  11303. background: #fff;
  11304. }
  11305. .e_add_title2 {
  11306. display: flex;
  11307. align-items: center;
  11308. }
  11309. .e_add_title2 span {
  11310. width: 40px;
  11311. }
  11312. .e_add_title {
  11313. display: flex;
  11314. align-items: center;
  11315. color: #b8b8b8;
  11316. font-size: 18px;
  11317. position: relative;
  11318. height: 40px;
  11319. }
  11320. .e_add_title span {
  11321. margin-right: 10px;
  11322. }
  11323. .e_add_title .el_input {
  11324. width: 300px;
  11325. }
  11326. .e_add_title >>> .el-input__inner {
  11327. width: 400px;
  11328. }
  11329. .e_add_btn {
  11330. }
  11331. .e_add_content {
  11332. display: flex;
  11333. width: 100%;
  11334. }
  11335. .e_add_list {
  11336. background: #fff;
  11337. height: 500px;
  11338. width: 210px;
  11339. position: relative;
  11340. margin: 15px 5px 0 0;
  11341. flex-shrink: 0;
  11342. display: flex;
  11343. flex-direction: column;
  11344. }
  11345. .e_add_list_title {
  11346. font-size: 20px;
  11347. width: 100%;
  11348. box-sizing: border-box;
  11349. padding: 15px 40px;
  11350. text-align: center;
  11351. border-bottom: 1px solid #eaeaea;
  11352. position: relative;
  11353. display: flex;
  11354. align-items: center;
  11355. justify-content: center;
  11356. height: 57px;
  11357. background: #f6f6f6;
  11358. }
  11359. .e_add_list_title span {
  11360. overflow: hidden;
  11361. white-space: nowrap;
  11362. text-overflow: ellipsis;
  11363. }
  11364. .e_add_list_title img {
  11365. position: absolute;
  11366. right: 15px;
  11367. width: 25px;
  11368. cursor: pointer;
  11369. top: 50%;
  11370. transform: translateY(-50%);
  11371. }
  11372. .e_add_list_body {
  11373. height: calc(100% - 187px);
  11374. overflow: auto;
  11375. }
  11376. .e_add_list_child {
  11377. width: 100%;
  11378. display: flex;
  11379. align-items: center;
  11380. justify-content: center;
  11381. position: relative;
  11382. box-sizing: border-box;
  11383. padding: 15px 40px;
  11384. text-align: center;
  11385. }
  11386. .e_add_list_child span {
  11387. overflow: hidden;
  11388. white-space: nowrap;
  11389. text-overflow: ellipsis;
  11390. cursor: pointer;
  11391. }
  11392. .e_add_list_child img {
  11393. position: absolute;
  11394. right: 10px;
  11395. width: 21px;
  11396. cursor: pointer;
  11397. top: 50%;
  11398. transform: translateY(-50%);
  11399. }
  11400. .e_add_list_child + .e_add_list_child {
  11401. border-top: 1px solid #eaeaea;
  11402. }
  11403. .e_add_list_child .active {
  11404. color: #409eff;
  11405. }
  11406. .e_add_list_btn {
  11407. position: absolute;
  11408. bottom: 0;
  11409. height: 50px;
  11410. background: rgb(120, 120, 254);
  11411. width: 100%;
  11412. color: #fff;
  11413. font-size: 16px;
  11414. text-align: center;
  11415. line-height: 50px;
  11416. cursor: pointer;
  11417. }
  11418. .e_add_list_detail {
  11419. position: absolute;
  11420. bottom: 0;
  11421. height: 130px;
  11422. background: rgb(120, 120, 254);
  11423. width: 100%;
  11424. color: #fff;
  11425. font-size: 16px;
  11426. display: flex;
  11427. align-items: center;
  11428. justify-content: center;
  11429. }
  11430. .e_add_list_detail textarea {
  11431. height: 90%;
  11432. width: 95%;
  11433. border: none;
  11434. resize: none;
  11435. outline: none;
  11436. padding: 5px;
  11437. box-sizing: border-box;
  11438. }
  11439. .e_add_list_pbox {
  11440. width: 100%;
  11441. }
  11442. .e_add_list_pbox_title {
  11443. height: 50px;
  11444. background: #fff;
  11445. display: flex;
  11446. align-items: center;
  11447. width: 100%;
  11448. box-sizing: border-box;
  11449. padding: 0 20px;
  11450. flex-direction: row;
  11451. flex-wrap: wrap;
  11452. }
  11453. .type_title {
  11454. font-size: 18px;
  11455. font-weight: 700;
  11456. }
  11457. .type_content {
  11458. font-size: 16px;
  11459. margin-left: 30px;
  11460. }
  11461. .type_content span + span {
  11462. margin-left: 20px;
  11463. }
  11464. .type_content span {
  11465. cursor: pointer;
  11466. padding-bottom: 5px;
  11467. box-sizing: border-box;
  11468. }
  11469. .type_content .active {
  11470. color: #409eff;
  11471. border-bottom: 2px solid #409eff;
  11472. }
  11473. .e_add_list_pbox_content {
  11474. height: calc(100% - 50px);
  11475. display: flex;
  11476. align-items: center;
  11477. width: 100%;
  11478. background: #fff;
  11479. }
  11480. .mbCss {
  11481. width: 100%;
  11482. display: flex;
  11483. flex-direction: row;
  11484. flex-wrap: nowrap;
  11485. align-content: center;
  11486. align-items: flex-start;
  11487. justify-content: flex-start;
  11488. }
  11489. .pjCss {
  11490. /* width: 42%; */
  11491. width: calc(100% - 55%);
  11492. display: flex;
  11493. flex-direction: column;
  11494. flex-wrap: nowrap;
  11495. align-items: flex-start;
  11496. margin-top: 1.5%;
  11497. }
  11498. .e_box {
  11499. display: flex;
  11500. flex-wrap: wrap;
  11501. max-height: 500px;
  11502. align-items: flex-start;
  11503. overflow: auto;
  11504. }
  11505. .e_card {
  11506. border: 1px solid #ccc;
  11507. background: #fff;
  11508. margin-right: 20px;
  11509. width: 270px;
  11510. display: flex;
  11511. flex-direction: column;
  11512. align-items: center;
  11513. border-radius: 5px;
  11514. margin-top: 10px;
  11515. text-align: center;
  11516. }
  11517. .e_card_picture {
  11518. margin: 10px 0;
  11519. }
  11520. .e_card_picture > img {
  11521. width: 50px;
  11522. }
  11523. .e_card_name {
  11524. width: 100%;
  11525. padding: 0 10px;
  11526. box-sizing: border-box;
  11527. margin-bottom: 10px;
  11528. overflow: hidden;
  11529. text-overflow: ellipsis;
  11530. white-space: nowrap;
  11531. }
  11532. .e_card_time {
  11533. width: 100%;
  11534. padding: 0 10px;
  11535. box-sizing: border-box;
  11536. font-size: 15px;
  11537. color: #c3c3c3;
  11538. margin-bottom: 10px;
  11539. }
  11540. .e_card_btn {
  11541. height: 40px;
  11542. display: flex;
  11543. align-items: center;
  11544. width: 100%;
  11545. background: rgb(244, 244, 244);
  11546. }
  11547. .e_card_btn:hover {
  11548. background: rgb(221 221 221);
  11549. }
  11550. .e_card_btn span {
  11551. flex: 1 1 auto;
  11552. text-align: center;
  11553. cursor: pointer;
  11554. }
  11555. .addEva {
  11556. border: 1px solid #ccc;
  11557. background: #fff;
  11558. margin-right: 20px;
  11559. width: 270px;
  11560. height: 149px;
  11561. display: flex;
  11562. flex-direction: column;
  11563. align-items: center;
  11564. border-radius: 5px;
  11565. margin-top: 10px;
  11566. text-align: center;
  11567. cursor: pointer;
  11568. justify-content: center;
  11569. }
  11570. .addEva > img {
  11571. width: 50px;
  11572. object-fit: cover;
  11573. }
  11574. .uploadFm {
  11575. border: 1px dashed #ccc;
  11576. width: 202px;
  11577. height: 102px;
  11578. position: relative;
  11579. cursor: pointer;
  11580. }
  11581. .uploadFm > img {
  11582. position: absolute;
  11583. top: 25px;
  11584. left: 35%;
  11585. width: 50px;
  11586. }
  11587. .fileCss {
  11588. width: 100%;
  11589. display: flex;
  11590. flex-direction: row;
  11591. flex-wrap: nowrap;
  11592. justify-content: space-around;
  11593. align-items: center;
  11594. padding-top: 15px;
  11595. }
  11596. .sysPicBox {
  11597. display: flex;
  11598. flex-direction: row;
  11599. flex-wrap: wrap;
  11600. align-content: flex-start;
  11601. height: 435px;
  11602. overflow: auto;
  11603. }
  11604. .sysPic {
  11605. width: 200px;
  11606. height: 115px;
  11607. margin: 0 20px 20px 0;
  11608. cursor: pointer;
  11609. }
  11610. .sysPic > img,
  11611. .isSysPic > img,
  11612. .deletePic > img {
  11613. width: 100%;
  11614. height: 100%;
  11615. object-fit: cover;
  11616. }
  11617. .isSysPic {
  11618. width: 200px;
  11619. height: 115px;
  11620. position: relative;
  11621. }
  11622. .deletePic {
  11623. width: 20px;
  11624. height: 20px;
  11625. position: absolute;
  11626. top: 0;
  11627. right: 0;
  11628. cursor: pointer;
  11629. }
  11630. .select_box1 {
  11631. }
  11632. .select_box1_img {
  11633. background: #fff;
  11634. border-radius: 5px;
  11635. padding: 15px;
  11636. box-sizing: border-box;
  11637. margin-bottom: 20px;
  11638. }
  11639. .select_box1_title {
  11640. padding: 0 0 15px 0;
  11641. border-bottom: 1px solid #eee;
  11642. margin-bottom: 15px;
  11643. }
  11644. .select_box1_title span:nth-child(1) {
  11645. font-size: 16px;
  11646. margin-right: 20px;
  11647. color: #000;
  11648. }
  11649. .select_box1_title span:nth-child(2) {
  11650. font-size: 14px;
  11651. color: rgb(112, 112, 112);
  11652. }
  11653. .select_box1_add_img {
  11654. }
  11655. .select_box1_select {
  11656. background: #fff;
  11657. border-radius: 5px;
  11658. padding: 15px;
  11659. box-sizing: border-box;
  11660. }
  11661. .select_box2 {
  11662. }
  11663. .select_box2_title {
  11664. background: #fff;
  11665. border-radius: 5px;
  11666. padding: 5px 10px;
  11667. box-sizing: border-box;
  11668. margin-bottom: 10px;
  11669. }
  11670. .select_box2_box {
  11671. display: flex;
  11672. height: 500px;
  11673. }
  11674. .select_box2_img {
  11675. width: calc(100% - 310px);
  11676. height: 100%;
  11677. overflow: auto;
  11678. background: #fff;
  11679. border-radius: 5px;
  11680. }
  11681. .select_box2_img img {
  11682. width: 100%;
  11683. }
  11684. .select_box2_answer {
  11685. background: #fff;
  11686. margin-left: 10px;
  11687. border-radius: 5px;
  11688. width: 300px;
  11689. overflow: auto;
  11690. height: 100%;
  11691. display: flex;
  11692. flex-direction: column;
  11693. align-items: center;
  11694. padding-top: 10px;
  11695. box-sizing: border-box;
  11696. }
  11697. .select_box2_answer_box {
  11698. margin: 0 0 10px 0;
  11699. width: 85%;
  11700. }
  11701. .rate_textarea {
  11702. font: inherit;
  11703. color: currentColor;
  11704. width: 100%;
  11705. padding: 8px 14px;
  11706. display: block;
  11707. min-width: 0;
  11708. outline: none;
  11709. border: 1px solid rgba(0, 0, 0, 0.23);
  11710. border-radius: 4px;
  11711. box-sizing: border-box;
  11712. background: #fff;
  11713. margin: 0 20px 0 0;
  11714. resize: none;
  11715. }
  11716. .select_answer_title {
  11717. text-align: left;
  11718. width: 85%;
  11719. margin-bottom: 10px;
  11720. font-size: 18px;
  11721. color: #8e8e8e;
  11722. }
  11723. .mask {
  11724. background-color: rgb(0 0 0 / 30%);
  11725. /* position: fixed; */
  11726. position: absolute;
  11727. top: 0;
  11728. left: 0;
  11729. width: 100%;
  11730. height: 100%;
  11731. z-index: 90;
  11732. display: flex;
  11733. align-items: center;
  11734. justify-content: center;
  11735. }
  11736. .mask2 {
  11737. position: fixed !important;
  11738. z-index: 999999;
  11739. }
  11740. .progressBox {
  11741. width: 300px;
  11742. height: 150px;
  11743. background: #fff;
  11744. border-radius: 10px;
  11745. box-shadow: 0 0 6px 1px #bfbfbf;
  11746. display: flex;
  11747. align-items: center;
  11748. justify-content: center;
  11749. flex-direction: column;
  11750. position: relative;
  11751. color: #6c6c6c;
  11752. }
  11753. .progressBox .lbox {
  11754. height: 80px;
  11755. font-size: 16px;
  11756. display: flex;
  11757. align-items: center;
  11758. }
  11759. .progressBox .lbox img {
  11760. width: 40px;
  11761. margin-right: 20px;
  11762. }
  11763. .progressBox >>> .el-progress-bar__outer {
  11764. background-color: #d1dfff !important;
  11765. }
  11766. .mask .lbox2 {
  11767. height: 100%;
  11768. width: 100%;
  11769. font-size: 19px;
  11770. display: flex;
  11771. align-items: center;
  11772. justify-content: center;
  11773. }
  11774. .mask .lbox2 img {
  11775. width: 40px;
  11776. }
  11777. .updateTips::after {
  11778. content: "他人课程暂不支持修改基本信息,只支持修改阶段内容。";
  11779. font-size: 14px;
  11780. margin-left: 20px;
  11781. font-weight: 400;
  11782. color: #ff3a3a;
  11783. }
  11784. .updateMask {
  11785. width: 100%;
  11786. z-index: 3;
  11787. top: 0;
  11788. position: absolute;
  11789. }
  11790. .t_j_box {
  11791. display: flex;
  11792. }
  11793. .t_j_box span:nth-child(1) {
  11794. width: 15%;
  11795. overflow: hidden;
  11796. margin-right: 10px;
  11797. text-overflow: ellipsis;
  11798. white-space: nowrap;
  11799. }
  11800. .t_j_box span:nth-child(2) {
  11801. min-width: 30px;
  11802. margin-right: 10px;
  11803. }
  11804. .t_j_box span:nth-child(3) {
  11805. width: 38%;
  11806. overflow: hidden;
  11807. text-overflow: ellipsis;
  11808. margin-right: 10px;
  11809. }
  11810. .t_j_box span:nth-child(4) {
  11811. max-width: calc(45% - 60px);
  11812. overflow: hidden;
  11813. text-overflow: ellipsis;
  11814. }
  11815. .sentenBox {
  11816. background: #fff;
  11817. height: 600px;
  11818. overflow: auto;
  11819. background-image: url("../../../assets/icon/conSentences/csBg.png");
  11820. background-position: 102%;
  11821. background-repeat: no-repeat;
  11822. background-size: 60%;
  11823. }
  11824. .addSen {
  11825. background: #409efe;
  11826. width: 90px;
  11827. color: #fff;
  11828. height: 35px;
  11829. text-align: center;
  11830. line-height: 35px;
  11831. border-radius: 5px;
  11832. float: right;
  11833. margin: 10px 20px 0 0;
  11834. cursor: pointer;
  11835. }
  11836. .sentenTop {
  11837. display: flex;
  11838. flex-direction: row;
  11839. flex-wrap: nowrap;
  11840. align-items: center;
  11841. }
  11842. .sentenTop > div:nth-child(2) {
  11843. width: 300px;
  11844. margin: 0 15px;
  11845. }
  11846. .sentenTop > div:nth-child(3) {
  11847. background: #409efe;
  11848. color: #fff;
  11849. width: 65px;
  11850. height: 35px;
  11851. text-align: center;
  11852. line-height: 35px;
  11853. border-radius: 5px;
  11854. cursor: pointer;
  11855. }
  11856. .cardList {
  11857. padding: 30px 0 20px 0;
  11858. display: flex;
  11859. flex-direction: row;
  11860. flex-wrap: wrap;
  11861. align-items: center;
  11862. box-sizing: border-box;
  11863. border-bottom: 1px solid #f4f4f4;
  11864. width: 98%;
  11865. margin: 0 auto;
  11866. }
  11867. .cardBox {
  11868. display: flex;
  11869. flex-direction: row;
  11870. flex-wrap: wrap;
  11871. align-items: center;
  11872. align-content: center;
  11873. }
  11874. .isCard,
  11875. .isCard1 {
  11876. width: 140px;
  11877. height: 65px;
  11878. text-align: center;
  11879. line-height: 65px;
  11880. font-size: 20px;
  11881. cursor: pointer;
  11882. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  11883. background-size: cover;
  11884. position: relative;
  11885. z-index: 99;
  11886. }
  11887. .isCard1 {
  11888. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  11889. }
  11890. .isCard:hover .deleteWord {
  11891. display: block;
  11892. }
  11893. .isCard > div:nth-child(1),
  11894. .isCard1 > div:nth-child(1) {
  11895. white-space: nowrap;
  11896. overflow: hidden;
  11897. text-overflow: ellipsis;
  11898. width: 80%;
  11899. margin: 0 auto;
  11900. }
  11901. .card {
  11902. width: 140px;
  11903. height: 65px;
  11904. }
  11905. .card > img {
  11906. width: 100%;
  11907. height: 100%;
  11908. }
  11909. .rightCardBox {
  11910. margin: 10px 0 0 10px;
  11911. }
  11912. .rightCardBox > div:nth-child(1) {
  11913. margin-bottom: 10px;
  11914. }
  11915. .cardCss {
  11916. display: flex;
  11917. flex-direction: column;
  11918. flex-wrap: nowrap;
  11919. align-items: center;
  11920. border-bottom: 3px solid #b4c3d3;
  11921. padding: 0 0 5px 0;
  11922. margin-right: 10px;
  11923. }
  11924. .cardCss > div:nth-child(2) {
  11925. background: #5b7b9d;
  11926. color: #fff;
  11927. width: 20px;
  11928. height: 20px;
  11929. border-radius: 50%;
  11930. text-align: center;
  11931. line-height: 20px;
  11932. }
  11933. .sentenTopBox {
  11934. display: flex;
  11935. flex-direction: row;
  11936. flex-wrap: nowrap;
  11937. align-items: center;
  11938. justify-content: space-between;
  11939. padding: 55px 0 0 20px;
  11940. box-sizing: border-box;
  11941. width: 85%;
  11942. }
  11943. .stepsBottom {
  11944. width: 85%;
  11945. margin-bottom: 20px;
  11946. box-shadow: 0 0 10px 10px #f7f7f7;
  11947. background: #f7f7f7;
  11948. border-radius: 10px;
  11949. overflow: hidden;
  11950. }
  11951. .navTop {
  11952. background: #53749b;
  11953. color: #fff;
  11954. height: 40px;
  11955. line-height: 40px;
  11956. padding-left: 15px;
  11957. font-size: 18px;
  11958. }
  11959. .navBottom {
  11960. background: #6b91b7;
  11961. height: 180px;
  11962. overflow: auto;
  11963. }
  11964. .navTask {
  11965. display: flex;
  11966. flex-direction: row;
  11967. flex-wrap: nowrap;
  11968. align-items: center;
  11969. padding: 5px 5px 5px 0;
  11970. cursor: pointer;
  11971. background: #ffffff;
  11972. width: 95%;
  11973. margin: 10px auto;
  11974. box-sizing: border-box;
  11975. border-radius: 5px;
  11976. }
  11977. .isNavTask {
  11978. /* background: #7e9ebd; */
  11979. }
  11980. .navTask > div:nth-child(1) {
  11981. background: #468fe4;
  11982. color: #fff;
  11983. width: 65px;
  11984. height: 25px;
  11985. line-height: 25px;
  11986. text-align: center;
  11987. border-radius: 5px;
  11988. margin: 0 10px 0 5px;
  11989. font-size: 14px;
  11990. }
  11991. .navTask > div:nth-child(2) {
  11992. /* color: #fff; */
  11993. /* max-width: 130px; */
  11994. width: 130px;
  11995. white-space: nowrap;
  11996. overflow: hidden;
  11997. text-overflow: ellipsis;
  11998. font-size: 15px;
  11999. }
  12000. .groupBox {
  12001. }
  12002. .groupContent + .groupContent {
  12003. margin-top: 30px;
  12004. }
  12005. .groupTitle {
  12006. font-size: 24px;
  12007. color: rgb(80, 80, 80);
  12008. margin-bottom: 20px;
  12009. }
  12010. .groupName {
  12011. display: flex;
  12012. align-items: center;
  12013. }
  12014. .groupn {
  12015. font-size: 15px;
  12016. margin-right: 10px;
  12017. }
  12018. .groupName + .groupName {
  12019. margin-top: 15px;
  12020. }
  12021. .groupBtn {
  12022. margin-left: 10px;
  12023. }
  12024. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  12025. text-align: left;
  12026. }
  12027. .toolimg {
  12028. width: 200px;
  12029. border-radius: 10px;
  12030. box-shadow: rgb(223 218 218) 0px 0px 6px 1px;
  12031. cursor: pointer;
  12032. overflow: hidden;
  12033. position: relative;
  12034. }
  12035. .toolimg > img {
  12036. width: 100%;
  12037. height: 105px;
  12038. object-fit: contain;
  12039. }
  12040. .proMan {
  12041. width: 95%;
  12042. margin: 0 auto;
  12043. padding: 0 0 20px;
  12044. margin-top: 20px;
  12045. }
  12046. .proMan .title {
  12047. margin-bottom: 10px;
  12048. display: flex;
  12049. align-items: center;
  12050. }
  12051. .proMan .title img {
  12052. margin-right: 5px;
  12053. height: 17px;
  12054. width: 17px;
  12055. }
  12056. .ed_s >>> .text {
  12057. height: calc(100% - 42px);
  12058. }
  12059. .toolimg_box {
  12060. display: flex;
  12061. flex-wrap: wrap;
  12062. }
  12063. .toolimg {
  12064. margin: 0 20px 20px 0;
  12065. }
  12066. .comment {
  12067. background: #f5f5f5;
  12068. /* border-radius: 0 0 15px 15px; */
  12069. display: flex;
  12070. flex-direction: row;
  12071. flex-wrap: nowrap;
  12072. align-items: center;
  12073. justify-content: flex-end;
  12074. height: 35px;
  12075. }
  12076. .worksName {
  12077. display: flex;
  12078. width: 92%;
  12079. flex-direction: row;
  12080. flex-wrap: nowrap;
  12081. justify-content: space-between;
  12082. align-items: center;
  12083. margin: 0 10px;
  12084. }
  12085. .worksName > div:nth-child(1) {
  12086. width: 120px;
  12087. white-space: nowrap;
  12088. overflow: hidden;
  12089. text-overflow: ellipsis;
  12090. }
  12091. .deleteImg {
  12092. width: 25px !important;
  12093. height: 25px !important;
  12094. cursor: pointer;
  12095. position: absolute;
  12096. top: 10px;
  12097. right: 10px;
  12098. }
  12099. .texttitle {
  12100. background: #1e5cc9;
  12101. /* width: 98%; */
  12102. height: 45px;
  12103. color: #fff;
  12104. line-height: 45px;
  12105. padding-left: 20px;
  12106. box-sizing: border-box;
  12107. }
  12108. .textBox {
  12109. font-size: 20px;
  12110. width: 90%;
  12111. display: flex;
  12112. flex-direction: column;
  12113. align-items: center;
  12114. margin: 20px auto 0;
  12115. }
  12116. .textContent {
  12117. font-size: 18px;
  12118. height: 450px;
  12119. width: 95%;
  12120. overflow: auto;
  12121. line-height: 30px;
  12122. }
  12123. .vedioTaskBox {
  12124. width: 100%;
  12125. display: flex;
  12126. flex-direction: row;
  12127. flex-wrap: nowrap;
  12128. align-items: center;
  12129. }
  12130. .box_course {
  12131. /* width: 60%; */
  12132. width: 81%;
  12133. }
  12134. .wheel {
  12135. width: 100%;
  12136. height: 100%;
  12137. }
  12138. .vedioList {
  12139. /* background: #f2f2f2; */
  12140. background: #fff;
  12141. border: 1px solid #ececec;
  12142. /* width: 38.8%; */
  12143. width: calc(100% - 83%);
  12144. height: 650px;
  12145. border-radius: 10px;
  12146. overflow: hidden;
  12147. }
  12148. .navTitile {
  12149. padding: 0 0px 0 15px;
  12150. background: #1e5cc9;
  12151. color: #fff;
  12152. height: 40px;
  12153. line-height: 40px;
  12154. border-top-left-radius: 10px;
  12155. border-top-right-radius: 10px;
  12156. }
  12157. .navBox {
  12158. background: rgb(255, 255, 255);
  12159. height: calc(100% - 40px);
  12160. padding: 5px 1px 0 1px;
  12161. overflow: auto;
  12162. }
  12163. .vedioTimeBox {
  12164. display: flex;
  12165. flex-direction: row;
  12166. align-items: center;
  12167. flex-wrap: nowrap;
  12168. position: relative;
  12169. }
  12170. .vedioName {
  12171. cursor: pointer;
  12172. margin: 0px 0px 10px 5px;
  12173. white-space: nowrap;
  12174. overflow: hidden;
  12175. text-overflow: ellipsis;
  12176. width: 100%;
  12177. }
  12178. .isClickNav {
  12179. color: #499eef;
  12180. }
  12181. .full_diy >>> .el-dialog {
  12182. margin: 0 !important;
  12183. height: 100%;
  12184. padding: 4px;
  12185. }
  12186. .full_diy >>> .el-dialog__body {
  12187. height: calc(100% - 100px);
  12188. }
  12189. .full_diy2 >>> .el-dialog__body {
  12190. height: calc(100% - 50px);
  12191. padding: 0;
  12192. }
  12193. .queTop {
  12194. display: flex;
  12195. padding: 20px 0 20px 30px;
  12196. width: 100%;
  12197. flex-direction: row;
  12198. justify-content: flex-start;
  12199. align-items: center;
  12200. border-bottom: 1px solid #eeeeee;
  12201. box-sizing: border-box;
  12202. }
  12203. .question {
  12204. width: 40px;
  12205. margin-right: 10px;
  12206. margin-top: 7px;
  12207. }
  12208. .queTitle {
  12209. margin-left: 5px;
  12210. font-size: 25px;
  12211. display: flex;
  12212. align-items: center;
  12213. }
  12214. .addEditor {
  12215. width: 100px;
  12216. height: 30px;
  12217. background: #42cda6;
  12218. color: #fff;
  12219. border-radius: 5px;
  12220. text-align: center;
  12221. line-height: 30px;
  12222. box-shadow: 1px 3px 6px 1px #bfbfbf;
  12223. cursor: pointer;
  12224. }
  12225. .answerWidth {
  12226. width: 250px !important;
  12227. }
  12228. .answerBg {
  12229. background: url("../../../assets/icon/answerBgNew.png") no-repeat;
  12230. background-size: cover;
  12231. width: 100%;
  12232. height: 120px;
  12233. padding: 0 10px;
  12234. box-sizing: border-box;
  12235. color: #fff;
  12236. text-align: center;
  12237. display: flex;
  12238. flex-direction: column;
  12239. flex-wrap: nowrap;
  12240. align-items: center;
  12241. position: relative;
  12242. justify-content: center;
  12243. }
  12244. .answerContent {
  12245. /* width: 215px; */
  12246. max-height: 60px;
  12247. word-break: break-all;
  12248. text-align: center;
  12249. /* white-space: nowrap; */
  12250. overflow: hidden;
  12251. text-overflow: ellipsis;
  12252. /* padding: 23px 0 0; */
  12253. -webkit-line-clamp: 3;
  12254. -webkit-box-orient: vertical;
  12255. display: -webkit-box;
  12256. font-size: 15px;
  12257. }
  12258. .fullStyle >>> .el-dialog__body {
  12259. height: 100% !important;
  12260. }
  12261. .fullStyle >>> .el-dialog,
  12262. .fullStyle {
  12263. width: 100% !important;
  12264. max-width: 100% !important;
  12265. height: 100% !important;
  12266. margin: 0 !important;
  12267. }
  12268. .tcMember + .tcMember::before {
  12269. content: "、";
  12270. }
  12271. .tcMember_box {
  12272. margin-left: 10px;
  12273. border: 1px solid #c0c4cc;
  12274. padding: 10px 14px;
  12275. border-radius: 4px;
  12276. background: #fff;
  12277. cursor: pointer;
  12278. color: #606266;
  12279. font-size: 14px;
  12280. width: 225px;
  12281. overflow: hidden;
  12282. text-overflow: ellipsis;
  12283. white-space: nowrap;
  12284. }
  12285. .upCss >>> .el-upload-list--picture .el-upload-list__item {
  12286. height: auto;
  12287. }
  12288. .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
  12289. width: 200px;
  12290. height: 100px;
  12291. object-fit: contain;
  12292. background: unset;
  12293. }
  12294. .upCss
  12295. >>> .el-upload-list--picture
  12296. .el-upload-list__item.is-success
  12297. .el-upload-list__item-name {
  12298. display: none;
  12299. }
  12300. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  12301. color: rgb(0 123 255) !important;
  12302. }
  12303. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  12304. color: rgb(0 123 255) !important;
  12305. }
  12306. .closeCss {
  12307. position: absolute;
  12308. top: 8px;
  12309. right: 8px;
  12310. cursor: pointer;
  12311. width: 20px;
  12312. height: 20px;
  12313. }
  12314. .closeCss > img {
  12315. width: 100%;
  12316. height: 100%;
  12317. }
  12318. .f_size_box {
  12319. display: flex;
  12320. margin: 5px 0px;
  12321. align-items: center;
  12322. color: #6c6c6c;
  12323. }
  12324. .f_size_box img {
  12325. height: 20px;
  12326. }
  12327. .f_size_box > div {
  12328. margin: 0 8px;
  12329. }
  12330. .moveBtn {
  12331. display: flex;
  12332. flex-direction: column;
  12333. align-items: flex-end;
  12334. width: 40px;
  12335. }
  12336. </style>