addCourse.vue 384 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590
  1. <template>
  2. <div class="pb_content" style="background: #F0F2F5;">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="courseTop">
  6. <div class="stepsNav">
  7. <el-breadcrumb separator-class="el-icon-arrow-right">
  8. <!-- /studentCourse -->
  9. <el-breadcrumb-item :to="{
  10. path:
  11. fpath +
  12. '?userid=' +
  13. userid +
  14. '&oid=' +
  15. oid +
  16. '&org=' +
  17. org + '&role=' + role,
  18. }">{{
  19. orgArray.indexOf(org) != -1 || oidArray.indexOf(oid) != -1
  20. ? "师生项目"
  21. : "项目管理"
  22. }}
  23. </el-breadcrumb-item>
  24. <el-breadcrumb-item>
  25. <span style="color: rgb(15, 126, 255)">添加项目</span>
  26. </el-breadcrumb-item>
  27. </el-breadcrumb>
  28. </div>
  29. <div class="r_pub_button_retrun" @click="retrunCourse">返回</div>
  30. </div>
  31. <div ref="stepBox" class="stepBox">
  32. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange">
  33. <div class="updateMask" :style="{
  34. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  35. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  36. <div class="whiteBg" style="background:unset;padding: 0;">
  37. <div>
  38. <div class="basic_box" style="padding: 0;">
  39. <div class="big_box">
  40. <div class="left_first">
  41. <div :class="{
  42. updateTips: cid && userid != courseUserid && role != '1',
  43. }">
  44. <div style="width: 100%;">
  45. <div class="course_input_box">
  46. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course.png" /></div>
  47. <input type="text" placeholder="请输入项目名称" class="binfo_input" v-model="courseName"
  48. style="border: 1.5px solid rgb(202, 209, 220);margin: 0px 10px 0px 0px;border-radius: 5px;font-weight: 600;padding: 12px 14px 12px 71px;" />
  49. <el-switch v-model="isTeacherSee" active-text="是否公开此项目"
  50. style="justify-content: center;width: 200px;"></el-switch>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="both">
  55. <div class="choose">
  56. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  57. <span v-if="CourseTypeJson[item.id].length > 0">{{
  58. item.name
  59. }}:</span>
  60. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0">
  61. <el-checkbox @change="updateType(item1)" v-for="item1 in CourseTypeJson[item.id]"
  62. :key="item1.id" :label="item1.id">{{ item1.name }}
  63. </el-checkbox>
  64. </el-checkbox-group>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="right_first">
  70. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  71. <div style="width: 100%;">
  72. <div class="uploadFm" @click="choosePicVisible = true" :class="{ uploadFm2: cover.length }">
  73. <img src="../../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0" />
  74. <img :src="cover[0].url" alt="" class="cover_p" v-else />
  75. <div v-if="cover.length == 0">点击添加封面</div>
  76. <div class="cover_mask"><img src="../../../assets/icon/new/cover_update.png" /><span
  77. style="margin-top:5px;">修改封面</span></div>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="whiteBg" style="background:#fff;margin: 10px 0;min-height: calc(100% - 300px);">
  86. <div class="whiteBg" style="border-radius: 0">
  87. <div class="c_info_title">项目权限设置</div>
  88. <div class="wb_j_box">
  89. <div class="wb_j_box_content">
  90. <div class="wb_j_box_btn" @click="openMember">
  91. <div class="wb_j_box_title">协同人员</div>
  92. <div class="wb_j_box_btn_c">
  93. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  94. v-if="checkboxList3.length" popper-class="text_tooltip2">
  95. <div class="wb_j_box_span">{{ getListMan2(checkboxList3) }}</div>
  96. </el-tooltip>
  97. <div v-else class="wb_j_box_span">请选择协同人员</div>
  98. <div class="wb_j_box_arrow"></div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. <div class="whiteBg" style="border-radius: 0; margin-top: 15px;padding-bottom: 20px;">
  105. <div class="c_info_title">项目简要描述</div>
  106. <div style="width: 100%;padding: 0px 20px;box-sizing: border-box;">
  107. <div style="width: calc((100% - 55% - 100px) * 2 - 30px)">
  108. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText"
  109. :placeholder="'1、项目内容说明' +
  110. '\n' +
  111. '2、项目学习知识目标' +
  112. '\n' +
  113. '3、项目学习技能目标'
  114. "></textarea>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. <div class="info_btnBox3">
  120. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  121. goTo(
  122. fpath + '?userid=' + userid + '&oid=' + oid + '&org=' + org + '&role=' + role
  123. )
  124. ">
  125. 返回项目
  126. </button>
  127. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 6" @click="lastSteps">
  128. {{ steps == 5 ? "返回首页" : "上一步" }}
  129. </button>
  130. <button class="c_pub_button_confirm" v-if="steps < 5" @click="nextSteps"
  131. :class="{ pub_btn_next_img: !((steps == 4 && type == 2) || (steps == 3 && type != 2)), pub_btn_finish_img: (steps == 4 && type == 2) || (steps == 3 && type != 2) }">
  132. {{ (steps == 4 && type == 2) || (steps == 3 && type != 2)
  133. ? "确认上传"
  134. : "下一步" }}
  135. </button>
  136. </div>
  137. </div>
  138. <div class="rightBox" v-if="this.steps == 2">
  139. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  140. <!-- <div
  141. style="
  142. color: #b8b8b8;
  143. background: #fff;
  144. width: 26%;
  145. height: 40px;
  146. border-radius: 15px;
  147. padding-left: 20px;
  148. line-height: 40px;
  149. font-size: 17px;
  150. box-shadow: 0px 1px 2px 2px #e0e0e0;
  151. "
  152. >-->
  153. <div class="right_title" style="border: none; margin: 0; padding: 0">
  154. 请选择合适的项目模板
  155. </div>
  156. <div class="wordbox">
  157. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  158. <div class="wordPic">
  159. <img src="../../../assets/icon/wordMub.png" alt />
  160. </div>
  161. <div style="
  162. margin-top: 10px;
  163. line-height: 19px;
  164. overflow: hidden;
  165. text-overflow: ellipsis;
  166. white-space: nowrap;
  167. padding: 0 20px;
  168. ">
  169. {{ aa.title }}
  170. </div>
  171. </div>
  172. <div class="wordTeacher" @click="checkTemplate2()">
  173. <div class="wordPic">
  174. <img src="../../../assets/icon/wordMub.png" alt />
  175. </div>
  176. <div style="
  177. margin-top: 10px;
  178. line-height: 19px;
  179. overflow: hidden;
  180. text-overflow: ellipsis;
  181. white-space: nowrap;
  182. padding: 0 20px;
  183. ">
  184. 新建项目
  185. </div>
  186. </div>
  187. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  188. <div class="wordPic">
  189. <img src="../../../assets/icon/wordMub.png" alt />
  190. </div>
  191. <div style="
  192. margin-top: 10px;
  193. line-height: 19px;
  194. overflow: hidden;
  195. text-overflow: ellipsis;
  196. white-space: nowrap;
  197. padding: 0 20px;
  198. ">
  199. 我的项目
  200. </div>
  201. </div> -->
  202. </div>
  203. </div>
  204. <div class="info_btnBox3">
  205. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  206. goTo(
  207. fpath + '?userid=' + userid + '&oid=' + oid + '&org=' + org + '&role=' + role
  208. )
  209. ">
  210. 返回项目
  211. </button>
  212. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 6" @click="lastSteps">
  213. {{ steps == 5 ? "返回首页" : "上一步" }}
  214. </button>
  215. <button class="c_pub_button_confirm" v-if="steps < 5" @click="nextSteps"
  216. :class="{ pub_btn_next_img: !((steps == 4 && type == 2) || (steps == 3 && type != 2)), pub_btn_finish_img: (steps == 4 && type == 2) || (steps == 3 && type != 2) }">
  217. {{ (steps == 4 && type == 2) || (steps == 3 && type != 2)
  218. ? "确认上传"
  219. : "下一步" }}
  220. </button>
  221. </div>
  222. </div>
  223. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  224. <div class="rb_c_box">
  225. <div class="rb_c_box_left">
  226. <div class="stepsBottom">
  227. <div class="navBottom">
  228. <div v-for="(stage, stageIndex) in unitJson" :key="stageIndex" class="stageBox" :class="{
  229. dragOverTop: newIndex === stageIndex && typeIndex == 'Unit-' + stageIndex && oldIndex > stageIndex && dragType == 'Unit',
  230. dragOverBottom: newIndex === stageIndex && typeIndex == 'Unit-' + stageIndex && oldIndex < stageIndex && dragType == 'Unit',
  231. }">
  232. <div @dragstart="dragUnitStart(stage, stageIndex)" @dragover.prevent="dragUnitOver(stageIndex)"
  233. @dragend="dragUnitEnd()" :draggable="isdrag == 'unit-' + stageIndex" @click="unitSet2(stageIndex)"
  234. class="navStage" :class="{
  235. isNavStage: stageIndex == unitIndex,
  236. isNavStageOpen: stage.toolOpen
  237. }">
  238. <div @mousedown="isdrag = 'unit-' + stageIndex" @mouseup="isdrag = ''"
  239. @touchstart="isdrag = 'unit-' + stageIndex" @touchend="isdrag = ''" style="left: 8px;"
  240. class="chapter_upload_drag"></div>
  241. <div class="nt_taskBox">
  242. <div class="nt_taskTitle">第{{ stageIndex + 1 }}阶段:</div>
  243. <div class="nt_taskName">
  244. <el-tooltip effect="light" :content="stage.dyName ? stage.dyName : '未命名阶段'" placement="top">
  245. <span>{{ stage.dyName ? stage.dyName : '未命名阶段' }}</span>
  246. </el-tooltip>
  247. </div>
  248. </div>
  249. <div @click.stop="unitOpen(stageIndex)" class="chapter_unit_open"></div>
  250. </div>
  251. <div v-for="(t, tIndex) in unitJson[stageIndex].chapterInfo[0]
  252. .taskJson" :key="`${stageIndex}-${tIndex}`" :class="{
  253. dragOverTop: newIndex === tIndex && typeIndex == 'task-' + tIndex && ((oldIndex > tIndex && stageIndex == checkUnitIndex) || (oldIndex == tIndex && stageIndex == checkUnitIndex && checkUnitIndex != oldUnitIndex)) && dragType == 'task',
  254. dragOverBottom: newIndex === tIndex && typeIndex == 'task-' + tIndex && oldIndex < tIndex && stageIndex == checkUnitIndex && dragType == 'task',
  255. }" :style="{ display: stage.toolOpen ? 'block' : 'none' }">
  256. <div @dragstart="dragTaskStart(t, tIndex, stageIndex)"
  257. @dragover.prevent="dragTaskOver(tIndex, stageIndex)" @dragend="dragTaskEnd()"
  258. :draggable="isdrag == 'task-' + stageIndex + '-' + tIndex" @click="goToTask2(tIndex, stageIndex)"
  259. class="navTask" style="padding-left: 12px;" :class="{
  260. isNavTask:
  261. isClickColor > 0 && isClickColor == tIndex + 1 && stageIndex == unitIndex,
  262. isNavOpen: t.toolOpen
  263. }">
  264. <div @click.stop="taskOpen(tIndex, stageIndex)" class="chapter_upload_open"></div>
  265. <div @mousedown="isdrag = 'task-' + stageIndex + '-' + tIndex" @mouseup="isdrag = ''"
  266. @touchstart="isdrag = 'task-' + stageIndex + '-' + tIndex" @touchend="isdrag = ''"
  267. style="left: 20px;" class="chapter_upload_drag"></div>
  268. <div class="nt_taskBox" style="width: calc(100% - 52px);">
  269. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  270. <div class="nt_taskName">
  271. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  272. <span>{{ t.task ? t.task : '未命名任务' }}</span>
  273. </el-tooltip>
  274. </div>
  275. </div>
  276. </div>
  277. <div class="gjBox" v-if="t.toolArray.length && t.toolOpen">
  278. <div v-for="(tool, toolIndex2) in t.toolArray" :key="toolIndex2"
  279. @click="jumpGj2(tIndex, toolIndex2, stageIndex)">
  280. <div class="gjCss"
  281. :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}${stageIndex}` }">
  282. <div>步骤{{ toolIndex2 + 1 }}:</div>
  283. <div>{{ toolsData[tool.tool] && toolsData[tool.tool].name }}</div>
  284. </div>
  285. </div>
  286. </div>
  287. </div>
  288. </div>
  289. </div>
  290. </div>
  291. </div>
  292. <div class="rb_c_box_right">
  293. <div class="basic_box" ref="unitBox">
  294. <div style="
  295. display: flex;
  296. flex-direction: row;
  297. align-items: center;
  298. position: sticky;
  299. top: 0;
  300. z-index: 99;
  301. width: 100%;
  302. padding: 0 20px 0 20px;
  303. box-sizing: border-box;
  304. background: #fff;
  305. border-radius: 8px;
  306. ">
  307. <div class="cru_selectBox">
  308. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  309. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  310. 第{{ index + 1 }}阶段
  311. </div>
  312. <div class="cru_line" :style="{
  313. left: offsetLetfPx + 'px',
  314. }"></div>
  315. </div>
  316. <div class="addStageImg" @click="addunit()">
  317. <img src="../../../assets/icon/new/addStage.png" alt />
  318. </div>
  319. <button class="c_pub_button_confirm pub_btn_template_img" @click="openTemplate"
  320. :style="{ margin: '0 0 0 auto' }" style="padding:0 12px">选择项目模板</button>
  321. </div>
  322. <div style="margin: 0 0 10px 0; padding: 0" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  323. :key="index">
  324. <div class="chapter_box">
  325. <div class="chapter_contentbox">
  326. <div class="cc_input">
  327. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  328. v-model="unitJson[unitIndex].dyName" />
  329. </div>
  330. <div class="remove" v-if="unitJson.length > 1" @click="deleteUnit(unitIndex)"></div>
  331. </div>
  332. </div>
  333. <!-- <div class="task_add_title">添加任务</div> -->
  334. <div class="taskBorder" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex"
  335. :class="{ smallTaskBorder: itemTask.isFold === 1 }">
  336. <div style="background: #fff;border-radius: 5px;">
  337. <div class="taskTitle" :id="'task' + itemTaskIndex">
  338. 任务{{ itemTaskIndex + 1 }}
  339. </div>
  340. <div>
  341. <div style="
  342. display: flex;
  343. margin: 0px 0 20px;
  344. flex-direction: row;
  345. justify-content: flex-start;
  346. align-items: center;
  347. ">
  348. <div class="lineTitle">任务概述</div>
  349. </div>
  350. <div class="chapter_contentbox" style="
  351. flex-direction: row;
  352. justify-content: flex-start;
  353. align-items: center;
  354. margin:0px 0 20px;
  355. ">
  356. <div class="cc_input">
  357. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  358. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  359. itemTaskIndex
  360. ].task
  361. " />
  362. </div>
  363. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
  364. </div>
  365. </div>
  366. <div style="
  367. flex-direction: row;
  368. justify-content: flex-start;
  369. align-items: center;
  370. display: flex;
  371. margin-bottom: 20px;
  372. ">
  373. <div style="
  374. height: 20px;
  375. padding: 0 10px 0 0px;
  376. line-height: 22px;
  377. ">
  378. 负责人
  379. </div>
  380. <div style="width: auto">
  381. <el-select v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  382. itemTaskIndex
  383. ].people
  384. " placeholder="请选择负责人" clearable filterable @change="
  385. peopleChange(
  386. unitJson[unitIndex].chapterInfo[0].taskJson[
  387. itemTaskIndex
  388. ].people,
  389. itemTaskIndex
  390. )
  391. ">
  392. <el-option v-for="item in ManAarray" :key="item.userid" :label="item.name +
  393. (item.type == 1 ? '(老师)' : '(学生)')
  394. " :value="item.userid">
  395. </el-option>
  396. </el-select>
  397. </div>
  398. </div>
  399. <div style="
  400. flex-direction: row;
  401. justify-content: flex-start;
  402. align-items: center;
  403. display: flex;
  404. margin: 0 0 20px;
  405. ">
  406. <div style="
  407. height: 20px;
  408. padding-left: 0;
  409. line-height: 22px;
  410. ">
  411. 协同人员
  412. </div>
  413. <el-tooltip :content="getMen(
  414. unitJson[unitIndex].chapterInfo[0].taskJson[
  415. itemTaskIndex
  416. ].tcMember
  417. )
  418. " placement="top" effect="dark" v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  419. itemTaskIndex
  420. ].tcMember &&
  421. unitJson[unitIndex].chapterInfo[0].taskJson[
  422. itemTaskIndex
  423. ].tcMember.length
  424. ">
  425. <div class="tcMember_box" @click="addTcMember(itemTaskIndex)">
  426. <span :class="{ tcMember: getMan(tc) }" v-for="(tc, tcIndex) in unitJson[unitIndex]
  427. .chapterInfo[0].taskJson[itemTaskIndex]
  428. .tcMember" :key="tcIndex">{{ getMan(tc) }}</span>
  429. </div>
  430. </el-tooltip>
  431. <div class="tcMember_box" @click="addTcMember(itemTaskIndex)" v-else>
  432. <span>点击添加协同成员</span>
  433. </div>
  434. </div>
  435. <div style="
  436. flex-direction: row;
  437. justify-content: flex-start;
  438. align-items: center;
  439. display: flex;
  440. margin-bottom: 20px;
  441. ">
  442. <div style="
  443. height: 20px;
  444. line-height: 22px;
  445. ">
  446. 任务起止时间
  447. </div>
  448. <div style="margin-left: 20px">
  449. <el-date-picker v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  450. itemTaskIndex
  451. ].time
  452. " type="datetimerange" range-separator="至" start-placeholder="开始日期"
  453. end-placeholder="结束日期">
  454. </el-date-picker>
  455. </div>
  456. </div>
  457. <div>
  458. <editor-bar class="ed_s" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  459. itemTaskIndex
  460. ].taskDetail
  461. " @change="change"></editor-bar>
  462. </div>
  463. </div>
  464. <div class="basic_box" v-if="false" style="
  465. margin: 0;
  466. min-height: 0;
  467. width: 90% !important;
  468. paddint-top: 10px !important;
  469. ">
  470. <div style="
  471. display: flex;
  472. margin: 0 0 20px 0;
  473. flex-direction: row;
  474. justify-content: flex-start;
  475. align-items: center;
  476. ">
  477. <div class="lineTitle">资源库</div>
  478. <div class="line"></div>
  479. </div>
  480. <div>
  481. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  482. itemTask.chapterData.length == 0
  483. " style="height: 185px"></div>
  484. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  485. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  486. @click="
  487. getChapterData(
  488. $event,
  489. unitIndex,
  490. index,
  491. index1,
  492. item1.type
  493. )
  494. ">
  495. <div class="chapter_upload_t" style="width: 100%"></div>
  496. <div class="chapter_upload_o" style="
  497. position: relative;
  498. display: flex;
  499. align-items: center;
  500. ">
  501. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  502. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  503. <div v-if="item1.type == 3 ||
  504. item1.type == 9 ||
  505. item1.type == 6 ||
  506. item1.type == 7
  507. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  508. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  509. </div>
  510. <div class="chapter_upload_ic" style="
  511. cursor: pointer;
  512. position: absolute;
  513. width: 45px;
  514. right: 0;
  515. top: 0;
  516. ">
  517. <div class="chapter_upload_ic_l"></div>
  518. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  519. deleteChapterData(
  520. $event,
  521. unitIndex,
  522. index,
  523. index1,
  524. itemTaskIndex
  525. )
  526. ">
  527. <div></div>
  528. </div>
  529. </div>
  530. <div class="chapter_upload_n">
  531. <input v-if="item1.type == 2 ||
  532. item1.type == 3 ||
  533. item1.type == 9 ||
  534. item1.type == 7
  535. " :placeholder="item1.name" @change="
  536. updataVideoT(
  537. $event,
  538. unitIndex,
  539. chapterIndex,
  540. index1
  541. )
  542. " style="
  543. border: none;
  544. outline: none;
  545. width: 80%;
  546. minwidth: 215px;
  547. z-index: 99;
  548. font-size: 14px;
  549. white-space: nowrap;
  550. overflow: hidden;
  551. text-overflow: ellipsis;
  552. " />
  553. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  554. border: none;
  555. outline: none;
  556. width: 80%;
  557. white-space: nowrap;
  558. overflow: hidden;
  559. text-overflow: ellipsis;
  560. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  561. <input :placeholder="item1.title ? item1.title : '链接'
  562. " v-if="item1.type == 8" style="
  563. border: none;
  564. outline: none;
  565. width: 80%;
  566. white-space: nowrap;
  567. overflow: hidden;
  568. text-overflow: ellipsis;
  569. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  570. <div class="chapter_upload_ud" style="z-index: 99">
  571. <div class="chapter_upload_up" @click="
  572. upCd($event, unitIndex, index, index1)
  573. "></div>
  574. <div class="chapter_upload_down" @click="
  575. downCd($event, unitIndex, index, index1)
  576. "></div>
  577. </div>
  578. </div>
  579. </div>
  580. </div>
  581. </div>
  582. </div>
  583. <div class="add_info_box">
  584. <button class="info_btn" @click="addImg($event)">
  585. 添加视频
  586. <!-- capture="camera" -->
  587. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  588. v-if="inputShow" @change="
  589. beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  590. " />
  591. </button>
  592. <button class="info_btn" @click="addImg($event)">
  593. 添加附件
  594. <input type="file"
  595. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  596. style="display: none" v-if="inputShow" @change="
  597. beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  598. " />
  599. </button>
  600. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  601. 添加图文
  602. </button>
  603. <button class="info_btn" @click="openLine(itemTaskIndex)">
  604. 添加链接
  605. </button>
  606. </div>
  607. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  608. itemTaskIndex
  609. ].proVisible
  610. " class="mask">
  611. <div class="progressBox">
  612. <div class="lbox">
  613. <img src="../../../assets/loading.gif" />上传中,请稍后
  614. </div>
  615. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  616. itemTaskIndex
  617. ].progress
  618. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  619. itemTaskIndex
  620. ].progress
  621. : 0
  622. " style="width: 80%"></el-progress>
  623. </div>
  624. </div>
  625. </div>
  626. <div class="toolChoose" style="padding: 0 0 30px 0">
  627. <div class="tools" style="margin-top: 20px">
  628. <div class="leftTools" style="
  629. width: 100%;
  630. border-bottom: 1px solid #efefef;
  631. margin-bottom: 15px;
  632. " v-for="(itemTool, toolIndex) in itemTask.toolArray" :key="toolIndex"
  633. v-loading="downLoading == 'down' + toolIndex">
  634. <div style="
  635. display: flex;
  636. flex-direction: row;
  637. align-items: center;
  638. flex-wrap: nowrap;
  639. justify-content: flex-start;
  640. position: relative;
  641. line-height: 18px;
  642. ">
  643. <div style="font-weight: bold"
  644. :id="'gj' + itemTaskIndex + '' + toolIndex">
  645. 步骤 {{ toolIndex + 1 }} :
  646. </div>
  647. <div class="chooseWho" style="padding-bottom: 0">
  648. <span v-if="itemTool.tool == 1"> 电子白板 </span>
  649. <span v-if="itemTool.tool == 3"> 思维导图 </span>
  650. <span v-if="itemTool.tool == 6"> 协同文档 </span>
  651. <span v-if="itemTool.tool == 15"> 问答 </span>
  652. <span v-if="itemTool.tool == 48"> 表格 </span>
  653. <span v-if="itemTool.tool == 51"> 资源库 </span>
  654. <span v-if="itemTool.tool == 52"> 文档 </span>
  655. <span v-if="itemTool.tool == 53"> 文件上传 </span>
  656. <span v-if="itemTool.tool == 54"> 拍照 </span>
  657. <span v-if="itemTool.tool == 55"> 文件 </span>
  658. <span v-if="itemTool.tool == 56"> 投票 </span>
  659. <span v-if="itemTool.tool == 57"> CocoPi </span>
  660. </div>
  661. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  662. v-if="itemTask.toolArray.length > 0" style="position: absolute; right: 0"></div>
  663. </div>
  664. <div style="margin: 10px 0 20px;align-items: center;"
  665. :style="{ display: (itemTool.tool == 57 || itemTool.tool == 51) ? 'block' : 'flex' }">
  666. <div>
  667. <div class="tool" v-if="itemTool.tool == 1">
  668. <div class="whiteBIcon" @click="openToolFun(1, itemTaskIndex, toolIndex)">
  669. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  670. <div style="margin: 5px 0">电子白板</div>
  671. </div>
  672. </div>
  673. <div class="tool" v-if="itemTool.tool == 3">
  674. <div class="whiteBIcon" @click="openToolFun(3, itemTaskIndex, toolIndex)">
  675. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  676. <div style="margin: 5px 0">思维导图</div>
  677. </div>
  678. </div>
  679. <div class="tool" v-if="itemTool.tool == 6">
  680. <div class="whiteBIcon" @click="openToolFun(6, itemTaskIndex, toolIndex)">
  681. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  682. <div style="margin: 5px 0">协同文档</div>
  683. </div>
  684. </div>
  685. <div class="tool" v-if="itemTool.tool == 15">
  686. <div class="whiteBIcon" @click="openToolFun(15, itemTaskIndex, toolIndex)">
  687. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  688. <div style="margin: 5px 0">问答</div>
  689. </div>
  690. </div>
  691. <div class="tool" v-if="itemTool.tool == 48 && !itemTool.toolPhoto.length
  692. ">
  693. <div class="whiteBIcon" @click="openToolFun(48, itemTaskIndex, toolIndex)">
  694. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  695. <div style="margin: 5px 0">表格</div>
  696. </div>
  697. </div>
  698. <div class="tool" v-if="itemTool.tool == 52 && !itemTool.toolPhoto.length
  699. " style="position: relative">
  700. <div class="whiteBIcon" @click="openToolFun(52, itemTaskIndex, toolIndex)">
  701. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  702. <div style="margin: 5px 0">文档</div>
  703. </div>
  704. </div>
  705. <div class="tool" v-if="itemTool.tool == 53" style="position: relative">
  706. <div class="whiteBIcon" :id="itemTaskIndex + '-' + toolIndex" @click="addImg($event)">
  707. <img src="../../../assets/icon/fourthToolList/file.png" alt />
  708. <div style="margin: 5px 0">文件上传</div>
  709. <input type="file"
  710. accept="application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/zip"
  711. style="display: none" @change="
  712. beforeUploadCC(
  713. $event,
  714. 1,
  715. itemTaskIndex,
  716. toolIndex,
  717. 53
  718. )
  719. " />
  720. <div v-if="itemTool.proVisible" class="mask">
  721. <div class="lbox2">
  722. <img src="../../../assets/loading.gif" />
  723. </div>
  724. </div>
  725. </div>
  726. </div>
  727. <div class="tool" v-if="itemTool.tool == 54" style="
  728. display: flex;
  729. flex-direction: row;
  730. align-items: flex-end;
  731. ">
  732. <div class="whiteBIcon" :id="itemTaskIndex + '-' + toolIndex" @click="addImg($event)"
  733. style="position: relative">
  734. <img src="../../../assets/icon/fourthToolList/photo.png" alt />
  735. <div style="margin: 5px 0">拍照</div>
  736. <!-- capture="camera" -->
  737. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo,image/*"
  738. style="display: none" @change="
  739. beforeUploadCC(
  740. $event,
  741. 2,
  742. itemTaskIndex,
  743. toolIndex,
  744. 54
  745. )
  746. " />
  747. <div v-if="itemTool.proVisible" class="mask" style="background: unset"
  748. @click.stop="1">
  749. <div class="lbox2"></div>
  750. </div>
  751. </div>
  752. <div v-if="itemTool.proVisible" style="margin: 5px 0" class="f_size_box">
  753. <img src="../../../assets/loading.gif" />
  754. <div>
  755. <span>{{ itemTool.isFinishSize }}M</span> /
  756. <span>{{ itemTool.isAllSize }}M</span>
  757. </div>
  758. <!-- <el-button type="text">取消</el-button> -->
  759. </div>
  760. </div>
  761. <div class="tool" v-if="itemTool.tool == 55" style="
  762. display: flex;
  763. flex-direction: row;
  764. align-items: flex-end;
  765. ">
  766. <div class="whiteBIcon" :id="itemTaskIndex + '-' + toolIndex" @click="addImg($event)"
  767. style="position: relative">
  768. <img src="../../../assets/icon/fourthToolList/zip.png" alt />
  769. <div style="margin: 5px 0">文件</div>
  770. <input type="file" accept="*" style="display: none" @change="
  771. beforeUploadCC(
  772. $event,
  773. 3,
  774. itemTaskIndex,
  775. toolIndex,
  776. 55
  777. )
  778. " />
  779. <div v-if="itemTool.proVisible" class="mask" style="background: unset"
  780. @click.stop="1">
  781. <div class="lbox2"></div>
  782. </div>
  783. </div>
  784. <div v-if="itemTool.proVisible" style="margin: 5px 0" class="f_size_box">
  785. <img src="../../../assets/loading.gif" />
  786. <div>
  787. <span>{{ itemTool.isFinishSize }}M</span> /
  788. <span>{{ itemTool.isAllSize }}M</span>
  789. </div>
  790. <!-- <el-button type="text">取消</el-button> -->
  791. </div>
  792. </div>
  793. <div class="tool" v-if="itemTool.tool == 56">
  794. <div class="whiteBIcon" @click="openToolFun(56, itemTaskIndex, toolIndex)">
  795. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  796. <div style="margin: 5px 0">投票</div>
  797. </div>
  798. </div>
  799. <div v-if="itemTool.tool == 57">
  800. <div>
  801. <iframe src="https://v.cocorobo.cn" frameborder="0" width="100%"
  802. height="650"></iframe>
  803. </div>
  804. </div>
  805. <div v-if="itemTool.tool == 51">
  806. <div class="vedioTaskBox">
  807. <div class="box_course" :class="'box_course' + itemTaskIndex + toolIndex
  808. " v-if="itemTool.toolData.length > 0 && !itemTool.isNoFile">
  809. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  810. .type == 2
  811. ">
  812. <div class="workd_media" style="height: 100%">
  813. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="itemTool.toolData[itemTool.sourceIndex]
  814. .src
  815. " @play="onPlayerPlay($event)"
  816. style="width: 99%; height: 100%"></video-player>
  817. </div>
  818. </div>
  819. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  820. .type == 6
  821. " style="
  822. box-shadow: 0 0 6px 1px #f2f2f2;
  823. width: 99%;
  824. background: #f1f1f1;
  825. height: 650px;
  826. ">
  827. <div class="texttitle">查看文档</div>
  828. <el-form class="textBox">
  829. <el-form-item class="textTitle">
  830. <div style="
  831. font-size: 22px;
  832. max-height: 100px;
  833. overflow: auto;
  834. ">
  835. {{
  836. itemTool.toolData[
  837. itemTool.sourceIndex
  838. ].name
  839. }}
  840. </div>
  841. </el-form-item>
  842. <div v-html="itemTool.toolData[itemTool.sourceIndex]
  843. .url
  844. " class="textContent"></div>
  845. </el-form>
  846. </div>
  847. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  848. .type == 3
  849. " style="height: 650px; width: 99%">
  850. <iframe style="
  851. width: 100%;
  852. height: 100%;
  853. border: none;
  854. " :src="itemTool.toolData[itemTool.sourceIndex]
  855. .src
  856. "></iframe>
  857. </div>
  858. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  859. .type == 8
  860. " style="height: 650px; width: 99%">
  861. <iframe style="
  862. width: 100%;
  863. height: 100%;
  864. border: none;
  865. " :src="itemTool.toolData[itemTool.sourceIndex]
  866. .src
  867. " security="restricted"
  868. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts"></iframe>
  869. </div>
  870. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  871. .type == 13
  872. " style="height: 650px; width: 99%">
  873. <el-image :src="itemTool.toolData[itemTool.sourceIndex].url" fit="contain"
  874. style="width: 100%; height: 100%; cursor: pointer"
  875. @click="previewImg(itemTool.toolData[itemTool.sourceIndex].url)"></el-image>
  876. </div>
  877. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  878. .type == 9
  879. " style="height: 650px; width: 99%">
  880. <pdf :pdfUrl="cUrl(itemTool.toolData, itemTool.sourceIndex)" style="
  881. width: 100%;
  882. height: 100%;
  883. overflow: auto;
  884. ">
  885. </pdf>
  886. </div>
  887. </div>
  888. <div class="vedioList" :class="'vedioList' + itemTaskIndex + toolIndex"
  889. v-if="itemTool.toolData.length > 0">
  890. <div class="navTitile">内容列表:</div>
  891. <div class="navBox">
  892. <div>
  893. <div class="vedioTimeBox" v-for="(
  894. chapter, cIndex
  895. ) in itemTool.toolData" :key="cIndex + '1'"
  896. @click="setChapterIndex(itemTool, cIndex, toolIndex)">
  897. <div class="vedioName" :class="{
  898. isClickNav:
  899. itemTool.sourceIndex == cIndex,
  900. }">
  901. {{
  902. chapter.type == 8
  903. ? chapter.title
  904. : chapter.name
  905. }}
  906. </div>
  907. </div>
  908. </div>
  909. </div>
  910. </div>
  911. </div>
  912. <div style="padding: 10px 0 0" v-if="itemTool.toolData[itemTool.sourceIndex]">
  913. <el-button v-if="itemTool.toolData[itemTool.sourceIndex]
  914. .type == 3 ||
  915. itemTool.toolData[itemTool.sourceIndex]
  916. .type == 9
  917. " type="primary" @click="
  918. checkFileFull(
  919. itemTool.toolData[itemTool.sourceIndex]
  920. .type,
  921. itemTool.toolData[itemTool.sourceIndex].src
  922. )
  923. ">全屏查看</el-button>
  924. <el-button v-if="itemTool.toolData[itemTool.sourceIndex]
  925. .type == 3 ||
  926. itemTool.toolData[itemTool.sourceIndex]
  927. .type == 9
  928. " type="primary" @click="
  929. downloadFile(
  930. itemTool.toolData[itemTool.sourceIndex].src, toolIndex
  931. )
  932. ">文件下载</el-button>
  933. <el-button v-if="itemTool.toolData[itemTool.sourceIndex]
  934. .type == 8
  935. " type="primary" @click="
  936. openLineS(
  937. itemTool.toolData[itemTool.sourceIndex].src
  938. )
  939. ">打开链接
  940. </el-button>
  941. <el-button v-if="itemTool.toolData[itemTool.sourceIndex]
  942. .type == 6
  943. " type="primary" @click="
  944. checkFileFull(
  945. itemTool.toolData[itemTool.sourceIndex]
  946. .type,
  947. itemTool.toolData[itemTool.sourceIndex]
  948. )
  949. ">全屏查看</el-button>
  950. <el-button type="primary" @click="
  951. editSourceUpadte(itemTaskIndex, toolIndex)
  952. ">添加资源</el-button>
  953. </div>
  954. </div>
  955. </div>
  956. <div v-if="itemTool.tool != 51" style="width: 71.5%;"
  957. :style="{ marginLeft: ((itemTool.tool == 52 || itemTool.tool == 48) && itemTool.toolPhoto.length) ? '0' : '10px' }">
  958. <!-- <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input" style="
  959. resize: none;
  960. width: 100% !important;
  961. " v-model="itemTool.toolDetail"></textarea> -->
  962. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述" class="binfo_input"
  963. style="margin: 0 0 0 0; width: 100% !important"
  964. v-model="itemTool.toolDetail"></textarea>
  965. </div>
  966. </div>
  967. <div v-if="itemTool.toolPhoto.length" style="margin-top: 0" class="toolimg_box">
  968. <div class="toolimg" v-for="(photo, pIndex) in itemTool.toolPhoto" :key="pIndex"
  969. :class="{ answerWidth: photo.type == 3 }">
  970. <img v-if="photo.type == 1" :src="photo.content" alt=""
  971. @click="previewImg(photo.content)" />
  972. <div class="answerBg" v-if="photo.type == 3">
  973. <!-- <div>{{ w.sName }}</div> -->
  974. <el-tooltip class="item" effect="light" :content="photo.content" placement="top">
  975. <div class="answerContent">
  976. {{ photo.content }}
  977. </div>
  978. </el-tooltip>
  979. </div>
  980. <img v-if="photo.type == 10" src="../../../assets/icon/word2.png" alt=""
  981. @click="openToolFun(48, itemTaskIndex, toolIndex)" />
  982. <img v-if="photo.type == 4" src="../../../assets/icon/word2.png" alt=""
  983. @click="openFile(photo.content)" />
  984. <img v-if="photo.type == 12" src="../../../assets/icon/word2.png" alt=""
  985. @click="openToolFun(52, itemTaskIndex, toolIndex)" />
  986. <img v-if="photo.type == 14" src="../../../assets/icon/word2.png" alt="" @click="
  987. openAsk(photo.content, itemTaskIndex, toolIndex)
  988. " />
  989. <img v-if="photo.type == 13" src="../../../assets/icon/zip.png" alt=""
  990. @click="downloadFile(photo.content, toolIndex)" />
  991. <img v-if="photo.type == 5" src="../../../assets/icon/isVideo.png" alt=""
  992. @click="openVideo(photo.content)" />
  993. <img class="deleteImg" src="../../../assets/deleteworks.png" v-if="photo.userid == userid &&
  994. itemTool.tool != 52 &&
  995. itemTool.tool != 48
  996. " @click.stop="deleteWorks(photo.id)" alt />
  997. <div class="comment">
  998. <div class="worksName">
  999. <div v-if="itemTool.tool == 52 || itemTool.tool == 48
  1000. ">
  1001. <el-tooltip v-if="itemTool.people.length > 1" :content="itemTool.people.join('、')"
  1002. placement="top" effect="dark">
  1003. <span>{{
  1004. itemTool.people.join("、")
  1005. }}</span>
  1006. </el-tooltip>
  1007. <span v-else>{{
  1008. itemTool.people.join("、")
  1009. }}</span>
  1010. </div>
  1011. <div v-else>{{ photo.username }}</div>
  1012. <div @click="openUpdateName(photo)">
  1013. <el-tooltip :content="photo.name ? photo.name : setTime(photo.create_at)"
  1014. placement="top" effect="dark">
  1015. <span>{{
  1016. photo.name ? photo.name : setTime(photo.create_at)
  1017. }}</span>
  1018. </el-tooltip>
  1019. <img src="../../../assets/icon/edit-icon.png" />
  1020. </div>
  1021. </div>
  1022. </div>
  1023. </div>
  1024. </div>
  1025. <div v-if="itemTool.toolPhoto.length && itemTool.tool == 56
  1026. ">
  1027. <voteStatic :askJSON="itemTool.askJson" :checkJson="checkJson[toolIndex]"></voteStatic>
  1028. </div>
  1029. </div>
  1030. <!-- <div class="addToolFunBox">
  1031. <div class="addToolFun" @click="addToolFunD(itemTaskIndex)">
  1032. <div class="addToolImg">
  1033. <img src="../../../assets/icon/add.png" alt />
  1034. </div>
  1035. <div>添加工具</div>
  1036. </div>
  1037. </div> -->
  1038. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFunD(itemTaskIndex)" style="margin: 0 auto 10px;padding: 0 30px;height: 45px;">
  1039. 添加工具
  1040. </button>
  1041. </div>
  1042. </div>
  1043. <div class="funBlock" style="padding: 0">
  1044. <div class="fold" @click="fold(itemTaskIndex, $event)">
  1045. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }">
  1046. </div>
  1047. <div>{{ itemTask.isFold === 1 ? '展开任务' : '收起任务' }}</div>
  1048. </div>
  1049. </div>
  1050. </div>
  1051. <div class="addTaskBorder" >
  1052. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  1053. 添加任务
  1054. </button>
  1055. </div>
  1056. </div>
  1057. <div class="info_btnBox3">
  1058. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  1059. goTo(
  1060. fpath + '?userid=' + userid + '&oid=' + oid + '&org=' + org + '&role=' + role
  1061. )
  1062. ">
  1063. 返回项目
  1064. </button>
  1065. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 6"
  1066. @click="lastSteps">
  1067. {{ steps == 5 ? "返回首页" : "上一步" }}
  1068. </button>
  1069. <button class="c_pub_button_confirm" v-if="steps < 5" @click="nextSteps"
  1070. :class="{ pub_btn_next_img: !((steps == 4 && type == 2) || (steps == 3 && type != 2)), pub_btn_finish_img: (steps == 4 && type == 2) || (steps == 3 && type != 2) }">
  1071. {{ (steps == 4 && type == 2) || (steps == 3 && type != 2)
  1072. ? "确认上传"
  1073. : "下一步" }}
  1074. </button>
  1075. </div>
  1076. </div>
  1077. </div>
  1078. </div>
  1079. </div>
  1080. <div class="rightBox" v-if="steps == 4" style="background: #fff;">
  1081. <div class="proMan">
  1082. <div class="title">
  1083. <img src="../../../assets/icon/task.png" alt />任务进展甘特图
  1084. </div>
  1085. <ganChart :Json="unitJson" v-if="steps == 4"></ganChart>
  1086. </div>
  1087. <div class="proMan">
  1088. <div class="title">
  1089. <img src="../../../assets/icon/tupu.png" alt />图谱
  1090. </div>
  1091. <graph :Json="graphJson"></graph>
  1092. </div>
  1093. <div class="proMan">
  1094. <div class="title">
  1095. <img src="../../../assets/icon/proMan.png" alt />负责人看板
  1096. </div>
  1097. <proMan :Json="unitJson" :ManAarray="ManAarray"></proMan>
  1098. </div>
  1099. <div class="info_btnBox3">
  1100. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  1101. goTo(
  1102. fpath + '?userid=' + userid + '&oid=' + oid + '&org=' + org + '&role=' + role
  1103. )
  1104. ">
  1105. 返回项目
  1106. </button>
  1107. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 6" @click="lastSteps">
  1108. {{ steps == 5 ? "返回首页" : "上一步" }}
  1109. </button>
  1110. <button class="c_pub_button_confirm" v-if="steps < 5" @click="nextSteps"
  1111. :class="{ pub_btn_next_img: (steps != 4 && type == 2) || (steps != 3 && type != 2), pub_btn_finish_img: (steps == 4 && type == 2) || (steps == 3 && type != 2) }">
  1112. {{ (steps == 4 && type == 2) || (steps == 3 && type != 2)
  1113. ? "确认上传"
  1114. : "下一步" }}
  1115. </button>
  1116. </div>
  1117. </div>
  1118. <div style="
  1119. width: calc(100% - 20px);
  1120. background: rgb(255, 255, 255);
  1121. border-radius: 10px;
  1122. " v-if="steps == 5">
  1123. <div class="basic_box_success">
  1124. <div class="right_img">
  1125. <img src="../../../assets/icon/qr_code.jpg" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'" alt />
  1126. <img src="../../../assets/icon/right.png" v-else alt />
  1127. </div>
  1128. <div style="font-weight: bold;margin:10px 0" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'">
  1129. 请参加双师科创成长营活动的成员</div>
  1130. <div style="font-weight: bold;margin:10px 0" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'">
  1131. 前往腾讯未来教室小程序活动作品展示栏提交您的作品</div>
  1132. <div style="font-weight: bold">创建成功</div>
  1133. <!-- <div>您的项目编号</div>
  1134. <div class="number">{{ number }}</div>-->
  1135. <!-- <div class="success_button">
  1136. <div class="look_course" @click="isNoFinsh">
  1137. 邀请老师协同编辑
  1138. </div>
  1139. <div class="attend_others" @click="goCourse">预览项目</div>
  1140. </div> -->
  1141. </div>
  1142. </div>
  1143. <div class="info_btnBox" v-if="false">
  1144. <button class="info_btn" v-if="steps == 1" @click="
  1145. goTo(
  1146. fpath + '?userid=' + userid + '&oid=' + oid + '&org=' + org + '&role=' + role
  1147. )
  1148. ">
  1149. 返回项目
  1150. </button>
  1151. <button class="info_btn" v-if="steps > 1 && steps != 6" @click="lastSteps">
  1152. {{ steps == 5 ? "返回首页" : "上一步" }}
  1153. </button>
  1154. <button class="info_btn" v-if="steps < 5" @click="nextSteps">
  1155. {{
  1156. (steps == 4 && type == 2) || (steps == 3 && type != 2)
  1157. ? "确认上传"
  1158. : "下一步"
  1159. }}
  1160. </button>
  1161. </div>
  1162. </div>
  1163. </div>
  1164. </div>
  1165. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  1166. class="dialog_diy2 customWidth">
  1167. <div>请复制该链接邀请协同编辑</div>
  1168. <div>http://www.boomyon.com/index-zhang.com</div>
  1169. <span slot="footer" class="dialog-footer">
  1170. <el-button type="primary">复制链接分享</el-button>
  1171. <el-button @click="dialogVisible = false">取消</el-button>
  1172. </span>
  1173. </el-dialog>
  1174. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  1175. :before-close="handleClose" class="dialog_diy2 customWidth">
  1176. <el-form>
  1177. <el-form-item label="文档标题">
  1178. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1179. </el-form-item>
  1180. <div>文档简介</div>
  1181. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  1182. </el-form>
  1183. <span slot="footer" class="dialog-footer">
  1184. <el-button @click="dialogVisible1 = false">取 消</el-button>
  1185. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  1186. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  1187. </span>
  1188. </el-dialog>
  1189. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  1190. :before-close="handleClose" class="dialog_diy">
  1191. <el-form>
  1192. <el-form-item label="文档标题">
  1193. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1194. </el-form-item>
  1195. <div>文档内容</div>
  1196. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  1197. </el-form>
  1198. <span slot="footer" class="dialog-footer">
  1199. <el-button @click="clearChoose">取 消</el-button>
  1200. <el-button type="primary" @click="wordNext()">确定</el-button>
  1201. </span>
  1202. </el-dialog>
  1203. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  1204. :before-close="handleClose" class="dialog_diy">
  1205. <el-form>
  1206. <el-form-item label="文本标题">
  1207. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  1208. </el-form-item>
  1209. <div>富文本内容</div>
  1210. <editor-bar v-model="AttText.text" @change="change"></editor-bar>
  1211. </el-form>
  1212. <span slot="footer" class="dialog-footer">
  1213. <el-button @click="clearAttText">取 消</el-button>
  1214. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  1215. </span>
  1216. </el-dialog>
  1217. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  1218. :before-close="handleClose" class="dialog_diy lineCss">
  1219. <el-form>
  1220. <el-form-item label="标题" :label-width="formLabelWidth">
  1221. <span>
  1222. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  1223. </span>
  1224. </el-form-item>
  1225. <el-form-item label="链接" :label-width="formLabelWidth">
  1226. <span>
  1227. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  1228. </span>
  1229. </el-form-item>
  1230. </el-form>
  1231. <span slot="footer" class="dialog-footer">
  1232. <el-button @click="clearLine">取 消</el-button>
  1233. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  1234. </span>
  1235. </el-dialog>
  1236. <el-dialog title="添加项目成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  1237. :before-close="handleClose" class="addNewPP customWidth">
  1238. <div class="people">
  1239. <div class="people_top">
  1240. <div class="people_nav">选择成员</div>
  1241. <div class="people_top_right">
  1242. <div class="people_search">
  1243. <el-input style="height: 100%" placeholder="搜索成员账号" v-model="searchPeople"></el-input>
  1244. <div class="search_img" @click="searchStudent">
  1245. <img src="../../../assets/icon/search.png" alt />
  1246. </div>
  1247. </div>
  1248. </div>
  1249. </div>
  1250. <el-checkbox-group v-model="checkboxList" class="people_name">
  1251. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  1252. "暂无学生可选" }}
  1253. </el-checkbox>
  1254. </el-checkbox-group>
  1255. </div>
  1256. <span slot="footer" class="dialog-footer">
  1257. <el-button @click="dialogVisible3 = false">取 消</el-button>
  1258. <el-button type="primary" @click="isAddPP">确定</el-button>
  1259. </span>
  1260. </el-dialog>
  1261. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  1262. :before-close="handleClose" class="addNewPP">
  1263. <div class="people" style="height: 300px">
  1264. <div class="people_top">
  1265. <div class="people_nav">选择班级</div>
  1266. </div>
  1267. <el-checkbox-group v-model="checkboxList2" class="people_name">
  1268. <div v-for="(item, index) in grade" :key="item.id">
  1269. <el-checkbox :label="item.id">
  1270. {{ item.name ? item.name : "暂无班级可选" }}
  1271. </el-checkbox>
  1272. <div>
  1273. <span>{{ index }}</span>
  1274. </div>
  1275. </div>
  1276. </el-checkbox-group>
  1277. </div>
  1278. <span slot="footer" class="dialog-footer">
  1279. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  1280. <el-button type="primary" @click="isAddClass">确定</el-button>
  1281. </span>
  1282. </el-dialog>
  1283. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  1284. :before-close="handleClose" class="addNewPP customWidth">
  1285. <div class="people">
  1286. <div class="people_top">
  1287. <div class="people_top_right">
  1288. <div class="people_search">
  1289. <el-input placeholder="搜索完整的姓名/账号(不含邮箱后缀)" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  1290. <div class="search_img" @click="getTeacher">
  1291. <img src="../../../assets/icon/search.png" alt />
  1292. </div>
  1293. </div>
  1294. </div>
  1295. <div class="people_nav">选择成员</div>
  1296. </div>
  1297. <div class="t_j_box" style="
  1298. padding: 20px 0 0 25px;
  1299. width: calc(100% - 55px);
  1300. margin-left: 25px;
  1301. ">
  1302. <span>姓名</span>
  1303. <span>身份</span>
  1304. <span>账号</span>
  1305. <span>学校</span>
  1306. </div>
  1307. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  1308. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  1309. <div class="t_j_box">
  1310. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  1311. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  1312. </el-tooltip>
  1313. <span>{{ item.type == "1" ? "老师" : "学生" }}</span>
  1314. <el-tooltip placement="top" :content="item.username">
  1315. <span>{{ item.username }}</span>
  1316. </el-tooltip>
  1317. <el-tooltip placement="top" :content="item.school">
  1318. <span>{{ item.school }}</span>
  1319. </el-tooltip>
  1320. </div>
  1321. </el-checkbox>
  1322. </el-checkbox-group>
  1323. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  1324. </div>
  1325. <div style="margin-top: 10px;">
  1326. <el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total"
  1327. v-if="page && teacherJuri.length" style="padding-bottom: 20px"
  1328. @current-change="handleCurrentChange"></el-pagination>
  1329. </div>
  1330. <span slot="footer" class="dialog-footer">
  1331. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  1332. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  1333. </span>
  1334. </el-dialog>
  1335. <el-dialog title="添加协同者" :visible.sync="dialogVisibleTcMember" :append-to-body="true" width="25%" height="80%"
  1336. :before-close="handleClose" class="addNewPP customWidth">
  1337. <div class="people">
  1338. <div class="people_top">
  1339. <!-- <div class="people_top_right">
  1340. <div class="people_search">
  1341. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  1342. <div class="search_img" @click="getTeacher">
  1343. <img src="../../../assets/icon/search.png" alt />
  1344. </div>
  1345. </div>
  1346. </div> -->
  1347. <div class="people_nav">选择成员</div>
  1348. </div>
  1349. <div class="t_j_box" style="
  1350. padding: 20px 0 0 25px;
  1351. width: calc(100% - 55px);
  1352. margin-left: 25px;
  1353. ">
  1354. <span>姓名</span>
  1355. <span>身份</span>
  1356. <span>账号</span>
  1357. <span>学校</span>
  1358. </div>
  1359. <el-checkbox-group v-model="tcMember" class="people_name" v-if="ManAarray2.length">
  1360. <el-checkbox v-for="item in ManAarray2" :key="item.userid" :label="item.userid">
  1361. <div class="t_j_box">
  1362. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  1363. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  1364. </el-tooltip>
  1365. <span>{{ item.type == "1" ? "老师" : "学生" }}</span>
  1366. <el-tooltip placement="top" :content="item.username">
  1367. <span>{{ item.username }}</span>
  1368. </el-tooltip>
  1369. <el-tooltip placement="top" :content="item.school">
  1370. <span>{{ item.school }}</span>
  1371. </el-tooltip>
  1372. </div>
  1373. </el-checkbox>
  1374. </el-checkbox-group>
  1375. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  1376. </div>
  1377. <span slot="footer" class="dialog-footer">
  1378. <el-button @click="dialogVisibleTcMember = false">取 消</el-button>
  1379. <el-button type="primary" @click="isAddPPTcTeacher">确定</el-button>
  1380. </span>
  1381. </el-dialog>
  1382. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  1383. :before-close="handleClose" class="dialog_diy">
  1384. <div>
  1385. <div class="a_add_title" style="
  1386. display: flex;
  1387. flex-direction: row;
  1388. align-items: center;
  1389. justify-content: center;
  1390. ">
  1391. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1392. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1393. </div>
  1394. <div class="a_addBox">
  1395. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  1396. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  1397. <div class="a_add_head">
  1398. <div>
  1399. {{ index1 + 1 + "、" }}
  1400. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目...">
  1401. </el-input>
  1402. </div>
  1403. <div class="a_add_head_div">
  1404. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  1405. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  1406. </el-button>
  1407. </div>
  1408. </div>
  1409. <div class="a_add_body">
  1410. <div class="a_add_input">
  1411. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  1412. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  1413. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  1414. </div>
  1415. <div class="a_add_body_div">
  1416. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  1417. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  1418. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  1419. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  1420. </el-button>
  1421. </div>
  1422. </div>
  1423. </div>
  1424. </div>
  1425. </div>
  1426. <span slot="footer" class="dialog-footer">
  1427. <el-button @click="dialogVisible5 = false">取 消</el-button>
  1428. <el-button type="primary" @click="addAsk">确 定</el-button>
  1429. </span>
  1430. </el-dialog>
  1431. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  1432. :before-close="handleClose" class="dialog_diy">
  1433. <div>
  1434. <!-- <div class="a_add_title" style="
  1435. display: flex;
  1436. flex-direction: row;
  1437. align-items: center;
  1438. justify-content: center;
  1439. ">
  1440. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1441. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1442. </div> -->
  1443. <div class="a_addBox">
  1444. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  1445. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  1446. <div class="a_add_checkType">
  1447. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  1448. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  1449. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  1450. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  1451. </div>
  1452. <div class="a_add_head">
  1453. <div>
  1454. {{ index1 + 1 + "、" }}
  1455. <el-input class="a_add_head_input" v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目...">
  1456. </el-input>
  1457. </div>
  1458. <div class="a_add_head_div">
  1459. <el-button type="primary" size="small" @click="addTestList()">添加</el-button>
  1460. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  1461. </el-button>
  1462. </div>
  1463. </div>
  1464. <div class="a_add_body">
  1465. <div class="a_add_input a_add_input_choice">
  1466. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1">
  1467. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  1468. .testItem" :key="checkIndex" :label="checkIndex">
  1469. <el-input v-model="testJson.testJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  1470. style="width: 300px; margin-right: 10px"></el-input>
  1471. </el-radio>
  1472. </el-radio-group>
  1473. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  1474. v-if="testJson.testJson[index1].type == '2'">
  1475. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  1476. .testItem" :key="checkIndex" :label="checkIndex">
  1477. <el-input v-model="testJson.testJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  1478. style="width: 300px; margin-right: 10px"></el-input>
  1479. </el-checkbox>
  1480. </el-checkbox-group>
  1481. </div>
  1482. <div class="a_add_body_div">
  1483. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  1484. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  1485. v-if="testJson.testJson[index1].testItem != 1">删除
  1486. </el-button>
  1487. </div>
  1488. </div>
  1489. </div>
  1490. </div>
  1491. </div>
  1492. <span slot="footer" class="dialog-footer">
  1493. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  1494. <el-button type="primary" @click="addTest">确 定</el-button>
  1495. </span>
  1496. </el-dialog>
  1497. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  1498. :before-close="handleClose" class="dialog_diy">
  1499. <div>
  1500. <div class="a_add_title" style="
  1501. display: flex;
  1502. flex-direction: column;
  1503. align-items: flex-start;
  1504. justify-content: center;
  1505. ">
  1506. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  1507. <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input>
  1508. </div>
  1509. </div>
  1510. <span slot="footer" class="dialog-footer">
  1511. <el-button @click="dialogVisible8 = false">取 消</el-button>
  1512. <el-button type="primary" @click="addAnswer">确 定</el-button>
  1513. </span>
  1514. </el-dialog>
  1515. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  1516. :before-close="handleClose" class="dialog_diy">
  1517. <div>
  1518. <div class="a_add_title" style="
  1519. display: flex;
  1520. flex-direction: column;
  1521. align-items: flex-start;
  1522. justify-content: center;
  1523. ">
  1524. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  1525. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  1526. </div>
  1527. </div>
  1528. <span slot="footer" class="dialog-footer">
  1529. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  1530. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  1531. </span>
  1532. </el-dialog>
  1533. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="500px"
  1534. :before-close="handleClose" class="dialog_diy">
  1535. <div>
  1536. <div class="fileCss" style="padding-top: 20px">
  1537. <div>
  1538. <button class="info_btn" @click="addImg($event)">
  1539. 选择本地文件
  1540. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  1541. </button>
  1542. </div>
  1543. <div>
  1544. <el-button @click="getAllBanner" v-if="isSysPic == false && cover.length == 0">选择系统文件</el-button>
  1545. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  1546. <img :src="cover[0].url" alt="" />
  1547. <div class="deletePic" @click="deleteSysPic">
  1548. <img src="../../../assets/icon/delete.png" alt="" />
  1549. </div>
  1550. </div>
  1551. </div>
  1552. </div>
  1553. <div class="fileCss">
  1554. <div>选择本地文件</div>
  1555. <div>选择系统文件</div>
  1556. </div>
  1557. </div>
  1558. <span slot="footer" class="dialog-footer">
  1559. <el-button @click="choosePicVisible = false">取 消</el-button>
  1560. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  1561. </span>
  1562. </el-dialog>
  1563. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  1564. :before-close="handleClose" class="dialog_diy">
  1565. <div class="cru_selectBox" style="margin: 0">
  1566. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  1567. 绘画
  1568. </div>
  1569. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  1570. 科技
  1571. </div>
  1572. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  1573. 人文
  1574. </div>
  1575. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  1576. 艺术
  1577. </div>
  1578. </div>
  1579. <div class="sysPicBox">
  1580. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  1581. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  1582. </div>
  1583. </div>
  1584. <span slot="footer" class="dialog-footer">
  1585. <el-button @click="sysPicVisible = false">取 消</el-button>
  1586. <el-button type="primary">确 定</el-button>
  1587. </span>
  1588. </el-dialog>
  1589. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  1590. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1591. <div v-if="selectJson">
  1592. <div class="select_box1" v-if="selectSteps == 1">
  1593. <div class="select_box1_img">
  1594. <div class="select_box1_title">
  1595. <span>上传题目图片</span><span>提示:请将题目以图片的方式上传</span>
  1596. </div>
  1597. <div class="select_box1_add_img">
  1598. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  1599. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  1600. <img src="../../../assets/icon/addPoster.png" alt="" />
  1601. </div>
  1602. <div class="isSysPic" v-else>
  1603. <img :src="selectJson.url" alt="" />
  1604. <div class="deletePic" @click="deleteSelectPic">
  1605. <img src="../../../assets/icon/delete.png" alt="" />
  1606. </div>
  1607. </div>
  1608. </div>
  1609. </div>
  1610. <div class="select_box1_select">
  1611. <div class="select_box1_title">
  1612. <span>添加选项</span><span>提示:请输入题目选项</span>
  1613. </div>
  1614. <div class="select_box1_select_box">
  1615. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  1616. v-model="selectJson.select[checkIndex]" placeholder="请输入选项..."
  1617. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  1618. <div class="select_box1_select_box_add">
  1619. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  1620. 添加</el-button>
  1621. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  1622. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  1623. </div>
  1624. </div>
  1625. </div>
  1626. </div>
  1627. <div v-if="selectSteps == 2">
  1628. <div class="select_box2">
  1629. <div class="select_box2_title">设置答案</div>
  1630. <div class="select_box2_box">
  1631. <div class="select_box2_img">
  1632. <img :src="selectJson.url" alt="" />
  1633. </div>
  1634. <div class="select_box2_answer">
  1635. <div class="select_answer_title">根据题目选择对应答案</div>
  1636. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  1637. <span>{{ checkIndex + 1 }}、</span>
  1638. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  1639. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  1640. </el-option>
  1641. </el-select>
  1642. </div>
  1643. </div>
  1644. </div>
  1645. </div>
  1646. </div>
  1647. </div>
  1648. <span slot="footer" class="dialog-footer">
  1649. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  1650. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  1651. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  1652. </span>
  1653. </el-dialog>
  1654. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  1655. :before-close="handleClose" class="dialog_diy">
  1656. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  1657. <div style="font-size: 18px; color: #a9a9a9">请输入学生评价指标:</div>
  1658. <div class="pjCss" style="width: 100%">
  1659. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  1660. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  1661. <span style="min-width: 100px; text-align: right">学生评价指标:</span>
  1662. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  1663. <div class="remove" @click="deletRateList(eIndex)"></div>
  1664. <div style="width: 100%; display: flex">
  1665. <span style="min-width: 100px; text-align: right">评星等级:</span>
  1666. <el-rate v-model="eItem.score" disabled></el-rate>
  1667. </div>
  1668. <div class="elist_inptu_text" style="align-items: flex-start">
  1669. <span style="min-width: 100px; text-align: right">描述:</span>
  1670. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  1671. </div>
  1672. </div>
  1673. </div>
  1674. <div class="addToolFunBox">
  1675. <div class="addToolFun" @click="addRateList()">
  1676. <div class="addToolImg">
  1677. <img src="../../../assets/icon/add.png" alt />
  1678. </div>
  1679. <div>添加</div>
  1680. </div>
  1681. </div>
  1682. </div>
  1683. </div>
  1684. <span slot="footer" class="dialog-footer">
  1685. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  1686. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  1687. </span>
  1688. </el-dialog>
  1689. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  1690. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1691. <div>
  1692. <div class="sentenBox">
  1693. <div class="addSen" @click="addSt">添加题目</div>
  1694. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  1695. <div class="sentenTopBox">
  1696. <div class="sentenTop">
  1697. <div>题目设置</div>
  1698. <div>
  1699. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle"></el-input>
  1700. </div>
  1701. <div @click="addSen(stIndex)">添加</div>
  1702. </div>
  1703. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  1704. </div>
  1705. <div class="cardList">
  1706. <div v-if="st.addSentence.length > 0" class="cardBox">
  1707. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  1708. @click="setRightAnswer(s, stIndex, sIndex)">
  1709. <el-tooltip class="item" effect="light" :content="s" placement="top">
  1710. <div>{{ s }}</div>
  1711. </el-tooltip>
  1712. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  1713. <img src="../../../assets/icon/delete.png" alt="" />
  1714. </div>
  1715. </div>
  1716. </div>
  1717. <div class="card">
  1718. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  1719. </div>
  1720. </div>
  1721. <div class="rightCardBox">
  1722. <div>正确顺序</div>
  1723. <div class="rightCardList">
  1724. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  1725. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  1726. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  1727. <el-tooltip class="item" effect="light" :content="r" placement="top">
  1728. <div>{{ r }}</div>
  1729. </el-tooltip>
  1730. </div>
  1731. <div>{{ rIndex + 1 }}</div>
  1732. </div>
  1733. </div>
  1734. <div class="card" v-if="st.rightAnswer.length == 0">
  1735. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  1736. </div>
  1737. </div>
  1738. </div>
  1739. </div>
  1740. </div>
  1741. </div>
  1742. <span slot="footer" class="dialog-footer">
  1743. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  1744. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  1745. </span>
  1746. </el-dialog>
  1747. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  1748. :before-close="handleClose" class="dialog_diy">
  1749. <el-form>
  1750. <!-- <el-form-item label="文本标题">
  1751. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  1752. </el-form-item> -->
  1753. <div>表格内容</div>
  1754. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable"></Table>
  1755. </el-form>
  1756. <span slot="footer" class="dialog-footer">
  1757. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  1758. <el-button type="primary" @click="addTableJson">确定</el-button>
  1759. </span>
  1760. </el-dialog>
  1761. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable1" :append-to-body="true" width="95%"
  1762. :before-close="handleClose" class="dialog_diy">
  1763. <el-form>
  1764. <!-- <el-form-item label="文本标题">
  1765. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  1766. </el-form-item> -->
  1767. <div>表格内容</div>
  1768. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable1"></Table>
  1769. </el-form>
  1770. <span slot="footer" class="dialog-footer">
  1771. <el-button @click="dialogVisibleTable1 = false">取 消</el-button>
  1772. <el-button type="primary" @click="addTable">确定</el-button>
  1773. </span>
  1774. </el-dialog>
  1775. <el-dialog title="查看表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  1776. :before-close="handleClose" class="dialog_diy">
  1777. <el-form>
  1778. <div class="cont" v-html="tableJson.text" style="line-height: 24px"></div>
  1779. </el-form>
  1780. <span slot="footer" class="dialog-footer">
  1781. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  1782. </span>
  1783. </el-dialog>
  1784. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  1785. :before-close="handleClose" class="dialog_diy">
  1786. <div class="groupBox">
  1787. <div v-if="groupJson.group" class="groupContent">
  1788. <div class="groupTitle">请设置小组数量</div>
  1789. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  1790. <span class="groupn">组{{ index + 1 }}名称:</span>
  1791. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  1792. <div class="groupBtn">
  1793. <el-button type="primary" size="small" @click="addGroup(index)">
  1794. 添加</el-button>
  1795. <el-button type="primary" size="small" @click="deleteGroup(index)"
  1796. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  1797. </div>
  1798. </div>
  1799. </div>
  1800. <div class="groupContent">
  1801. <div class="groupTitle">请设置每组人数数量</div>
  1802. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  1803. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  1804. <el-input-number v-model="groupJson.number" :controls="false" :min="2" :max="10"
  1805. placeholder="2-10人以内"></el-input-number>
  1806. </div>
  1807. </div>
  1808. <span slot="footer" class="dialog-footer">
  1809. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  1810. <el-button type="primary" @click="addGroupJson">确定</el-button>
  1811. </span>
  1812. </el-dialog>
  1813. <el-dialog title="添加工具" :visible.sync="dialogVisibleTool" :append-to-body="true" width="600px"
  1814. :before-close="handleClose" class="dialog_diy addToolsDia">
  1815. <div class="toolChoose" style="padding: 0 0 30px 30px">
  1816. <div class="tools">
  1817. <div class="leftTools" style="
  1818. width: 95%;
  1819. padding: 0 0 15px 0;
  1820. border-bottom: 1px solid #efefef;
  1821. margin-bottom: 15px;
  1822. ">
  1823. <div style="min-height: 163px">
  1824. <div class="toolSort">
  1825. <div class="tool">
  1826. <div class="whiteBIcon" @click="addToolFun(1)">
  1827. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  1828. <div style="margin: 5px 0">电子白板</div>
  1829. </div>
  1830. </div>
  1831. <div class="tool" v-if="false">
  1832. <div class="whiteBIcon" @click="addToolFun(6)">
  1833. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  1834. <div style="margin: 5px 0">协同文档</div>
  1835. </div>
  1836. </div>
  1837. <div class="tool">
  1838. <div class="whiteBIcon" @click="addToolFun(3)">
  1839. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  1840. <div style="margin: 5px 0">思维导图</div>
  1841. </div>
  1842. </div>
  1843. <div class="tool">
  1844. <div class="whiteBIcon" @click="addToolFun(48)">
  1845. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  1846. <div style="margin: 5px 0">表格</div>
  1847. </div>
  1848. </div>
  1849. <!-- <div class="tool">
  1850. <div class="whiteBIcon" @click="addToolFun(15)">
  1851. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  1852. <div style="margin: 5px 0">问答</div>
  1853. </div>
  1854. </div> -->
  1855. <div class="tool">
  1856. <div class="whiteBIcon" @click="addToolFun(52)">
  1857. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  1858. <div style="margin: 5px 0">文档</div>
  1859. </div>
  1860. </div>
  1861. <div class="tool">
  1862. <div class="whiteBIcon" @click="addToolFun(51)">
  1863. <img src="../../../assets/icon/fourthToolList/upload.png" alt />
  1864. <div style="margin: 5px 0">资源库</div>
  1865. </div>
  1866. </div>
  1867. <!-- <div class="tool">
  1868. <div class="whiteBIcon" @click="addToolFun(53)">
  1869. <img src="../../../assets/icon/fourthToolList/file.png" alt />
  1870. <div style="margin: 5px 0">文件上传</div>
  1871. </div>
  1872. </div> -->
  1873. <div class="tool">
  1874. <div class="whiteBIcon" @click="addToolFun(54)">
  1875. <img src="../../../assets/icon/fourthToolList/photo.png" alt />
  1876. <div style="margin: 5px 0">拍照</div>
  1877. </div>
  1878. </div>
  1879. <!-- <div class="tool">
  1880. <div class="whiteBIcon" @click="addToolFun(55)">
  1881. <img
  1882. src="../../../assets/icon/fourthToolList/zip.png"
  1883. alt
  1884. />
  1885. <div style="margin: 5px 0">文件</div>
  1886. </div>
  1887. </div> -->
  1888. <div class="tool">
  1889. <div class="whiteBIcon" @click="addToolFun(56)">
  1890. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1891. <div style="margin: 5px 0">投票</div>
  1892. </div>
  1893. </div>
  1894. <div class="tool">
  1895. <div class="whiteBIcon" @click="addToolFun(57)">
  1896. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1897. <div style="margin: 5px 0">CocoPi</div>
  1898. </div>
  1899. </div>
  1900. </div>
  1901. </div>
  1902. </div>
  1903. </div>
  1904. </div>
  1905. <!-- <span slot="footer" class="dialog-footer">
  1906. <el-button @click="dialogVisible4 = false">取 消</el-button>
  1907. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  1908. </span> -->
  1909. </el-dialog>
  1910. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource" :append-to-body="true" width="700px"
  1911. :before-close="handleClose" class="dialog_diy addToolsDia">
  1912. <div class="toolChoose">
  1913. <div class="tools">
  1914. <div class="leftTools" style="width: 100%">
  1915. <div>
  1916. <div class="basic_box">
  1917. <div>
  1918. <div class="add_chapters_box" v-if="sourcesData.length == 0" style="height: 185px"></div>
  1919. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1920. <div class="chapter_upload" v-for="(item, index) in sourcesData" :key="index"
  1921. @click="getChapterData2($event, index, item.type)">
  1922. <div class="chapter_upload_t" style="width: 100%"></div>
  1923. <div class="chapter_upload_o" style="
  1924. position: relative;
  1925. display: flex;
  1926. align-items: center;
  1927. ">
  1928. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1929. <div v-if="item.type == 2" class="chapter_upload_l_i1"></div>
  1930. <div v-if="item.type == 3 ||
  1931. item.type == 9 ||
  1932. item.type == 6 ||
  1933. item.type == 12 ||
  1934. item.type == 13 ||
  1935. item.type == 7
  1936. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  1937. <div v-if="item.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  1938. </div>
  1939. <div class="chapter_upload_ic" style="
  1940. cursor: pointer;
  1941. position: absolute;
  1942. width: 45px;
  1943. right: 0;
  1944. top: 0;
  1945. ">
  1946. <div class="chapter_upload_ic_l"></div>
  1947. <div class="chapter_upload_ic_r" style="position: absolute"
  1948. @click.stop="deleteChapterData2($event, index)">
  1949. <div></div>
  1950. </div>
  1951. </div>
  1952. <div class="chapter_upload_n">
  1953. <input v-if="item.type == 2 ||
  1954. item.type == 3 ||
  1955. item.type == 9 ||
  1956. item.type == 12 ||
  1957. item.type == 13 ||
  1958. item.type == 7
  1959. " :placeholder="item.name" @change="updataVideoT2($event, index)" style="
  1960. border: none;
  1961. outline: none;
  1962. width: 80%;
  1963. minwidth: 215px;
  1964. z-index: 99;
  1965. font-size: 14px;
  1966. white-space: nowrap;
  1967. overflow: hidden;
  1968. text-overflow: ellipsis;
  1969. " />
  1970. <input :placeholder="item.name" v-if="item.type == 6" style="
  1971. border: none;
  1972. outline: none;
  1973. width: 80%;
  1974. white-space: nowrap;
  1975. overflow: hidden;
  1976. text-overflow: ellipsis;
  1977. " readonly="true" @click="selectAttText2(index)" />
  1978. <input :placeholder="item.title ? item.title : '链接'" v-if="item.type == 8" style="
  1979. border: none;
  1980. outline: none;
  1981. width: 80%;
  1982. white-space: nowrap;
  1983. overflow: hidden;
  1984. text-overflow: ellipsis;
  1985. " readonly="true" @click="selectLine2(index)" />
  1986. <div class="chapter_upload_ud" style="z-index: 99">
  1987. <div class="chapter_upload_up" @click="upCd2($event, index)"></div>
  1988. <div class="chapter_upload_down" @click="downCd2($event, index)"></div>
  1989. </div>
  1990. </div>
  1991. </div>
  1992. </div>
  1993. </div>
  1994. </div>
  1995. <div class="add_info_box">
  1996. <button class="info_btn" @click="addImg($event)">
  1997. 添加文件
  1998. <input type="file" accept="*" style="display: none" v-if="inputShow"
  1999. @change="beforeUpload3($event, 13)" />
  2000. </button>
  2001. <!-- <button class="info_btn" @click="addImg($event)">
  2002. 添加视频
  2003. <input
  2004. type="file"
  2005. accept="video/mp4, video/quicktime, video/x-msvideo"
  2006. style="display: none"
  2007. v-if="inputShow"
  2008. @change="beforeUpload3($event, 2)"
  2009. />
  2010. </button>
  2011. <button class="info_btn" @click="addImg($event)">
  2012. 添加附件
  2013. <input
  2014. type="file"
  2015. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2016. style="display: none"
  2017. v-if="inputShow"
  2018. @change="beforeUpload3($event, 3)"
  2019. />
  2020. </button> -->
  2021. <button class="info_btn" @click="addAttText()">
  2022. 添加图文
  2023. </button>
  2024. <button class="info_btn" @click="openLine()">
  2025. 添加链接
  2026. </button>
  2027. <button class="info_btn" @click="pasteLine()">
  2028. 嵌入代码
  2029. </button>
  2030. <button class="info_btn" @click="openSource()">
  2031. 添加资源
  2032. </button>
  2033. </div>
  2034. <div v-if="proVisible" class="mask">
  2035. <div class="progressBox">
  2036. <!-- <div id="closePro" class="closeCss">
  2037. <img src="../../../assets/icon/close.png" alt />
  2038. </div> -->
  2039. <div class="lbox">
  2040. <img src="../../../assets/loading.gif" />上传中,请稍后
  2041. </div>
  2042. <div style="margin-bottom: 10px">
  2043. <span>{{ isFinishSize }}M</span> /
  2044. <span>{{ isAllSize }}M</span>
  2045. </div>
  2046. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress"
  2047. style="width: 80%"></el-progress>
  2048. </div>
  2049. </div>
  2050. </div>
  2051. </div>
  2052. </div>
  2053. </div>
  2054. </div>
  2055. <span slot="footer" class="dialog-footer">
  2056. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2057. <el-button type="primary" @click="addSourceData">确定</el-button>
  2058. </span>
  2059. </el-dialog>
  2060. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  2061. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy" :class="{ full_diy2: fulltype == 9 }">
  2062. <div slot="title" class="header-title">
  2063. <div style="color: #fff">查看文档</div>
  2064. <div @click="fullDialogVisible = false" style="
  2065. cursor: pointer;
  2066. position: absolute;
  2067. top: 20px;
  2068. right: 20px;
  2069. color: #fff;
  2070. ">
  2071. 退出全屏
  2072. </div>
  2073. </div>
  2074. <div style="height: 100%">
  2075. <iframe v-if="fulltype == 3" style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  2076. <pdf v-else-if="fulltype == 9" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto">
  2077. </pdf>
  2078. <div class="wheel" v-if="fulltype == 6" style="
  2079. box-shadow: 0 0 6px 1px #f2f2f2;
  2080. width: 100%;
  2081. background: #f1f1f1;
  2082. ">
  2083. <div class="texttitle" style="width: 100%; box-sizing: border-box">
  2084. 查看文档
  2085. </div>
  2086. <el-form class="textBox" style="height: 90%">
  2087. <el-form-item class="textTitle">
  2088. <div style="font-size: 22px; max-height: 100px; overflow: auto">
  2089. {{ fullUrl.name }}
  2090. </div>
  2091. </el-form-item>
  2092. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  2093. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  2094. </el-form>
  2095. </div>
  2096. </div>
  2097. <!-- <div slot="footer">
  2098. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  2099. </div> -->
  2100. </el-dialog>
  2101. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  2102. :before-close="handleClose" class="dialog_diy">
  2103. <div>
  2104. <div style="
  2105. display: flex;
  2106. flex-wrap: nowrap;
  2107. flex-direction: column;
  2108. position: relative;
  2109. ">
  2110. <div class="queTop" style="padding: 20px 0 20px 0">
  2111. <div class="question">
  2112. <img src="../../../assets/icon/question.png" alt />
  2113. </div>
  2114. <div class="queTitle">
  2115. <div style="width: 90px; min-width: 90px">提问:</div>
  2116. <div>{{ answerQ }}</div>
  2117. </div>
  2118. </div>
  2119. <div class="ediBottom">
  2120. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  2121. v-model="questionAnswer"></textarea>
  2122. </div>
  2123. </div>
  2124. </div>
  2125. <div slot="footer">
  2126. <el-button @click="answerDialogVisible = false">取 消</el-button>
  2127. <el-button type="primary" @click="addQuestion">提 交</el-button>
  2128. </div>
  2129. </el-dialog>
  2130. <el-dialog title="文件预览" :visible.sync="dialogVisibleFile" width="50%" :before-close="handleClose" class="dialog_diy"
  2131. :class="{ fullStyle: full }">
  2132. <div slot="title" class="header-title">
  2133. <div style="color: #fff">文件预览</div>
  2134. <div style="position: absolute; top: 19px; right: 50px">
  2135. <img src="../../../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="full = !full" />
  2136. </div>
  2137. </div>
  2138. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  2139. :class="{ fullStyle: full }"></pdf>
  2140. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  2141. </el-dialog>
  2142. <el-dialog title="添加文档" :visible.sync="dialogVisibleText" :append-to-body="true" width="800px"
  2143. :before-close="handleClose" class="dialog_diy">
  2144. <el-form>
  2145. <div>文档内容</div>
  2146. <editor-bar v-model="tableJson.text" @change="change" v-if="dialogVisibleText"></editor-bar>
  2147. </el-form>
  2148. <span slot="footer" class="dialog-footer">
  2149. <el-button @click="dialogVisibleText = false">取 消</el-button>
  2150. <el-button type="primary" @click="addText">确定</el-button>
  2151. </span>
  2152. </el-dialog>
  2153. <el-dialog title="上传文档" :visible.sync="dialogVisibleText3" :append-to-body="true" width="800px"
  2154. :before-close="handleClose" class="dialog_diy">
  2155. <el-form>
  2156. <div>文档内容</div>
  2157. <EditorBar2 v-model="tableJson.text" @change="change" v-if="dialogVisibleText3"></EditorBar2>
  2158. </el-form>
  2159. <span slot="footer" class="dialog-footer">
  2160. <el-button @click="dialogVisibleText3 = false">取 消</el-button>
  2161. <el-button type="primary" @click="addTextJson">确定</el-button>
  2162. </span>
  2163. </el-dialog>
  2164. <el-dialog title="查看文档" :visible.sync="dialogVisibleText2" :append-to-body="true" width="800px"
  2165. :before-close="handleClose" class="dialog_diy">
  2166. <el-form>
  2167. <div class="cont" v-html="tableJson.text" style="line-height: 24px"></div>
  2168. </el-form>
  2169. <span slot="footer" class="dialog-footer">
  2170. <el-button @click="dialogVisibleText2 = false">关 闭</el-button>
  2171. </span>
  2172. </el-dialog>
  2173. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px" :before-close="handleClose"
  2174. class="dialog_diy1">
  2175. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  2176. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  2177. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  2178. </div>
  2179. <div slot="footer">
  2180. <el-button style="background: #409efe; color: #fff" @click="(videoVisible = false), (videoDetail = {})">
  2181. 关 闭</el-button>
  2182. </div>
  2183. </el-dialog>
  2184. <el-dialog title="创建投票" :visible.sync="dialogVisibleVote" :append-to-body="true" width="800px"
  2185. :before-close="handleClose" class="dialog_diy">
  2186. <div>
  2187. <div class="a_add_title" style="
  2188. display: flex;
  2189. flex-direction: row;
  2190. align-items: center;
  2191. justify-content: center;
  2192. ">
  2193. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  2194. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2195. </div>
  2196. <div class="a_addBox">
  2197. <div style="font-size: 16px; color: #c7c7c7">请输入投票内容</div>
  2198. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2199. <div class="a_add_head">
  2200. <div>
  2201. {{ index1 + 1 + "、" }}
  2202. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入内容...">
  2203. </el-input>
  2204. </div>
  2205. <div class="a_add_head_div">
  2206. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  2207. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2208. </el-button>
  2209. </div>
  2210. </div>
  2211. <div class="a_add_body">
  2212. <div class="a_add_input">
  2213. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2214. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入投票选项..."
  2215. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2216. </div>
  2217. <div class="a_add_body_div">
  2218. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2219. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2220. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2221. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2222. </el-button>
  2223. </div>
  2224. </div>
  2225. </div>
  2226. </div>
  2227. </div>
  2228. <span slot="footer" class="dialog-footer">
  2229. <el-button @click="dialogVisibleVote = false">取 消</el-button>
  2230. <el-button type="primary" @click="addAsk">确 定</el-button>
  2231. </span>
  2232. </el-dialog>
  2233. <el-dialog title="查看投票" :visible.sync="dialogVisibleVote2" :append-to-body="true" width="1000px"
  2234. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2235. <div>
  2236. <div class="a_add_title" style="
  2237. display: flex;
  2238. flex-direction: row;
  2239. align-items: center;
  2240. justify-content: center;
  2241. ">
  2242. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  2243. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  2244. </div>
  2245. <div class="a_addBox">
  2246. <div style="font-size: 16px; color: #c7c7c7">投票内容</div>
  2247. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2248. <div class="a_add_head">
  2249. <div style="display: flex">
  2250. {{ index1 + 1 + "、" }}
  2251. <div>{{ askJson.askJson[index1].askstitle }}</div>
  2252. </div>
  2253. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  2254. style="height: 300px; margin-top: 10px; max-width: 100%" />
  2255. </div>
  2256. <div class="a_add_body">
  2257. <div class="a_add_input">
  2258. <el-radio-group v-model="radio[index1]">
  2259. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  2260. .checkList" :key="checkIndex" :label="checkIndex" class="redioStyle"><span
  2261. v-html="item2"></span></el-radio>
  2262. </el-radio-group>
  2263. </div>
  2264. </div>
  2265. </div>
  2266. </div>
  2267. </div>
  2268. <span slot="footer" class="dialog-footer">
  2269. <el-button @click="dialogVisibleVote2 = false">取 消</el-button>
  2270. <el-button type="primary" @click="addStudentAsk">确 定</el-button>
  2271. </span>
  2272. </el-dialog>
  2273. <el-dialog title="查看投票" :visible.sync="dialogVisibleVote3" :append-to-body="true" width="1000px"
  2274. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2275. <div>
  2276. <div class="a_add_title" style="
  2277. display: flex;
  2278. flex-direction: row;
  2279. align-items: center;
  2280. justify-content: center;
  2281. ">
  2282. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  2283. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  2284. </div>
  2285. <div class="a_addBox">
  2286. <div style="font-size: 16px; color: #c7c7c7">投票内容</div>
  2287. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2288. <div class="a_add_head">
  2289. <div style="display: flex">
  2290. {{ index1 + 1 + "、" }}
  2291. <div>{{ askJson.askJson[index1].askstitle }}</div>
  2292. </div>
  2293. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  2294. style="height: 300px; margin-top: 10px; max-width: 100%" />
  2295. </div>
  2296. <div class="a_add_body">
  2297. <div class="a_add_input">
  2298. <el-radio-group v-model="radio[index1]">
  2299. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  2300. .checkList" :key="checkIndex" :label="checkIndex" disabled class="redioStyle"><span
  2301. v-html="item2"></span></el-radio>
  2302. </el-radio-group>
  2303. </div>
  2304. </div>
  2305. </div>
  2306. </div>
  2307. </div>
  2308. <span slot="footer" class="dialog-footer">
  2309. <el-button @click="dialogVisibleVote3 = false">关 闭</el-button>
  2310. </span>
  2311. </el-dialog>
  2312. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource2" :append-to-body="true" width="100%"
  2313. :before-close="handleClose" class="dialog_diy source_diy">
  2314. <div>
  2315. <sourceDialog :sourceData.sync="sourceData"></sourceDialog>
  2316. </div>
  2317. <span slot="footer" class="dialog-footer">
  2318. <el-button @click="dialogVisibleSource2 = false">取 消</el-button>
  2319. <el-button type="primary" @click="addSource">确定</el-button>
  2320. </span>
  2321. </el-dialog>
  2322. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  2323. class="dialog_diy" center>
  2324. <div style="
  2325. text-align: center;
  2326. display: flex;
  2327. align-items: center;
  2328. justify-content: center;
  2329. ">
  2330. <span class="tian1">名称</span>
  2331. <el-input style="width: 240px;margin-left: 10px;" v-model="updateWorkJson.name" placeholder="请输入名称"></el-input>
  2332. </div>
  2333. <span slot="footer" class="dialog-footer">
  2334. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  2335. <el-button type="primary" @click="updateName">确 定</el-button>
  2336. </span>
  2337. </el-dialog>
  2338. <el-dialog title="选择项目模板" :visible.sync="templateDialog" :append-to-body="true" width="630px"
  2339. :before-close="handleClose" class="dialog_diy">
  2340. <div class="template_box">
  2341. <div v-if="templateArray && !templateArray.length" style="text-align: center;width: 100%;">暂无项目模板</div>
  2342. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkctJson(aa)"
  2343. :class="{ wordTeacherA: ctJson.id == aa.id }">
  2344. <div class="wordPic">
  2345. <img src="../../../assets/icon/new/course_template.png" alt />
  2346. </div>
  2347. <el-tooltip effect="dark" :content="aa.title" placement="top">
  2348. <div style="
  2349. margin-top: 10px;
  2350. line-height: 19px;
  2351. overflow: hidden;
  2352. text-overflow: ellipsis;
  2353. white-space: nowrap;
  2354. padding: 0 10px;
  2355. box-sizing: border-box;
  2356. width: 100%;
  2357. ">
  2358. {{ aa.title }}
  2359. </div>
  2360. </el-tooltip>
  2361. </div>
  2362. </div>
  2363. <span slot="footer" class="dialog-footer">
  2364. <el-button @click="templateDialog = false">取 消</el-button>
  2365. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  2366. </span>
  2367. </el-dialog>
  2368. </div>
  2369. </template>
  2370. <script>
  2371. import "../../../common/aws-sdk-2.235.1.min.js";
  2372. import $ from "jquery";
  2373. import EditorBar from "../../../components/tools/wangEnduit";
  2374. import EditorBar2 from "../../../components/tools/wangEnduit";
  2375. import Table from "../../../components/tools/table";
  2376. import voteStatic from "../components/voteStatic.vue";
  2377. import TextT from "../../../components/tools/text";
  2378. import Mind from "../../tools/jsmind2";
  2379. import Sunburst from "../../tools/sunburst";
  2380. import SeeBoard from "../../tools/seeBoard";
  2381. import proMan from "../components/proMan.vue";
  2382. import ganChart from "../components/ganChart.vue";
  2383. import graph from "../components/graph.vue";
  2384. import pdf from "../components/vpdf";
  2385. import * as imageConversion from "image-conversion";
  2386. import courseDetailVue from "../courseDetail.vue";
  2387. import sourceDialog from "../teacherSource/dialog.vue";
  2388. import { tools as toolsData } from "../../../common/tools.js";
  2389. export default {
  2390. components: {
  2391. EditorBar,
  2392. EditorBar2,
  2393. sourceDialog,
  2394. Mind,
  2395. Sunburst,
  2396. SeeBoard,
  2397. Table,
  2398. proMan,
  2399. ganChart,
  2400. graph,
  2401. pdf,
  2402. TextT,
  2403. voteStatic,
  2404. },
  2405. data() {
  2406. return {
  2407. checkAll: false,
  2408. chooseType: 1,
  2409. checkedCities: [],
  2410. isIndeterminate: true,
  2411. isSysPic: false,
  2412. steps: 1,
  2413. nbOrder: 0,
  2414. courseId: "",
  2415. chapToolsType: 0,
  2416. chapTools: [
  2417. {
  2418. tools: [],
  2419. toolDetail: "",
  2420. },
  2421. ],
  2422. line: "",
  2423. lineTitle: "",
  2424. sysPic: [],
  2425. sentenceList: [
  2426. {
  2427. sentenceTitle: "",
  2428. addSentence: [],
  2429. rightAnswer: [],
  2430. },
  2431. ],
  2432. isPushTitleList: [],
  2433. lineCount: 0,
  2434. lineType: 0,
  2435. chapCount: 0,
  2436. courseName: "",
  2437. isTeacherSee: false,
  2438. courseText: "",
  2439. formLabelWidth: "100px",
  2440. choosePicVisible: false,
  2441. sysPicVisible: false,
  2442. uploadLoading1: false,
  2443. noneBtnImg: false,
  2444. updateBoolean2: false,
  2445. unitIndex: 0,
  2446. taskCount: 0,
  2447. dialogVisible: false,
  2448. dialogVisible1: false,
  2449. dialogVisible2: false,
  2450. dialogVisible3: false,
  2451. dialogVisible4: false,
  2452. dialogVisible5: false,
  2453. dialogVisible6: false,
  2454. dialogVisible7: false,
  2455. dialogVisible8: false,
  2456. dialogVisible9: false,
  2457. dialogVisibleClass: false,
  2458. dialogVisibleMember: false,
  2459. dialogVisibleTcMember: false,
  2460. dialogVisibleMp3: false,
  2461. dialogVisibleSelect: false,
  2462. dialogVisibleSentence: false,
  2463. dialogVisibleRate: false,
  2464. dialogVisibleChoice: false,
  2465. dialogVisibleTool: false,
  2466. dialogVisibleSource: false,
  2467. dialogVisibleSource2: false,
  2468. answerDialogVisible: false,
  2469. dialogVisibleFile: false,
  2470. dialogVisibleText: false,
  2471. dialogVisibleText2: false,
  2472. dialogVisibleText3: false,
  2473. dialogVisibleVote: false,
  2474. dialogVisibleVote2: false,
  2475. dialogVisibleVote3: false,
  2476. dialogVisibleSname: false,
  2477. videoVisible: false,
  2478. videoDetail: {},
  2479. showPDF: "",
  2480. pptImgUrl: "",
  2481. full: false,
  2482. templateDialog: false,
  2483. ctJson: {},
  2484. isClickColor: 1,
  2485. toolIndexType: "",
  2486. publicTool: 0,
  2487. searchPeople: "",
  2488. searchTN: "",
  2489. tcMember: "",
  2490. userid: this.$route.query.userid,
  2491. oid: this.$route.query.oid,
  2492. org: this.$route.query.org,
  2493. role: this.$route.query.role,
  2494. type: this.$route.query.type,
  2495. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  2496. orgArray: ["150e3120-9195-11ed-b13d-005056b86db5"],
  2497. oidArray: [],
  2498. dialogVisibleTable: false,
  2499. dialogVisibleTable1: false,
  2500. dialogVisibleTable2: false,
  2501. tableJson: {
  2502. text: "",
  2503. },
  2504. cover: [], //项目封面
  2505. myWord: [],
  2506. evaJuri: [],
  2507. evalua: "",
  2508. targetArray: [],
  2509. eTitle: "",
  2510. eJson: {},
  2511. fid: "", //一级
  2512. sid: "", //二级
  2513. tid: "", //二级
  2514. typeMode: 1,
  2515. eJSONNum: 0,
  2516. data: {
  2517. meta: {
  2518. name: "example",
  2519. author: "dd@163.com",
  2520. version: "0.2",
  2521. },
  2522. format: "node_array",
  2523. data: [
  2524. {
  2525. id: "root",
  2526. isroot: true,
  2527. topic: "",
  2528. },
  2529. ],
  2530. },
  2531. askJson: {
  2532. askCount: 1,
  2533. askTitle: "",
  2534. askJson: [
  2535. {
  2536. askstitle: "",
  2537. askItem: 1,
  2538. checkList: [],
  2539. },
  2540. ],
  2541. },
  2542. testJson: {},
  2543. selectJson: {},
  2544. rateJson: [],
  2545. unitJson2: [],
  2546. unitJson: [
  2547. {
  2548. dyName: "", //单元标题
  2549. chapterInfo: [
  2550. {
  2551. isread: false,
  2552. chapterid: this.guid(),
  2553. title: "",
  2554. courseName: "",
  2555. taskJson: [
  2556. {
  2557. task: "",
  2558. people: "",
  2559. time: "",
  2560. taskDetail: "",
  2561. chapterData: [],
  2562. toolText: "",
  2563. toolChoose: [
  2564. {
  2565. tool: [],
  2566. toolDetail: "",
  2567. toolType: 0,
  2568. askCount: 1,
  2569. askTitle: "",
  2570. askJson: [
  2571. {
  2572. askstitle: "",
  2573. askItem: 1,
  2574. checkList: [],
  2575. },
  2576. ],
  2577. },
  2578. ],
  2579. toolArray: [],
  2580. isShowTools: false,
  2581. askCount: 1,
  2582. isFold: 0,
  2583. askTitle: "",
  2584. askJson: [
  2585. {
  2586. askstitle: "",
  2587. askItem: 1,
  2588. checkList: [],
  2589. },
  2590. ],
  2591. checkJson: [
  2592. {
  2593. checkCount: [],
  2594. checkPerent: [],
  2595. },
  2596. ],
  2597. homeworkList: [],
  2598. },
  2599. ],
  2600. itemCount: 1,
  2601. fileList1: [],
  2602. video: [],
  2603. testData: [],
  2604. pData: [],
  2605. templateArray: [],
  2606. },
  2607. ],
  2608. },
  2609. ],
  2610. studentJuri: [],
  2611. teacherJuri: [],
  2612. teacherJuri2: [],
  2613. checkboxList: [],
  2614. checkboxList2: [],
  2615. checkboxList3: [],
  2616. checkboxListPeople: [],
  2617. number: "",
  2618. tTitle: "",
  2619. tdetail: "",
  2620. templateC: {},
  2621. AttText: {},
  2622. AttTextType: 0,
  2623. AttTextIndex: 0,
  2624. cTemplate: "",
  2625. CourseType: [],
  2626. CourseTypeJson: {},
  2627. courseTypeId: [],
  2628. courseTypeSon: [],
  2629. clearArray: [],
  2630. loading: false,
  2631. toolType: 0,
  2632. inputShow: true,
  2633. toolIndex: 0,
  2634. cidType: 0,
  2635. cidttt: 1,
  2636. answerQ: "",
  2637. questionAnswer: "",
  2638. grade: [],
  2639. courseUserid: "",
  2640. timer: null,
  2641. checkId: "",
  2642. isDelete: 1,
  2643. addindex: 0,
  2644. selectSteps: 1,
  2645. groupJson: {},
  2646. dialogVisibleGroup: false,
  2647. fpath: "",
  2648. ManAarray: [],
  2649. ManAarray2: [],
  2650. proVisible: false,
  2651. progress: 0,
  2652. isFinishSize: 0,
  2653. isAllsize: 0,
  2654. playerOptions: {
  2655. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  2656. autoplay: false, //如果true,浏览器准备好时开始回放。
  2657. muted: false, // 默认情况下将会消除任何音频。
  2658. loop: false, // 导致视频一结束就重新开始。
  2659. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  2660. language: "zh-CN",
  2661. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  2662. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  2663. sources: [
  2664. {
  2665. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  2666. src: "", //url地址require("../../assets/media/aaa.mp4")
  2667. },
  2668. ],
  2669. // poster: require("../../assets/tu31.png"), //你的封面地址
  2670. // poster: dataRes.imgUrl, //你的封面地址
  2671. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  2672. controlBar: {
  2673. timeDivider: true, //当前时间和持续时间的分隔符
  2674. durationDisplay: true, //显示持续时间
  2675. remainingTimeDisplay: false, //是否显示剩余时间功能
  2676. fullscreenToggle: true, //全屏按钮
  2677. },
  2678. },
  2679. sourcesData: [],
  2680. fullDialogVisible: false,
  2681. fulltype: "",
  2682. fullUrl: "",
  2683. editSourceType: 1,
  2684. radio: [],
  2685. checkJson: [],
  2686. graphJson: {},
  2687. rightBoxHeight: 0,
  2688. checkBoolean: false,
  2689. pageSize: 20,
  2690. total: 0,
  2691. page: 0,
  2692. sourceData: {},
  2693. updateWorkJson: {},
  2694. downLoading: '',
  2695. oldIndex: 0,
  2696. dragType: '',
  2697. oldUnitIndex: 0,
  2698. oldData: null,
  2699. newIndex: "",
  2700. checkUnitIndex: 0,
  2701. isdrag: '',
  2702. toolsData: toolsData,
  2703. };
  2704. },
  2705. directives: {
  2706. autoHeight: {
  2707. update(el, binding) {
  2708. const { value } = binding
  2709. if (value && typeof value === 'number') {
  2710. el.style.height = `${value}px`
  2711. } else {
  2712. el.style.height = 'auto'
  2713. }
  2714. },
  2715. componentUpdated(el) {
  2716. el.style.height = `${el.scrollHeight + 5}px`
  2717. },
  2718. },
  2719. },
  2720. computed: {
  2721. offsetLetfPx: function () {
  2722. //addnum可以直接在模板语法里面用,相当于data内的值
  2723. return (
  2724. $(".cru_select")[this.unitIndex] &&
  2725. $(".cru_select")[this.unitIndex].offsetLeft + 5
  2726. );
  2727. },
  2728. getVideo() {
  2729. //此处不需要携带参数
  2730. return function (url) {
  2731. var d = JSON.parse(JSON.stringify(this.playerOptions));
  2732. d.sources[0].src = url;
  2733. return d;
  2734. };
  2735. },
  2736. cUrl() {
  2737. return function (data, index) {
  2738. return data ? data[index].url : '';
  2739. };
  2740. },
  2741. getMan() {
  2742. return function (people) {
  2743. let _people = "";
  2744. if (this.ManAarray.length) {
  2745. for (var i = 0; i < this.ManAarray.length; i++) {
  2746. if (this.ManAarray[i].userid == people) {
  2747. _people = this.ManAarray[i].name;
  2748. break;
  2749. }
  2750. }
  2751. }
  2752. return _people ? _people : "";
  2753. };
  2754. },
  2755. getMan2() {
  2756. return function (people) {
  2757. let _people = people;
  2758. let _people2 = "";
  2759. if (this.ManAarray.length) {
  2760. for (var i = 0; i < this.ManAarray.length; i++) {
  2761. if (this.ManAarray[i].userid == people) {
  2762. _people2 = this.ManAarray[i].name;
  2763. break;
  2764. }
  2765. }
  2766. }
  2767. if (people == this.courseUserid) {
  2768. return "";
  2769. }
  2770. return this.ManAarray.length ? _people2 : "";
  2771. };
  2772. },
  2773. getListMan2() {
  2774. return function (list) {
  2775. let _people2 = [];
  2776. if (this.ManAarray.length) {
  2777. for (var j = 0; j < list.length; j++) {
  2778. let people = list[j];
  2779. for (var i = 0; i < this.ManAarray.length; i++) {
  2780. if (this.ManAarray[i].userid == people && people != this.courseUserid) {
  2781. _people2.push(this.ManAarray[i].name);
  2782. break;
  2783. }
  2784. }
  2785. }
  2786. }
  2787. return this.ManAarray.length ? _people2.join("、") : "";
  2788. };
  2789. },
  2790. getMen() {
  2791. return function (people) {
  2792. let _people = people;
  2793. let kp = [];
  2794. if (this.ManAarray.length) {
  2795. for (var k = 0; k < _people.length; k++) {
  2796. let person = _people[k];
  2797. for (var i = 0; i < this.ManAarray.length; i++) {
  2798. if (this.ManAarray[i].userid == person) {
  2799. // _people = this.ManAarray[i].name;
  2800. kp.push(this.ManAarray[i].name);
  2801. break;
  2802. }
  2803. }
  2804. }
  2805. }
  2806. return this.ManAarray.length ? (kp.length ? kp.join("、") : "") : "";
  2807. };
  2808. },
  2809. setTime() {
  2810. return function (timeA) {
  2811. var time = new Date(timeA);
  2812. time.setTime(time.getTime());
  2813. var s2 =
  2814. time.getFullYear() +
  2815. "." +
  2816. (time.getMonth() + 1 < 10
  2817. ? "0" + (time.getMonth() + 1)
  2818. : time.getMonth() + 1) +
  2819. "." +
  2820. (time.getDate() < 10 ? "0" + time.getDate() : time.getDate());
  2821. return s2;
  2822. };
  2823. }
  2824. },
  2825. watch: {
  2826. steps(newValue, oldValue) {
  2827. if (newValue == 4) {
  2828. let chapters = this.unitJson;
  2829. let gjson = {
  2830. rootId: "pid",
  2831. nodes: [{ id: "pid", text: "", borderWidth: -1, color: "#128cff" }],
  2832. lines: [],
  2833. };
  2834. gjson.nodes[0].text = this.courseName;
  2835. for (var i = 0; i < chapters.length; i++) {
  2836. let _chapter = chapters[i];
  2837. gjson.nodes.push({
  2838. id: "chap" + i,
  2839. text: "阶段" + (i + 1) + "-" + _chapter.dyName,
  2840. borderWidth: -1,
  2841. color: "#0672e1",
  2842. });
  2843. gjson.lines.push({ from: "pid", to: "chap" + i });
  2844. let tasks = _chapter.chapterInfo[0].taskJson;
  2845. for (var j = 0; j < tasks.length; j++) {
  2846. let _task = tasks[j];
  2847. gjson.nodes.push({
  2848. id: "task" + i + "-" + j,
  2849. text: "任务" + (j + 1) + "-" + _task.task,
  2850. borderWidth: -1,
  2851. color: "#3c59da",
  2852. });
  2853. gjson.lines.push({ from: "chap" + i, to: "task" + i + "-" + j });
  2854. if (_task.people) {
  2855. let _people = "负责人-" + this.getGMan(_task.people);
  2856. gjson.nodes.push({
  2857. id: "people" + i + "-" + j,
  2858. text: _people,
  2859. borderWidth: -1,
  2860. color: "#004d9b",
  2861. });
  2862. gjson.lines.push({
  2863. from: "task" + i + "-" + j,
  2864. to: "people" + i + "-" + j,
  2865. });
  2866. if (_task.tcMember && _task.tcMember.length) {
  2867. for (var tc = 0; tc < _task.tcMember.length; tc++) {
  2868. let _tc = this.getGMan(_task.tcMember[tc]);
  2869. if (_tc) {
  2870. gjson.nodes.push({
  2871. id: "tc" + i + "-" + j + "-" + tc,
  2872. text: _tc,
  2873. borderWidth: -1,
  2874. color: "#53c5fb",
  2875. });
  2876. gjson.lines.push({
  2877. from: "people" + i + "-" + j,
  2878. to: "tc" + i + "-" + j + "-" + tc,
  2879. });
  2880. }
  2881. }
  2882. }
  2883. }
  2884. }
  2885. }
  2886. this.graphJson = gjson;
  2887. } else if (newValue == 5) {
  2888. this.goTo(
  2889. this.fpath +
  2890. "?userid=" +
  2891. this.userid +
  2892. "&oid=" +
  2893. this.oid +
  2894. "&org=" +
  2895. this.org + '&role=' + this.role
  2896. );
  2897. }
  2898. },
  2899. unitIndex(newValue, oldValue) {
  2900. if (this.isDelete == 2) {
  2901. this.isDelete = 1;
  2902. return;
  2903. }
  2904. if (this.cid != "") {
  2905. let _unitIndex = oldValue;
  2906. if (
  2907. JSON.stringify(this.unitJson2[_unitIndex]) ==
  2908. JSON.stringify(this.unitJson[_unitIndex])
  2909. ) {
  2910. this.$refs.rightboxR.scrollTop = 0;
  2911. return;
  2912. }
  2913. let cPan = 1;
  2914. for (
  2915. var j = 0;
  2916. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  2917. j++
  2918. ) {
  2919. // if (
  2920. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].task
  2921. // ) {
  2922. // this.$message.error("请填写任务名称");
  2923. // cPan = 2
  2924. // break;
  2925. // }
  2926. // if (
  2927. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].people
  2928. // ) {
  2929. // this.$message.error("请填写负责人");
  2930. // cPan = 2
  2931. // break;
  2932. // }
  2933. // if (
  2934. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].time
  2935. // ) {
  2936. // this.$message.error("请填写任务起止时间");
  2937. // cPan = 2
  2938. // break;
  2939. // }
  2940. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  2941. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  2942. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  2943. (ele) => {
  2944. return ele.value != "";
  2945. }
  2946. );
  2947. }
  2948. let _task = this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolArray
  2949. for (var _tool = 0; _tool < _task.length; _tool++) {
  2950. delete _task[_tool].proVisible
  2951. }
  2952. }
  2953. if (cPan == 2) {
  2954. this.unitIndex = oldValue;
  2955. this.isDelete = 2;
  2956. return;
  2957. }
  2958. for (var i = 0; i < this.unitJson.length; i++) {
  2959. if (this.addindex != i) {
  2960. delete this.unitJson[i].isUpdate;
  2961. }
  2962. }
  2963. this.$refs.rightboxR.scrollTop = 0;
  2964. this.addindex = -1;
  2965. let params = [
  2966. {
  2967. cid: this.cid,
  2968. chapters: JSON.stringify(this.unitJson),
  2969. uid: this.userid,
  2970. unitIndex: _unitIndex,
  2971. },
  2972. ];
  2973. this.ajax
  2974. .post(this.$store.state.api + "updateStudentWorkNew4", params)
  2975. .then((res) => {
  2976. // this.$message({
  2977. // message: "修改成功",
  2978. // type: "success",
  2979. // });
  2980. // this.courseId = this.cid;
  2981. })
  2982. .catch((err) => {
  2983. this.$message.error("网络不佳");
  2984. console.error(err);
  2985. });
  2986. }
  2987. },
  2988. },
  2989. methods: {
  2990. handleCurrentChange(val) {
  2991. // console.log(`当前页: ${val}`);
  2992. this.page = val;
  2993. this.getTeacher();
  2994. },
  2995. handleCheckAllChange(val) {
  2996. this.checkedCities = val ? cityOptions : [];
  2997. this.isIndeterminate = false;
  2998. },
  2999. handleCheckedCitiesChange(value) {
  3000. let checkedCount = value.length;
  3001. this.checkAll = checkedCount === this.cities.length;
  3002. this.isIndeterminate =
  3003. checkedCount > 0 && checkedCount < this.cities.length;
  3004. },
  3005. addHw(e) {
  3006. var el = e.currentTarget;
  3007. el.getElementsByTagName("input")[0].click();
  3008. },
  3009. change(val) {
  3010. console.log(val);
  3011. this.$forceUpdate();
  3012. },
  3013. change2(val) {
  3014. console.log(val);
  3015. this.$forceUpdate();
  3016. },
  3017. handleClose(done) {
  3018. this.videoDetail = {};
  3019. done();
  3020. },
  3021. imgChange1(file, fileList, type, itemTaskIndex) {
  3022. if (type == 1) {
  3023. var _tmp = this.cover;
  3024. } else if (
  3025. type == 2 ||
  3026. type == 3 ||
  3027. type == 6 ||
  3028. type == 7 ||
  3029. type == 8
  3030. ) {
  3031. var _tmp =
  3032. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3033. .chapterData;
  3034. } else if (type == 4) {
  3035. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3036. } else {
  3037. var _tmp =
  3038. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3039. .homeworkList;
  3040. }
  3041. this.noneBtnImg = _tmp.length >= 1;
  3042. },
  3043. goTo(path) {
  3044. this.$router.push(path);
  3045. },
  3046. lastSteps() {
  3047. if (this.steps == 5) {
  3048. this.goTo(
  3049. this.fpath +
  3050. "?userid=" +
  3051. this.userid +
  3052. "&oid=" +
  3053. this.oid +
  3054. "&org=" +
  3055. this.org + '&role=' + this.role
  3056. );
  3057. } else {
  3058. // if (this.cidttt == 0) {
  3059. // this.steps--;
  3060. // if (this.steps == 1) {
  3061. // setTimeout(() => {
  3062. // this.checkEva(this.checkId);
  3063. // }, 0);
  3064. // }
  3065. // } else {
  3066. if (this.steps == 3) {
  3067. this.steps = 1;
  3068. setTimeout(() => {
  3069. this.checkEva(this.checkId);
  3070. }, 0);
  3071. }
  3072. if (this.steps == 4) {
  3073. this.steps--;
  3074. setTimeout(() => {
  3075. this.checkEva(this.checkId);
  3076. }, 0);
  3077. }
  3078. // }
  3079. }
  3080. },
  3081. navSteps(s) {
  3082. let typeT = 1;
  3083. if (this.courseTypeId.length) {
  3084. let array = Object.keys(this.CourseTypeJson);
  3085. for (var t = 0; t < array.length; t++) {
  3086. var tp = array[t];
  3087. var tAarray = [];
  3088. for (var tt = 0; tt < this.CourseTypeJson[tp].length; tt++) {
  3089. tAarray.push(this.CourseTypeJson[tp][tt].id);
  3090. }
  3091. for (var tt = 0; tt < this.courseTypeId.length; tt++) {
  3092. if (tAarray.indexOf(this.courseTypeId[tt]) != -1) {
  3093. typeT++;
  3094. }
  3095. }
  3096. }
  3097. }
  3098. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  3099. typeT++;
  3100. }
  3101. // if (this.CourseType.length == 0) {
  3102. // typeT = 3
  3103. // }
  3104. if (!(this.org == '150e3120-9195-11ed-b13d-005056b86db5') && !(this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5")) {
  3105. typeT = 3
  3106. }
  3107. if (this.courseName == "" || typeT != 3) {
  3108. if (typeT != 3) {
  3109. this.$message.error("分类为必选项目,请将信息补充完整后进行下一步");
  3110. } else {
  3111. this.$message.error("请将信息填写完整");
  3112. }
  3113. return;
  3114. }
  3115. if (this.cidttt == 0) {
  3116. if (this.steps == 1) {
  3117. if (this.cid == "" || this.cid == undefined) {
  3118. this.addWork();
  3119. } else {
  3120. if (this.userid != this.courseUserid) {
  3121. if (
  3122. this.checkboxListPeople.join(",") !=
  3123. this.checkboxList3.join(",")
  3124. ) {
  3125. this.updateWork();
  3126. } else {
  3127. this.updateWork2();
  3128. }
  3129. } else {
  3130. this.updateWork();
  3131. }
  3132. }
  3133. this.setMan();
  3134. }
  3135. if (s == 1) {
  3136. this.steps = 1;
  3137. setTimeout(() => {
  3138. this.checkEva(this.checkId);
  3139. }, 0);
  3140. }
  3141. if (s == 2) {
  3142. this.steps = 2;
  3143. }
  3144. if (s == 3) {
  3145. this.cTemplate = this.templateC.content;
  3146. this.dialogVisible2 = false;
  3147. this.steps = 3;
  3148. setTimeout(() => {
  3149. this.checkEva(this.checkId);
  3150. }, 1000);
  3151. }
  3152. if (s == 4 && this.cidType == 0) {
  3153. this.$message.error("请将信息填写完整");
  3154. return;
  3155. } else if (s == 4) {
  3156. let cPan = 1;
  3157. for (var i = 0; i < this.unitJson.length; i++) {
  3158. for (
  3159. var j = 0;
  3160. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  3161. j++
  3162. ) {
  3163. // if (
  3164. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  3165. // ) {
  3166. // this.$message.error("请填写任务名称");
  3167. // cPan = 2
  3168. // break;
  3169. // }
  3170. // if (
  3171. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  3172. // ) {
  3173. // this.$message.error("请填写负责人");
  3174. // cPan = 2
  3175. // break;
  3176. // }
  3177. // if (
  3178. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  3179. // ) {
  3180. // this.$message.error("请填写任务起止时间");
  3181. // cPan = 2
  3182. // break;
  3183. // }
  3184. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  3185. this.unitJson[i].chapterInfo[0].taskJson[j].eList =
  3186. this.unitJson[i].chapterInfo[0].taskJson[j].eList.filter(
  3187. (ele) => {
  3188. return ele.value != "";
  3189. }
  3190. );
  3191. }
  3192. }
  3193. }
  3194. if (cPan == 2) {
  3195. return;
  3196. }
  3197. if (this.userid != this.courseUserid) {
  3198. if (
  3199. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  3200. ) {
  3201. this.updateWork();
  3202. } else {
  3203. this.updateWork2();
  3204. }
  3205. } else {
  3206. this.updateWork();
  3207. }
  3208. this.steps = 4;
  3209. }
  3210. } else {
  3211. if (this.steps == 1) {
  3212. if (this.cid == "" || this.cid == undefined) {
  3213. this.addWork();
  3214. } else {
  3215. if (this.userid != this.courseUserid) {
  3216. if (
  3217. this.checkboxListPeople.join(",") !=
  3218. this.checkboxList3.join(",")
  3219. ) {
  3220. this.updateWork();
  3221. } else {
  3222. this.updateWork2();
  3223. }
  3224. } else {
  3225. this.updateWork();
  3226. }
  3227. }
  3228. this.setMan();
  3229. }
  3230. if (s == 1) {
  3231. this.steps = 1;
  3232. setTimeout(() => {
  3233. this.checkEva(this.checkId);
  3234. }, 0);
  3235. }
  3236. if (s == 3) {
  3237. this.cTemplate = this.templateC.content;
  3238. this.dialogVisible2 = false;
  3239. this.steps = 3;
  3240. setTimeout(() => {
  3241. this.checkEva(this.checkId);
  3242. }, 1000);
  3243. }
  3244. if (s == 4 && this.cidType == 0) {
  3245. this.$message.error("请将信息填写完整");
  3246. return;
  3247. } else if (s == 4) {
  3248. let cPan = 1;
  3249. for (var i = 0; i < this.unitJson.length; i++) {
  3250. for (
  3251. var j = 0;
  3252. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  3253. j++
  3254. ) {
  3255. // if (
  3256. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  3257. // ) {
  3258. // this.$message.error("请填写任务名称");
  3259. // cPan = 2
  3260. // break;
  3261. // }
  3262. // if (
  3263. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  3264. // ) {
  3265. // this.$message.error("请填写负责人");
  3266. // cPan = 2
  3267. // break;
  3268. // }
  3269. // if (
  3270. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  3271. // ) {
  3272. // this.$message.error("请填写任务起止时间");
  3273. // cPan = 2
  3274. // break;
  3275. // }
  3276. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  3277. this.unitJson[i].chapterInfo[0].taskJson[j].eList =
  3278. this.unitJson[i].chapterInfo[0].taskJson[j].eList.filter(
  3279. (ele) => {
  3280. return ele.value != "";
  3281. }
  3282. );
  3283. }
  3284. }
  3285. }
  3286. if (cPan == 2) {
  3287. return;
  3288. }
  3289. if (this.userid != this.courseUserid) {
  3290. if (
  3291. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  3292. ) {
  3293. this.updateWork();
  3294. } else {
  3295. this.updateWork2();
  3296. }
  3297. } else {
  3298. this.updateWork();
  3299. }
  3300. this.steps = 4;
  3301. }
  3302. }
  3303. this.$refs.stepBox.scrollTop = 0;
  3304. this.setVHeight();
  3305. },
  3306. nextSteps() {
  3307. let typeT = 1;
  3308. if (this.courseTypeId.length) {
  3309. let array = Object.keys(this.CourseTypeJson);
  3310. for (var t = 0; t < array.length; t++) {
  3311. var tp = array[t];
  3312. var tAarray = [];
  3313. for (var tt = 0; tt < this.CourseTypeJson[tp].length; tt++) {
  3314. tAarray.push(this.CourseTypeJson[tp][tt].id);
  3315. }
  3316. for (var tt = 0; tt < this.courseTypeId.length; tt++) {
  3317. if (tAarray.indexOf(this.courseTypeId[tt]) != -1) {
  3318. typeT++;
  3319. }
  3320. }
  3321. }
  3322. }
  3323. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  3324. typeT++;
  3325. }
  3326. // if (this.CourseType.length == 0) {
  3327. // typeT = 3
  3328. // }
  3329. if (!(this.org == '150e3120-9195-11ed-b13d-005056b86db5') && !(this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5")) {
  3330. typeT = 3
  3331. }
  3332. if (this.cidttt == 1) {
  3333. if (this.steps == 1) {
  3334. this.steps = 3;
  3335. if (this.courseName != "" && typeT == 3) {
  3336. setTimeout(() => {
  3337. this.checkEva(this.checkId);
  3338. }, 1000);
  3339. if (this.cid == "" || this.cid == undefined) {
  3340. this.addWork();
  3341. } else {
  3342. if (this.userid != this.courseUserid) {
  3343. if (
  3344. this.checkboxListPeople.join(",") !=
  3345. this.checkboxList3.join(",")
  3346. ) {
  3347. this.updateWork();
  3348. } else {
  3349. this.updateWork2();
  3350. }
  3351. } else {
  3352. this.updateWork();
  3353. }
  3354. }
  3355. } else {
  3356. if (typeT != 3) {
  3357. this.$message.error(
  3358. "分类为必选项目,请将信息补充完整后进行下一步"
  3359. );
  3360. } else {
  3361. this.$message.error("请将信息填写完整");
  3362. }
  3363. return;
  3364. }
  3365. this.setMan();
  3366. } else if (this.steps == 3) {
  3367. if (this.cid == "" || this.cid == undefined) {
  3368. if (this.courseName == "" || typeT != 3) {
  3369. if (typeT != 3) {
  3370. this.$message.error(
  3371. "分类为必选项目,请将信息补充完整后进行下一步"
  3372. );
  3373. } else {
  3374. this.$message.error("请将信息填写完整");
  3375. }
  3376. return;
  3377. } else {
  3378. this.addWork();
  3379. if (this.type != 2) {
  3380. this.steps = 5;
  3381. } else {
  3382. this.steps++;
  3383. }
  3384. }
  3385. } else {
  3386. if (this.courseName == "" || typeT != 3) {
  3387. if (typeT != 3) {
  3388. this.$message.error(
  3389. "分类为必选项目,请将信息补充完整后进行下一步"
  3390. );
  3391. } else {
  3392. this.$message.error("请将信息填写完整");
  3393. }
  3394. return;
  3395. } else {
  3396. if (this.type != 2) {
  3397. this.steps = 5;
  3398. } else {
  3399. this.steps++;
  3400. }
  3401. if (this.userid != this.courseUserid) {
  3402. if (
  3403. this.checkboxListPeople.join(",") !=
  3404. this.checkboxList3.join(",")
  3405. ) {
  3406. this.updateWork();
  3407. } else {
  3408. this.updateWork2();
  3409. }
  3410. } else {
  3411. this.updateWork();
  3412. }
  3413. }
  3414. }
  3415. } else if (this.steps == 4) {
  3416. if (this.userid != this.courseUserid) {
  3417. this.updateWork2();
  3418. // this.updateWork();
  3419. } else {
  3420. this.updateWork();
  3421. }
  3422. this.steps++;
  3423. }
  3424. } else {
  3425. if (this.steps == 1) {
  3426. if (this.courseName != "" && typeT == 3) {
  3427. if (this.cid == "" || this.cid == undefined) {
  3428. this.addWork();
  3429. } else {
  3430. if (this.userid != this.courseUserid) {
  3431. if (
  3432. this.checkboxListPeople.join(",") !=
  3433. this.checkboxList3.join(",")
  3434. ) {
  3435. this.updateWork();
  3436. } else {
  3437. this.updateWork2();
  3438. }
  3439. } else {
  3440. this.updateWork();
  3441. }
  3442. }
  3443. // this.steps++;
  3444. this.steps = 3;
  3445. } else {
  3446. if (typeT != 3) {
  3447. this.$message.error(
  3448. "分类为必选项目,请将信息补充完整后进行下一步"
  3449. );
  3450. } else {
  3451. this.$message.error("请将信息填写完整");
  3452. }
  3453. return;
  3454. }
  3455. this.setMan();
  3456. } else if (this.steps == 2) {
  3457. if (this.templateC.id != "" || this.templateC.id != undefined) {
  3458. this.cTemplate = this.templateC.content;
  3459. }
  3460. this.dialogVisible2 = false;
  3461. this.steps++;
  3462. setTimeout(() => {
  3463. this.checkEva(this.checkId);
  3464. }, 1000);
  3465. } else if (this.steps == 3) {
  3466. if (this.cid == "" || this.cid == undefined) {
  3467. if (this.courseName == "" || typeT != 3) {
  3468. if (typeT != 3) {
  3469. this.$message.error(
  3470. "分类为必选项目,请将信息补充完整后进行下一步"
  3471. );
  3472. } else {
  3473. this.$message.error("请将信息填写完整");
  3474. }
  3475. return;
  3476. } else {
  3477. this.addWork();
  3478. if (this.type != 2) {
  3479. this.steps = 5;
  3480. } else {
  3481. this.steps++;
  3482. }
  3483. }
  3484. } else {
  3485. if (this.courseName == "" || typeT != 3) {
  3486. if (typeT != 3) {
  3487. this.$message.error(
  3488. "分类为必选项目,请将信息补充完整后进行下一步"
  3489. );
  3490. } else {
  3491. this.$message.error("请将信息填写完整");
  3492. }
  3493. return;
  3494. } else {
  3495. if (this.type != 2) {
  3496. this.steps = 5;
  3497. } else {
  3498. this.steps++;
  3499. }
  3500. if (this.userid != this.courseUserid) {
  3501. if (
  3502. this.checkboxListPeople.join(",") !=
  3503. this.checkboxList3.join(",")
  3504. ) {
  3505. this.updateWork();
  3506. } else {
  3507. this.updateWork2();
  3508. }
  3509. } else {
  3510. this.updateWork();
  3511. }
  3512. }
  3513. }
  3514. } else if (this.steps == 4) {
  3515. if (this.userid != this.courseUserid) {
  3516. if (
  3517. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  3518. ) {
  3519. this.updateWork();
  3520. } else {
  3521. this.updateWork2();
  3522. }
  3523. } else {
  3524. this.updateWork();
  3525. }
  3526. this.steps++;
  3527. }
  3528. }
  3529. this.$refs.stepBox.scrollTop = 0;
  3530. this.setVHeight();
  3531. },
  3532. unitSet(i) {
  3533. this.unitIndex = i;
  3534. // this.$refs.rightboxR.scrollTop = 0;
  3535. this.setVHeight();
  3536. },
  3537. unitOpen(i) {
  3538. if (this.unitJson[i].toolOpen) {
  3539. this.unitJson[i].toolOpen = false
  3540. } else {
  3541. this.unitJson[i].toolOpen = true
  3542. }
  3543. this.updateWork()
  3544. this.$forceUpdate()
  3545. },
  3546. unitSet2(i) {
  3547. if (this.panUnitJson() == 2) {
  3548. return;
  3549. }
  3550. this.unitJson[i].toolOpen = true
  3551. this.$forceUpdate()
  3552. if (this.unitIndex == i) {
  3553. return;
  3554. }
  3555. this.unitIndex = i;
  3556. this.isClickColor = 1
  3557. this.$refs.unitBox.scrollTop = 0
  3558. },
  3559. panUnitJson() {
  3560. let _unitIndex = this.unitIndex;
  3561. let cPan = 1;
  3562. for (
  3563. var j = 0;
  3564. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3565. j++
  3566. ) {
  3567. if (
  3568. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose.length > 1
  3569. ) {
  3570. for (
  3571. var z = 0;
  3572. z < this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose.length;
  3573. z++
  3574. ) {
  3575. if (
  3576. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[z].tool
  3577. .length
  3578. ) {
  3579. this.$message.error("请把工具添加完整");
  3580. cPan = 2;
  3581. break;
  3582. }
  3583. }
  3584. }
  3585. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3586. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList = this.unitJson[
  3587. i
  3588. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  3589. return ele.value != "";
  3590. });
  3591. }
  3592. }
  3593. return cPan;
  3594. },
  3595. time() {
  3596. if (!this.now) {
  3597. this.now = new Date().getTime();
  3598. return true;
  3599. } else {
  3600. let time = new Date().getTime();
  3601. if (time - this.now > 3000) {
  3602. this.now = time;
  3603. return true;
  3604. } else {
  3605. return false;
  3606. }
  3607. }
  3608. },
  3609. deleteUnit(i) {
  3610. var _this = this;
  3611. if (_this.time()) {
  3612. _this
  3613. .$confirm("确定删除此单元吗?", "提示", {
  3614. confirmButtonText: "确定",
  3615. cancelButtonText: "取消",
  3616. type: "warning",
  3617. })
  3618. .then(() => {
  3619. _this.isDelete = 2;
  3620. // _this.unitIndex = _this.unitIndex - 1;
  3621. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3622. // _this.$message.success("删除成功");
  3623. })
  3624. .catch(() => {
  3625. return;
  3626. });
  3627. }
  3628. },
  3629. deleteWork(chapid) {
  3630. let params = [
  3631. {
  3632. cid: this.cid,
  3633. chapters: JSON.stringify(this.unitJson),
  3634. uid: this.userid,
  3635. chapid: chapid,
  3636. },
  3637. ];
  3638. this.ajax
  3639. .post(this.$store.state.api + "deleteStudentWork", params)
  3640. .then((res) => {
  3641. this.$message({
  3642. message: "删除成功",
  3643. type: "success",
  3644. });
  3645. this.unitJson.splice(this.unitIndex, 1);
  3646. this.deleteStudentToolS(this.unitIndex);
  3647. this.unitIndex = this.unitIndex - 1;
  3648. })
  3649. .catch((err) => {
  3650. this.$message.error("网络不佳");
  3651. console.error(err);
  3652. });
  3653. },
  3654. deleteTool(itemTaskIndex, i) {
  3655. // var _this = this;
  3656. // if (_this.time()) {
  3657. // _this
  3658. // .$confirm("确定删除此工具吗?", "提示", {
  3659. // confirmButtonText: "确定",
  3660. // cancelButtonText: "取消",
  3661. // type: "warning",
  3662. // })
  3663. // .then(() => {
  3664. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3665. // itemTaskIndex
  3666. // ].toolChoose.splice(i, 1);
  3667. // _this.$message.success("删除成功");
  3668. // })
  3669. // .catch(() => {
  3670. // return;
  3671. // });
  3672. // }
  3673. var _this = this;
  3674. _this
  3675. .$confirm("确定删除此步骤吗?", "提示", {
  3676. confirmButtonText: "确定",
  3677. cancelButtonText: "取消",
  3678. type: "warning",
  3679. })
  3680. .then(() => {
  3681. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3682. itemTaskIndex
  3683. ].toolArray.splice(i, 1);
  3684. this.deleteStudentToolSTT(itemTaskIndex, i);
  3685. _this.$message.success("删除成功");
  3686. })
  3687. .catch(() => {
  3688. return;
  3689. });
  3690. },
  3691. deleteStudentToolSTT(task, tool) {
  3692. let params = [
  3693. {
  3694. cid: this.cid,
  3695. stage: this.unitIndex,
  3696. task: task,
  3697. tool: tool,
  3698. },
  3699. ];
  3700. this.ajax
  3701. .post(this.$store.state.api + "deleteStudentToolSTT", params)
  3702. .then((res) => { })
  3703. .catch((err) => {
  3704. console.error(err);
  3705. });
  3706. },
  3707. deleteStudentToolST(task) {
  3708. let params = [
  3709. {
  3710. cid: this.cid,
  3711. stage: this.unitIndex,
  3712. task: task,
  3713. },
  3714. ];
  3715. this.ajax
  3716. .post(this.$store.state.api + "deleteStudentToolST", params)
  3717. .then((res) => { })
  3718. .catch((err) => {
  3719. console.error(err);
  3720. });
  3721. },
  3722. deleteStudentToolS() {
  3723. let params = [
  3724. {
  3725. cid: this.cid,
  3726. stage: this.unitIndex,
  3727. },
  3728. ];
  3729. this.ajax
  3730. .post(this.$store.state.api + "deleteStudentToolS", params)
  3731. .then((res) => { })
  3732. .catch((err) => {
  3733. console.error(err);
  3734. });
  3735. },
  3736. deleteSentence(i) {
  3737. var _this = this;
  3738. if (_this.time()) {
  3739. _this
  3740. .$confirm("确定删除此题目吗?", "提示", {
  3741. confirmButtonText: "确定",
  3742. cancelButtonText: "取消",
  3743. type: "warning",
  3744. })
  3745. .then(() => {
  3746. _this.sentenceList.splice(i, 1);
  3747. _this.$message.success("删除成功");
  3748. })
  3749. .catch(() => {
  3750. return;
  3751. });
  3752. }
  3753. },
  3754. deleteS(s, i, j) {
  3755. this.sentenceList[i].addSentence.splice(j, 1);
  3756. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  3757. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  3758. this.sentenceList[i].rightAnswer.splice(a, 1);
  3759. }
  3760. },
  3761. openT() {
  3762. window.parent.postMessage(
  3763. {
  3764. tools: "25",
  3765. },
  3766. "*"
  3767. );
  3768. },
  3769. deleteTask(i) {
  3770. var _this = this;
  3771. if (_this.time()) {
  3772. _this
  3773. .$confirm("确定删除此任务吗?", "提示", {
  3774. confirmButtonText: "确定",
  3775. cancelButtonText: "取消",
  3776. type: "warning",
  3777. })
  3778. .then(() => {
  3779. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  3780. i,
  3781. 1
  3782. );
  3783. this.deleteStudentToolST(i);
  3784. _this.$message.success("删除成功");
  3785. })
  3786. .catch(() => {
  3787. return;
  3788. });
  3789. }
  3790. },
  3791. handlePictureCardPreview(file) {
  3792. this.dialogImageUrl = file.url;
  3793. },
  3794. openUpdateName(work) {
  3795. this.updateWorkJson = JSON.parse(JSON.stringify(work));
  3796. this.updateWorkJson.name = this.updateWorkJson.name ? this.updateWorkJson.name : this.setTime(this.updateWorkJson.create_at)
  3797. this.dialogVisibleSname = true;
  3798. },
  3799. updateName() {
  3800. if (!this.updateWorkJson.name) {
  3801. this.$message.error("请填写名称")
  3802. return
  3803. }
  3804. let params = [{
  3805. id: this.updateWorkJson.id,
  3806. name: this.updateWorkJson.name,
  3807. }]
  3808. this.ajax
  3809. .post(this.$store.state.api + "updateSCourseName", params)
  3810. .then((res) => {
  3811. this.$message({
  3812. message: "修改成功",
  3813. type: "success",
  3814. });
  3815. this.updateWorkJson = {};
  3816. this.dialogVisibleSname = false;
  3817. this.seleteCourseUpdate();
  3818. })
  3819. .catch((err) => {
  3820. console.error(err);
  3821. });
  3822. },
  3823. clean(i, c) {
  3824. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  3825. },
  3826. handle_remove1(file, fileList, type) {
  3827. var _tmp = this.cover;
  3828. for (var i = 0, len = _tmp.length; i < len; i++) {
  3829. if (_tmp[i].uid == file.uid) {
  3830. _tmp.splice(i, 1);
  3831. break;
  3832. }
  3833. this.cover = _tmp;
  3834. }
  3835. this.noneBtnImg = _tmp.length >= 1;
  3836. this.isSysPic = false;
  3837. },
  3838. addImg(e) {
  3839. var el = e.currentTarget || e;
  3840. el.getElementsByTagName("input")[0].click();
  3841. e.target.value = "";
  3842. },
  3843. addChaptersTools(i) {
  3844. this.chapTools = [
  3845. {
  3846. tools: [],
  3847. toolDetail: "",
  3848. },
  3849. ];
  3850. this.chapCount = i;
  3851. this.dialogVisible4 = true;
  3852. },
  3853. isNoFinsh() {
  3854. this.$message.warning("功能正在开发中");
  3855. },
  3856. addAttText(i) {
  3857. this.AttText = {
  3858. title: "",
  3859. text: "",
  3860. };
  3861. // this.taskCount = i;
  3862. this.AttTextType = 0;
  3863. this.$forceUpdate();
  3864. this.dialogVisible6 = true;
  3865. },
  3866. openSource(i) {
  3867. this.lineCount = i;
  3868. this.sourceData = {};
  3869. this.dialogVisibleSource2 = true;
  3870. },
  3871. addSource() {
  3872. if (!Object.keys(this.sourceData).length) {
  3873. this.$message.error("请选择要上传的资源");
  3874. return;
  3875. }
  3876. let keys = Object.keys(this.sourceData);
  3877. for (var i = 0; i < keys.length; i++) {
  3878. this.sourcesData.push({
  3879. name: "链接",
  3880. title: this.sourceData[keys[i]].name,
  3881. src: this.sourceData[keys[i]].url,
  3882. type: 8,
  3883. });
  3884. }
  3885. this.$forceUpdate();
  3886. this.dialogVisibleSource2 = false;
  3887. },
  3888. downloadFile2(f, toolIndex) {
  3889. var credentials = {
  3890. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3891. secretAccessKey: "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",
  3892. }; //秘钥形式的登录上传
  3893. window.AWS.config.update(credentials);
  3894. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3895. let url2 = f.url;
  3896. let _url2 = "";
  3897. if (
  3898. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  3899. ) {
  3900. _url2 = url2.split(
  3901. "https://view.officeapps.live.com/op/view.aspx?src="
  3902. )[1];
  3903. } else {
  3904. _url2 = url2;
  3905. }
  3906. let _this = this;
  3907. _this.downLoading = 'down' + toolIndex
  3908. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  3909. let name = decodeURIComponent(decodeURIComponent(_url2).split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  3910. var params = {
  3911. Bucket: "ccrb",
  3912. Key: name
  3913. };
  3914. s3.getObject(params, function (err, data) {
  3915. _this.downLoading = ''
  3916. if (err) console.log(err, err.stack); // an error occurred
  3917. else {
  3918. let url = window.URL.createObjectURL(new Blob([data.Body]));
  3919. let a = document.createElement("a");
  3920. a.name = f.name;
  3921. a.href = url;
  3922. a.download = f.name;
  3923. a.click();
  3924. console.log(data);
  3925. } // sxuccessful response
  3926. });
  3927. return;
  3928. // const loading = this.$loading.service({
  3929. // background: "rgba(255, 255, 255, 0.7)",
  3930. // target: document.body,
  3931. // text: "文件加载中...",
  3932. // });
  3933. // let url2 = f.url;
  3934. // let _url2 = "";
  3935. // if (
  3936. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  3937. // ) {
  3938. // _url2 = url2.split(
  3939. // "https://view.officeapps.live.com/op/view.aspx?src="
  3940. // )[1];
  3941. // } else {
  3942. // _url2 = url2;
  3943. // }
  3944. // let params = {
  3945. // url: _url2,
  3946. // name: f.name,
  3947. // };
  3948. // this.ajax
  3949. // .get(this.$store.state.api + "download", params)
  3950. // .then((res) => {
  3951. // loading.close();
  3952. // let content = res.data.data.data;
  3953. // let ab = new ArrayBuffer(content.length);
  3954. // let view = new Uint8Array(ab);
  3955. // for (var i = 0; i < content.length; ++i) {
  3956. // view[i] = content[i];
  3957. // }
  3958. // let elink = document.createElement("a");
  3959. // elink.download = f.name;
  3960. // elink.style.display = "none";
  3961. // let blob = new Blob([ab], {
  3962. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  3963. // });
  3964. // elink.href = URL.createObjectURL(blob);
  3965. // document.body.appendChild(elink);
  3966. // elink.click();
  3967. // document.body.removeChild(elink);
  3968. // })
  3969. // .catch((err) => {
  3970. // loading.close();
  3971. // console.error(err);
  3972. // });
  3973. },
  3974. pasteLine(i) {
  3975. navigator.clipboard
  3976. .readText()
  3977. .then((v) => {
  3978. console.log("获取剪贴板成功:", v);
  3979. const html = v;
  3980. const regex = /src="(.*?)"/g;
  3981. const match = regex.exec(html);
  3982. if (match && match[1]) {
  3983. console.log(match[1]);
  3984. this.$message.success("粘贴成功");
  3985. this.sourcesData.push({
  3986. name: "链接",
  3987. title: "嵌入代码",
  3988. src: match[1],
  3989. type: 8,
  3990. });
  3991. } else {
  3992. // console.log("未找到包含 src 属性的 iframe");
  3993. this.$message.error("没有找到粘贴的链接");
  3994. }
  3995. })
  3996. .catch((v) => {
  3997. console.log("获取剪贴板失败: ", v);
  3998. });
  3999. },
  4000. openLine(i) {
  4001. this.line = "";
  4002. this.lineTitle = "";
  4003. // this.lineCount = i;
  4004. this.lineType = 0;
  4005. this.$forceUpdate();
  4006. this.dialogVisible7 = true;
  4007. },
  4008. beforeUpload1(event, type) {
  4009. const loading = this.openLoading();
  4010. var file = event.target.files[0];
  4011. var credentials = {
  4012. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4013. secretAccessKey: "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",
  4014. }; //秘钥形式的登录上传
  4015. window.AWS.config.update(credentials);
  4016. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4017. var bucket = new window.AWS.S3({
  4018. params: {
  4019. Bucket: "ccrb",
  4020. },
  4021. }); //选择桶
  4022. var _this = this;
  4023. if (file) {
  4024. var params = {
  4025. Key:
  4026. file.name.split(".")[0] +
  4027. new Date().getTime() +
  4028. "." +
  4029. file.name.split(".")[file.name.split(".").length - 1],
  4030. ContentType: file.type,
  4031. Body: file,
  4032. "Access-Control-Allow-Credentials": "*",
  4033. ACL: "public-read",
  4034. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4035. var options = {
  4036. partSize: 2048 * 1024 * 1024,
  4037. queueSize: 2,
  4038. leavePartsOnError: true,
  4039. };
  4040. bucket
  4041. .upload(params, options)
  4042. .on("httpUploadProgress", function (evt) {
  4043. //这里可以写进度条
  4044. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4045. })
  4046. .send(function (err, data) {
  4047. loading.close();
  4048. if (err) {
  4049. _this.$message.error("上传失败");
  4050. } else {
  4051. _this.cover.push({
  4052. name: file.name,
  4053. url: data.Location,
  4054. uid: file.uid,
  4055. });
  4056. _this.imgChange1(null, null, 1, null);
  4057. _this.choosePicVisible = false;
  4058. console.log(data.Location);
  4059. }
  4060. });
  4061. }
  4062. },
  4063. beforeUploadSelect(event, type) {
  4064. const loading = this.openLoading();
  4065. var file = event.target.files[0];
  4066. var credentials = {
  4067. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4068. secretAccessKey: "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",
  4069. }; //秘钥形式的登录上传
  4070. window.AWS.config.update(credentials);
  4071. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4072. var bucket = new window.AWS.S3({
  4073. params: {
  4074. Bucket: "ccrb",
  4075. },
  4076. }); //选择桶
  4077. var _this = this;
  4078. if (file) {
  4079. var params = {
  4080. Key:
  4081. file.name.split(".")[0] +
  4082. new Date().getTime() +
  4083. "." +
  4084. file.name.split(".")[file.name.split(".").length - 1],
  4085. ContentType: file.type,
  4086. Body: file,
  4087. "Access-Control-Allow-Credentials": "*",
  4088. ACL: "public-read",
  4089. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4090. var options = {
  4091. partSize: 2048 * 1024 * 1024,
  4092. queueSize: 2,
  4093. leavePartsOnError: true,
  4094. };
  4095. bucket
  4096. .upload(params, options)
  4097. .on("httpUploadProgress", function (evt) {
  4098. //这里可以写进度条
  4099. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4100. })
  4101. .send(function (err, data) {
  4102. loading.close();
  4103. if (err) {
  4104. _this.$message.error("上传失败");
  4105. } else {
  4106. _this.selectJson.url = data.Location;
  4107. console.log(data.Location);
  4108. }
  4109. });
  4110. }
  4111. },
  4112. chooseSysPic(p) {
  4113. this.cover.push({
  4114. name: "系统图片.png",
  4115. url: p,
  4116. });
  4117. this.imgChange1(null, null, 1, null);
  4118. this.isSysPic = true;
  4119. this.sysPicVisible = false;
  4120. },
  4121. beforeUpload(data) {
  4122. this.uploadLoading1 = true;
  4123. var file = data.file;
  4124. var credentials = {
  4125. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4126. secretAccessKey: "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",
  4127. }; //秘钥形式的登录上传
  4128. window.AWS.config.update(credentials);
  4129. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4130. var bucket = new window.AWS.S3({
  4131. params: {
  4132. Bucket: "ccrb",
  4133. },
  4134. }); //选择桶
  4135. var _this = this;
  4136. if (file) {
  4137. var params = {
  4138. Key:
  4139. file.name.split(".")[0] +
  4140. new Date().getTime() +
  4141. "." +
  4142. file.name.split(".")[file.name.split(".").length - 1],
  4143. ContentType: file.type,
  4144. Body: file,
  4145. "Access-Control-Allow-Credentials": "*",
  4146. ACL: "public-read",
  4147. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4148. var options = {
  4149. partSize: 2048 * 1024 * 1024,
  4150. queueSize: 2,
  4151. leavePartsOnError: true,
  4152. };
  4153. bucket
  4154. .upload(params, options)
  4155. .on("httpUploadProgress", function (evt) {
  4156. //这里可以写进度条
  4157. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4158. })
  4159. .send(function (err, data) {
  4160. _this.uploadLoading1 = false;
  4161. if (err) {
  4162. _this.$message.error("上传失败");
  4163. } else {
  4164. //上传成功处理
  4165. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4166. name: file.name,
  4167. url: data.Location,
  4168. uid: file.uid,
  4169. });
  4170. _this.imgChange();
  4171. console.log(data.Location);
  4172. }
  4173. });
  4174. }
  4175. },
  4176. onExceed() {
  4177. this.$message.error("项目封面仅支持上传一张,请删除后再进行上传");
  4178. },
  4179. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4180. // const loading = this.openLoading();
  4181. var file = event.target.files[0];
  4182. var credentials = {
  4183. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4184. secretAccessKey: "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",
  4185. }; //秘钥形式的登录上传
  4186. window.AWS.config.update(credentials);
  4187. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4188. var bucket = new window.AWS.S3({
  4189. params: {
  4190. Bucket: "ccrb",
  4191. },
  4192. }); //选择桶
  4193. var _this = this;
  4194. if (type == 3) {
  4195. var b = [
  4196. "DOC",
  4197. "DOCX",
  4198. "DOCM",
  4199. "DOTM",
  4200. "DOTX",
  4201. "PPTX",
  4202. "PPSX",
  4203. "PPT",
  4204. "PPS",
  4205. "PPTM",
  4206. "POTM",
  4207. "PPAM",
  4208. "POTX",
  4209. "PPSM",
  4210. ];
  4211. if (
  4212. b.indexOf(
  4213. file.name
  4214. .split(".")
  4215. [file.name.split(".").length - 1].toLocaleUpperCase()
  4216. ) != -1
  4217. ) {
  4218. if (file.size / 1024 / 1024 > 80) {
  4219. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4220. this.inputShow = true;
  4221. // loading.close();
  4222. return;
  4223. }
  4224. } else if (
  4225. file.name
  4226. .split(".")
  4227. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4228. ) {
  4229. if (file.size / 1024 / 1024 > 80) {
  4230. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4231. this.inputShow = true;
  4232. // loading.close();
  4233. return;
  4234. }
  4235. }
  4236. }
  4237. this.inputShow = false;
  4238. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4239. itemTaskIndex
  4240. ].progress = 0;
  4241. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4242. itemTaskIndex
  4243. ].proVisible = true;
  4244. if (file) {
  4245. var params = {
  4246. Key:
  4247. file.name.split(".")[0] +
  4248. new Date().getTime() +
  4249. "." +
  4250. file.name.split(".")[file.name.split(".").length - 1],
  4251. ContentType: file.type,
  4252. Body: file,
  4253. "Access-Control-Allow-Credentials": "*",
  4254. ACL: "public-read",
  4255. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4256. var options = {
  4257. partSize: 2048 * 1024 * 1024,
  4258. queueSize: 2,
  4259. leavePartsOnError: true,
  4260. };
  4261. bucket
  4262. .upload(params, options)
  4263. .on("httpUploadProgress", function (evt) {
  4264. //这里可以写进度条
  4265. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4266. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4267. itemTaskIndex
  4268. ].progress = parseInt((evt.loaded * 80) / evt.total);
  4269. })
  4270. .send(function (err, data) {
  4271. // loading.close();
  4272. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4273. itemTaskIndex
  4274. ].progress = 100;
  4275. setTimeout(() => {
  4276. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4277. itemTaskIndex
  4278. ].proVisible = false;
  4279. _this.$forceUpdate();
  4280. }, 1000);
  4281. _this.inputShow = true;
  4282. if (err) {
  4283. _this.$message.error("上传失败");
  4284. } else {
  4285. if (type == 2 || type == 3) {
  4286. if (
  4287. data.Location.split(".")[
  4288. data.Location.split(".").length - 1
  4289. ].toLocaleUpperCase() == "PDF"
  4290. ) {
  4291. type = 9;
  4292. }
  4293. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4294. itemTaskIndex
  4295. ].chapterData.push({
  4296. name: file.name,
  4297. url: data.Location,
  4298. uid: file.uid,
  4299. type: type,
  4300. });
  4301. _this.imgChange1(null, null, type, itemTaskIndex);
  4302. } else if (type == 4) {
  4303. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4304. itemTaskIndex
  4305. ].fileList1.push({
  4306. name: file.name,
  4307. url: data.Location,
  4308. uid: file.uid,
  4309. });
  4310. _this.imgChange1(null, null, type, itemTaskIndex);
  4311. } else if (type == 5) {
  4312. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4313. itemTaskIndex
  4314. ].homeworkList.push({
  4315. name: file.name,
  4316. url: data.Location,
  4317. uid: file.uid,
  4318. });
  4319. _this.imgChange1(null, null, type, itemTaskIndex);
  4320. }
  4321. console.log(data.Location);
  4322. }
  4323. });
  4324. }
  4325. },
  4326. getVideo2(url) {
  4327. var d = JSON.parse(JSON.stringify(this.playerOptions));
  4328. d.sources[0].src = url;
  4329. return d;
  4330. },
  4331. beforeUpload3(event, type) {
  4332. // const loading = this.openLoading();
  4333. var file = event.target.files[0];
  4334. var credentials = {
  4335. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4336. secretAccessKey: "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",
  4337. }; //秘钥形式的登录上传
  4338. window.AWS.config.update(credentials);
  4339. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4340. var bucket = new window.AWS.S3({
  4341. params: {
  4342. Bucket: "ccrb",
  4343. },
  4344. }); //选择桶
  4345. var _this = this;
  4346. if (type == 3) {
  4347. var b = [
  4348. "DOC",
  4349. "DOCX",
  4350. "DOCM",
  4351. "DOTM",
  4352. "DOTX",
  4353. "PPTX",
  4354. "PPSX",
  4355. "PPT",
  4356. "PPS",
  4357. "PPTM",
  4358. "POTM",
  4359. "PPAM",
  4360. "POTX",
  4361. "PPSM",
  4362. ];
  4363. if (
  4364. b.indexOf(
  4365. file.name
  4366. .split(".")
  4367. [file.name.split(".").length - 1].toLocaleUpperCase()
  4368. ) != -1
  4369. ) {
  4370. if (file.size / 1024 / 1024 > 80) {
  4371. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4372. this.inputShow = true;
  4373. // loading.close();
  4374. return;
  4375. }
  4376. } else if (
  4377. file.name
  4378. .split(".")
  4379. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4380. ) {
  4381. if (file.size / 1024 / 1024 > 80) {
  4382. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4383. this.inputShow = true;
  4384. // loading.close();
  4385. return;
  4386. }
  4387. }
  4388. }
  4389. _this.inputShow = false;
  4390. _this.progress = 0;
  4391. _this.proVisible = true;
  4392. _this.isFinishSize = 0;
  4393. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4394. if (file) {
  4395. var params = {
  4396. Key:
  4397. file.name.split(".")[0] +
  4398. new Date().getTime() +
  4399. "." +
  4400. file.name.split(".")[file.name.split(".").length - 1],
  4401. ContentType: file.type,
  4402. Body: file,
  4403. "Access-Control-Allow-Credentials": "*",
  4404. ACL: "public-read",
  4405. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4406. var options = {
  4407. partSize: 2048 * 1024 * 1024,
  4408. queueSize: 2,
  4409. leavePartsOnError: true,
  4410. };
  4411. bucket
  4412. .upload(params, options)
  4413. .on("httpUploadProgress", function (evt) {
  4414. //这里可以写进度条
  4415. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4416. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  4417. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4418. })
  4419. .send(function (err, data) {
  4420. // loading.close();
  4421. _this.progress = 100;
  4422. _this.isFinishSize = _this.isAllSize;
  4423. setTimeout(() => {
  4424. _this.proVisible = false;
  4425. // _this.dialogVisibleSource = false;
  4426. _this.$forceUpdate();
  4427. }, 1000);
  4428. _this.inputShow = true;
  4429. if (err) {
  4430. _this.$message.error("上传失败");
  4431. } else {
  4432. if (type == 13) {
  4433. let _type = 2;
  4434. let src = "";
  4435. var imgA = [
  4436. "png",
  4437. "jpg",
  4438. "jpeg",
  4439. "bmp",
  4440. "gif",
  4441. "webp",
  4442. "psd",
  4443. "svg",
  4444. "tiff",
  4445. ];
  4446. var fileA = [
  4447. "DOC",
  4448. "DOCX",
  4449. "DOCM",
  4450. "DOTM",
  4451. "DOTX",
  4452. "PPTX",
  4453. "PPSX",
  4454. "PPT",
  4455. "PPS",
  4456. "PPTM",
  4457. "POTM",
  4458. "PPAM",
  4459. "POTX",
  4460. "PPSM",
  4461. "XLSX",
  4462. "XLS",
  4463. ];
  4464. var videoA = [
  4465. "AVI",
  4466. "NAVI",
  4467. "MPEG",
  4468. "ASF",
  4469. "MOV",
  4470. "WMV",
  4471. "3GP",
  4472. "RM",
  4473. "RMVB",
  4474. "FLV",
  4475. "F4V",
  4476. "H.264",
  4477. "H.265",
  4478. "REAL VIDEO",
  4479. "MKV",
  4480. "WebM",
  4481. "HDDVD",
  4482. "MP4",
  4483. "MPG",
  4484. "M4V",
  4485. "MGV",
  4486. "OGV",
  4487. "QTM",
  4488. "STR",
  4489. "AMC",
  4490. "DVX",
  4491. "EVO",
  4492. "DAT",
  4493. "OGG",
  4494. "OGM",
  4495. ];
  4496. if (
  4497. fileA.indexOf(
  4498. data.Location.split(".")[
  4499. data.Location.split(".").length - 1
  4500. ].toLocaleUpperCase()
  4501. ) != -1
  4502. ) {
  4503. _type = 3;
  4504. src =
  4505. "https://view.officeapps.live.com/op/view.aspx?src=" +
  4506. encodeURIComponent(data.Location);
  4507. } else if (
  4508. videoA.indexOf(
  4509. data.Location.split(".")[
  4510. data.Location.split(".").length - 1
  4511. ].toLocaleUpperCase()
  4512. ) != -1
  4513. ) {
  4514. _type = 2;
  4515. src = _this.getVideo2(data.Location);
  4516. } else if (
  4517. imgA.indexOf(
  4518. data.Location.split(".")[
  4519. data.Location.split(".").length - 1
  4520. ].toLocaleLowerCase()
  4521. ) != -1
  4522. ) {
  4523. _type = 13;
  4524. } else if (
  4525. data.Location.split(".")[
  4526. data.Location.split(".").length - 1
  4527. ].toLocaleUpperCase() == "PDF"
  4528. ) {
  4529. _type = 9;
  4530. } else {
  4531. _type = 12;
  4532. }
  4533. _this.sourcesData.push({
  4534. name: file.name,
  4535. url: data.Location,
  4536. uid: file.uid,
  4537. type: _type,
  4538. src: src,
  4539. });
  4540. } if (type == 2 || type == 3) {
  4541. var src = "";
  4542. if (
  4543. data.Location.split(".")[
  4544. data.Location.split(".").length - 1
  4545. ].toLocaleUpperCase() == "PDF"
  4546. ) {
  4547. type = 9;
  4548. }
  4549. if (type == 2) {
  4550. src = _this.getVideo2(data.Location);
  4551. } else if (type == 3) {
  4552. src =
  4553. "https://view.officeapps.live.com/op/view.aspx?src=" +
  4554. encodeURIComponent(data.Location);
  4555. } else {
  4556. src = data.Location;
  4557. }
  4558. // _this.unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolArray.push({
  4559. // tool: 51,
  4560. // toolDetail: "",
  4561. // toolPhoto: "",
  4562. // toolEdit: false,
  4563. // toolId: _this.guid(),
  4564. // toolData: {
  4565. // name: file.name,
  4566. // url: data.Location,
  4567. // uid: file.uid,
  4568. // type: type,
  4569. // src: src,
  4570. // }
  4571. // });
  4572. _this.sourcesData.push({
  4573. name: file.name,
  4574. url: data.Location,
  4575. uid: file.uid,
  4576. type: type,
  4577. src: src,
  4578. });
  4579. }
  4580. console.log(data.Location);
  4581. }
  4582. });
  4583. }
  4584. },
  4585. async beforeUploadCC(event, type, task, toolindex, tool) {
  4586. // this.$message.success('进入上传')
  4587. var file = "";
  4588. file = event.target.files[0];
  4589. var credentials = {
  4590. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4591. secretAccessKey: "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",
  4592. }; //秘钥形式的登录上传
  4593. window.AWS.config.update(credentials);
  4594. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4595. var bucket = new window.AWS.S3({
  4596. params: {
  4597. Bucket: "ccrb",
  4598. },
  4599. }); //选择桶
  4600. var _this = this;
  4601. if (type == 3 && (file.size / 1024 / 1024) > 100) {
  4602. _this.$message.error("上传文件大于100兆,请重新选择文件!");
  4603. return;
  4604. }
  4605. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = 0;
  4606. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  4607. toolindex
  4608. ].proVisible = true;
  4609. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  4610. toolindex
  4611. ].isFinishSize = 0;
  4612. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  4613. toolindex
  4614. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4615. _this.$forceUpdate();
  4616. var b = [
  4617. "DOC",
  4618. "DOCX",
  4619. "DOCM",
  4620. "DOTM",
  4621. "DOTX",
  4622. "PPTX",
  4623. "PPSX",
  4624. "PPT",
  4625. "PPS",
  4626. "PPTM",
  4627. "POTM",
  4628. "PPAM",
  4629. "POTX",
  4630. "PPSM",
  4631. ];
  4632. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  4633. var photoA = [
  4634. "BMP",
  4635. "GIF",
  4636. "PNG",
  4637. "JPEG",
  4638. "JPG",
  4639. "TIF",
  4640. "PCX",
  4641. "TGA",
  4642. "EXIF",
  4643. "FPX",
  4644. "SVG",
  4645. "APNG",
  4646. ];
  4647. if (
  4648. photoA.indexOf(
  4649. file.name
  4650. .split(".")
  4651. [file.name.split(".").length - 1].toLocaleUpperCase()
  4652. ) != -1 &&
  4653. type != 4
  4654. ) {
  4655. // const blob = await imageConversion.compress(file, 0.8)
  4656. file = await this.pngToWhiteBg(file);
  4657. const blob = await imageConversion.compressAccurately(file, 256);
  4658. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  4659. file = new File([blob], file.name, {
  4660. type: file.type,
  4661. });
  4662. }
  4663. if (file) {
  4664. var params = {
  4665. Key:
  4666. file.name.split(".")[0] +
  4667. new Date().getTime() +
  4668. "." +
  4669. file.name.split(".")[file.name.split(".").length - 1],
  4670. ContentType: file.type,
  4671. Body: file,
  4672. "Access-Control-Allow-Credentials": "*",
  4673. ACL: "public-read",
  4674. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4675. var options = {
  4676. // partSize: 2048 * 1024 * 1024,
  4677. partSize: 1024 * 1024 * 1024,
  4678. queueSize: 2,
  4679. leavePartsOnError: true,
  4680. };
  4681. bucket
  4682. .upload(params, options)
  4683. .on("httpUploadProgress", function (evt) {
  4684. //这里可以写进度条
  4685. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4686. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = parseInt((evt.loaded * 80) / evt.total);
  4687. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4688. task
  4689. ].toolArray[toolindex].isFinishSize = (
  4690. evt.loaded /
  4691. 1024 /
  4692. 1024
  4693. ).toFixed(2);
  4694. _this.$forceUpdate();
  4695. })
  4696. .send(function (err, data) {
  4697. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = 100;
  4698. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4699. task
  4700. ].toolArray[toolindex].isFinishSize =
  4701. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4702. task
  4703. ].toolArray[toolindex].isAllSize;
  4704. _this.$forceUpdate();
  4705. setTimeout(() => {
  4706. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4707. task
  4708. ].toolArray[toolindex].proVisible = false;
  4709. }, 1000);
  4710. if (err) {
  4711. // var a = _this.$refs.upload1.uploadFiles;
  4712. // a.splice(a.length - 1, a.length);
  4713. _this.$message.error("上传失败");
  4714. } else {
  4715. // _this.$message.success('上传成功')
  4716. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  4717. var c = [
  4718. "AVI",
  4719. "NAVI",
  4720. "MPEG",
  4721. "ASF",
  4722. "MOV",
  4723. "WMV",
  4724. "3GP",
  4725. "RM",
  4726. "RMVB",
  4727. "FLV",
  4728. "F4V",
  4729. "H.264",
  4730. "H.265",
  4731. "REAL VIDEO",
  4732. "MKV",
  4733. "WebM",
  4734. "HDDVD",
  4735. "MP4",
  4736. "MPG",
  4737. "M4V",
  4738. "MGV",
  4739. "OGV",
  4740. "QTM",
  4741. "STR",
  4742. "AMC",
  4743. "DVX",
  4744. "EVO",
  4745. "DAT",
  4746. "OGG",
  4747. "OGM",
  4748. ];
  4749. if (type == 1) {
  4750. if (
  4751. ["ZIP"].indexOf(
  4752. data.Location.split(".")[
  4753. data.Location.split(".").length - 1
  4754. ].toLocaleUpperCase()
  4755. ) != -1
  4756. ) {
  4757. _this.addCourseWorksS(
  4758. tool,
  4759. 13,
  4760. data.Location,
  4761. task,
  4762. toolindex
  4763. );
  4764. } else {
  4765. _this.addCourseWorksS(
  4766. tool,
  4767. 4,
  4768. data.Location,
  4769. task,
  4770. toolindex
  4771. );
  4772. }
  4773. } else if (type == 2) {
  4774. if (
  4775. c.indexOf(
  4776. data.Location.split(".")[
  4777. data.Location.split(".").length - 1
  4778. ].toLocaleUpperCase()
  4779. ) != -1
  4780. ) {
  4781. _this.addCourseWorksS(
  4782. tool,
  4783. 5,
  4784. data.Location,
  4785. task,
  4786. toolindex
  4787. );
  4788. } else {
  4789. _this.addCourseWorksS(
  4790. tool,
  4791. 1,
  4792. data.Location,
  4793. task,
  4794. toolindex
  4795. );
  4796. }
  4797. } else if (type == 3) {
  4798. let _type = 13
  4799. var imgA = [
  4800. "png",
  4801. "jpg",
  4802. "jpeg",
  4803. "bmp",
  4804. "gif",
  4805. "webp",
  4806. "psd",
  4807. "svg",
  4808. "tiff",
  4809. ];
  4810. var fileA = [
  4811. "PDF",
  4812. "DOC",
  4813. "DOCX",
  4814. "DOCM",
  4815. "DOTM",
  4816. "DOTX",
  4817. "PPTX",
  4818. "PPSX",
  4819. "PPT",
  4820. "PPS",
  4821. "PPTM",
  4822. "POTM",
  4823. "PPAM",
  4824. "POTX",
  4825. "PPSM",
  4826. "XLSX",
  4827. "XLS",
  4828. ];
  4829. var videoA = [
  4830. "AVI",
  4831. "NAVI",
  4832. "MPEG",
  4833. "ASF",
  4834. "MOV",
  4835. "WMV",
  4836. "3GP",
  4837. "RM",
  4838. "RMVB",
  4839. "FLV",
  4840. "F4V",
  4841. "H.264",
  4842. "H.265",
  4843. "REAL VIDEO",
  4844. "MKV",
  4845. "WebM",
  4846. "HDDVD",
  4847. "MP4",
  4848. "MPG",
  4849. "M4V",
  4850. "MGV",
  4851. "OGV",
  4852. "QTM",
  4853. "STR",
  4854. "AMC",
  4855. "DVX",
  4856. "EVO",
  4857. "DAT",
  4858. "OGG",
  4859. "OGM",
  4860. ];
  4861. if (
  4862. fileA.indexOf(
  4863. data.Location.split(".")[
  4864. data.Location.split(".").length - 1
  4865. ].toLocaleUpperCase()
  4866. ) != -1
  4867. ) {
  4868. _type = 4;
  4869. } else if (
  4870. videoA.indexOf(
  4871. data.Location.split(".")[
  4872. data.Location.split(".").length - 1
  4873. ].toLocaleUpperCase()
  4874. ) != -1
  4875. ) {
  4876. _type = 5;
  4877. } else if (
  4878. imgA.indexOf(
  4879. data.Location.split(".")[
  4880. data.Location.split(".").length - 1
  4881. ].toLocaleLowerCase()
  4882. ) != -1
  4883. ) {
  4884. _type = 1;
  4885. } else {
  4886. _type = 13;
  4887. }
  4888. _this.addCourseWorksS(tool, _type, data.Location, task, toolindex);
  4889. }
  4890. console.log(data.Location);
  4891. // _this.$message.success('上传成功'+data.Location)
  4892. }
  4893. });
  4894. }
  4895. },
  4896. pngToWhiteBg(file) {
  4897. const _file = file;
  4898. let read = new FileReader();
  4899. read.readAsDataURL(file); // 文件转base64
  4900. return new Promise((resolve, reject) => {
  4901. read.onload = (e) => {
  4902. let img = new Image();
  4903. img.src = e.target.result;
  4904. img.onload = async () => {
  4905. // 生成canvas
  4906. let canvas = document.createElement("canvas");
  4907. let context = canvas.getContext("2d");
  4908. // 绘制图片到canvas上
  4909. canvas.width = img.width;
  4910. canvas.height = img.height;
  4911. // 在canvas绘制前填充白色背景
  4912. context.fillStyle = "#fff";
  4913. context.fillRect(0, 0, canvas.width, canvas.height);
  4914. context.drawImage(img, 0, 0);
  4915. let base64 = canvas.toDataURL(file["type"], 1);
  4916. let newFile = this.dataUrlToFile(base64, _file);
  4917. resolve(newFile);
  4918. };
  4919. };
  4920. });
  4921. },
  4922. dataUrlToFile(dataurl, file) {
  4923. let arr = dataurl.split(","),
  4924. mime = arr[0].match(/:(.*?);/)[1],
  4925. bstr = atob(arr[1]),
  4926. n = bstr.length,
  4927. u8arr = new Uint8Array(n);
  4928. while (n--) {
  4929. u8arr[n] = bstr.charCodeAt(n);
  4930. }
  4931. // return new Blob([u8arr], { type: mime });
  4932. return new File(
  4933. [
  4934. new Blob([u8arr], {
  4935. type: mime,
  4936. }),
  4937. ],
  4938. file.name,
  4939. {
  4940. type: mime,
  4941. }
  4942. );
  4943. },
  4944. addunit() {
  4945. if (this.cid != "") {
  4946. let _unitIndex = this.unitIndex;
  4947. let cPan = 1;
  4948. for (
  4949. var j = 0;
  4950. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4951. j++
  4952. ) {
  4953. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4954. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4955. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4956. (ele) => {
  4957. return ele.value != "";
  4958. }
  4959. );
  4960. }
  4961. }
  4962. if (cPan == 2) {
  4963. return;
  4964. }
  4965. }
  4966. this.unitJson.push({
  4967. dyName: "", //单元标题
  4968. isUpdate: 1,
  4969. chapterInfo: [
  4970. {
  4971. isread: false,
  4972. chapterid: this.guid(),
  4973. title: "",
  4974. courseName: "",
  4975. taskJson: [
  4976. {
  4977. task: "",
  4978. people: "",
  4979. time: "",
  4980. taskDetail: "",
  4981. chapterData: [],
  4982. toolText: "",
  4983. toolChoose: [
  4984. {
  4985. tool: [],
  4986. toolDetail: "",
  4987. toolType: 0,
  4988. askCount: 1,
  4989. askTitle: "",
  4990. askJson: [
  4991. {
  4992. askstitle: "",
  4993. askItem: 1,
  4994. checkList: [],
  4995. },
  4996. ],
  4997. },
  4998. ],
  4999. toolArray: [],
  5000. isShowTools: false,
  5001. askCount: 1,
  5002. isFold: 0,
  5003. askTitle: "",
  5004. askJson: [
  5005. {
  5006. askstitle: "",
  5007. askItem: 1,
  5008. checkList: [],
  5009. },
  5010. ],
  5011. checkJson: [
  5012. {
  5013. checkCount: [],
  5014. checkPerent: [],
  5015. },
  5016. ],
  5017. homeworkList: [],
  5018. },
  5019. ],
  5020. itemCount: 1,
  5021. fileList1: [],
  5022. video: [],
  5023. testData: [],
  5024. pData: [],
  5025. templateArray: [],
  5026. },
  5027. ],
  5028. });
  5029. // this.addindex = this.unitJson.length - 1;
  5030. // setTimeout(() => {
  5031. // this.unitIndex = this.unitJson.length - 1;
  5032. // this.unitSet(this.unitIndex);
  5033. // }, 0);
  5034. setTimeout(() => {
  5035. this.unitIndex = this.unitJson.length - 1;
  5036. setTimeout(() => {
  5037. console.log(this.$refs.dyInput)
  5038. this.$refs.dyInput[0].focus()
  5039. }, 100);
  5040. this.unitSet(this.unitIndex);
  5041. }, 0);
  5042. },
  5043. addToolFun(tool) {
  5044. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5045. // itemTaskIndex
  5046. // ].toolChoose.push({
  5047. // tool: [],
  5048. // toolDetail: "",
  5049. // toolType: 0,
  5050. // askCount: 1,
  5051. // askTitle: "",
  5052. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5053. // });
  5054. if (tool == 15) {
  5055. this.tableJson.text = "";
  5056. this.dialogVisible8 = true;
  5057. } else if (tool == 48) {
  5058. this.tableJson.text = "";
  5059. this.dialogVisibleTable1 = true;
  5060. } else if (tool == 52) {
  5061. this.tableJson.text = "";
  5062. this.dialogVisibleText = true;
  5063. } else if (tool == 51) {
  5064. this.addSourceFunD(this.taskCount);
  5065. } else if (tool == 56) {
  5066. this.askJson = {
  5067. askCount: 1,
  5068. askTitle: "",
  5069. askJson: [
  5070. {
  5071. askstitle: "",
  5072. askItem: 1,
  5073. checkList: [],
  5074. },
  5075. ],
  5076. };
  5077. this.dialogVisibleVote = true;
  5078. } else {
  5079. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5080. this.taskCount
  5081. ].toolArray.push({
  5082. tool: tool,
  5083. toolDetail: "",
  5084. toolPhoto: "",
  5085. toolEdit: false,
  5086. toolId: this.guid(),
  5087. });
  5088. this.$forceUpdate();
  5089. this.dialogVisibleTool = false;
  5090. if (tool == 1 || tool == 3 || tool == 6) {
  5091. setTimeout(() => {
  5092. this.openToolFun(
  5093. tool,
  5094. this.taskCount,
  5095. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5096. this.taskCount
  5097. ].toolArray.length - 1
  5098. );
  5099. }, 500);
  5100. } else if (tool == 53 || tool == 54 || tool == 55) {
  5101. setTimeout(() => {
  5102. this.addImg(
  5103. document.getElementById(
  5104. this.taskCount.toString() +
  5105. "-" +
  5106. (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5107. this.taskCount
  5108. ].toolArray.length -
  5109. 1)
  5110. )
  5111. );
  5112. }, 500);
  5113. }
  5114. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  5115. }
  5116. },
  5117. addToolFunD(itemTaskIndex) {
  5118. this.taskCount = itemTaskIndex;
  5119. this.dialogVisibleTool = true;
  5120. },
  5121. addSourceFunD(itemTaskIndex) {
  5122. this.sourcesData = [];
  5123. this.proVisible = false;
  5124. this.progress = 0;
  5125. this.inputShow = true;
  5126. this.taskCount = itemTaskIndex;
  5127. this.dialogVisibleSource = true;
  5128. },
  5129. setChapterIndex(itemTool, index, toolIndex) {
  5130. if (itemTool.toolData[index].type == 12) {
  5131. this.downloadFile2(itemTool.toolData[index], toolIndex)
  5132. return;
  5133. }
  5134. itemTool.sourceIndex = index;
  5135. this.setVHeight();
  5136. this.$forceUpdate();
  5137. },
  5138. setVHeight() {
  5139. this.$nextTick(function () {
  5140. setTimeout(() => {
  5141. let task = this.unitJson[this.unitIndex].chapterInfo[0].taskJson;
  5142. for (var j = 0; j < task.length; j++) {
  5143. let tool = task[j].toolArray;
  5144. for (var z = 0; z < tool.length; z++) {
  5145. let _tool = tool[z];
  5146. if (_tool.tool == 51) {
  5147. let ci = 0
  5148. for (var li = 0; li < _tool.toolData.length; li++) {
  5149. if (_tool.toolData[li].type != 12) {
  5150. ci++
  5151. }
  5152. }
  5153. if (ci == 0) {
  5154. _tool.isNoFile = true;
  5155. document.getElementsByClassName(
  5156. "vedioList" + j + z
  5157. )[0].style.height = 650 + "px";
  5158. document.getElementsByClassName(
  5159. "vedioList" + j + z
  5160. )[0].style.width = "100%";
  5161. } else {
  5162. _tool.isNoFile = false;
  5163. var a = document.getElementsByClassName("box_course" + j + z)[0] ? document.getElementsByClassName("box_course" + j + z)[0]
  5164. .offsetHeight : 650;
  5165. document.getElementsByClassName(
  5166. "vedioList" + j + z
  5167. )[0].style.height = a + "px";
  5168. document.getElementsByClassName(
  5169. "vedioList" + j + z
  5170. )[0].style.width = "calc(100% - 83%)";
  5171. }
  5172. this.$forceUpdate();
  5173. }
  5174. }
  5175. }
  5176. }, 0);
  5177. });
  5178. },
  5179. addSourceData() {
  5180. if (!this.sourcesData.length) {
  5181. this.$message.error("请上传资源");
  5182. return;
  5183. }
  5184. let ic = 0
  5185. for (let i = 0; i < this.sourcesData.length; i++) {
  5186. if (this.sourcesData[i].type != 12) {
  5187. ic = i
  5188. break;
  5189. }
  5190. }
  5191. if (this.editSourceType == 1) {
  5192. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5193. this.taskCount
  5194. ].toolArray.push({
  5195. tool: 51,
  5196. toolDetail: "",
  5197. toolPhoto: "",
  5198. toolEdit: false,
  5199. toolId: this.guid(),
  5200. toolData: JSON.parse(JSON.stringify(this.sourcesData)),
  5201. sourceIndex: ic,
  5202. });
  5203. } else {
  5204. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5205. this.taskCount
  5206. ].toolArray[this.toolIndex].toolData = JSON.parse(
  5207. JSON.stringify(this.sourcesData)
  5208. );
  5209. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5210. this.taskCount
  5211. ].toolArray[this.toolIndex].sourceIndex = ic;
  5212. }
  5213. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  5214. this.editSourceType = 1;
  5215. this.sourcesData = [];
  5216. this.dialogVisibleSource = false;
  5217. this.dialogVisibleTool = false;
  5218. this.$forceUpdate();
  5219. this.setVHeight();
  5220. },
  5221. openToolFun(tool, taskCount, i) {
  5222. this.taskCount = taskCount;
  5223. this.toolIndex = i;
  5224. if (tool == 48) {
  5225. const array =
  5226. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5227. .toolArray[i].toolPhoto;
  5228. let txt = "";
  5229. if (array.length) {
  5230. txt = JSON.parse(JSON.stringify(array[0].content));
  5231. }
  5232. // for (var l = 0; l < array.length; l++) {
  5233. // let _uid = array[l].userid
  5234. // if (_uid == this.userid) {
  5235. // txt = JSON.parse(JSON.stringify(array[l].content))
  5236. // break;
  5237. // }
  5238. // }
  5239. this.tableJson.text = txt
  5240. ? JSON.parse(txt)
  5241. : this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5242. .toolArray[i].table
  5243. ? JSON.parse(
  5244. JSON.stringify(
  5245. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5246. .toolArray[i].table
  5247. )
  5248. )
  5249. : "";
  5250. // 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)) : ''
  5251. this.dialogVisibleTable = true;
  5252. } else if (tool == 15) {
  5253. this.answerQ = JSON.parse(
  5254. JSON.stringify(
  5255. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5256. .toolArray[i].answerQ
  5257. )
  5258. );
  5259. this.answerDialogVisible = true;
  5260. } else if (tool == 52) {
  5261. const array =
  5262. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5263. .toolArray[i].toolPhoto;
  5264. let txt = "";
  5265. if (array.length) {
  5266. txt = JSON.parse(JSON.stringify(array[0].content));
  5267. }
  5268. // for (var l = 0; l < array.length; l++) {
  5269. // let _uid = array[l].userid
  5270. // if (_uid == this.userid) {
  5271. // txt = JSON.parse(JSON.stringify(array[l].content))
  5272. // break;
  5273. // }
  5274. // }
  5275. this.tableJson.text = txt
  5276. ? JSON.parse(txt)
  5277. : JSON.parse(
  5278. JSON.stringify(
  5279. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5280. .toolArray[i].text
  5281. )
  5282. );
  5283. this.dialogVisibleText3 = true;
  5284. } else if (tool == 56) {
  5285. const array =
  5286. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5287. .toolArray[i].toolPhoto;
  5288. let txt = JSON.stringify([]);
  5289. for (var l = 0; l < array.length; l++) {
  5290. let _uid = array[l].userid;
  5291. if (_uid == this.userid) {
  5292. txt = JSON.parse(JSON.stringify(array[l].content));
  5293. break;
  5294. }
  5295. }
  5296. this.radio = JSON.parse(txt);
  5297. this.askJson = JSON.parse(
  5298. JSON.stringify(
  5299. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5300. .toolArray[i].askJson
  5301. )
  5302. );
  5303. this.dialogVisibleVote2 = true;
  5304. } else {
  5305. window.parent.postMessage(
  5306. {
  5307. tools: tool + "s",
  5308. cid: this.cid,
  5309. stage: this.unitIndex,
  5310. task: taskCount,
  5311. tool: i,
  5312. },
  5313. "*"
  5314. );
  5315. if (tool == 1 || tool == 3 || tool == 6) {
  5316. this.setPeople(this.unitIndex, taskCount, this.userid);
  5317. }
  5318. }
  5319. },
  5320. previewImg(url) {
  5321. this.$hevueImgPreview(url);
  5322. },
  5323. scrollChange() {
  5324. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  5325. },
  5326. openTable(content) {
  5327. this.tableJson.text = JSON.parse(content);
  5328. this.dialogVisibleTable2 = true;
  5329. },
  5330. addTaskBorder() {
  5331. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  5332. task: "",
  5333. people: "",
  5334. time: "",
  5335. taskDetail: "",
  5336. chapterData: [],
  5337. toolText: "",
  5338. toolChoose: [
  5339. {
  5340. tool: [],
  5341. toolDetail: "",
  5342. toolType: 0,
  5343. askCount: 1,
  5344. askTitle: "",
  5345. askJson: [
  5346. {
  5347. askstitle: "",
  5348. askItem: 1,
  5349. checkList: [],
  5350. },
  5351. ],
  5352. },
  5353. ],
  5354. toolArray: [],
  5355. isShowTools: false,
  5356. askCount: 1,
  5357. isFold: 0,
  5358. askTitle: "",
  5359. askJson: [
  5360. {
  5361. askstitle: "",
  5362. askItem: 1,
  5363. checkList: [],
  5364. },
  5365. ],
  5366. checkJson: [
  5367. {
  5368. checkCount: [],
  5369. checkPerent: [],
  5370. },
  5371. ],
  5372. homeworkList: [],
  5373. });
  5374. },
  5375. add(e, i) {
  5376. var el = e.currentTarget;
  5377. el.getElementsByTagName("input")[0].click();
  5378. },
  5379. fold(i, e) {
  5380. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  5381. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  5382. } else {
  5383. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  5384. }
  5385. console.log(e);
  5386. },
  5387. deleteHomeworkBox(unitIndex, index, i) {
  5388. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  5389. this.taskCount
  5390. ].homeworkList.splice(i, 1);
  5391. },
  5392. getStudent() {
  5393. let params = {
  5394. oid: this.oid,
  5395. cu: "",
  5396. cn: this.searchPeople,
  5397. };
  5398. this.ajax
  5399. .get(this.$store.state.api + "selectStudentAdd", params)
  5400. .then((res) => {
  5401. this.studentJuri = res.data[0];
  5402. })
  5403. .catch((err) => {
  5404. this.isLoading = false;
  5405. console.error(err);
  5406. });
  5407. },
  5408. onPlayerPlay() { },
  5409. getTeacher() {
  5410. let params = {
  5411. org:
  5412. this.org && this.org != "undefined" && this.org != "null"
  5413. ? this.org
  5414. : "",
  5415. oid: this.oid,
  5416. cu: "",
  5417. cn: this.searchTN,
  5418. page: this.page,
  5419. pageSize: this.pageSize,
  5420. };
  5421. this.ajax
  5422. .get(
  5423. this.$store.state.api +
  5424. (this.org && this.org != "undefined" && this.org != "null"
  5425. ? "selectUserByOidS2"
  5426. : "selectUserByOidS2"),
  5427. params
  5428. )
  5429. .then((res) => {
  5430. let teacherJuri = res.data[0];
  5431. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  5432. this.teacherJuri2 = JSON.parse(JSON.stringify(res.data[0]));
  5433. for (var i = 0; i < teacherJuri.length; i++) {
  5434. if (teacherJuri[i].userid == this.userid) {
  5435. teacherJuri.splice(i, 1);
  5436. break;
  5437. }
  5438. }
  5439. this.teacherJuri = teacherJuri;
  5440. })
  5441. .catch((err) => {
  5442. console.error(err);
  5443. });
  5444. },
  5445. setMan() {
  5446. let _unitJosn = this.unitJson;
  5447. // let teacherJuri = this.teacherJuri2;
  5448. this.ManAarray = [];
  5449. if (this.checkboxList3.indexOf(this.courseUserid) != -1) {
  5450. this.checkboxList3.splice(
  5451. this.checkboxList3.indexOf(this.courseUserid),
  5452. 1
  5453. );
  5454. }
  5455. let array = JSON.parse(JSON.stringify(this.checkboxList3));
  5456. if (array.indexOf(this.userid) == -1) {
  5457. array.push(this.userid);
  5458. }
  5459. if (array.indexOf(this.courseUserid) == -1) {
  5460. array.push(this.courseUserid);
  5461. }
  5462. for (var i = 0; i < _unitJosn.length; i++) {
  5463. let _chapter = _unitJosn[i].chapterInfo[0].taskJson;
  5464. for (var j = 0; j < _chapter.length; j++) {
  5465. let _task = _chapter[j];
  5466. if (array.indexOf(_task.people) == -1) {
  5467. _task.people = "";
  5468. }
  5469. if (_task.tcMember && _task.tcMember.length) {
  5470. let _tc = _task.tcMember;
  5471. let _tc2 = [];
  5472. for (var k = 0; k < _tc.length; k++) {
  5473. if (array.indexOf(_tc[k]) != -1) {
  5474. _tc2.push(_tc[k]);
  5475. }
  5476. }
  5477. _task.tcMember = _tc2;
  5478. }
  5479. }
  5480. }
  5481. let params = {
  5482. uid: array.join(","),
  5483. };
  5484. this.ajax
  5485. .get(this.$store.state.api + "getAllUserById", params)
  5486. .then((res) => {
  5487. let teacherJuri = res.data[0];
  5488. this.ManAarray = teacherJuri;
  5489. })
  5490. .catch((err) => {
  5491. console.error(err);
  5492. });
  5493. },
  5494. searchStudent() {
  5495. this.getStudent();
  5496. },
  5497. //获取班级列表
  5498. getClass() {
  5499. let params = {
  5500. oid: this.oid,
  5501. };
  5502. this.ajax
  5503. .get(this.$store.state.api + "selectClassBySchool", params)
  5504. .then((res) => {
  5505. this.grade = res.data[0];
  5506. })
  5507. .catch((err) => {
  5508. this.isLoading = false;
  5509. console.error(err);
  5510. });
  5511. },
  5512. getChapterData(e, i, j, ic, type) {
  5513. e.stopPropagation();
  5514. this.updataC = true;
  5515. this.icc = ic;
  5516. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  5517. console.log("还不能下载图片喔");
  5518. }
  5519. },
  5520. getChapterData2(e, ic, type) {
  5521. e.stopPropagation();
  5522. this.updataC = true;
  5523. this.icc = ic;
  5524. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  5525. console.log("还不能下载图片喔");
  5526. }
  5527. },
  5528. deleteChapterData(e, i, j, ic, taskI) {
  5529. e.stopPropagation();
  5530. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  5531. },
  5532. deleteChapterData2(e, ic) {
  5533. e.stopPropagation();
  5534. this.sourcesData.splice(ic, 1);
  5535. },
  5536. updataVideoT(e, i, j, ic) {
  5537. e.stopPropagation();
  5538. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5539. ic
  5540. ].name = e.target.value;
  5541. },
  5542. updataVideoT2(e, ic) {
  5543. e.stopPropagation();
  5544. this.sourcesData[ic].name = e.target.value;
  5545. },
  5546. upCd(e, i, j, ic) {
  5547. e.stopPropagation();
  5548. if (ic == 0) {
  5549. return;
  5550. }
  5551. var a =
  5552. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5553. ic - 1
  5554. ];
  5555. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5556. ic - 1
  5557. ] =
  5558. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5559. ic
  5560. ];
  5561. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  5562. a;
  5563. },
  5564. downCd(e, i, j, ic) {
  5565. e.stopPropagation();
  5566. if (
  5567. ic ==
  5568. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData
  5569. .length -
  5570. 1
  5571. ) {
  5572. return;
  5573. }
  5574. var a =
  5575. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5576. ic + 1
  5577. ];
  5578. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5579. ic + 1
  5580. ] =
  5581. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5582. ic
  5583. ];
  5584. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  5585. a;
  5586. },
  5587. upCd2(e, ic) {
  5588. e.stopPropagation();
  5589. if (ic == 0) {
  5590. return;
  5591. }
  5592. var a = this.sourcesData[ic - 1];
  5593. this.sourcesData[ic - 1] = this.sourcesData[ic];
  5594. this.sourcesData[ic] = a;
  5595. this.$forceUpdate();
  5596. },
  5597. downCd2(e, ic) {
  5598. e.stopPropagation();
  5599. if (ic == this.sourcesData.length - 1) {
  5600. return;
  5601. }
  5602. var a = this.sourcesData[ic + 1];
  5603. this.sourcesData[ic + 1] = this.sourcesData[ic];
  5604. this.sourcesData[ic] = a;
  5605. this.$forceUpdate();
  5606. },
  5607. addWork() {
  5608. let cPan = 1;
  5609. for (var i = 0; i < this.unitJson.length; i++) {
  5610. for (
  5611. var j = 0;
  5612. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5613. j++
  5614. ) {
  5615. if (
  5616. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5617. ) {
  5618. for (
  5619. var z = 0;
  5620. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5621. z++
  5622. ) {
  5623. if (
  5624. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  5625. .length
  5626. ) {
  5627. this.$message.error("请把工具添加完整");
  5628. cPan = 2;
  5629. break;
  5630. }
  5631. }
  5632. }
  5633. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5634. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5635. i
  5636. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5637. return ele.value != "";
  5638. });
  5639. }
  5640. }
  5641. }
  5642. if (cPan == 2) {
  5643. if (this.steps != 3) {
  5644. this.steps--;
  5645. }
  5646. return;
  5647. }
  5648. for (var i = 0; i < this.unitJson.length; i++) {
  5649. delete this.unitJson[i].isUpdate;
  5650. }
  5651. let params = [
  5652. {
  5653. uid: this.userid,
  5654. title: this.courseName,
  5655. brief: this.courseText,
  5656. cover:
  5657. this.cover.length > 0
  5658. ? JSON.stringify(this.cover)
  5659. : JSON.stringify([
  5660. {
  5661. name: "noBanner.jpg",
  5662. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5663. uid: 1656409780264,
  5664. status: "success",
  5665. },
  5666. ]),
  5667. evaId: this.evalua,
  5668. astudent:
  5669. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5670. see: this.isTeacherSee == true ? 1 : 0,
  5671. chapters: JSON.stringify(this.unitJson),
  5672. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  5673. courseType: JSON.stringify(this.courseTypeId),
  5674. ateacher:
  5675. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5676. },
  5677. ];
  5678. this.ajax
  5679. .post(this.$store.state.api + "addCourseWorkNew22", params)
  5680. .then((res) => {
  5681. console.log(this.steps);
  5682. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5683. this.$message({
  5684. message: "新增成功",
  5685. type: "success",
  5686. });
  5687. }
  5688. this.number = res.data.ordernumber;
  5689. this.courseId = res.data.courseId;
  5690. this.cid = res.data.courseId;
  5691. this.courseUserid = this.userid;
  5692. this.islogin = true;
  5693. this.selectCourseDetail();
  5694. })
  5695. .catch((err) => {
  5696. this.$message.error("网络不佳");
  5697. console.error(err);
  5698. });
  5699. },
  5700. goCourse() {
  5701. window.parent.postMessage(
  5702. {
  5703. cid: this.courseId,
  5704. type: "1",
  5705. },
  5706. "*"
  5707. );
  5708. },
  5709. updateWork2() {
  5710. let _unitIndex = this.unitIndex;
  5711. let cPan = 1;
  5712. for (
  5713. var j = 0;
  5714. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5715. j++
  5716. ) {
  5717. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5718. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5719. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5720. (ele) => {
  5721. return ele.value != "";
  5722. }
  5723. );
  5724. }
  5725. }
  5726. if (cPan == 2) {
  5727. if (this.steps != 3) {
  5728. if (this.type == 2 && this.steps == 5) {
  5729. this.steps == 3;
  5730. } else {
  5731. this.steps--;
  5732. }
  5733. }
  5734. return;
  5735. }
  5736. let params = [
  5737. {
  5738. cid: this.cid,
  5739. chapters: JSON.stringify(this.unitJson),
  5740. uid: this.userid,
  5741. unitIndex: _unitIndex,
  5742. },
  5743. ];
  5744. this.ajax
  5745. .post(this.$store.state.api + "updateStudentWorkNew4", params)
  5746. .then((res) => {
  5747. if (
  5748. this.steps != 1 &&
  5749. this.steps != 2 &&
  5750. this.steps != 3 &&
  5751. this.steps != 4
  5752. ) {
  5753. this.$message({
  5754. message: "修改成功",
  5755. type: "success",
  5756. });
  5757. }
  5758. this.courseId = this.cid;
  5759. })
  5760. .catch((err) => {
  5761. this.$message.error("网络不佳");
  5762. console.error(err);
  5763. });
  5764. },
  5765. updateWork3() {
  5766. let _unitIndex = this.unitIndex;
  5767. let cPan = 1;
  5768. for (
  5769. var j = 0;
  5770. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5771. j++
  5772. ) {
  5773. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5774. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5775. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5776. (ele) => {
  5777. return ele.value != "";
  5778. }
  5779. );
  5780. }
  5781. }
  5782. if (cPan == 2) {
  5783. if (this.steps != 3) {
  5784. if (this.type == 2 && this.steps == 5) {
  5785. this.steps == 3;
  5786. } else {
  5787. this.steps--;
  5788. }
  5789. }
  5790. return;
  5791. }
  5792. let params = [
  5793. {
  5794. cid: this.cid,
  5795. chapters: JSON.stringify(this.unitJson),
  5796. uid: this.userid,
  5797. unitIndex: _unitIndex,
  5798. },
  5799. ];
  5800. this.ajax
  5801. .post(this.$store.state.api + "updateStudentWorkNew4", params)
  5802. .then((res) => {
  5803. // if (
  5804. // this.steps != 1 &&
  5805. // this.steps != 2 &&
  5806. // this.steps != 3 &&
  5807. // this.steps != 4
  5808. // ) {
  5809. // this.$message({
  5810. // message: "修改成功",
  5811. // type: "success",
  5812. // });
  5813. // }
  5814. this.courseId = this.cid;
  5815. })
  5816. .catch((err) => {
  5817. this.$message.error("网络不佳");
  5818. console.error(err);
  5819. });
  5820. },
  5821. updateWork() {
  5822. let cPan = 1;
  5823. for (var i = 0; i < this.unitJson.length; i++) {
  5824. for (
  5825. var j = 0;
  5826. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5827. j++
  5828. ) {
  5829. // if (
  5830. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  5831. // ) {
  5832. // this.$message.error("请填写任务名称");
  5833. // cPan = 2
  5834. // break;
  5835. // }
  5836. // if (
  5837. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  5838. // ) {
  5839. // this.$message.error("请填写负责人");
  5840. // cPan = 2
  5841. // break;
  5842. // }
  5843. // if (
  5844. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  5845. // ) {
  5846. // this.$message.error("请填写任务起止时间");
  5847. // cPan = 2
  5848. // break;
  5849. // }
  5850. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5851. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5852. i
  5853. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5854. return ele.value != "";
  5855. });
  5856. }
  5857. }
  5858. }
  5859. if (cPan == 2) {
  5860. if (this.steps != 3) {
  5861. this.steps--;
  5862. }
  5863. return;
  5864. }
  5865. for (var i = 0; i < this.unitJson.length; i++) {
  5866. delete this.unitJson[i].isUpdate;
  5867. }
  5868. let params = [
  5869. {
  5870. cid: this.cid,
  5871. title: this.courseName,
  5872. brief: this.courseText,
  5873. cover:
  5874. this.cover.length > 0
  5875. ? JSON.stringify(this.cover)
  5876. : JSON.stringify([
  5877. {
  5878. name: "noBanner.jpg",
  5879. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5880. uid: 1656409780264,
  5881. status: "success",
  5882. },
  5883. ]),
  5884. evaId: this.evalua,
  5885. astudent:
  5886. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5887. see: this.isTeacherSee == true ? 1 : 0,
  5888. chapters: JSON.stringify(this.unitJson),
  5889. template: this.myWord != "undefined" ? this.myWord : [],
  5890. uid: this.userid,
  5891. courseType: JSON.stringify(this.courseTypeId),
  5892. ateacher:
  5893. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5894. },
  5895. ];
  5896. this.ajax
  5897. .post(this.$store.state.api + "updateStudentWorkNew22", params)
  5898. .then((res) => {
  5899. if (
  5900. this.steps != 1 &&
  5901. this.steps != 2 &&
  5902. this.steps != 3 &&
  5903. this.steps != 4
  5904. ) {
  5905. if (this.cidttt == 1) {
  5906. this.$message({
  5907. message: "修改成功",
  5908. type: "success",
  5909. });
  5910. } else {
  5911. this.$message({
  5912. message: "新增成功",
  5913. type: "success",
  5914. });
  5915. }
  5916. }
  5917. this.checkboxListPeople = JSON.parse(
  5918. JSON.stringify(this.checkboxList3)
  5919. );
  5920. this.number = this.nbOrder;
  5921. this.courseId = this.cid;
  5922. })
  5923. .catch((err) => {
  5924. this.$message.error("网络不佳");
  5925. console.error(err);
  5926. });
  5927. },
  5928. guid() {
  5929. var _num,
  5930. i,
  5931. _guid = "";
  5932. for (i = 0; i < 32; i++) {
  5933. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5934. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5935. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5936. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5937. _guid += "-";
  5938. }
  5939. }
  5940. return _guid;
  5941. },
  5942. retrunCourse() {
  5943. this
  5944. .$confirm("是否保存已编辑内容?", "提示", {
  5945. confirmButtonText: "保存",
  5946. cancelButtonText: "不保存",
  5947. distinguishCancelAndClose: true,
  5948. type: "warning",
  5949. })
  5950. .then(() => {
  5951. let typeT = 1;
  5952. if (this.courseTypeId.length) {
  5953. let array = Object.keys(this.CourseTypeJson);
  5954. for (var t = 0; t < array.length; t++) {
  5955. var tp = array[t];
  5956. var tAarray = [];
  5957. for (var tt = 0; tt < this.CourseTypeJson[tp].length; tt++) {
  5958. tAarray.push(this.CourseTypeJson[tp][tt].id);
  5959. }
  5960. for (var tt = 0; tt < this.courseTypeId.length; tt++) {
  5961. if (tAarray.indexOf(this.courseTypeId[tt]) != -1) {
  5962. typeT++;
  5963. }
  5964. }
  5965. }
  5966. }
  5967. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  5968. typeT++;
  5969. }
  5970. // if (this.CourseType.length == 0) {
  5971. // typeT = 3
  5972. // }
  5973. if (!(this.org == '150e3120-9195-11ed-b13d-005056b86db5') && !(this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5")) {
  5974. typeT = 3
  5975. }
  5976. if (this.courseName == "" || typeT != 3) {
  5977. if (typeT != 3) {
  5978. this.$message.error("分类为必选项目,请将信息补充完整后进行下一步");
  5979. } else {
  5980. this.$message.error("请将信息填写完整");
  5981. }
  5982. return;
  5983. }
  5984. if (this.cid == "" || this.cid == undefined) {
  5985. if (this.courseName == "") {
  5986. this.$message.error("请将信息填写完整");
  5987. return;
  5988. } else {
  5989. this.addWork();
  5990. }
  5991. this.steps = 5
  5992. } else {
  5993. if (this.courseName == "") {
  5994. this.$message.error("请将信息填写完整");
  5995. return;
  5996. } else {
  5997. if (this.userid != this.courseUserid && this.role != "1") {
  5998. this.updateWork2();
  5999. } else {
  6000. this.updateWork();
  6001. }
  6002. this.steps = 5
  6003. }
  6004. }
  6005. })
  6006. .catch((v) => {
  6007. console.log(v)
  6008. if (v == "cancel") {
  6009. this.goTo(
  6010. this.fpath +
  6011. "?userid=" +
  6012. this.userid +
  6013. "&oid=" +
  6014. this.oid +
  6015. "&org=" +
  6016. this.org + '&role=' + this.role
  6017. );
  6018. }
  6019. });
  6020. },
  6021. insertWord() {
  6022. this.dialogVisible1 = true;
  6023. this.updateBoolean2 = false;
  6024. this.tTitle = "";
  6025. this.tdetail = "";
  6026. },
  6027. addWord() {
  6028. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6029. name: this.tTitle,
  6030. content: this.tdetail,
  6031. uid: this.guid(),
  6032. });
  6033. this.dialogVisible1 = false;
  6034. },
  6035. upWord() { },
  6036. selectWord(uid, i, c) {
  6037. this.dialogVisible1 = true;
  6038. this.updateBoolean2 = true;
  6039. if (
  6040. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6041. ) {
  6042. this.tTitle =
  6043. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6044. this.tdetail =
  6045. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6046. }
  6047. },
  6048. isAddPP() {
  6049. if (this.checkboxList.length > 0) {
  6050. this.$message({
  6051. message: "添加成功",
  6052. type: "success",
  6053. });
  6054. this.dialogVisible3 = false;
  6055. } else {
  6056. this.$message({
  6057. message: "请添加项目成员",
  6058. type: "error",
  6059. });
  6060. }
  6061. },
  6062. isAddClass() {
  6063. this.dialogVisibleClass = false;
  6064. },
  6065. isAddPPTeacher() {
  6066. this.dialogVisibleMember = false;
  6067. // let array = JSON.parse(JSON.stringify(this.checkboxList3))
  6068. // if (array.indexOf(this.courseUserid || this.userid) == -1) {
  6069. // array.push(this.courseUserid || this.userid)
  6070. // }
  6071. this.setMan();
  6072. },
  6073. isAddPPTcTeacher() {
  6074. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6075. this.taskCount
  6076. ].tcMember = this.tcMember;
  6077. this.dialogVisibleTcMember = false;
  6078. },
  6079. addTcMember(index) {
  6080. this.taskCount = index;
  6081. // this.searchTN = ""
  6082. let tcMember = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6083. index
  6084. ].tcMember
  6085. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember
  6086. : [];
  6087. const people =
  6088. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].people;
  6089. let ManAarray = JSON.parse(JSON.stringify(this.ManAarray));
  6090. for (var i = 0; i < ManAarray.length; i++) {
  6091. if (ManAarray[i].userid === people) {
  6092. ManAarray.splice(i, 1);
  6093. }
  6094. }
  6095. this.tcMember = tcMember;
  6096. this.ManAarray2 = ManAarray;
  6097. // this.getTeacher();
  6098. this.dialogVisibleTcMember = true;
  6099. },
  6100. peopleChange(people, index) {
  6101. let tcMember = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6102. index
  6103. ].tcMember
  6104. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember
  6105. : [];
  6106. if (tcMember.indexOf(people) != -1) {
  6107. tcMember.splice(tcMember.indexOf(people), 1);
  6108. }
  6109. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember =
  6110. tcMember;
  6111. },
  6112. getTemplate() {
  6113. let params = {
  6114. oid: this.oid,
  6115. };
  6116. this.ajax
  6117. .get(this.$store.state.api + "getCourseTemplateTs", params)
  6118. .then((res) => {
  6119. this.templateArray = res.data[0];
  6120. this.getTemplateOrg();
  6121. this.$forceUpdate();
  6122. })
  6123. .catch((err) => { });
  6124. },
  6125. getTemplateOrg() {
  6126. let params = {
  6127. oid: this.org,
  6128. };
  6129. this.ajax
  6130. .get(this.$store.state.api + "getCourseTemplateTs", params)
  6131. .then((res) => {
  6132. if (res.data[0].length) {
  6133. let ta = res.data[0].filter(el => {
  6134. return el.oid
  6135. });
  6136. this.templateArray = [...ta, ...this.templateArray];
  6137. this.templateArray = this.templateArray.sort(function (a, b) {
  6138. return b.create_at < a.create_at ? -1 : 1
  6139. })
  6140. }
  6141. this.$forceUpdate();
  6142. })
  6143. .catch((err) => { });
  6144. },
  6145. clearChoose() {
  6146. this.clearArray.splice(this.templateC.id, 1);
  6147. this.dialogVisible2 = false;
  6148. },
  6149. clearAttText() {
  6150. this.AttText = {
  6151. title: "",
  6152. text: "",
  6153. };
  6154. this.dialogVisible6 = false;
  6155. },
  6156. clearLine() {
  6157. this.line = "";
  6158. this.dialogVisible7 = false;
  6159. },
  6160. openTemplate() {
  6161. this.ctJson = {}
  6162. this.templateDialog = true
  6163. },
  6164. checkctJson(json) {
  6165. if (this.ctJson.id == json.id) {
  6166. this.ctJson = {}
  6167. } else {
  6168. this.ctJson = json
  6169. }
  6170. },
  6171. addTemplate(res) {
  6172. let _this = this;
  6173. let _res = []
  6174. if (!Object.keys(res).length) {
  6175. this.$message.error("请选择模板")
  6176. retrun;
  6177. } else {
  6178. _res = JSON.parse(res.chapters)
  6179. }
  6180. _this
  6181. .$confirm("确定选择项目模板吗?此操作将删除所有已编辑项目内容。", "提示", {
  6182. confirmButtonText: "确定",
  6183. cancelButtonText: "取消",
  6184. type: "warning",
  6185. })
  6186. .then(() => {
  6187. _this.unitJson = _res;
  6188. _this.updateWork();
  6189. // _this.steps++;
  6190. _this.templateDialog = false
  6191. setTimeout(() => {
  6192. this.checkEva(this.checkId);
  6193. setTimeout(() => {
  6194. this.checkEva(this.checkId);
  6195. }, 100);
  6196. }, 1000);
  6197. })
  6198. .catch(() => {
  6199. return;
  6200. });
  6201. },
  6202. checkTemplate(res) {
  6203. let _this = this;
  6204. _this
  6205. .$confirm("确定选择此模板吗?", "提示", {
  6206. confirmButtonText: "确定",
  6207. cancelButtonText: "取消",
  6208. type: "warning",
  6209. })
  6210. .then(() => {
  6211. _this.unitJson = JSON.parse(res.chapters);
  6212. _this.steps++;
  6213. setTimeout(() => {
  6214. this.checkEva(this.checkId);
  6215. }, 1000);
  6216. })
  6217. .catch(() => {
  6218. return;
  6219. });
  6220. },
  6221. checkTemplate1(w) {
  6222. this.steps++;
  6223. },
  6224. checkTemplate2() {
  6225. let _this = this;
  6226. _this
  6227. .$confirm("确定选择空模板吗?", "提示", {
  6228. confirmButtonText: "确定",
  6229. cancelButtonText: "取消",
  6230. type: "warning",
  6231. })
  6232. .then(() => {
  6233. _this.unitJson = [
  6234. {
  6235. dyName: "", //单元标题
  6236. chapterInfo: [
  6237. {
  6238. isread: false,
  6239. chapterid: this.guid(),
  6240. title: "",
  6241. courseName: "",
  6242. taskJson: [
  6243. {
  6244. task: "",
  6245. people: "",
  6246. time: "",
  6247. taskDetail: "",
  6248. chapterData: [],
  6249. toolText: "",
  6250. toolChoose: [
  6251. {
  6252. tool: [],
  6253. toolDetail: "",
  6254. toolType: 0,
  6255. askCount: 1,
  6256. askTitle: "",
  6257. askJson: [
  6258. {
  6259. askstitle: "",
  6260. askItem: 1,
  6261. checkList: [],
  6262. },
  6263. ],
  6264. },
  6265. ],
  6266. toolArray: [],
  6267. isShowTools: false,
  6268. askCount: 1,
  6269. isFold: 0,
  6270. askTitle: "",
  6271. askJson: [
  6272. {
  6273. askstitle: "",
  6274. askItem: 1,
  6275. checkList: [],
  6276. },
  6277. ],
  6278. checkJson: [
  6279. {
  6280. checkCount: [],
  6281. checkPerent: [],
  6282. },
  6283. ],
  6284. homeworkList: [],
  6285. },
  6286. ],
  6287. itemCount: 1,
  6288. fileList1: [],
  6289. video: [],
  6290. testData: [],
  6291. pData: [],
  6292. templateArray: [],
  6293. },
  6294. ],
  6295. },
  6296. ];
  6297. this.steps++;
  6298. })
  6299. .catch(() => {
  6300. return;
  6301. });
  6302. },
  6303. wordNext() {
  6304. this.dialogVisible2 = false;
  6305. },
  6306. isAddOrUpdateAttText() {
  6307. if (this.AttTextType == 0) {
  6308. this.addAttTextMessage();
  6309. } else {
  6310. this.updateAttText();
  6311. }
  6312. },
  6313. isAddOrUpdateLine() {
  6314. if (!this.lineTitle) {
  6315. this.$message.error("请填写链接标题");
  6316. return;
  6317. }
  6318. if (this.lineType == 0) {
  6319. this.addLine();
  6320. } else {
  6321. this.updateLine();
  6322. }
  6323. },
  6324. addAttTextMessage() {
  6325. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6326. // this.taskCount
  6327. // ].chapterData.push({
  6328. // name: this.AttText.title,
  6329. // url: this.AttText.text,
  6330. // type: 6,
  6331. // });
  6332. // this.imgChange1(null, null, 6, this.taskCount);
  6333. // this.dialogVisible6 = false;
  6334. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].toolArray.push({
  6335. // tool: 51,
  6336. // toolDetail: "",
  6337. // toolPhoto: "",
  6338. // toolEdit: false,
  6339. // toolId: this.guid(),
  6340. // toolData: {
  6341. // name: this.AttText.title,
  6342. // url: this.AttText.text,
  6343. // type: 6,
  6344. // }
  6345. // });
  6346. this.sourcesData.push({
  6347. name: this.AttText.title,
  6348. url: this.AttText.text,
  6349. type: 6,
  6350. });
  6351. this.dialogVisible6 = false;
  6352. // this.dialogVisibleSource = false;
  6353. },
  6354. selectAttText(itemTaskIndex, i) {
  6355. this.AttText.title =
  6356. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6357. itemTaskIndex
  6358. ].chapterData[i].name;
  6359. this.AttText.text =
  6360. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6361. itemTaskIndex
  6362. ].chapterData[i].url;
  6363. this.taskCount = itemTaskIndex;
  6364. this.AttTextIndex = i;
  6365. this.AttTextType = 1;
  6366. this.dialogVisible6 = true;
  6367. },
  6368. selectAttText2(i) {
  6369. this.AttText.title = this.sourcesData[i].name;
  6370. this.AttText.text = this.sourcesData[i].url;
  6371. this.AttTextIndex = i;
  6372. this.AttTextType = 1;
  6373. this.dialogVisible6 = true;
  6374. },
  6375. updateAttText() {
  6376. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6377. // this.taskCount
  6378. // ].chapterData[this.AttTextIndex].name = this.AttText.title;
  6379. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6380. // this.taskCount
  6381. // ].chapterData[this.AttTextIndex].url = this.AttText.text;
  6382. this.sourcesData[this.AttTextIndex].name = this.AttText.title;
  6383. this.sourcesData[this.AttTextIndex].url = this.AttText.text;
  6384. this.dialogVisible6 = false;
  6385. },
  6386. addLine() {
  6387. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6388. // this.lineCount
  6389. // ].chapterData.push({
  6390. // name: "链接",
  6391. // title: this.lineTitle,
  6392. // url: this.line,
  6393. // type: 8,
  6394. // });
  6395. // this.imgChange1(null, null, 8, this.lineCount);
  6396. // this.dialogVisible7 = false;
  6397. let src = "";
  6398. if (
  6399. this.line.indexOf("https://") == -1 &&
  6400. this.line.indexOf("http://") == -1
  6401. ) {
  6402. src = "https://" + this.line;
  6403. } else {
  6404. src = this.line;
  6405. }
  6406. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].toolArray.push({
  6407. // tool: 51,
  6408. // toolDetail: "",
  6409. // toolPhoto: "",
  6410. // toolEdit: false,
  6411. // toolId: this.guid(),
  6412. // toolData: {
  6413. // name: "链接",
  6414. // // title: this.lineTitle,
  6415. // url: this.line,
  6416. // src: src,
  6417. // type: 8,
  6418. // }
  6419. // });
  6420. this.sourcesData.push({
  6421. name: "链接",
  6422. title: this.lineTitle,
  6423. url: this.line,
  6424. src: src,
  6425. type: 8,
  6426. });
  6427. this.dialogVisible7 = false;
  6428. // this.dialogVisibleSource = false;
  6429. },
  6430. selectLine(itemTaskIndex, i) {
  6431. this.line =
  6432. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6433. itemTaskIndex
  6434. ].chapterData[i].url;
  6435. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6436. itemTaskIndex
  6437. ].chapterData[i].title
  6438. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6439. .chapterData[i].title
  6440. : "";
  6441. this.taskCount = itemTaskIndex;
  6442. this.lineCount = i;
  6443. this.lineType = 1;
  6444. this.dialogVisible7 = true;
  6445. },
  6446. selectLine2(i) {
  6447. this.line = this.sourcesData[i].url;
  6448. this.lineTitle = this.sourcesData[i].title
  6449. ? this.sourcesData[i].title
  6450. : "";
  6451. this.lineCount = i;
  6452. this.lineType = 1;
  6453. this.dialogVisible7 = true;
  6454. },
  6455. updateLine() {
  6456. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6457. // this.taskCount
  6458. // ].chapterData[this.lineCount].url = this.line;
  6459. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6460. // this.taskCount
  6461. // ].chapterData[this.lineCount].title = this.lineTitle;
  6462. if (!this.lineTitle) {
  6463. this.$message.error("请填写链接标题");
  6464. return;
  6465. }
  6466. this.sourcesData[this.lineCount].url = this.line;
  6467. this.sourcesData[this.lineCount].title = this.lineTitle;
  6468. this.dialogVisible7 = false;
  6469. },
  6470. addPP() {
  6471. this.dialogVisible3 = true;
  6472. },
  6473. goTo(path) {
  6474. this.$router.push(path);
  6475. },
  6476. openTools(itemTaskIndex, i, toolIndex) {
  6477. this.toolIndex = toolIndex;
  6478. this.taskCount = itemTaskIndex;
  6479. if (i == 4) {
  6480. if (toolIndex == null) {
  6481. var a =
  6482. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6483. .chapterData;
  6484. for (var i = 0; i < a.length; i++) {
  6485. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  6486. this.askJson =
  6487. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6488. itemTaskIndex
  6489. ].chapterData[i].askJson;
  6490. }
  6491. }
  6492. } else {
  6493. this.askJson = JSON.parse(
  6494. JSON.stringify(
  6495. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6496. itemTaskIndex
  6497. ].toolChoose[toolIndex]
  6498. )
  6499. );
  6500. }
  6501. this.dialogVisible5 = true;
  6502. } else if (i == 45) {
  6503. if (
  6504. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6505. .toolChoose[toolIndex].testJson
  6506. ) {
  6507. this.testJson = JSON.parse(
  6508. JSON.stringify(
  6509. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6510. itemTaskIndex
  6511. ].toolChoose[toolIndex].testJson
  6512. )
  6513. );
  6514. } else {
  6515. var testJson = {
  6516. testCount: 1,
  6517. testTitle: "",
  6518. testJson: [
  6519. {
  6520. teststitle: "",
  6521. testItem: 1,
  6522. checkList: [],
  6523. answer: [],
  6524. type: "1",
  6525. },
  6526. ],
  6527. };
  6528. this.testJson = testJson;
  6529. }
  6530. this.dialogVisibleChoice = true;
  6531. } else if (i == 47) {
  6532. if (
  6533. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6534. .toolChoose[toolIndex].sentenceList
  6535. ) {
  6536. this.sentenceList = JSON.parse(
  6537. JSON.stringify(
  6538. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6539. itemTaskIndex
  6540. ].toolChoose[toolIndex].sentenceList
  6541. )
  6542. );
  6543. } else {
  6544. var sentenceList = [
  6545. {
  6546. sentenceTitle: "",
  6547. addSentence: [],
  6548. rightAnswer: [],
  6549. },
  6550. ];
  6551. this.sentenceList = sentenceList;
  6552. }
  6553. this.dialogVisibleSentence = true;
  6554. } else if (i == 48) {
  6555. if (
  6556. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6557. .toolChoose[toolIndex].tableJson
  6558. ) {
  6559. this.tableJson = JSON.parse(
  6560. JSON.stringify(
  6561. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6562. itemTaskIndex
  6563. ].toolChoose[toolIndex].tableJson
  6564. )
  6565. );
  6566. } else {
  6567. var tableJson = {
  6568. text: "",
  6569. };
  6570. this.tableJson = tableJson;
  6571. }
  6572. this.dialogVisibleTable = true;
  6573. } else if (i == 49) {
  6574. if (
  6575. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6576. .toolChoose[toolIndex].groupJson
  6577. ) {
  6578. this.groupJson = JSON.parse(
  6579. JSON.stringify(
  6580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6581. itemTaskIndex
  6582. ].toolChoose[toolIndex].groupJson
  6583. )
  6584. );
  6585. } else {
  6586. var groupJson = {
  6587. group: [
  6588. {
  6589. name: "第1组",
  6590. },
  6591. ],
  6592. number: undefined,
  6593. islock: 1,
  6594. };
  6595. this.groupJson = groupJson;
  6596. }
  6597. this.dialogVisibleGroup = true;
  6598. } else if (i == 15) {
  6599. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6600. itemTaskIndex
  6601. ].toolChoose[toolIndex].answerQ
  6602. ? JSON.parse(
  6603. JSON.stringify(
  6604. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6605. itemTaskIndex
  6606. ].toolChoose[toolIndex].answerQ
  6607. )
  6608. )
  6609. : "";
  6610. this.dialogVisible8 = true;
  6611. } else if (i == 40) {
  6612. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6613. itemTaskIndex
  6614. ].toolChoose[toolIndex].rateJson
  6615. ? JSON.parse(
  6616. JSON.stringify(
  6617. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6618. itemTaskIndex
  6619. ].toolChoose[toolIndex].rateJson
  6620. )
  6621. )
  6622. : [
  6623. {
  6624. detail: "",
  6625. score: 5,
  6626. value: "",
  6627. },
  6628. ]; //{detail:"",score:5,value:""}
  6629. this.selectSteps = 1;
  6630. this.dialogVisibleRate = true;
  6631. } else if (i == 42) {
  6632. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6633. itemTaskIndex
  6634. ].toolChoose[toolIndex].answerQ
  6635. ? JSON.parse(
  6636. JSON.stringify(
  6637. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6638. itemTaskIndex
  6639. ].toolChoose[toolIndex].answerQ
  6640. )
  6641. )
  6642. : "";
  6643. this.dialogVisibleMp3 = true;
  6644. } else if (i == 41) {
  6645. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6646. itemTaskIndex
  6647. ].toolChoose[toolIndex].selectJson
  6648. ? JSON.parse(
  6649. JSON.stringify(
  6650. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6651. itemTaskIndex
  6652. ].toolChoose[toolIndex].selectJson
  6653. )
  6654. )
  6655. : {
  6656. url: "",
  6657. select: [],
  6658. answer: [],
  6659. };
  6660. this.selectSteps = 1;
  6661. this.dialogVisibleSelect = true;
  6662. }
  6663. },
  6664. chapAddTools(i) {
  6665. if (this.chapTools[0].tools.length == 0) {
  6666. this.chapTools[0].tools.push(i);
  6667. } else {
  6668. if (this.chapTools[0].tools.indexOf(i) != -1) {
  6669. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  6670. } else {
  6671. this.chapTools[0].tools.push(i);
  6672. }
  6673. }
  6674. this.$forceUpdate();
  6675. },
  6676. addChaptersDataTools() {
  6677. if (this.chapTools[0].tools.indexOf(4) != -1) {
  6678. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6679. this.chapCount
  6680. ].chapterData.push({
  6681. name: this.chapTools[0].toolDetail,
  6682. url: this.chapTools[0].tools,
  6683. type: 7,
  6684. askJson: this.askJson,
  6685. });
  6686. } else {
  6687. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6688. this.chapCount
  6689. ].chapterData.push({
  6690. name: this.chapTools[0].toolDetail,
  6691. url: this.chapTools[0].tools,
  6692. type: 7,
  6693. });
  6694. }
  6695. this.imgChange1(null, null, 7, this.chapCount);
  6696. this.dialogVisible4 = false;
  6697. },
  6698. addTools(i, itemTaskIndex, toolIndex) {
  6699. // if (
  6700. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6701. // .toolChoose[toolIndex].tool.length == 0
  6702. // ) {
  6703. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6704. // itemTaskIndex
  6705. // ].toolChoose[toolIndex].tool.push(i);
  6706. // } else {
  6707. // if (
  6708. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6709. // itemTaskIndex
  6710. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6711. // ) {
  6712. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6713. // itemTaskIndex
  6714. // ].toolChoose[toolIndex].tool.splice(
  6715. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6716. // itemTaskIndex
  6717. // ].toolChoose[toolIndex].tool.indexOf(i),
  6718. // 1
  6719. // );
  6720. // } else {
  6721. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6722. // itemTaskIndex
  6723. // ].toolChoose[toolIndex].tool.push(i);
  6724. // }
  6725. // console.log(
  6726. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6727. // .toolChoose[toolIndex].tool
  6728. // );
  6729. // }
  6730. if (i == 4) {
  6731. if (
  6732. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6733. .toolChoose[toolIndex].askJson.askTitle == "" ||
  6734. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6735. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  6736. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6737. .toolChoose[toolIndex].askJson[0].checkList < 2
  6738. ) {
  6739. this.openTools(itemTaskIndex, 4, toolIndex);
  6740. // this.$message({
  6741. // message: "请填写完整问卷内容",
  6742. // type: "error",
  6743. // });
  6744. return;
  6745. }
  6746. }
  6747. if (i == 45) {
  6748. if (
  6749. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6750. .toolChoose[toolIndex].testJson ||
  6751. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6752. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  6753. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6754. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  6755. ) {
  6756. this.openTools(itemTaskIndex, 45, toolIndex);
  6757. // this.$message({
  6758. // message: "请填写完整问卷内容",
  6759. // type: "error",
  6760. // });
  6761. return;
  6762. }
  6763. }
  6764. if (i == 47) {
  6765. if (
  6766. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6767. .toolChoose[toolIndex].sentenceList ||
  6768. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6769. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  6770. ) {
  6771. this.openTools(itemTaskIndex, 47, toolIndex);
  6772. return;
  6773. }
  6774. }
  6775. if (i == 48) {
  6776. if (
  6777. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6778. .toolChoose[toolIndex].tableJson
  6779. ) {
  6780. this.openTools(itemTaskIndex, 48, toolIndex);
  6781. return;
  6782. }
  6783. }
  6784. if (i == 49) {
  6785. if (
  6786. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6787. .toolChoose[toolIndex].groupJson
  6788. ) {
  6789. this.openTools(itemTaskIndex, 49, toolIndex);
  6790. return;
  6791. }
  6792. }
  6793. if (i == 15) {
  6794. if (
  6795. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6796. .toolChoose[toolIndex].answerQ ||
  6797. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6798. .toolChoose[toolIndex].answerQ == ""
  6799. ) {
  6800. this.openTools(itemTaskIndex, 15, toolIndex);
  6801. // this.$message({
  6802. // message: "请填写问答内容",
  6803. // type: "error",
  6804. // });
  6805. return;
  6806. }
  6807. }
  6808. if (i == 40) {
  6809. if (
  6810. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6811. .toolChoose[toolIndex].rateJson ||
  6812. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6813. .toolChoose[toolIndex].rateJson.length
  6814. ) {
  6815. this.openTools(itemTaskIndex, 40, toolIndex);
  6816. return;
  6817. }
  6818. }
  6819. if (i == 41) {
  6820. if (
  6821. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6822. .toolChoose[toolIndex].selectJson ||
  6823. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6824. .toolChoose[toolIndex].selectJson.url == "" ||
  6825. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6826. .toolChoose[toolIndex].selectJson.select.length ||
  6827. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6828. .toolChoose[toolIndex].selectJson.answer.length
  6829. ) {
  6830. this.openTools(itemTaskIndex, 41, toolIndex);
  6831. return;
  6832. }
  6833. }
  6834. if (i == 42) {
  6835. if (
  6836. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6837. .toolChoose[toolIndex].answerQ ||
  6838. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6839. .toolChoose[toolIndex].answerQ == ""
  6840. ) {
  6841. this.openTools(itemTaskIndex, 42, toolIndex);
  6842. return;
  6843. }
  6844. }
  6845. if (
  6846. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6847. .toolChoose[toolIndex].tool.length > 0
  6848. ) {
  6849. if (
  6850. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6851. itemTaskIndex
  6852. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6853. ) {
  6854. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6855. itemTaskIndex
  6856. ].toolChoose[toolIndex].tool.splice(
  6857. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6858. itemTaskIndex
  6859. ].toolChoose[toolIndex].tool.indexOf(i),
  6860. 1
  6861. );
  6862. } else {
  6863. // this.$message({
  6864. // message: "每个工具只能添加一个",
  6865. // type: "error",
  6866. // });
  6867. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6868. itemTaskIndex
  6869. ].toolChoose[toolIndex].tool = [];
  6870. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6871. itemTaskIndex
  6872. ].toolChoose[toolIndex].tool.push(i);
  6873. }
  6874. } else {
  6875. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6876. itemTaskIndex
  6877. ].toolChoose[toolIndex].tool.push(i);
  6878. }
  6879. this.$forceUpdate();
  6880. },
  6881. addAskList() {
  6882. this.askJson.askJson.push({
  6883. askstitle: "",
  6884. askItem: 1,
  6885. checkList: [],
  6886. });
  6887. this.askJson.askCount++;
  6888. },
  6889. addTestList() {
  6890. this.testJson.testJson.push({
  6891. teststitle: "",
  6892. testItem: 1,
  6893. checkList: [],
  6894. answer: [],
  6895. type: "1",
  6896. });
  6897. this.testJson.testCount++;
  6898. },
  6899. deleteAskList(index) {
  6900. this.askJson.askJson.splice(index, 1);
  6901. this.askJson.askCount--;
  6902. },
  6903. deleteTestList(index) {
  6904. this.testJson.testJson.splice(index, 1);
  6905. this.testJson.testCount--;
  6906. },
  6907. addcheckList(json) {
  6908. json.checkList.length++;
  6909. json.askItem++;
  6910. },
  6911. deletecheckList(json) {
  6912. json.checkList.length--;
  6913. json.askItem--;
  6914. },
  6915. addTcheckList(json) {
  6916. json.checkList.length++;
  6917. json.testItem++;
  6918. },
  6919. deleteTcheckList(json) {
  6920. json.checkList.length--;
  6921. json.testItem--;
  6922. },
  6923. checkTestType(type, json) {
  6924. json.type = type;
  6925. json.answer = [];
  6926. },
  6927. addSelectList(json) {
  6928. json.select.push("");
  6929. json.answer.push("");
  6930. },
  6931. deleteSelectList(json) {
  6932. // json.select.length--;
  6933. // json.answer.length--;
  6934. json.select.splice(json.select.length - 1, 1);
  6935. json.answer.splice(json.answer.length - 1, 1);
  6936. },
  6937. addAsk() {
  6938. if (this.askJson.askTitle === "") {
  6939. this.$message.error("标题不能为空!");
  6940. return;
  6941. }
  6942. var aj = this.askJson.askJson;
  6943. var b = 1;
  6944. for (var i = 0; i < aj.length; i++) {
  6945. if (aj[i].askstitle === "") {
  6946. var a = 1;
  6947. for (let index = 0; index < aj[i].askItem; index++) {
  6948. const element = aj[i].checkList[index]
  6949. ? aj[i].checkList[index]
  6950. : "";
  6951. if (element != "") {
  6952. b++;
  6953. this.$message.error(`请将题目${i + 1}填写完整。`);
  6954. return;
  6955. } else {
  6956. a++;
  6957. }
  6958. }
  6959. if (b == 1) {
  6960. this.$message.error("至少填写一个问题");
  6961. return;
  6962. }
  6963. } else if (aj[i].askstitle != "") {
  6964. for (let index = 0; index < aj[i].askItem; index++) {
  6965. const element = aj[i].checkList[index]
  6966. ? aj[i].checkList[index]
  6967. : "";
  6968. var index = 0;
  6969. for (var z = 0; z < aj[i].checkList.length; z++) {
  6970. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6971. if (checkC != "") {
  6972. index++;
  6973. } else {
  6974. this.$message.error(`题目${i + 1}选项不能为空!`);
  6975. return;
  6976. }
  6977. }
  6978. b++;
  6979. if (index < 2) {
  6980. this.$message.error("填写了的题目,选项至少要有两项!");
  6981. return;
  6982. }
  6983. }
  6984. }
  6985. }
  6986. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  6987. var elc = el.checkList.filter((element) => {
  6988. return element != "";
  6989. });
  6990. return el.askstitle != "" && elc.length != 0;
  6991. });
  6992. this.dialogVisibleTool = false;
  6993. this.dialogVisibleVote = false;
  6994. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6995. this.taskCount
  6996. ].toolArray.push({
  6997. tool: 56,
  6998. toolDetail: "",
  6999. toolPhoto: "",
  7000. toolEdit: false,
  7001. toolId: this.guid(),
  7002. askJson: JSON.parse(JSON.stringify(this.askJson)),
  7003. });
  7004. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  7005. },
  7006. addTest() {
  7007. // if (this.testJson.testTitle === "") {
  7008. // this.$message.error("标题不能为空!");
  7009. // return;
  7010. // }
  7011. var aj = this.testJson.testJson;
  7012. var b = 1;
  7013. for (var i = 0; i < aj.length; i++) {
  7014. if (aj[i].teststitle === "") {
  7015. var a = 1;
  7016. for (let index = 0; index < aj[i].testItem; index++) {
  7017. const element = aj[i].checkList[index]
  7018. ? aj[i].checkList[index]
  7019. : "";
  7020. if (element != "") {
  7021. b++;
  7022. this.$message.error(`请将题目${i + 1}填写完整。`);
  7023. return;
  7024. } else {
  7025. a++;
  7026. }
  7027. }
  7028. if (b == 1) {
  7029. this.$message.error("至少填写一个问题");
  7030. return;
  7031. }
  7032. } else if (aj[i].teststitle != "") {
  7033. for (let index = 0; index < aj[i].testItem; index++) {
  7034. const element = aj[i].checkList[index]
  7035. ? aj[i].checkList[index]
  7036. : "";
  7037. var index = 0;
  7038. for (var z = 0; z < aj[i].checkList.length; z++) {
  7039. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7040. if (checkC != "") {
  7041. index++;
  7042. } else {
  7043. this.$message.error(`题目${i + 1}选项不能为空!`);
  7044. return;
  7045. }
  7046. }
  7047. b++;
  7048. if (index < 2) {
  7049. this.$message.error("填写了的题目,选项至少要有两项!");
  7050. return;
  7051. }
  7052. if (
  7053. (aj[i].type == "2" && !aj[i].answer.length) ||
  7054. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  7055. ) {
  7056. this.$message.error("有题目未选择答案请选择答案");
  7057. return;
  7058. }
  7059. }
  7060. }
  7061. }
  7062. this.testJson.testJson = this.testJson.testJson.filter((el) => {
  7063. var elc = el.checkList.filter((element) => {
  7064. return element != "";
  7065. });
  7066. return el.teststitle != "" && elc.length != 0;
  7067. });
  7068. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7069. this.taskCount
  7070. ].toolChoose[this.toolIndex].testJson = this.testJson;
  7071. this.dialogVisibleChoice = false;
  7072. if (
  7073. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7074. .toolChoose[this.toolIndex].tool != 45
  7075. ) {
  7076. this.addTools(45, this.taskCount, this.toolIndex);
  7077. }
  7078. },
  7079. addAnswer() {
  7080. if (this.answerQ == "") {
  7081. this.$message.error("请输入您想要问的问题");
  7082. return;
  7083. }
  7084. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7085. // this.taskCount
  7086. // ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7087. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7088. this.taskCount
  7089. ].toolArray.push({
  7090. tool: 15,
  7091. toolDetail: "",
  7092. toolPhoto: "",
  7093. toolEdit: false,
  7094. toolId: this.guid(),
  7095. answerQ: this.answerQ,
  7096. });
  7097. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  7098. this.$forceUpdate();
  7099. this.dialogVisibleTool = false;
  7100. this.dialogVisible8 = false;
  7101. // if (
  7102. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7103. // .toolChoose[this.toolIndex].tool != 15
  7104. // ) {
  7105. // this.addTools(15, this.taskCount, this.toolIndex);
  7106. // }
  7107. },
  7108. addText() {
  7109. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7110. this.$message.error("请填写信息!");
  7111. return;
  7112. }
  7113. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7114. this.taskCount
  7115. ].toolArray.push({
  7116. tool: 52,
  7117. toolDetail: "",
  7118. toolPhoto: "",
  7119. toolEdit: false,
  7120. toolId: this.guid(),
  7121. text: this.tableJson.text,
  7122. });
  7123. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  7124. this.$forceUpdate();
  7125. this.dialogVisibleTool = false;
  7126. this.dialogVisibleText = false;
  7127. setTimeout(() => {
  7128. // this.openToolFun(52, this.taskCount, this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7129. // this.taskCount
  7130. // ].toolArray.length-1)
  7131. this.toolIndex =
  7132. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7133. .toolArray.length - 1;
  7134. this.addTextJson();
  7135. }, 500);
  7136. // if (
  7137. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7138. // .toolChoose[this.toolIndex].tool != 15
  7139. // ) {
  7140. // this.addTools(15, this.taskCount, this.toolIndex);
  7141. // }
  7142. },
  7143. addTable() {
  7144. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7145. this.$message.error("请填写信息!");
  7146. return;
  7147. }
  7148. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7149. this.taskCount
  7150. ].toolArray.push({
  7151. tool: 48,
  7152. toolDetail: "",
  7153. toolPhoto: "",
  7154. toolEdit: false,
  7155. toolId: this.guid(),
  7156. table: this.tableJson.text,
  7157. });
  7158. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  7159. this.$forceUpdate();
  7160. this.dialogVisibleTool = false;
  7161. this.dialogVisibleTable1 = false;
  7162. setTimeout(() => {
  7163. // this.openToolFun(48, this.taskCount, this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7164. // this.taskCount
  7165. // ].toolArray.length-1)
  7166. this.toolIndex =
  7167. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7168. .toolArray.length - 1;
  7169. this.addTableJson();
  7170. }, 500);
  7171. // if (
  7172. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7173. // .toolChoose[this.toolIndex].tool != 15
  7174. // ) {
  7175. // this.addTools(15, this.taskCount, this.toolIndex);
  7176. // }
  7177. },
  7178. addMp3Answer() {
  7179. if (this.answerQ == "") {
  7180. this.$message.error("请输入您想要回答的问题");
  7181. return;
  7182. }
  7183. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7184. this.taskCount
  7185. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7186. this.dialogVisibleMp3 = false;
  7187. },
  7188. addRateAnswer() {
  7189. var a = 1;
  7190. for (var i = 0; i < this.rateJson.length; i++) {
  7191. if (this.rateJson[i].value == "") {
  7192. a = 2;
  7193. break;
  7194. }
  7195. }
  7196. if (a == 2) {
  7197. this.$message.error("请把评价信息填写完整");
  7198. return;
  7199. }
  7200. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7201. this.taskCount
  7202. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  7203. this.dialogVisibleRate = false;
  7204. if (
  7205. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7206. .toolChoose[this.toolIndex].tool != 40
  7207. ) {
  7208. this.addTools(40, this.taskCount, this.toolIndex);
  7209. }
  7210. },
  7211. addSelectAnswer() {
  7212. if (this.selectJson.url == "") {
  7213. this.$message.error("请上传题目");
  7214. return;
  7215. }
  7216. if (!this.selectJson.select.length) {
  7217. this.$message.error("请添加选项");
  7218. return;
  7219. }
  7220. if (!this.selectJson.answer.length) {
  7221. this.$message.error("请设置答案");
  7222. return;
  7223. }
  7224. var a = 1;
  7225. for (var i = 0; i < this.selectJson.answer.length; i++) {
  7226. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  7227. a = 2;
  7228. }
  7229. }
  7230. if (a == 2) {
  7231. this.$message.error("请设置答案");
  7232. return;
  7233. }
  7234. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7235. this.taskCount
  7236. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  7237. this.dialogVisibleSelect = false;
  7238. if (
  7239. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7240. .toolChoose[this.toolIndex].tool != 41
  7241. ) {
  7242. this.addTools(41, this.taskCount, this.toolIndex);
  7243. }
  7244. },
  7245. nextSelectSteps() {
  7246. if (this.selectJson.url == "") {
  7247. this.$message.error("请上传题目");
  7248. return;
  7249. }
  7250. if (!this.selectJson.select.length) {
  7251. this.$message.error("请添加选项");
  7252. return;
  7253. }
  7254. var a = 1;
  7255. for (var i = 0; i < this.selectJson.select.length; i++) {
  7256. if (!this.selectJson.select[i]) {
  7257. a = 2;
  7258. }
  7259. }
  7260. if (a == 2) {
  7261. this.$message.error("添加的选项不能为空");
  7262. return;
  7263. }
  7264. this.selectSteps++;
  7265. },
  7266. selectCourseDetail() {
  7267. if (this.cid == "" || this.cid == undefined) {
  7268. console.log("这是新增项目");
  7269. this.selectAllType();
  7270. this.cidttt = 0;
  7271. } else {
  7272. this.cidType = 1;
  7273. let params = {
  7274. cid: this.cid,
  7275. };
  7276. this.ajax
  7277. .get(this.$store.state.api + "select_student_course_detail2", params)
  7278. .then((res) => {
  7279. this.loading = true;
  7280. this.unitJson = JSON.parse(res.data[0][0].chapters);
  7281. for (var j in this.unitJson) {
  7282. for (var i in this.unitJson[j].chapterInfo) {
  7283. this.unitJson[j].chapterInfo[i].taskJson[
  7284. this.taskCount
  7285. ].toolChoose = this.unitJson[j].chapterInfo[i].taskJson[
  7286. this.taskCount
  7287. ].toolChoose
  7288. ? this.unitJson[j].chapterInfo[i].taskJson[this.taskCount]
  7289. .toolChoose
  7290. : [];
  7291. for (var k in this.unitJson[j].chapterInfo[i].taskJson) {
  7292. let _chapterData = [];
  7293. for (var c in this.unitJson[j].chapterInfo[i].taskJson[k]
  7294. .chapterData) {
  7295. if (
  7296. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[c]
  7297. ) {
  7298. _chapterData.push(
  7299. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[
  7300. c
  7301. ]
  7302. );
  7303. }
  7304. }
  7305. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData =
  7306. _chapterData;
  7307. let _task = this.unitJson[j].chapterInfo[i].taskJson[k].toolArray
  7308. for (var _tool = 0; _tool < _task.length; _tool++) {
  7309. delete _task[_tool].proVisible
  7310. }
  7311. }
  7312. }
  7313. }
  7314. this.courseName = res.data[0][0].title;
  7315. this.courseText = res.data[0][0].brief;
  7316. this.evalua = res.data[0][0].evaId;
  7317. this.cover = JSON.parse(res.data[0][0].cover);
  7318. this.noneBtnImg = this.cover.length >= 1;
  7319. // this.checkboxList =
  7320. // res.data[0][0].course_student.length > 0
  7321. // ? JSON.parse(res.data[0][0].course_student)
  7322. // : [];
  7323. this.checkboxList2 = res.data[0][0].juri
  7324. ? res.data[0][0].juri.split(",")
  7325. : [];
  7326. this.checkboxList3 = res.data[0][0].course_teacher
  7327. ? res.data[0][0].course_teacher.split(",")
  7328. : [];
  7329. this.checkboxListPeople = res.data[0][0].course_teacher
  7330. ? res.data[0][0].course_teacher.split(",")
  7331. : [];
  7332. // this.isTeacherSee =
  7333. // res.data[0][0].is_teacher_look == 0 ? true : false;
  7334. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  7335. this.myWord = res.data[0][0].template;
  7336. this.templateC.id = "123";
  7337. this.courseUserid = res.data[0][0].userid;
  7338. this.nbOrder = res.data[0][0].ordernumber;
  7339. if (res.data[1].length) {
  7340. this.courseTypeId = [];
  7341. for (var i = 0; i < res.data[1].length; i++) {
  7342. this.courseTypeId.push(res.data[1][i].typeid);
  7343. }
  7344. }
  7345. console.log(this.courseTypeId);
  7346. // if (this.timer) clearInterval(this.timer);
  7347. if (this.timer) clearTimeout(this.timer);
  7348. this.timer = null;
  7349. // this.timer = setInterval(() => {
  7350. this.seleteCourseUpdate();
  7351. this.setMan();
  7352. this.selectAllType();
  7353. // }, 5000);
  7354. this.$forceUpdate();
  7355. setTimeout(() => {
  7356. this.checkEva(this.evalua);
  7357. }, 0);
  7358. })
  7359. .catch((err) => {
  7360. console.error(err);
  7361. });
  7362. }
  7363. },
  7364. seleteCourseUpdate() {
  7365. let params = {
  7366. cid: this.cid,
  7367. };
  7368. this.ajax
  7369. .get(this.$store.state.api + "select_student_course_detail", params)
  7370. .then((res) => {
  7371. console.log(res.data[2]);
  7372. let unitJson = this.unitJson;
  7373. let works = res.data[2];
  7374. for (var i = 0; i < unitJson.length; i++) {
  7375. let task = unitJson[i].chapterInfo[0].taskJson;
  7376. for (var j = 0; j < task.length; j++) {
  7377. var tool = task[j].toolArray;
  7378. for (var z = 0; z < tool.length; z++) {
  7379. let _tool = tool[z];
  7380. _tool.toolPhoto = [];
  7381. _tool.people = [];
  7382. this.checkJson[z] = [];
  7383. let checkPeople = 0;
  7384. for (var k = 0; k < works.length; k++) {
  7385. let _work = works[k];
  7386. if (
  7387. _work.stage == i &&
  7388. _work.task == j &&
  7389. _work.tool == z &&
  7390. _work.atool == _tool.tool
  7391. ) {
  7392. if (_tool.tool == 48 || _tool.tool == 52) {
  7393. _tool.toolPhoto[0] = _work;
  7394. if (_tool.people.indexOf(_work.username) == -1) {
  7395. _tool.people.push(_work.username);
  7396. }
  7397. } else {
  7398. _tool.toolPhoto.push(_work);
  7399. }
  7400. if (_tool.tool == 56) {
  7401. checkPeople++;
  7402. var checkL = JSON.parse(_work.content);
  7403. for (var kz = 0; kz < checkL.length; kz++) {
  7404. if (!this.checkJson[z][kz]) {
  7405. this.checkJson[z].push({
  7406. checkCount: [],
  7407. checkPerson: [],
  7408. rightPerson: [],
  7409. });
  7410. }
  7411. if (!this.checkJson[z][kz].checkCount.length) {
  7412. this.checkJson[z][kz].checkCount = [];
  7413. let _askItemCount = _tool.askJson.askJson[kz].askItem;
  7414. for (var aic = 0; aic < _askItemCount; aic++) {
  7415. this.checkJson[z][kz].checkCount.push(0);
  7416. }
  7417. }
  7418. this.checkJson[z][kz].checkPerson[parseInt(checkL[kz])]
  7419. ? this.checkJson[z][kz].checkPerson[
  7420. parseInt(checkL[kz])
  7421. ].push(_work.username)
  7422. : (this.checkJson[z][kz].checkPerson[
  7423. parseInt(checkL[kz])
  7424. ] = [_work.username]);
  7425. this.checkJson[z][kz].checkCount[parseInt(checkL[kz])]
  7426. ? this.checkJson[z][kz].checkCount[
  7427. parseInt(checkL[kz])
  7428. ]++
  7429. : (this.checkJson[z][kz].checkCount[
  7430. parseInt(checkL[kz])
  7431. ] = 1);
  7432. }
  7433. }
  7434. }
  7435. }
  7436. for (var kz = 0; kz < this.checkJson[z].length; kz++) {
  7437. this.checkJson[z][kz].checkPerent = [];
  7438. let aaaa = this.checkJson[z][kz];
  7439. console.log(aaaa);
  7440. for (
  7441. var kc = 0;
  7442. kc < this.checkJson[z][kz].checkCount.length;
  7443. kc++
  7444. ) {
  7445. this.checkJson[z][kz].checkPerent.push(
  7446. Math.round(
  7447. (this.checkJson[z][kz].checkCount[kc] / checkPeople) *
  7448. 100
  7449. )
  7450. );
  7451. }
  7452. }
  7453. }
  7454. }
  7455. }
  7456. this.$forceUpdate();
  7457. if (this.cidttt === 1) {
  7458. let unitJson2 = JSON.parse(res.data[0][0].chapters);
  7459. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  7460. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  7461. let _unitJson = [];
  7462. let _chapAarry = [];
  7463. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  7464. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  7465. let index = 1;
  7466. let chapindex;
  7467. if (_unitJson2.length > unitJson2.length) {
  7468. for (let c = 0; c < _unitJson2.length; c++) {
  7469. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  7470. }
  7471. for (let j = 0; j < unitJson2.length; j++) {
  7472. let count = 0;
  7473. for (let k = 0; k < _unitJson2.length; k++) {
  7474. if (
  7475. unitJson2[j].chapterInfo[0].chapterid ==
  7476. _unitJson2[k].chapterInfo[0].chapterid
  7477. ) {
  7478. count++;
  7479. _chapAarry.splice(
  7480. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7481. 1
  7482. );
  7483. _unitJson.push(unitJson2[j]);
  7484. break;
  7485. }
  7486. }
  7487. }
  7488. for (let k = 0; k < _unitJson2.length; k++) {
  7489. if (_unitJson2[k].isUpdate == 1) {
  7490. _chapAarry.splice(
  7491. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7492. 1
  7493. );
  7494. _unitJson.push(_unitJson2[k]);
  7495. }
  7496. }
  7497. console.log(_chapAarry);
  7498. for (let d = 0; d < _unitJson2.length; d++) {
  7499. if (
  7500. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  7501. ) {
  7502. if (_unitIndex == d) {
  7503. index = 2;
  7504. }
  7505. chapindex = d;
  7506. }
  7507. }
  7508. } else {
  7509. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  7510. }
  7511. for (let i = 0; i < unitJson2.length; i++) {
  7512. if (
  7513. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  7514. _unitJson[i].chapterInfo[0].chapterid !=
  7515. unitJson2[i].chapterInfo[0].chapterid
  7516. ) {
  7517. if (i == _unitJson.length - 1) {
  7518. _unitIndex2++;
  7519. }
  7520. _unitJson.splice(i, 0, unitJson2[i]);
  7521. } else if (i > _unitJson.length - 1) {
  7522. _unitJson.push(unitJson2[i]);
  7523. } else if (
  7524. _unitJson[i].chapterInfo[0].chapterid ==
  7525. unitJson2[i].chapterInfo[0].chapterid
  7526. ) {
  7527. _unitJson[i] = unitJson2[i];
  7528. }
  7529. }
  7530. if (_chapAarry.length && index != 2) {
  7531. if (chapindex < _unitIndex) {
  7532. this.isDelete = 2;
  7533. _unitIndex2--;
  7534. } else if (
  7535. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  7536. _unitJson[_unitIndex].chapterInfo[0].chapterid
  7537. ) {
  7538. this.isDelete = 2;
  7539. for (let n = 0; n < _unitJson.length; n++) {
  7540. if (
  7541. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  7542. _unitJson[n].chapterInfo[0].chapterid
  7543. ) {
  7544. _unitIndex2 = n;
  7545. _unitJson[n] = _unitJson2[_unitIndex];
  7546. break;
  7547. }
  7548. }
  7549. }
  7550. } else if (index != 2) {
  7551. _unitJson2[_unitIndex];
  7552. for (
  7553. var ci = 0;
  7554. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  7555. ci++
  7556. ) {
  7557. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  7558. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  7559. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7560. .toolChoose
  7561. : [];
  7562. let _chapterData = [];
  7563. for (
  7564. var c = 0;
  7565. c <
  7566. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  7567. .length;
  7568. c++
  7569. ) {
  7570. if (
  7571. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7572. .chapterData[c]
  7573. ) {
  7574. _chapterData.push(
  7575. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7576. .chapterData[c]
  7577. );
  7578. }
  7579. }
  7580. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  7581. _chapterData;
  7582. }
  7583. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  7584. }
  7585. if (index == 1) {
  7586. if (this.unitJson.length == _unitJson.length) {
  7587. for (var ui = 0; ui < _unitJson.length; ui++) {
  7588. let keys = Object.keys(this.unitJson[ui].chapterInfo[0])
  7589. for (let ki = 0; ki < keys.length; ki++) {
  7590. if (keys[ki] != "taskJson") {
  7591. this.unitJson[ui].chapterInfo[0][keys[ki]] = _unitJson[ui].chapterInfo[0][keys[ki]]
  7592. }
  7593. }
  7594. let _taskJson2 = _unitJson[ui].chapterInfo[0].taskJson
  7595. if (this.unitJson[ui].chapterInfo[0].taskJson.length == _taskJson2.length) {
  7596. for (let ti = 0; ti < _taskJson2.length; ti++) {
  7597. let tkeys = Object.keys(_taskJson2[ti])
  7598. for (let ki = 0; ki < tkeys.length; ki++) {
  7599. if (tkeys[ki] != "toolArray") {
  7600. this.unitJson[ui].chapterInfo[0].taskJson[ti][keys[ki]] = _unitJson[ui].chapterInfo[0].taskJson[ti][tkeys[ki]]
  7601. }
  7602. }
  7603. let _toolArray2 = _taskJson2[ti].toolArray
  7604. if (this.unitJson[ui].chapterInfo[0].taskJson[ti].toolArray.length == _toolArray2.length) {
  7605. for (let tooli = 0; tooli < _toolArray2.length; tooli++) {
  7606. let toolkeys = Object.keys(_toolArray2[tooli])
  7607. for (let kooli = 0; kooli < toolkeys.length; kooli++) {
  7608. if (toolkeys[kooli] != "toolPhoto" && toolkeys[kooli] != "toolData") {
  7609. this.unitJson[ui].chapterInfo[0].taskJson[ti].toolArray[tooli][toolkeys[kooli]] = _unitJson[ui].chapterInfo[0].taskJson[ti].toolArray[tooli][toolkeys[kooli]]
  7610. }
  7611. }
  7612. }
  7613. } else {
  7614. this.unitJson[ui].chapterInfo[0].taskJson[ti].toolArray = _toolArray2
  7615. }
  7616. }
  7617. } else {
  7618. this.unitJson[ui].chapterInfo[0].taskJson = _taskJson2
  7619. }
  7620. }
  7621. } else {
  7622. this.unitJson = _unitJson
  7623. }
  7624. this.$forceUpdate();
  7625. setTimeout(() => {
  7626. if (this.unitIndex != _unitIndex2) {
  7627. this.isDelete = 2;
  7628. this.unitIndex = _unitIndex2;
  7629. }
  7630. }, 0);
  7631. this.timer = setTimeout(() => {
  7632. this.seleteCourseUpdate();
  7633. }, 1000);
  7634. } else if (index == 2) {
  7635. let _this = this;
  7636. _this
  7637. .$confirm(
  7638. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  7639. "提示",
  7640. {
  7641. confirmButtonText: "需要",
  7642. cancelButtonText: "取消",
  7643. type: "warning",
  7644. }
  7645. )
  7646. .then(() => {
  7647. if (_this.time()) {
  7648. _this.restoreWork(
  7649. _chapAarry[0],
  7650. _unitJson,
  7651. chapindex,
  7652. _unitJson2,
  7653. _unitIndex2
  7654. );
  7655. }
  7656. })
  7657. .catch(() => {
  7658. _this.unitJson = _unitJson;
  7659. _this.$forceUpdate();
  7660. setTimeout(() => {
  7661. if (this.unitIndex != _unitIndex2) {
  7662. this.isDelete = 2;
  7663. this.unitIndex = _unitIndex2;
  7664. }
  7665. }, 0);
  7666. _this.timer = setTimeout(() => {
  7667. _this.seleteCourseUpdate();
  7668. }, 1000);
  7669. });
  7670. }
  7671. } else {
  7672. this.$forceUpdate();
  7673. if (this.timer) {
  7674. clearTimeout(this.timer);
  7675. this.timer = null;
  7676. }
  7677. this.timer = setTimeout(() => {
  7678. this.seleteCourseUpdate();
  7679. }, 1000);
  7680. }
  7681. })
  7682. .catch((err) => {
  7683. console.error(err);
  7684. });
  7685. },
  7686. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  7687. let params = [
  7688. {
  7689. cid: this.cid,
  7690. chapters: JSON.stringify(this.unitJson),
  7691. uid: this.userid,
  7692. chapid: chapid,
  7693. },
  7694. ];
  7695. this.ajax
  7696. .post(this.$store.state.api + "restoreStudentWork", params)
  7697. .then((res) => {
  7698. this.$message({
  7699. message: "恢复成功",
  7700. type: "success",
  7701. });
  7702. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  7703. this.unitJson = unitJson;
  7704. this.$forceUpdate();
  7705. setTimeout(() => {
  7706. if (this.unitIndex != unitIndex2) {
  7707. this.isDelete = 2;
  7708. this.unitIndex = unitIndex2;
  7709. }
  7710. }, 0);
  7711. this.timer = setTimeout(() => {
  7712. this.seleteCourseUpdate();
  7713. }, 1000);
  7714. })
  7715. .catch((err) => {
  7716. this.$message.error("网络不佳");
  7717. console.error(err);
  7718. });
  7719. },
  7720. getTypeName() {
  7721. console.log(this.courseTypeId);
  7722. this.$forceUpdate();
  7723. },
  7724. selectAllType() {
  7725. let params = {
  7726. org: this.org && this.org != "" ? this.org : "",
  7727. oid: this.oid && this.oid != "" ? this.oid : "",
  7728. };
  7729. this.ajax
  7730. .get(this.$store.state.api + "selectAllTypeS", params)
  7731. .then((res) => {
  7732. this.CourseType = res.data;
  7733. let _courseTypeId = [];
  7734. for (var i = 0; i < res.data[0].length; i++) {
  7735. if (res.data[0][i].id == "34629ce3-d02f-11ec-8c78-005056b86db5") {
  7736. res.data[0][i].name = "赛道";
  7737. } else if (res.data[0][i].id == "2f8beae3-d030-11ec-8c78-005056b86db5") {
  7738. res.data[0][i].name = "主题";
  7739. } else if (res.data[0][i].id == "34628934-d02f-11ec-8c78-005056b86db5") {
  7740. res.data[0][i].name = "年级";
  7741. }
  7742. if (!this.cid) {
  7743. this.courseTypeId[res.data[0][i].id] = "";
  7744. }
  7745. this.CourseTypeJson[res.data[0][i].id] = [];
  7746. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  7747. if (res.data[0][i].id == "34629ce3-d02f-11ec-8c78-005056b86db5") {
  7748. this.CourseType[0][i].name = "项目类型";
  7749. }
  7750. } else if (this.org == '150e3120-9195-11ed-b13d-005056b86db5') {
  7751. } else {
  7752. if (res.data[0][i].name == "赛道") {
  7753. this.CourseType[0][i].name = "学科";
  7754. }
  7755. }
  7756. if (res.data[2].length == 0 && res.data[3].length == 0) {
  7757. if (this.org == '150e3120-9195-11ed-b13d-005056b86db5') {
  7758. for (var j = 0; j < res.data[1].length; j++) {
  7759. if (
  7760. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  7761. _courseTypeId.indexOf(res.data[1][j].id) == -1
  7762. ) {
  7763. _courseTypeId.push(res.data[1][j].id);
  7764. }
  7765. if (res.data[0][i].id == res.data[1][j].pid) {
  7766. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7767. }
  7768. }
  7769. } else {
  7770. // this.CourseType = []
  7771. for (var j = 0; j < res.data[1].length; j++) {
  7772. if (
  7773. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  7774. _courseTypeId.indexOf(res.data[1][j].id) == -1
  7775. ) {
  7776. _courseTypeId.push(res.data[1][j].id);
  7777. }
  7778. if (res.data[0][i].id == res.data[1][j].pid) {
  7779. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7780. }
  7781. }
  7782. }
  7783. } else {
  7784. if (res.data[2].length > 0) {
  7785. for (var j = 0; j < res.data[2].length; j++) {
  7786. if (
  7787. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  7788. _courseTypeId.indexOf(res.data[2][j].id) == -1
  7789. ) {
  7790. _courseTypeId.push(res.data[2][j].id);
  7791. }
  7792. if (res.data[0][i].id == res.data[2][j].pid) {
  7793. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  7794. }
  7795. }
  7796. }
  7797. if (res.data[3].length > 0) {
  7798. for (var j = 0; j < res.data[3].length; j++) {
  7799. if (
  7800. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  7801. _courseTypeId.indexOf(res.data[3][j].id) == -1
  7802. ) {
  7803. _courseTypeId.push(res.data[3][j].id);
  7804. }
  7805. if (res.data[0][i].id == res.data[3][j].pid) {
  7806. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  7807. }
  7808. }
  7809. }
  7810. }
  7811. }
  7812. this.courseTypeId = _courseTypeId;
  7813. })
  7814. .catch((err) => {
  7815. console.error(err);
  7816. });
  7817. },
  7818. selectType() {
  7819. this.ajax
  7820. .get(this.$store.state.api + "selectStudentType")
  7821. .then((res) => {
  7822. this.CourseType = res.data;
  7823. for (var i = 0; i < res.data[0].length; i++) {
  7824. if (!this.cid) {
  7825. this.courseTypeId[res.data[0][i].id] = "";
  7826. }
  7827. for (var j = 0; j < res.data[1].length; j++) {
  7828. if (res.data[0][i].id == res.data[1][j].pid) {
  7829. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7830. this.CourseTypeJson[res.data[0][i].id] = [];
  7831. }
  7832. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7833. }
  7834. }
  7835. }
  7836. this.selectTypeByOid();
  7837. this.selectTypeByOrg();
  7838. })
  7839. .catch((err) => {
  7840. console.error(err);
  7841. });
  7842. },
  7843. selectTypeByOid() {
  7844. let params = {
  7845. oid: this.oid,
  7846. };
  7847. this.ajax
  7848. .get(this.$store.state.api + "selectStudentTypeByOid", params)
  7849. .then((res) => {
  7850. for (var i = 0; i < res.data[0].length; i++) {
  7851. for (var j = 0; j < res.data[1].length; j++) {
  7852. if (res.data[0][i].id == res.data[1][j].pid) {
  7853. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7854. this.CourseTypeJson[res.data[0][i].id] = [];
  7855. }
  7856. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7857. }
  7858. }
  7859. }
  7860. })
  7861. .catch((err) => {
  7862. console.error(err);
  7863. });
  7864. },
  7865. selectTypeByOrg() {
  7866. let params = {
  7867. oid: this.org,
  7868. };
  7869. this.ajax
  7870. .get(this.$store.state.api + "selectStudentTypeByOid", params)
  7871. .then((res) => {
  7872. for (var i = 0; i < res.data[0].length; i++) {
  7873. for (var j = 0; j < res.data[1].length; j++) {
  7874. if (res.data[0][i].id == res.data[1][j].pid) {
  7875. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7876. this.CourseTypeJson[res.data[0][i].id] = [];
  7877. }
  7878. this.CourseTypeJson[res.data[0][i].id].unshift(res.data[1][j]);
  7879. }
  7880. }
  7881. }
  7882. this.$forceUpdate();
  7883. })
  7884. .catch((err) => {
  7885. console.error(err);
  7886. });
  7887. },
  7888. OtherMb(type) {
  7889. this.typeMode = type;
  7890. setTimeout(() => {
  7891. this.checkEva(this.checkId);
  7892. }, 0);
  7893. },
  7894. checkEva(id) {
  7895. this.selectEva();
  7896. this.evalua = id;
  7897. this.checkId = id;
  7898. if (this.evalua != "") {
  7899. for (var i = 0; i < this.evaJuri.length; i++) {
  7900. if (this.evalua == this.evaJuri[i].id) {
  7901. this.eTitle = this.evaJuri[i].title;
  7902. this.eJson = JSON.parse(this.evaJuri[i].content);
  7903. }
  7904. }
  7905. this.data.data = [];
  7906. this.$forceUpdate();
  7907. setTimeout(() => {
  7908. this.setMindData();
  7909. }, 500);
  7910. }
  7911. },
  7912. selectEva() {
  7913. let params = {
  7914. oid: this.oid,
  7915. };
  7916. this.ajax
  7917. .get(this.$store.state.api + "selectAllEvaluation", params)
  7918. .then((res) => {
  7919. this.evaJuri = res.data[0];
  7920. })
  7921. .catch((err) => {
  7922. console.error(err);
  7923. });
  7924. },
  7925. setMindData() {
  7926. let targetArray = [];
  7927. this.data.data = [];
  7928. this.data.data.push({
  7929. id: "root",
  7930. isroot: true,
  7931. topic: this.eTitle,
  7932. });
  7933. let _eJson = Object.keys(this.eJson);
  7934. let _e = this.eJson;
  7935. for (let i = 0; i < _eJson.length; i++) {
  7936. let element = _e[_eJson[i]];
  7937. this.data.data.push({
  7938. id: element.id,
  7939. parentid: "root",
  7940. topic: element.name,
  7941. });
  7942. // targetArray.push({
  7943. // id: element.id,
  7944. // parentid: "root",
  7945. // name: element.name,
  7946. // });
  7947. targetArray.push({
  7948. value: element.name,
  7949. label: element.name,
  7950. children: [],
  7951. });
  7952. let _eJsonc = Object.keys(element.child);
  7953. let _e2 = element.child;
  7954. for (let j = 0; j < _eJsonc.length; j++) {
  7955. let _ec = _e2[_eJsonc[j]];
  7956. this.data.data.push({
  7957. id: _ec.id,
  7958. parentid: element.id,
  7959. topic: _ec.name,
  7960. });
  7961. // targetArray.push({
  7962. // id: _ec.id,
  7963. // parentid: element.id,
  7964. // name: _ec.name,
  7965. // });
  7966. targetArray[i].children.push({
  7967. value: _ec.name,
  7968. label: _ec.name,
  7969. children: [],
  7970. });
  7971. let _eJsonz = Object.keys(_ec.child);
  7972. let _e3 = _ec.child;
  7973. for (let z = 0; z < _eJsonz.length; z++) {
  7974. let _ez = _e3[_eJsonz[z]];
  7975. this.data.data.push({
  7976. id: _ez.id,
  7977. parentid: _ec.id,
  7978. topic: _ez.name,
  7979. });
  7980. // targetArray.push({
  7981. // id: _ez.id,
  7982. // parentid: _ec.id,
  7983. // name: _ez.name,
  7984. // });
  7985. targetArray[i].children[j].children.push({
  7986. value: _ez.name,
  7987. label: _ez.name,
  7988. });
  7989. }
  7990. }
  7991. }
  7992. this.targetArray = targetArray;
  7993. this.$forceUpdate();
  7994. },
  7995. /*添加评价 */
  7996. addEList(index, tIndex) {
  7997. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  7998. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  7999. value: "",
  8000. detail: "",
  8001. score: 5,
  8002. })
  8003. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  8004. {
  8005. value: "",
  8006. detail: "",
  8007. score: 5,
  8008. },
  8009. ]);
  8010. this.$forceUpdate();
  8011. },
  8012. forceUpdate() {
  8013. this.$forceUpdate();
  8014. },
  8015. deletEList(index, tIndex, eIndex) {
  8016. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  8017. eIndex,
  8018. 1
  8019. );
  8020. this.$forceUpdate();
  8021. },
  8022. getChoosePic(t) {
  8023. this.chooseType = t;
  8024. this.getAllBanner();
  8025. },
  8026. getAllBanner() {
  8027. this.sysPicVisible = true;
  8028. let params = {
  8029. t: this.chooseType,
  8030. };
  8031. this.ajax
  8032. .get(this.$store.state.api + "selectAllBanner", params)
  8033. .then((res) => {
  8034. this.sysPic = res.data[0];
  8035. })
  8036. .catch((err) => {
  8037. console.error(err);
  8038. });
  8039. },
  8040. deleteSysPic() {
  8041. this.cover = [];
  8042. this.isSysPic = false;
  8043. },
  8044. deleteSelectPic() {
  8045. this.selectJson.url = "";
  8046. },
  8047. setEListStar() {
  8048. this.$forceUpdate();
  8049. },
  8050. deletRateList(i) {
  8051. this.rateJson.splice(i, 1);
  8052. },
  8053. addRateList() {
  8054. this.rateJson.push({
  8055. detail: "",
  8056. score: 5,
  8057. value: "",
  8058. });
  8059. },
  8060. addSt() {
  8061. this.sentenceList.push({
  8062. sentenceTitle: "",
  8063. addSentence: [],
  8064. rightAnswer: [],
  8065. });
  8066. },
  8067. addSen(i) {
  8068. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  8069. // this.isPushTitleList.push(this.sentenceTitle);
  8070. this.sentenceList[i].sentenceTitle = "";
  8071. },
  8072. setRightAnswer(s, i, j) {
  8073. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  8074. this.sentenceList[i].rightAnswer.push(s);
  8075. }
  8076. },
  8077. returnCard(r, i, j) {
  8078. this.sentenceList[i].rightAnswer.splice(j, 1);
  8079. },
  8080. addSentenceTool() {
  8081. for (var i = 0; i < this.sentenceList.length; i++) {
  8082. if (this.sentenceList[i].rightAnswer.length == 0) {
  8083. this.$message.error("请将信息填写完整!");
  8084. return;
  8085. }
  8086. if (
  8087. this.sentenceList[i].addSentence.length !=
  8088. this.sentenceList[i].rightAnswer.length
  8089. ) {
  8090. this.$message.error("请将信息填写完整!");
  8091. return;
  8092. }
  8093. }
  8094. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8095. this.taskCount
  8096. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  8097. this.sentenceList = [
  8098. {
  8099. sentenceTitle: "",
  8100. addSentence: [],
  8101. rightAnswer: [],
  8102. },
  8103. ];
  8104. this.dialogVisibleSentence = false;
  8105. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8106. // itemTaskIndex
  8107. // ].toolChoose[toolIndex].tool = [];
  8108. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8109. // itemTaskIndex
  8110. // ].toolChoose[toolIndex].tool.push(i);
  8111. if (
  8112. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8113. .toolChoose[this.toolIndex].tool != 47
  8114. ) {
  8115. this.addTools(47, this.taskCount, this.toolIndex);
  8116. }
  8117. },
  8118. addTableJson() {
  8119. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8120. this.$message.error("请填写信息!");
  8121. return;
  8122. }
  8123. let params = [
  8124. {
  8125. uid: this.userid,
  8126. cid: this.courseId,
  8127. stage: this.unitIndex,
  8128. task: this.taskCount,
  8129. tool: this.toolIndex,
  8130. content: JSON.stringify(this.tableJson.text),
  8131. type: 10,
  8132. atool: 48,
  8133. },
  8134. ];
  8135. this.ajax
  8136. .post(this.$store.state.api + "addCourseWorksS", params)
  8137. .then((res) => {
  8138. this.$message({
  8139. message: "提交成功",
  8140. type: "success",
  8141. });
  8142. this.seleteCourseUpdate();
  8143. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  8144. this.dialogVisibleTable = false;
  8145. })
  8146. .catch((err) => {
  8147. this.$message.error("提交失败");
  8148. console.error(err);
  8149. });
  8150. },
  8151. addStudentAsk() {
  8152. if (!this.radio.length) {
  8153. this.$message.error("请选择选项");
  8154. return;
  8155. }
  8156. for (var i = 0; i < this.askJson.askCount; i++) {
  8157. if (this.radio[i] !== 0 && !this.radio[i]) {
  8158. this.$message.error("请选择选项");
  8159. return;
  8160. }
  8161. }
  8162. let params = [
  8163. {
  8164. uid: this.userid,
  8165. cid: this.courseId,
  8166. stage: this.unitIndex,
  8167. task: this.taskCount,
  8168. tool: this.toolIndex,
  8169. content: JSON.stringify(this.radio),
  8170. type: 14,
  8171. atool: 56,
  8172. },
  8173. ];
  8174. this.ajax
  8175. .post(this.$store.state.api + "addCourseWorksS", params)
  8176. .then((res) => {
  8177. this.$message({
  8178. message: "提交成功",
  8179. type: "success",
  8180. });
  8181. this.radio = [];
  8182. this.seleteCourseUpdate();
  8183. this.dialogVisibleVote2 = false;
  8184. })
  8185. .catch((err) => {
  8186. this.$message.error("提交失败");
  8187. console.error(err);
  8188. });
  8189. },
  8190. addTextJson() {
  8191. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8192. this.$message.error("请填写信息!");
  8193. return;
  8194. }
  8195. let params = [
  8196. {
  8197. uid: this.userid,
  8198. cid: this.courseId,
  8199. stage: this.unitIndex,
  8200. task: this.taskCount,
  8201. tool: this.toolIndex,
  8202. content: JSON.stringify(this.tableJson.text),
  8203. type: 12,
  8204. atool: 52,
  8205. },
  8206. ];
  8207. this.ajax
  8208. .post(this.$store.state.api + "addCourseWorksS", params)
  8209. .then((res) => {
  8210. this.$message({
  8211. message: "提交成功",
  8212. type: "success",
  8213. });
  8214. this.tableJson.text = "";
  8215. this.seleteCourseUpdate();
  8216. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  8217. this.dialogVisibleText3 = false;
  8218. })
  8219. .catch((err) => {
  8220. this.$message.error("提交失败");
  8221. console.error(err);
  8222. });
  8223. },
  8224. setPeople(i, task, uid) {
  8225. if (this.checkboxList3.indexOf(uid) == -1 && uid != this.courseUserid) {
  8226. this.checkboxList3.push(uid);
  8227. this.setMan();
  8228. }
  8229. // debugger
  8230. if (
  8231. this.unitJson[i].chapterInfo[0].taskJson[task].people != uid &&
  8232. (!this.unitJson[i].chapterInfo[0].taskJson[task].tcMember ||
  8233. this.unitJson[i].chapterInfo[0].taskJson[task].tcMember.indexOf(
  8234. uid
  8235. ) == -1)
  8236. ) {
  8237. this.unitJson[i].chapterInfo[0].taskJson[task].tcMember
  8238. ? this.unitJson[i].chapterInfo[0].taskJson[task].tcMember.push(uid)
  8239. : (this.unitJson[i].chapterInfo[0].taskJson[task].tcMember = [uid]);
  8240. }
  8241. this.$forceUpdate();
  8242. },
  8243. goToTask(i) {
  8244. document.getElementsByClassName("rightBox")[0].scrollTop =
  8245. document.getElementsByClassName("taskBorder")[i].offsetTop - 100;
  8246. this.isClickColor = i + 1;
  8247. },
  8248. goToTask2(i, stage) {
  8249. this.toolIndexType = ''
  8250. if (this.isClickColor == (i + 1) && this.unitIndex == stage) {
  8251. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  8252. this.$forceUpdate();
  8253. return;
  8254. }
  8255. if (this.unitIndex != stage) {
  8256. if (this.panUnitJson() == 2) {
  8257. return;
  8258. }
  8259. this.unitSet(stage)
  8260. }
  8261. document.querySelectorAll(".basic_box")[0].scrollTop =
  8262. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  8263. this.isClickColor = i + 1;
  8264. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  8265. this.$forceUpdate();
  8266. },
  8267. taskOpen(i, stageIndex) {
  8268. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  8269. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false
  8270. } else {
  8271. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true
  8272. }
  8273. this.updateWork3(stageIndex)
  8274. this.$forceUpdate();
  8275. },
  8276. jumpGj2(i, j, k) {
  8277. if (this.unitIndex != k) {
  8278. if (this.panUnitJson() == 2) {
  8279. return;
  8280. }
  8281. this.unitSet(k)
  8282. }
  8283. setTimeout(() => {
  8284. if ((i + 1) != this.isClickColor) {
  8285. this.isClickColor = (i + 1)
  8286. }
  8287. var a = document.scrollingElement;
  8288. this.toolIndexType = `gj${i}${j}${k}`
  8289. let target = document.querySelector(`#gj${i}${j}`);
  8290. if (target) {
  8291. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  8292. setTimeout(() => {
  8293. target.scrollIntoView(true);
  8294. setTimeout(() => {
  8295. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  8296. }, 0);
  8297. }, 0);
  8298. }
  8299. }, 0);
  8300. },
  8301. taskMove(type, index) {
  8302. if (type == 1) {
  8303. if (index > 0) {
  8304. let a = JSON.parse(
  8305. JSON.stringify(
  8306. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  8307. )
  8308. );
  8309. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  8310. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8311. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8312. }
  8313. } else {
  8314. if (
  8315. index <
  8316. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  8317. ) {
  8318. let a = JSON.parse(
  8319. JSON.stringify(
  8320. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  8321. )
  8322. );
  8323. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  8324. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8325. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8326. }
  8327. }
  8328. this.$forceUpdate();
  8329. },
  8330. addGroup(i) {
  8331. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  8332. this.groupJson.group.push({
  8333. name: "第" + (this.groupJson.group.length + 1) + "组",
  8334. });
  8335. },
  8336. deleteGroup(i) {
  8337. this.groupJson.group.splice(i, 1);
  8338. },
  8339. addGroupJson() {
  8340. for (var i = 0; i < this.groupJson.group.length; i++) {
  8341. if (!this.groupJson.group[i].name) {
  8342. this.$message.error("请将信息填写完整!");
  8343. return;
  8344. }
  8345. }
  8346. if (!this.groupJson.number) {
  8347. this.$message.error("请将信息填写完整!");
  8348. return;
  8349. }
  8350. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8351. this.taskCount
  8352. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  8353. JSON.stringify(this.groupJson)
  8354. );
  8355. this.dialogVisibleGroup = false;
  8356. this.groupJson = {};
  8357. if (
  8358. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8359. .toolChoose[this.toolIndex].tool != 49
  8360. ) {
  8361. this.addTools(49, this.taskCount, this.toolIndex);
  8362. }
  8363. },
  8364. deleteWorks(id) {
  8365. this.$confirm("确定删除此作业吗?", "提示", {
  8366. confirmButtonText: "确定",
  8367. cancelButtonText: "取消",
  8368. type: "warning",
  8369. })
  8370. .then(() => {
  8371. let params = [
  8372. {
  8373. id: id,
  8374. },
  8375. ];
  8376. this.ajax
  8377. .post(this.$store.state.api + "deleteCourseWorkS", params)
  8378. .then((res) => {
  8379. this.$message({
  8380. message: "删除成功",
  8381. type: "success",
  8382. });
  8383. this.seleteCourseUpdate();
  8384. })
  8385. .catch((err) => {
  8386. this.$message.error("网络异常");
  8387. console.error(err);
  8388. });
  8389. })
  8390. .catch(() => { });
  8391. },
  8392. openLineS(url) {
  8393. window.open(url);
  8394. },
  8395. checkFileFull(type, url) {
  8396. this.fullDialogVisible = true;
  8397. this.fulltype = type;
  8398. this.fullUrl = url;
  8399. },
  8400. downloadFile(url, toolIndex) {
  8401. var credentials = {
  8402. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8403. secretAccessKey: "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",
  8404. }; //秘钥形式的登录上传
  8405. window.AWS.config.update(credentials);
  8406. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8407. let url2 = url;
  8408. let _url2 = "";
  8409. if (
  8410. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  8411. ) {
  8412. _url2 = url2.split(
  8413. "https://view.officeapps.live.com/op/view.aspx?src="
  8414. )[1];
  8415. } else {
  8416. _url2 = url2;
  8417. }
  8418. let _this = this;
  8419. _this.downLoading = 'down' + toolIndex
  8420. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  8421. let name = decodeURIComponent(decodeURIComponent(_url2).split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  8422. var params = {
  8423. Bucket: "ccrb",
  8424. Key: name
  8425. };
  8426. s3.getObject(params, function (err, data) {
  8427. _this.downLoading = ''
  8428. if (err) console.log(err, err.stack); // an error occurred
  8429. else {
  8430. let url = window.URL.createObjectURL(new Blob([data.Body]));
  8431. let a = document.createElement("a");
  8432. a.name = name;
  8433. a.href = url;
  8434. a.download = name;
  8435. a.click();
  8436. console.log(data);
  8437. } // sxuccessful response
  8438. });
  8439. return;
  8440. // let _this = this;
  8441. // let _url = "";
  8442. // if (
  8443. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  8444. // ) {
  8445. // _url = url.split(
  8446. // "https://view.officeapps.live.com/op/view.aspx?src="
  8447. // )[1];
  8448. // } else {
  8449. // _url = url;
  8450. // }
  8451. // const x = new XMLHttpRequest();
  8452. // x.open("GET", _url, true);
  8453. // x.responseType = "blob";
  8454. // const loading = _this.$loading.service({
  8455. // background: "rgba(255, 255, 255, 0.7)",
  8456. // target: document.body,
  8457. // text: '文件加载中...'
  8458. // });
  8459. // // _this.$message.success("文件下载中...");
  8460. // x.onload = function (e) {
  8461. // loading.close();
  8462. // // const url = window.URL.createObjectURL(x.response);
  8463. // // const a = document.createElement("a");
  8464. // // a.href = url;
  8465. // // a.target = "_blank";
  8466. // // a.download = url;
  8467. // // a.click();
  8468. // // a.remove();
  8469. // let content = x.response;
  8470. // let elink = document.createElement("a");
  8471. // elink.download = decodeURI(
  8472. // _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  8473. // );
  8474. // elink.style.display = "none";
  8475. // let blob = new Blob([content]);
  8476. // elink.href = URL.createObjectURL(blob);
  8477. // document.body.appendChild(elink);
  8478. // elink.click();
  8479. // document.body.removeChild(elink);
  8480. // };
  8481. // x.send();
  8482. },
  8483. editSourceUpadte(taskCount, index) {
  8484. this.taskCount = taskCount;
  8485. this.toolIndex = index;
  8486. this.editSourceType = 2;
  8487. this.sourcesData = JSON.parse(
  8488. JSON.stringify(
  8489. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  8490. .toolArray[index].toolData
  8491. )
  8492. );
  8493. this.proVisible = false;
  8494. this.progress = 0;
  8495. this.inputShow = true;
  8496. this.dialogVisibleSource = true;
  8497. },
  8498. addQuestion() {
  8499. let params = [
  8500. {
  8501. uid: this.userid,
  8502. cid: this.courseId,
  8503. stage: this.unitIndex,
  8504. task: this.taskCount,
  8505. tool: this.toolIndex,
  8506. content: this.questionAnswer,
  8507. type: 3,
  8508. atool: 15,
  8509. },
  8510. ];
  8511. this.ajax
  8512. .post(this.$store.state.api + "addCourseWorksS", params)
  8513. .then((res) => {
  8514. this.$message({
  8515. message: "提交成功",
  8516. type: "success",
  8517. });
  8518. this.questionAnswer = "";
  8519. this.answerDialogVisible = false;
  8520. this.seleteCourseUpdate();
  8521. })
  8522. .catch((err) => {
  8523. this.$message.error("提交失败");
  8524. console.error(err);
  8525. });
  8526. },
  8527. addCourseWorksS(tool, type, content, task, toolindex) {
  8528. let params = [
  8529. {
  8530. uid: this.userid,
  8531. cid: this.courseId,
  8532. stage: this.unitIndex,
  8533. task: task,
  8534. tool: toolindex,
  8535. content: content,
  8536. type: type,
  8537. atool: tool,
  8538. },
  8539. ];
  8540. this.ajax
  8541. .post(this.$store.state.api + "addCourseWorksS", params)
  8542. .then((res) => {
  8543. this.$message({
  8544. message: "提交成功",
  8545. type: "success",
  8546. });
  8547. this.setPeople(this.unitIndex, task, this.userid);
  8548. this.seleteCourseUpdate();
  8549. })
  8550. .catch((err) => {
  8551. this.$message.error("提交失败");
  8552. console.error(err);
  8553. });
  8554. },
  8555. openFile(f) {
  8556. this.pptImgUrl = "";
  8557. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  8558. if (
  8559. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  8560. -1
  8561. ) {
  8562. this.pptImgUrl =
  8563. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f);
  8564. this.showPDF = false;
  8565. this.dialogVisibleFile = true;
  8566. } else if (
  8567. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8568. ) {
  8569. this.pptImgUrl = f;
  8570. this.showPDF = true;
  8571. this.dialogVisibleFile = true;
  8572. }
  8573. },
  8574. openText(f) {
  8575. this.tableJson.text = JSON.parse(f);
  8576. this.dialogVisibleText2 = true;
  8577. },
  8578. openAsk(f, taskCount, i) {
  8579. this.askJson = JSON.parse(
  8580. JSON.stringify(
  8581. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  8582. .toolArray[i].askJson
  8583. )
  8584. );
  8585. this.radio = JSON.parse(f);
  8586. this.dialogVisibleVote3 = true;
  8587. },
  8588. openMember() {
  8589. this.searchTN = "";
  8590. this.page = 1
  8591. this.getTeacher();
  8592. this.dialogVisibleMember = true;
  8593. },
  8594. updateType(sid) {
  8595. var a = this.courseTypeId;
  8596. var a1 = JSON.parse(JSON.stringify(this.courseTypeId));
  8597. var c = [];
  8598. var b = sid.pid;
  8599. var d = [];
  8600. // for (var i = 0; i < this.CourseType[1].length; i++) {
  8601. // if (this.CourseType[1][i].id == sid) {
  8602. // b = this.CourseType[1][i].pid;
  8603. // }
  8604. // }
  8605. for (var j = 0; j < this.CourseTypeJson[b].length; j++) {
  8606. d.push(this.CourseTypeJson[b][j].id);
  8607. }
  8608. for (var i = 0; i < a.length; i++) {
  8609. if (d.indexOf(a[i]) == -1) {
  8610. c.push(a[i]);
  8611. }
  8612. }
  8613. c.push(sid.id);
  8614. this.courseTypeId = c;
  8615. },
  8616. openVideo(w) {
  8617. this.videoDetail = JSON.parse(JSON.stringify(this.playerOptions));
  8618. this.videoDetail.sources[0].src = w;
  8619. this.videoVisible = true;
  8620. },
  8621. getGMan(people) {
  8622. let _people = "";
  8623. if (this.ManAarray.length) {
  8624. for (var i = 0; i < this.ManAarray.length; i++) {
  8625. if (this.ManAarray[i].userid == people) {
  8626. _people = this.ManAarray[i].name;
  8627. break;
  8628. }
  8629. }
  8630. }
  8631. return _people ? _people : "无";
  8632. },
  8633. dragTaskStart(val, i, j) {
  8634. this.dragType = 'task'
  8635. this.oldIndex = i;
  8636. this.oldData = val;
  8637. this.oldUnitIndex = j;
  8638. },
  8639. dragTaskOver(i, j) {
  8640. this.typeIndex = "task-" + i
  8641. this.newIndex = i;
  8642. this.checkUnitIndex = j;
  8643. },
  8644. async dragTaskEnd() {
  8645. if (this.dragType != 'task') {
  8646. this.newIndex = "";
  8647. this.dragType = "";
  8648. this.typeIndex = "";
  8649. this.checkUnitIndex = "";
  8650. this.isdrag = "";
  8651. return;
  8652. }
  8653. if ((this.newIndex == this.oldIndex && this.oldUnitIndex == this.checkUnitIndex)) {
  8654. this.newIndex = "";
  8655. this.dragType = "";
  8656. this.typeIndex = "";
  8657. this.checkUnitIndex = "";
  8658. this.isdrag = "";
  8659. return;
  8660. }
  8661. let count1 = await this.getWorksCount(2, this.checkUnitIndex, this.newIndex, 0)
  8662. let count2 = await this.getWorksCount(2, this.oldUnitIndex, this.oldIndex, 0)
  8663. if (count1 > 0 || count2 > 0) {
  8664. this.$confirm(
  8665. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  8666. "提示",
  8667. {
  8668. confirmButtonText: "确定",
  8669. cancelButtonText: "取消",
  8670. type: "warning",
  8671. }
  8672. )
  8673. .then(() => {
  8674. if (this.oldUnitIndex != this.checkUnitIndex) {
  8675. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  8676. // 删除老的节点
  8677. newItems.splice(this.oldIndex, 1);
  8678. // 在列表中目标位置增加新的节点
  8679. let newItems2 = [...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson];
  8680. newItems2.splice(this.newIndex, 0, this.oldData);
  8681. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  8682. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [...newItems2];
  8683. } else {
  8684. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  8685. // 删除老的节点
  8686. newItems.splice(this.oldIndex, 1);
  8687. // 在列表中目标位置增加新的节点
  8688. newItems.splice(this.newIndex, 0, this.oldData);
  8689. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  8690. }
  8691. this.typeIndex = "";
  8692. this.newIndex = "";
  8693. this.dragType = "";
  8694. this.checkUnitIndex = "";
  8695. this.isdrag = "";
  8696. this.updateWork();
  8697. this.$forceUpdate()
  8698. })
  8699. .catch(() => {
  8700. this.newIndex = "";
  8701. this.dragType = "";
  8702. this.typeIndex = "";
  8703. this.checkUnitIndex = "";
  8704. this.isdrag = "";
  8705. return;
  8706. });
  8707. } else {
  8708. if (this.oldUnitIndex != this.checkUnitIndex) {
  8709. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  8710. // 删除老的节点
  8711. newItems.splice(this.oldIndex, 1);
  8712. // 在列表中目标位置增加新的节点
  8713. let newItems2 = [...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson];
  8714. newItems2.splice(this.newIndex, 0, this.oldData);
  8715. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  8716. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [...newItems2];
  8717. } else {
  8718. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  8719. // 删除老的节点
  8720. newItems.splice(this.oldIndex, 1);
  8721. // 在列表中目标位置增加新的节点
  8722. newItems.splice(this.newIndex, 0, this.oldData);
  8723. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  8724. }
  8725. this.typeIndex = "";
  8726. this.newIndex = "";
  8727. this.dragType = "";
  8728. this.checkUnitIndex = "";
  8729. this.isdrag = "";
  8730. this.updateWork();
  8731. this.$forceUpdate()
  8732. }
  8733. },
  8734. dragUnitStart(val, i) {
  8735. this.dragType = 'Unit'
  8736. this.oldIndex = i;
  8737. this.oldData = val;
  8738. },
  8739. dragUnitOver(i) {
  8740. this.typeIndex = "Unit-" + i
  8741. this.newIndex = i;
  8742. console.log(i, this.unitJson[i].toolOpen)
  8743. if (!this.unitJson[i].toolOpen && this.dragType == 'task') {
  8744. this.unitJson[i].toolOpen = true
  8745. this.updateWork()
  8746. this.$forceUpdate()
  8747. }
  8748. },
  8749. async dragUnitEnd() {
  8750. if (this.dragType != 'Unit') {
  8751. this.newIndex = "";
  8752. this.dragType = "";
  8753. this.typeIndex = "";
  8754. this.isdrag = "";
  8755. return;
  8756. }
  8757. if (this.newIndex == this.oldIndex) {
  8758. this.newIndex = "";
  8759. this.dragType = "";
  8760. this.typeIndex = "";
  8761. this.isdrag = "";
  8762. return;
  8763. }
  8764. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0)
  8765. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0)
  8766. console.log(count1, count2)
  8767. if (count1 > 0 || count2 > 0) {
  8768. this.$confirm(
  8769. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  8770. "提示",
  8771. {
  8772. confirmButtonText: "确定",
  8773. cancelButtonText: "取消",
  8774. type: "warning",
  8775. }
  8776. )
  8777. .then(() => {
  8778. let newItems = [...this.unitJson];
  8779. // 删除老的节点
  8780. newItems.splice(this.oldIndex, 1);
  8781. // 在列表中目标位置增加新的节点
  8782. newItems.splice(this.newIndex, 0, this.oldData);
  8783. this.unitJson = [...newItems];
  8784. this.typeIndex = "";
  8785. this.newIndex = "";
  8786. this.dragType = "";
  8787. this.isdrag = "";
  8788. this.updateWork();
  8789. this.$forceUpdate()
  8790. })
  8791. .catch(() => {
  8792. this.newIndex = "";
  8793. this.dragType = "";
  8794. this.typeIndex = "";
  8795. this.isdrag = "";
  8796. return;
  8797. });
  8798. } else {
  8799. let newItems = [...this.unitJson];
  8800. // 删除老的节点
  8801. newItems.splice(this.oldIndex, 1);
  8802. // 在列表中目标位置增加新的节点
  8803. newItems.splice(this.newIndex, 0, this.oldData);
  8804. this.unitJson = [...newItems];
  8805. this.typeIndex = "";
  8806. this.newIndex = "";
  8807. this.dragType = "";
  8808. this.isdrag = "";
  8809. this.updateWork();
  8810. this.$forceUpdate()
  8811. }
  8812. },
  8813. getWorksCount(type, stage, task, tool) {
  8814. return new Promise((resolve, reject) => {
  8815. let params = [
  8816. {
  8817. cid: this.cid,
  8818. stage: stage,
  8819. task: task,
  8820. tool: tool,
  8821. type: type
  8822. },
  8823. ];
  8824. this.ajax
  8825. .post(this.$store.state.api + "getStudentCourseWorkCount", params)
  8826. .then((res) => {
  8827. let count = res.data[0][0].count
  8828. resolve(count)
  8829. })
  8830. .catch((err) => {
  8831. resolve(0)
  8832. this.$message.error("网络不佳");
  8833. console.error(err);
  8834. });
  8835. });
  8836. },
  8837. },
  8838. beforeDestroy() {
  8839. clearTimeout(this.timer);
  8840. this.timer = null;
  8841. },
  8842. beforeRouteLeave(to, from, next) {
  8843. clearTimeout(this.timer);
  8844. this.timer = null;
  8845. next();
  8846. },
  8847. beforeRouteEnter(to, from, next) {
  8848. next((vm) => {
  8849. vm.fpath = from.path;
  8850. });
  8851. },
  8852. created() {
  8853. this.getStudent();
  8854. this.getTeacher();
  8855. this.getClass();
  8856. this.getTemplate();
  8857. // this.selectEva();
  8858. this.loading = false;
  8859. setTimeout(() => {
  8860. this.selectCourseDetail();
  8861. // this.selectEva();
  8862. }, 500);
  8863. },
  8864. };
  8865. </script>
  8866. <style scoped>
  8867. @media screen and (max-width: 1280px) {
  8868. .mbCss {
  8869. flex-direction: column !important;
  8870. }
  8871. .pjCss {
  8872. width: 100% !important;
  8873. }
  8874. .evaCss {
  8875. width: 100% !important;
  8876. }
  8877. }
  8878. .dialog_diy>>>.el-dialog__header {
  8879. background: #3c3c3c !important;
  8880. padding: 15px 20px;
  8881. }
  8882. .dialog_diy>>>.el-dialog__title {
  8883. color: #fff;
  8884. }
  8885. .dialog_diy>>>.el-dialog__headerbtn {
  8886. top: 19px;
  8887. }
  8888. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  8889. color: #fff;
  8890. }
  8891. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  8892. color: #fff;
  8893. }
  8894. .dialog_diy>>>.el-dialog__body,
  8895. .dialog_diy>>>.el-dialog__footer {
  8896. background: #fafafa;
  8897. }
  8898. .dialog_diy3>>>.el-dialog__body,
  8899. .dialog_diy3>>>.el-dialog__footer {
  8900. background: #eee !important;
  8901. }
  8902. .dialog_diy3>>>.el-dialog__body {
  8903. padding: 20px 20px;
  8904. }
  8905. .source_diy>>>.el-dialog {
  8906. height: 100% !important;
  8907. margin: 0 auto !important;
  8908. }
  8909. .source_diy>>>.el-dialog__body {
  8910. height: calc(100% - 185px);
  8911. overflow: auto;
  8912. background: #e6eaf0;
  8913. }
  8914. .source_diy>>>.el-dialog__footer {
  8915. background: #e6eaf0 !important;
  8916. }
  8917. .left {
  8918. border-right: 1px solid rgb(60, 94, 143);
  8919. display: flex;
  8920. flex-direction: column;
  8921. align-items: center;
  8922. min-height: 600px;
  8923. width: 385px;
  8924. height: 80%;
  8925. }
  8926. .tips {
  8927. color: rgb(128, 128, 128);
  8928. font-size: 12px;
  8929. width: 270px;
  8930. margin: 40px;
  8931. }
  8932. .pb_content {
  8933. height: 100% !important;
  8934. /* margin: 0 20px 0 20px; */
  8935. }
  8936. .pb_content_body {
  8937. width: 100% !important;
  8938. height: 100%;
  8939. }
  8940. .info_solid {
  8941. width: 270px;
  8942. height: 30px;
  8943. border-left: 1px solid #bdbdbd;
  8944. margin: 10px 0px 10px 30px;
  8945. }
  8946. .info_steps {
  8947. width: 270px;
  8948. font-size: 0.875rem;
  8949. display: flex;
  8950. align-items: center;
  8951. }
  8952. .info_steps span:nth-child(1) {
  8953. width: 30px;
  8954. height: 30px;
  8955. background: rgba(0, 0, 0, 0.38);
  8956. display: block;
  8957. color: #fff;
  8958. border-radius: 40px;
  8959. text-align: center;
  8960. line-height: 30px;
  8961. }
  8962. .steps_active {
  8963. background: #3d67bc !important;
  8964. }
  8965. .info_steps span:nth-child(2) {
  8966. margin-left: 5px;
  8967. }
  8968. .right {
  8969. height: 100%;
  8970. width: 100%;
  8971. display: flex;
  8972. overflow: hidden;
  8973. flex-direction: column;
  8974. }
  8975. .basic_box {
  8976. margin: 0 auto;
  8977. position: relative;
  8978. padding: 0 20px 0 20px;
  8979. }
  8980. .basic_box_success {
  8981. width: 100%;
  8982. min-height: 455px;
  8983. padding: 50px 0;
  8984. position: relative;
  8985. text-align: center;
  8986. border-bottom: 1px solid #bfbfbf;
  8987. box-sizing: border-box;
  8988. display: flex;
  8989. align-items: center;
  8990. flex-direction: column;
  8991. justify-content: center;
  8992. }
  8993. .info_title {
  8994. font-size: 1.5em;
  8995. margin-right: 25px;
  8996. /* margin: 20px 30px 20px 30px; */
  8997. }
  8998. .bInfo_title {
  8999. text-align: left;
  9000. margin: 10px 0;
  9001. }
  9002. .small_title {
  9003. font-size: 14px;
  9004. line-height: 40px;
  9005. }
  9006. .chapter_beizhu {
  9007. font-size: 12px;
  9008. font-weight: bold;
  9009. float: right;
  9010. color: rgb(128, 128, 128);
  9011. margin-top: 5px;
  9012. }
  9013. .chapter_uploadBox1 {
  9014. text-align: left;
  9015. background-color: rgb(242, 242, 242);
  9016. width: 100%;
  9017. height: 67px;
  9018. padding: 0px 15px;
  9019. border-radius: 8px;
  9020. overflow: hidden;
  9021. font-size: 16px;
  9022. box-sizing: border-box;
  9023. position: relative;
  9024. }
  9025. .chapter_add {
  9026. width: 100%;
  9027. height: 32px;
  9028. margin-top: 15px;
  9029. cursor: pointer;
  9030. }
  9031. .chapter_add_l {
  9032. margin-left: 5px;
  9033. width: 30px;
  9034. height: 30px;
  9035. float: left;
  9036. border: 1px solid #aaa;
  9037. color: #aaa;
  9038. border-radius: 50%;
  9039. font-size: 25px;
  9040. text-align: center;
  9041. }
  9042. .chapter_add_r {
  9043. font-size: 18px;
  9044. height: 40px;
  9045. line-height: 30px;
  9046. text-indent: 10px;
  9047. color: #aaa;
  9048. }
  9049. .chapter_add_r span {
  9050. font-size: 12px;
  9051. color: rgb(204, 204, 204);
  9052. }
  9053. .chapter_add_input {
  9054. display: none;
  9055. }
  9056. .line {
  9057. width: 85%;
  9058. margin: 0 auto;
  9059. border-top: 1px solid #e5e5e5;
  9060. margin-top: 20px;
  9061. }
  9062. .info_btnBox {
  9063. width: 100%;
  9064. display: flex;
  9065. justify-content: space-evenly;
  9066. margin: 10px 0 10px 0;
  9067. }
  9068. .info_btnBox3 {
  9069. width: calc(100%);
  9070. display: flex;
  9071. justify-content: flex-end;
  9072. padding: 0 20px;
  9073. height: 60px;
  9074. align-items: center;
  9075. background: unset;
  9076. margin: 0 auto;
  9077. /* border-top: 1px solid rgb(228, 232, 237); */
  9078. box-sizing: border-box;
  9079. overflow: hidden;
  9080. cursor: pointer;
  9081. background: #fff;
  9082. border-radius: 10px;
  9083. }
  9084. .info_btn,
  9085. .teacherWord {
  9086. color: #fff;
  9087. background-color: #0f7eff;
  9088. padding: 8px 24px;
  9089. font-size: 0.9375rem;
  9090. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  9091. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  9092. min-width: 64px;
  9093. font-weight: 500;
  9094. border-radius: 4px;
  9095. box-sizing: border-box;
  9096. border: none;
  9097. cursor: pointer;
  9098. }
  9099. .teacherWord {
  9100. width: 105px !important;
  9101. text-align: center !important;
  9102. line-height: 36px !important;
  9103. padding: 0 !important;
  9104. font-size: 14px !important;
  9105. margin: 10px 0 !important;
  9106. }
  9107. .template_box {
  9108. display: flex;
  9109. flex-wrap: wrap;
  9110. }
  9111. .wordTeacher {
  9112. display: flex;
  9113. flex-direction: column;
  9114. width: 100px;
  9115. height: 100px;
  9116. text-align: center;
  9117. font-size: 13px;
  9118. margin: 0 20px 20px 0;
  9119. background: #F0F4FA;
  9120. ;
  9121. position: relative;
  9122. border-radius: 5px;
  9123. align-items: center;
  9124. justify-content: center;
  9125. border: 1px solid #CAD1DC;
  9126. color: #0E1E33;
  9127. /* padding: 25px 0px; */
  9128. cursor: pointer;
  9129. }
  9130. .wordTeacher::after {
  9131. content: '';
  9132. display: block;
  9133. position: absolute;
  9134. width: 15px;
  9135. height: 15px;
  9136. right: 10px;
  9137. top: 10px;
  9138. background-image: url(../../../assets/icon/new/choose_a.png);
  9139. background-size: 100% 100%;
  9140. }
  9141. .wordTeacherA::after {
  9142. background-image: url(../../../assets/icon/new/choose_b.png)
  9143. }
  9144. .wordTeacher:nth-child(5n) {
  9145. margin-right: 0px;
  9146. }
  9147. .wordPic {
  9148. margin: 0 auto;
  9149. width: 30px;
  9150. height: 30px;
  9151. cursor: pointer;
  9152. }
  9153. .deleteWord {
  9154. width: 22px;
  9155. height: 22px;
  9156. position: absolute;
  9157. right: 5px;
  9158. top: -15px;
  9159. cursor: pointer;
  9160. display: none;
  9161. z-index: 999;
  9162. }
  9163. .wordPic>img,
  9164. .deleteWord>img,
  9165. .addToolImg>img {
  9166. width: 100%;
  9167. height: 100%;
  9168. }
  9169. .info_btn:hover {
  9170. background-color: #4f7cd5 !important;
  9171. }
  9172. .cru_selectBox {
  9173. display: flex;
  9174. margin: 15px 0;
  9175. flex-wrap: nowrap;
  9176. white-space: nowrap;
  9177. overflow: auto;
  9178. position: relative;
  9179. height: 40px;
  9180. max-width: calc(100% - 175px);
  9181. }
  9182. .cru_selectBox::-webkit-scrollbar {
  9183. /*滚动条整体样式*/
  9184. width: 6px;
  9185. /*高宽分别对应横竖滚动条的尺寸*/
  9186. height: 6px;
  9187. }
  9188. /*定义滚动条轨道 内阴影+圆角*/
  9189. .cru_selectBox::-webkit-scrollbar-track {
  9190. border-radius: 10px;
  9191. background-color: #eee;
  9192. }
  9193. /*定义滑块 内阴影+圆角*/
  9194. .cru_selectBox::-webkit-scrollbar-thumb {
  9195. border-radius: 10px;
  9196. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  9197. background-color: rgba(0, 0, 0, 0.1);
  9198. }
  9199. .cru_line {
  9200. position: absolute;
  9201. bottom: 0px;
  9202. transition: all 0.5s;
  9203. left: 0px;
  9204. width: 50px;
  9205. height: 4px;
  9206. left: 10px;
  9207. border-radius: 2px;
  9208. background: #3681FC;
  9209. }
  9210. .cru_select {
  9211. font-size: 18px;
  9212. margin-right: 20px;
  9213. margin-left: 5px;
  9214. cursor: pointer;
  9215. color: #0E1E33;
  9216. }
  9217. .cru_select:hover {
  9218. color: #3681FC !important;
  9219. }
  9220. .cru_selected {
  9221. color: #3681FC !important;
  9222. font-weight: bold;
  9223. }
  9224. .chapter_box {
  9225. margin-top: 10px;
  9226. width: 100%;
  9227. padding: 10px 20px;
  9228. background: #fff;
  9229. border-radius: 8px;
  9230. box-sizing: border-box;
  9231. }
  9232. .chapter_contentbox {
  9233. display: flex;
  9234. align-items: center;
  9235. /* margin-top: 15px; */
  9236. }
  9237. .chapter_contentbox .cc_title {
  9238. margin: 0px;
  9239. color: black;
  9240. display: block;
  9241. white-space: nowrap;
  9242. overflow: hidden;
  9243. text-overflow: ellipsis;
  9244. margin-right: 20px;
  9245. font-size: 18px;
  9246. height: 20px;
  9247. line-height: 22px;
  9248. min-width: fit-content;
  9249. display: flex;
  9250. }
  9251. .chapter_contentbox .cc_title::before {
  9252. content: '';
  9253. height: 100%;
  9254. width: 3px;
  9255. background: #3681FC;
  9256. border-radius: 3px;
  9257. opacity: 1;
  9258. display: block;
  9259. margin-right: 10px;
  9260. }
  9261. .chapter_contentbox .cc_input {
  9262. width: 100%;
  9263. display: flex;
  9264. }
  9265. .show_taskD {
  9266. min-width: fit-content;
  9267. margin-left: 10px;
  9268. display: flex;
  9269. align-items: center;
  9270. font-size: 14px;
  9271. cursor: pointer;
  9272. color: #717C8D;
  9273. }
  9274. .show_taskD>img {
  9275. width: 15px;
  9276. margin-right: 5px;
  9277. transition: .2s all;
  9278. transform: rotate(-90deg);
  9279. }
  9280. .show_taskD.show>img {
  9281. transform: rotate(0deg);
  9282. }
  9283. .show_toolD {
  9284. min-width: fit-content;
  9285. margin-left: 10px;
  9286. display: flex;
  9287. align-items: center;
  9288. font-size: 14px;
  9289. cursor: pointer;
  9290. color: #717C8D;
  9291. /* position: absolute;
  9292. right: 45px;
  9293. top: 5px; */
  9294. }
  9295. .show_toolD>img {
  9296. width: 15px;
  9297. margin-right: 5px;
  9298. transition: .2s all;
  9299. transform: rotate(-90deg);
  9300. }
  9301. .show_toolD.show>img {
  9302. transform: rotate(0deg);
  9303. }
  9304. .remove {
  9305. background-image: url("../../../assets/icon/new/delete_u.png");
  9306. cursor: pointer;
  9307. opacity: 0.5;
  9308. width: 30px;
  9309. min-width: 30px;
  9310. height: 30px;
  9311. background-size: 100% 100%;
  9312. background-repeat: no-repeat;
  9313. margin-left: 10px;
  9314. }
  9315. .remove1 {
  9316. background-image: url("../../../assets/remove1.png");
  9317. background-repeat: no-repeat;
  9318. background-position: 5px 10px;
  9319. width: 40px;
  9320. height: 50px;
  9321. cursor: pointer;
  9322. margin-left: 10px;
  9323. }
  9324. .binfo_input {
  9325. width: 100%;
  9326. margin: 0;
  9327. padding: 12px 14px;
  9328. display: block;
  9329. min-width: 0;
  9330. outline: none;
  9331. box-sizing: border-box;
  9332. background: none;
  9333. border: none;
  9334. border-radius: 4px;
  9335. background: #fff;
  9336. font-size: 16px;
  9337. resize: none;
  9338. font-family: 'Microsoft YaHei';
  9339. min-height: 48px;
  9340. /* border: 1px solid #3682fc00; */
  9341. border: 1.5px solid #CAD1DC;
  9342. }
  9343. .binfo_textarea {
  9344. border: 1.5px solid #CAD1DC;
  9345. font-size: 16px;
  9346. resize: none;
  9347. /* background: #f6f6f6; */
  9348. font-family: 'Microsoft YaHei';
  9349. }
  9350. .binfo_input:focus-visible {
  9351. border: 1.5px solid #3681FC !important;
  9352. }
  9353. .time {
  9354. display: flex;
  9355. margin: 35px 0 80px 0;
  9356. }
  9357. .chapter_btnbox {
  9358. width: 160px;
  9359. border-radius: 5px;
  9360. border: 2px dashed gray;
  9361. display: flex;
  9362. padding: 8px 50px;
  9363. align-items: center;
  9364. justify-content: center;
  9365. margin: 30px auto 0;
  9366. cursor: pointer;
  9367. }
  9368. .icon_add {
  9369. position: relative;
  9370. width: 24px;
  9371. padding-top: 20px;
  9372. border-radius: 100%;
  9373. border-width: 2px;
  9374. border-style: solid;
  9375. border-color: gray;
  9376. }
  9377. .icon_add i:nth-child(1) {
  9378. position: absolute;
  9379. left: 50%;
  9380. top: 50%;
  9381. height: 60%;
  9382. transform: translate(-50%, -50%);
  9383. border-width: 1px;
  9384. border-style: solid;
  9385. border-color: inherit;
  9386. }
  9387. .icon_add i:nth-child(2) {
  9388. position: absolute;
  9389. top: 50%;
  9390. left: 50%;
  9391. width: 60%;
  9392. transform: translate(-50%, -50%);
  9393. border-width: 1px;
  9394. border-style: solid;
  9395. border-color: inherit;
  9396. }
  9397. .chapter_btn_w {
  9398. font-size: 0.9375rem;
  9399. font-weight: bold;
  9400. color: gray;
  9401. margin-left: 20px;
  9402. }
  9403. .disUoloadSty>>>.el-icon-plus {
  9404. display: none !important;
  9405. /* 上传按钮隐藏 */
  9406. }
  9407. .imgLeft {
  9408. margin: 15px 0;
  9409. }
  9410. .add_info_box {
  9411. margin: 20px 0;
  9412. }
  9413. .add_info_box button {
  9414. margin: 0 10px 10px 0;
  9415. }
  9416. .add_chapters_box {
  9417. text-align: left;
  9418. background-color: rgb(232 234 237);
  9419. width: 100%;
  9420. padding: 0px 15px;
  9421. border-radius: 15px;
  9422. font-size: 16px;
  9423. box-sizing: border-box;
  9424. position: relative;
  9425. padding: 0 10px 5px 10px;
  9426. height: 185px;
  9427. overflow-y: auto;
  9428. overflow-x: hidden;
  9429. }
  9430. .homework_box {
  9431. display: flex;
  9432. align-items: flex-start;
  9433. flex-wrap: wrap;
  9434. margin: 15px 0 0 0;
  9435. flex-direction: column;
  9436. align-content: flex-start;
  9437. }
  9438. .course_homework {
  9439. display: flex;
  9440. justify-content: center;
  9441. flex-direction: row;
  9442. align-items: center;
  9443. margin: 0 10px 0 0;
  9444. }
  9445. .course_homework>>>.el-input__inner {
  9446. width: 140px;
  9447. margin-left: 15px;
  9448. }
  9449. .chapter_upload_move {
  9450. position: relative;
  9451. background-color: #fff;
  9452. position: absolute;
  9453. width: 100%;
  9454. top: 0px;
  9455. left: 0px;
  9456. border: 1px solid #eee;
  9457. border-radius: 5px;
  9458. transition: width 2s;
  9459. -moz-transition: width 2s;
  9460. -webkit-transition: width 2s;
  9461. -o-transition: width 2s;
  9462. }
  9463. .chapter_upload_l_i {
  9464. background-image: url("../../../assets/icon.png");
  9465. background-position: 3px -165px;
  9466. width: 30px;
  9467. height: 30px;
  9468. margin: 10px auto 0 auto;
  9469. }
  9470. .course_input_box {
  9471. display: flex;
  9472. margin-right: 20px;
  9473. width: 100%;
  9474. align-items: center;
  9475. position: relative;
  9476. }
  9477. .course_input_box>.binfo_input {
  9478. width: calc(100% - 0 - 200px - 20px);
  9479. margin: 0 10px;
  9480. }
  9481. .bb_courseIcon {
  9482. width: 57px;
  9483. height: 45px;
  9484. background: #F0F4FA;
  9485. border-radius: 5px 0px 0px 5px;
  9486. display: flex;
  9487. align-items: center;
  9488. justify-content: center;
  9489. border-right: 1.5px solid rgb(202, 209, 220);
  9490. box-sizing: border-box;
  9491. position: absolute;
  9492. left: 1.5px
  9493. }
  9494. .bb_courseIcon>img {
  9495. width: 25px;
  9496. height: auto
  9497. }
  9498. .big_box {
  9499. /* margin-top: 20px; */
  9500. display: flex;
  9501. justify-content: space-between;
  9502. /* border-bottom: 1px solid #E0E2ED; */
  9503. }
  9504. .left_first {
  9505. display: flex;
  9506. flex-direction: column;
  9507. flex-wrap: nowrap;
  9508. width: calc(100% - 310px);
  9509. padding: 20px;
  9510. box-sizing: border-box;
  9511. background: #fff;
  9512. border-radius: 5px;
  9513. }
  9514. .right_first {
  9515. width: 300px;
  9516. display: flex;
  9517. align-items: center;
  9518. justify-content: center;
  9519. /* border-left: 1px solid #E0E2ED; */
  9520. box-sizing: border-box;
  9521. padding: 20px;
  9522. flex-direction: column;
  9523. background: #fff;
  9524. border-radius: 5px;
  9525. }
  9526. .c_info_title {
  9527. padding: 15px 0 15px 0;
  9528. font-size: 16px;
  9529. font-weight: bold;
  9530. margin: 0 0 0 20px;
  9531. box-sizing: border-box;
  9532. display: flex;
  9533. align-items: center;
  9534. line-height: 20px;
  9535. }
  9536. .c_info_title::before {
  9537. content: '';
  9538. display: block;
  9539. width: 3px;
  9540. height: 20px;
  9541. background: #0061FF;
  9542. border-radius: 3px;
  9543. margin: 0 5px 0 0;
  9544. }
  9545. .right_title {
  9546. height: 30px;
  9547. padding: 15px 0 15px 20px;
  9548. border-bottom: 1px solid #f2f2f2;
  9549. font-size: 1.5em;
  9550. font-weight: bold;
  9551. color: #0f7eff;
  9552. margin: 0 auto;
  9553. }
  9554. .addNewPP>>>.el-dialog {
  9555. margin-top: 5vh !important;
  9556. }
  9557. .people {
  9558. border: 1px solid rgb(229 229 229);
  9559. height: 350px;
  9560. border-radius: 5px;
  9561. width: 100%;
  9562. overflow: auto;
  9563. }
  9564. .people_top {
  9565. display: flex;
  9566. width: 100%;
  9567. /* justify-content: space-between; */
  9568. /* align-items: center; */
  9569. flex-direction: column;
  9570. padding: 10px 25px 0;
  9571. box-sizing: border-box;
  9572. }
  9573. .people_nav,
  9574. .people_top_right {
  9575. /* padding: 20px 0 0 20px; */
  9576. }
  9577. .people_top_right {
  9578. height: 40px;
  9579. margin-bottom: 10px;
  9580. }
  9581. .people_search {
  9582. display: flex;
  9583. position: relative;
  9584. }
  9585. .people_search>>>.el-input__inner {
  9586. /* height: 25px; */
  9587. width: 95%;
  9588. }
  9589. .search_img {
  9590. width: 20px;
  9591. height: 20px;
  9592. position: absolute;
  9593. right: 30px;
  9594. top: 50%;
  9595. transform: translateY(-50%);
  9596. }
  9597. .search_img>img {
  9598. width: 100%;
  9599. height: 100%;
  9600. }
  9601. .people_name {
  9602. display: flex;
  9603. justify-content: flex-start;
  9604. padding: 10px 0 0 25px;
  9605. flex-direction: column;
  9606. flex-wrap: nowrap;
  9607. height: calc(100% - 140px);
  9608. overflow-y: auto;
  9609. overflow-x: hidden;
  9610. flex-direction: column;
  9611. }
  9612. .people_name>>>.el-checkbox {
  9613. width: 100%;
  9614. display: flex;
  9615. align-items: center;
  9616. margin-bottom: 10px;
  9617. }
  9618. .people_name>>>.el-checkbox__label {
  9619. text-overflow: ellipsis;
  9620. overflow: hidden;
  9621. width: 100%;
  9622. }
  9623. .right_img {
  9624. width: 150px;
  9625. height: 150px;
  9626. margin: 0 auto;
  9627. }
  9628. .right_img>img {
  9629. width: 100%;
  9630. height: 100%;
  9631. }
  9632. .number {
  9633. margin-top: 20px;
  9634. color: #4aa6ff;
  9635. text-decoration: underline;
  9636. }
  9637. .success_button {
  9638. display: flex;
  9639. text-align: center;
  9640. margin: 5% 0 auto;
  9641. flex-direction: row;
  9642. justify-content: center;
  9643. }
  9644. .look_course {
  9645. margin-right: 40px;
  9646. background: #3d67bc;
  9647. width: 200px;
  9648. height: 35px;
  9649. line-height: 35px;
  9650. color: #fff;
  9651. text-align: center;
  9652. font-size: 14px;
  9653. border-radius: 5px;
  9654. cursor: pointer;
  9655. }
  9656. .attend_others {
  9657. width: 250px;
  9658. background: #4fb13c;
  9659. height: 35px;
  9660. line-height: 35px;
  9661. color: #fff;
  9662. text-align: center;
  9663. font-size: 14px;
  9664. border-radius: 5px;
  9665. cursor: pointer;
  9666. }
  9667. .dialog_diy2>>>.el-dialog__body {
  9668. text-align: center;
  9669. }
  9670. .write_togother {
  9671. position: absolute;
  9672. right: 45px;
  9673. display: flex;
  9674. top: 5%;
  9675. }
  9676. .write_people {
  9677. font-size: 14px;
  9678. line-height: 50px;
  9679. padding-right: 10px;
  9680. }
  9681. .end_write {
  9682. background: #3d67bc;
  9683. color: #fff;
  9684. width: 100px;
  9685. height: 35px;
  9686. line-height: 35px;
  9687. text-align: center;
  9688. font-size: 14px;
  9689. border-radius: 5px;
  9690. cursor: pointer;
  9691. }
  9692. .chapter_upload {
  9693. height: 50px;
  9694. margin-top: 12px;
  9695. position: relative;
  9696. display: flex;
  9697. align-items: center;
  9698. width: 100%;
  9699. min-height: 50px;
  9700. }
  9701. .chapter_upload_drag {
  9702. position: absolute;
  9703. cursor: pointer;
  9704. width: 16px;
  9705. height: 16px;
  9706. left: -9px;
  9707. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  9708. background-size: 100% 100%;
  9709. z-index: 10;
  9710. display: none;
  9711. }
  9712. .isNavStage>.chapter_upload_drag {
  9713. background-image: url("../../../assets/icon/new/icon_course_drag_active2.png");
  9714. }
  9715. .chapter_upload_t {
  9716. background-color: #fff;
  9717. position: absolute;
  9718. height: 100%;
  9719. top: 0px;
  9720. left: 0px;
  9721. border-radius: 40px;
  9722. box-sizing: border-box;
  9723. box-shadow: 0 0 3px 3px #dfdfdf;
  9724. }
  9725. .chapter_upload_o {
  9726. width: 100%;
  9727. height: 100%;
  9728. position: relative;
  9729. z-index: 1;
  9730. }
  9731. .chapter_upload_ic {
  9732. height: 30px;
  9733. float: right;
  9734. }
  9735. .chapter_upload_ic_l {
  9736. width: 50px;
  9737. height: 50px;
  9738. float: left;
  9739. }
  9740. .chapter_upload_ic_l div {
  9741. width: 30px;
  9742. height: 35px;
  9743. background: url("../../../assets/icon/icon.png");
  9744. }
  9745. .chapter_upload_ic_r {
  9746. width: 50px;
  9747. height: 50px;
  9748. float: left;
  9749. margin-left: 0px;
  9750. display: flex;
  9751. align-items: center;
  9752. }
  9753. .chapter_upload_ic_r div {
  9754. width: 25px;
  9755. height: 25px;
  9756. background-image: url("../../../assets/delete.png");
  9757. background-size: 100% 100%;
  9758. }
  9759. .chapter_upload_n {
  9760. display: flex;
  9761. text-indent: 10px;
  9762. text-decoration: none;
  9763. text-overflow: ellipsis;
  9764. white-space: nowrap;
  9765. overflow: hidden;
  9766. width: 55%;
  9767. margin-left: 10px;
  9768. cursor: pointer;
  9769. margin-top: 2px;
  9770. }
  9771. .chapter_upload_l_i1 {
  9772. background-image: url("../../../assets/icon/video.png");
  9773. width: 28px;
  9774. height: 28px;
  9775. background-size: 100% 100%;
  9776. }
  9777. .chapter_upload_l_i5 {
  9778. background-image: url("../../../assets/icon/word.png");
  9779. width: 24px;
  9780. height: 24px;
  9781. background-size: 100% 100%;
  9782. }
  9783. .chapter_upload_l_i8 {
  9784. background-image: url("../../../assets/icon/line.png");
  9785. width: 24px;
  9786. height: 24px;
  9787. background-size: 100% 100%;
  9788. }
  9789. .chapter_upload_ud {
  9790. display: flex;
  9791. flex-direction: column;
  9792. margin-left: 5px;
  9793. justify-content: center;
  9794. }
  9795. .chapter_upload_up {
  9796. background-image: url("../../../assets/icon/up.png");
  9797. width: 17px;
  9798. height: 15px;
  9799. background-size: 100% 100%;
  9800. cursor: pointer;
  9801. }
  9802. .chapter_upload_down {
  9803. background-image: url("../../../assets/icon/down.png");
  9804. width: 17px;
  9805. height: 15px;
  9806. margin: 2px auto 0 auto;
  9807. background-size: 100% 100%;
  9808. cursor: pointer;
  9809. }
  9810. .addWordStyle {
  9811. display: flex;
  9812. flex-direction: row;
  9813. justify-content: flex-start;
  9814. overflow-x: auto;
  9815. white-space: nowrap;
  9816. flex-wrap: wrap;
  9817. }
  9818. /* table 样式 */
  9819. .cont>>>table {
  9820. border-top: 1px solid #ccc;
  9821. border-left: 1px solid #ccc;
  9822. }
  9823. .cont>>>table td,
  9824. .cont>>>table th {
  9825. border-bottom: 1px solid #ccc;
  9826. border-right: 1px solid #ccc;
  9827. /* padding: 20px 5px; */
  9828. padding: 5px 10px;
  9829. max-width: 0px;
  9830. height: 30px;
  9831. vertical-align: baseline;
  9832. }
  9833. .cont>>>table th {
  9834. border-bottom: 2px solid #ccc;
  9835. text-align: center;
  9836. }
  9837. /* blockquote 样式 */
  9838. .cont>>>blockquote {
  9839. display: block;
  9840. border-left: 8px solid #d0e5f2;
  9841. padding: 5px 10px;
  9842. margin: 10px 0;
  9843. line-height: 1.4;
  9844. font-size: 100%;
  9845. background-color: #f1f1f1;
  9846. }
  9847. /* code 样式 */
  9848. .cont>>>code {
  9849. display: inline-block;
  9850. *display: inline;
  9851. *zoom: 1;
  9852. background-color: #f1f1f1;
  9853. border-radius: 3px;
  9854. padding: 3px 5px;
  9855. margin: 0 3px;
  9856. }
  9857. .cont>>>pre code {
  9858. display: block;
  9859. }
  9860. /* ul ol 样式 */
  9861. .cont>>>ul,
  9862. ol {
  9863. margin: 10px 0 10px 20px;
  9864. }
  9865. .wordbox {
  9866. display: flex;
  9867. flex-wrap: wrap;
  9868. cursor: pointer;
  9869. width: 100%;
  9870. }
  9871. .checkword {
  9872. width: 22px;
  9873. height: 22px;
  9874. margin: 10px auto 0;
  9875. cursor: pointer;
  9876. }
  9877. .checkword img {
  9878. width: 100%;
  9879. }
  9880. .stepBg {
  9881. display: flex;
  9882. flex-direction: column;
  9883. justify-content: space-between;
  9884. align-items: center;
  9885. background: #fff;
  9886. width: 300px;
  9887. margin: 0 25px 0 0;
  9888. }
  9889. .stepTop {
  9890. min-width: 300px;
  9891. width: 300px;
  9892. /* border-radius: 10px; */
  9893. display: flex;
  9894. flex-direction: column;
  9895. justify-content: flex-start;
  9896. align-items: center;
  9897. flex-wrap: nowrap;
  9898. background: #fff;
  9899. /* top: 18%; */
  9900. }
  9901. .stepTop>div {
  9902. height: 65px;
  9903. width: 85%;
  9904. cursor: pointer;
  9905. margin: 10px 0;
  9906. border-radius: 10px;
  9907. }
  9908. .first,
  9909. .second,
  9910. .third,
  9911. .four {
  9912. background: #0061FF;
  9913. height: 90px;
  9914. color: #fff;
  9915. display: flex;
  9916. flex-direction: row;
  9917. align-items: center;
  9918. justify-content: center;
  9919. }
  9920. .cfirst {
  9921. display: flex;
  9922. align-items: center;
  9923. justify-content: flex-start;
  9924. width: 150px;
  9925. }
  9926. .cfirst img {
  9927. width: 100%;
  9928. }
  9929. .cfirst>div:nth-child(1) {
  9930. margin-right: 5px;
  9931. width: 28px;
  9932. display: flex;
  9933. align-items: center;
  9934. }
  9935. /* .first>div>div:nth-child(1),
  9936. .second>div>div:nth-child(1),
  9937. .third>div>div:nth-child(1),
  9938. .four>div>div:nth-child(1) {
  9939. margin: 0 10px 0 0;
  9940. width: 2rem;
  9941. } */
  9942. .firstNo,
  9943. .secondNo,
  9944. .thirdNo,
  9945. .fourNo {
  9946. background: #e7e7e7;
  9947. color: #adadad;
  9948. display: flex;
  9949. flex-direction: row;
  9950. align-items: center;
  9951. justify-content: center;
  9952. }
  9953. /* .firstNo>div>div:nth-child(1),
  9954. .secondNo>div>div:nth-child(1),
  9955. .thirdNo>div>div:nth-child(1),
  9956. .fourNo>div>div:nth-child(1) {
  9957. margin: 0 10px 0 0;
  9958. width: 2rem;
  9959. } */
  9960. .uploadWidth>>>.el-upload {
  9961. width: 60px;
  9962. height: 60px;
  9963. position: relative;
  9964. }
  9965. .addPeople {
  9966. background: #fa6060;
  9967. width: 150px;
  9968. height: 40px;
  9969. color: #fff;
  9970. border-radius: 5px;
  9971. text-align: center;
  9972. line-height: 40px;
  9973. font-size: 14px;
  9974. cursor: pointer;
  9975. margin-top: 20px;
  9976. }
  9977. .kcImg {
  9978. width: 60px;
  9979. margin-left: 10px;
  9980. }
  9981. .zyImg {
  9982. width: 55px;
  9983. margin: 0 10px;
  9984. }
  9985. .deleteZy {
  9986. width: 20px;
  9987. position: absolute;
  9988. top: 5px;
  9989. right: 5px;
  9990. cursor: pointer;
  9991. }
  9992. .kcImg>img,
  9993. .zyImg>img,
  9994. .deleteZy>img {
  9995. width: 100%;
  9996. height: 100%;
  9997. }
  9998. .zyBox {
  9999. display: flex;
  10000. flex-direction: row;
  10001. align-items: center;
  10002. background: #67d37d;
  10003. color: #fff;
  10004. width: 210px;
  10005. margin: 20px 20px 0 0;
  10006. border-radius: 10px;
  10007. height: 70px;
  10008. position: relative;
  10009. }
  10010. .upCss {
  10011. display: flex;
  10012. flex-direction: row;
  10013. justify-content: flex-start;
  10014. }
  10015. .upCss>>>.el-icon-plus {
  10016. position: none !important;
  10017. width: 200px;
  10018. height: 100px;
  10019. display: flex;
  10020. flex-wrap: nowrap;
  10021. flex-direction: column;
  10022. align-items: center;
  10023. justify-content: center;
  10024. border: 1px dashed #ccc;
  10025. min-width: 78px;
  10026. min-height: 100px;
  10027. z-index: 999;
  10028. }
  10029. .upCss>>>.el-upload-list__item-name {
  10030. width: 100px;
  10031. white-space: nowrap;
  10032. overflow: hidden;
  10033. text-overflow: ellipsis;
  10034. }
  10035. .upCss>>>.el-upload-list__item .el-icon-close {
  10036. font-size: 20px;
  10037. z-index: 9999;
  10038. }
  10039. .addStageImg {
  10040. min-width: 20px;
  10041. min-height: 20px;
  10042. width: 20px;
  10043. height: 20px;
  10044. cursor: pointer;
  10045. }
  10046. .addHW {
  10047. width: 28px;
  10048. height: 28px;
  10049. cursor: pointer;
  10050. }
  10051. .addStageImg>img,
  10052. .addHW>img {
  10053. width: 100%;
  10054. height: 100%;
  10055. }
  10056. .addNewPP>>>.el-dialog__body {
  10057. padding: 5px 20px;
  10058. }
  10059. .isHeight {
  10060. height: 680px;
  10061. }
  10062. .toolChoose {
  10063. display: flex;
  10064. /* width: 100%; */
  10065. flex-direction: row;
  10066. flex-wrap: wrap;
  10067. }
  10068. .tool {
  10069. display: flex;
  10070. flex-direction: column;
  10071. flex-wrap: nowrap;
  10072. width: fit-content;
  10073. margin: 10px 0 10px 0;
  10074. align-items: center;
  10075. }
  10076. .tool+.tool {
  10077. margin-right: 45px;
  10078. }
  10079. .whiteBIcon {
  10080. width: 80px;
  10081. cursor: pointer;
  10082. display: flex;
  10083. flex-direction: column;
  10084. flex-wrap: nowrap;
  10085. align-items: center;
  10086. }
  10087. .whiteBIcon>img,
  10088. .toolIcon>img,
  10089. .arrow>img {
  10090. width: 100%;
  10091. height: 100%;
  10092. }
  10093. .check img {
  10094. width: 20px;
  10095. height: 20px;
  10096. }
  10097. .whiteBIcon>img {
  10098. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  10099. border-radius: 15px;
  10100. }
  10101. .check {
  10102. /* width: 20px;
  10103. height: 20px; */
  10104. cursor: pointer;
  10105. margin: 10px 0;
  10106. }
  10107. .checkDiv {
  10108. display: flex;
  10109. align-items: center;
  10110. }
  10111. .checkDiv span {
  10112. margin-left: 5px;
  10113. color: #858585;
  10114. }
  10115. .customWidth>>>.el-dialog {
  10116. min-width: 500px !important;
  10117. }
  10118. .a_addBox {
  10119. margin: 10px 0;
  10120. background: #fff;
  10121. padding: 15px;
  10122. max-height: 600px;
  10123. overflow: auto;
  10124. }
  10125. .a_add_box {
  10126. border-bottom: 2px solid #eee;
  10127. padding-bottom: 10px;
  10128. }
  10129. .a_add_head {
  10130. display: flex;
  10131. align-items: center;
  10132. justify-content: space-between;
  10133. margin: 10px 0;
  10134. font-size: 18px;
  10135. }
  10136. .a_add_checkType {
  10137. margin-top: 10px;
  10138. display: flex;
  10139. font-size: 16px;
  10140. }
  10141. .a_add_checkType span {
  10142. box-sizing: border-box;
  10143. padding: 0 0 5px 0;
  10144. cursor: pointer;
  10145. }
  10146. .a_add_checkType span+span {
  10147. margin-left: 10px;
  10148. }
  10149. .a_add_checkType .active {
  10150. border-bottom: 2px solid #409eff;
  10151. color: #409eff;
  10152. }
  10153. .a_add_head .a_add_head_input {
  10154. width: 300px;
  10155. }
  10156. .a_add_head .a_add_head_div {
  10157. display: flex;
  10158. align-items: center;
  10159. justify-content: space-between;
  10160. }
  10161. .a_add_body {
  10162. display: flex;
  10163. /* align-items: center; */
  10164. align-items: flex-end;
  10165. }
  10166. .a_add_input {
  10167. display: flex;
  10168. align-items: center;
  10169. flex-wrap: wrap;
  10170. }
  10171. .a_add_input_choice {
  10172. flex-direction: column;
  10173. margin-right: 10px;
  10174. }
  10175. .a_add_input_choice>>>.el-radio {
  10176. display: flex;
  10177. align-items: center;
  10178. flex-direction: row-reverse;
  10179. margin: 10px 0 0 0;
  10180. }
  10181. .a_add_input_choice>>>.el-checkbox {
  10182. display: flex;
  10183. align-items: center;
  10184. flex-direction: row-reverse;
  10185. margin: 10px 0 0 0;
  10186. }
  10187. .width100 {
  10188. width: 100%;
  10189. }
  10190. .a_add_input .a_add_persent {
  10191. width: 100%;
  10192. }
  10193. .a_add_persent_div {
  10194. width: 100%;
  10195. display: flex;
  10196. align-items: center;
  10197. }
  10198. .a_add_persent_div span {
  10199. margin: 5px 0;
  10200. }
  10201. .a_add_persent_div span:nth-child(1) {
  10202. width: 30%;
  10203. }
  10204. .a_add_persent_div span:nth-child(2) {
  10205. width: 7%;
  10206. }
  10207. .a_add_persent_div span:nth-child(3) {
  10208. width: 40%;
  10209. }
  10210. .a_add_body_div {
  10211. display: flex;
  10212. align-items: center;
  10213. justify-content: center;
  10214. /* flex-direction: column; */
  10215. }
  10216. .all_choose {
  10217. display: flex;
  10218. flex-direction: row;
  10219. align-items: flex-start;
  10220. width: 100%;
  10221. }
  10222. .all_choose+.all_choose {
  10223. /* margin-top: 10px */
  10224. }
  10225. .all_choose>span {
  10226. min-width: fit-content;
  10227. display: block;
  10228. white-space: nowrap;
  10229. overflow: hidden;
  10230. text-overflow: ellipsis;
  10231. margin-right: 20px;
  10232. font-weight: bold;
  10233. font-size: 14px;
  10234. }
  10235. .all_choose>>>.el-checkbox-group {
  10236. display: flex;
  10237. flex-direction: row;
  10238. width: 100%;
  10239. flex-wrap: wrap;
  10240. align-content: center;
  10241. justify-content: flex-start;
  10242. align-items: center;
  10243. margin-top: 3px;
  10244. }
  10245. .all_choose>.el-checkbox-group>>>.el-checkbox {
  10246. margin-bottom: 10px;
  10247. display: flex;
  10248. flex-direction: row;
  10249. align-items: center;
  10250. margin-right: 10px;
  10251. }
  10252. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  10253. min-width: 80px;
  10254. overflow: hidden;
  10255. width: 80px;
  10256. text-overflow: ellipsis;
  10257. white-space: nowrap;
  10258. }
  10259. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  10260. width: auto;
  10261. }
  10262. .choose>div:nth-child(3)>span {
  10263. /* letter-spacing: 0 !important; */
  10264. }
  10265. .choose {
  10266. display: flex;
  10267. flex-direction: column;
  10268. flex-wrap: nowrap;
  10269. height: 100%;
  10270. justify-content: space-evenly;
  10271. align-items: flex-start;
  10272. }
  10273. .both {
  10274. display: flex;
  10275. flex-direction: row;
  10276. flex-wrap: wrap;
  10277. width: 100%;
  10278. align-items: center;
  10279. justify-content: flex-start;
  10280. margin: 15px 0;
  10281. }
  10282. .subjectBox {
  10283. display: flex;
  10284. flex-wrap: wrap;
  10285. width: 100%;
  10286. align-items: center;
  10287. }
  10288. .subjectList {}
  10289. .subjectBtn {
  10290. margin-left: 10px;
  10291. border-radius: 5px;
  10292. border: 1px dashed #bfbfbf;
  10293. padding: 2px 5px;
  10294. cursor: pointer;
  10295. font-size: 14px;
  10296. color: #545454;
  10297. }
  10298. .notice>>>.el-dialog {
  10299. width: 500px !important;
  10300. text-align: center;
  10301. }
  10302. .notice>>>.el-button {
  10303. margin-top: 20px;
  10304. }
  10305. .whiteBg {
  10306. /* background: #fff; */
  10307. border-radius: 10px;
  10308. }
  10309. .wb_j_box {
  10310. display: flex;
  10311. width: 100%;
  10312. padding: 0 20px 0;
  10313. box-sizing: border-box;
  10314. }
  10315. .wb_j_box_content {
  10316. width: calc(100% - 55% - 100px);
  10317. display: flex;
  10318. align-items: center;
  10319. }
  10320. .wb_j_box_p_box {
  10321. max-width: calc(100% - 200px);
  10322. word-break: break-all;
  10323. overflow: hidden;
  10324. margin: 0 0 0 10px;
  10325. font-size: 14px;
  10326. color: #6e6e6e;
  10327. z-index: 999;
  10328. }
  10329. .chooseWho {
  10330. display: flex;
  10331. width: 380px;
  10332. flex-direction: row;
  10333. flex-wrap: nowrap;
  10334. justify-content: space-between;
  10335. padding-bottom: 10px;
  10336. }
  10337. .chooseWho>div {
  10338. cursor: pointer;
  10339. padding-bottom: 10px;
  10340. font-weight: bold;
  10341. }
  10342. .isChooseActive {
  10343. color: #3e88f4;
  10344. border-bottom: 2px solid #2f80f3;
  10345. }
  10346. .toolSort {
  10347. display: flex;
  10348. flex-direction: row;
  10349. flex-wrap: wrap;
  10350. justify-content: flex-start;
  10351. align-items: flex-start;
  10352. }
  10353. .toolSort>div {
  10354. margin-right: 45px;
  10355. }
  10356. .tools {
  10357. width: 100%;
  10358. display: flex;
  10359. flex-direction: column;
  10360. flex-wrap: nowrap;
  10361. align-items: flex-start;
  10362. }
  10363. .leftTools,
  10364. .rightTools {
  10365. width: 50%;
  10366. }
  10367. .rightTools {
  10368. display: flex;
  10369. flex-direction: row;
  10370. flex-wrap: nowrap;
  10371. justify-content: space-around;
  10372. }
  10373. .firstToolList {
  10374. display: flex;
  10375. flex-direction: column;
  10376. flex-wrap: nowrap;
  10377. align-items: center;
  10378. }
  10379. .iconList {
  10380. display: flex;
  10381. flex-direction: row;
  10382. flex-wrap: wrap;
  10383. justify-content: flex-start;
  10384. align-items: center;
  10385. margin: 20px 0 5px 0;
  10386. width: 240px;
  10387. min-width: 240px;
  10388. }
  10389. .iconTool {
  10390. display: flex;
  10391. flex-direction: column;
  10392. flex-wrap: nowrap;
  10393. align-items: center;
  10394. justify-content: flex-start;
  10395. margin: 15px 10px;
  10396. }
  10397. .toolIcon {
  10398. width: 50px;
  10399. }
  10400. .taskBorder {
  10401. /* border: 1px solid #CAD1DC; */
  10402. border-radius: 10px;
  10403. margin-top: 10px;
  10404. min-height: 670px;
  10405. position: relative;
  10406. background: #fff;
  10407. padding: 20px;
  10408. overflow: hidden;
  10409. box-sizing: border-box;
  10410. }
  10411. .smallTaskBorder {
  10412. height: 405px;
  10413. min-height: 405px !important;
  10414. overflow: hidden;
  10415. }
  10416. .addTaskBorder {
  10417. /* border: 2px solid #5E9AFC; */
  10418. border-radius: 8px;
  10419. margin-top: 10px;
  10420. cursor: pointer;
  10421. /* height: 50px;
  10422. line-height: 50px; */
  10423. background: #fff;
  10424. padding: 15px 0;
  10425. display: flex;
  10426. align-items: center;
  10427. justify-content: center;
  10428. }
  10429. .task_add_title {
  10430. margin: 50px 0px 10px;
  10431. font-size: 1.5em;
  10432. font-weight: 700;
  10433. color: #0f7eff;
  10434. }
  10435. .task_add_title::after {
  10436. content: "提示:建议不要多账户同时编辑同一个任务";
  10437. font-size: 14px;
  10438. margin-left: 5px;
  10439. font-weight: 400;
  10440. color: #ff3a3a;
  10441. }
  10442. .funBlock {
  10443. display: flex;
  10444. padding: 15px 0;
  10445. flex-direction: row;
  10446. justify-content: center;
  10447. align-items: center;
  10448. position: absolute;
  10449. right: 0;
  10450. bottom: 0;
  10451. background: #fff;
  10452. width: 100%;
  10453. height: 60px;
  10454. z-index: 9;
  10455. }
  10456. .fold {
  10457. display: flex;
  10458. margin: 0 20px;
  10459. flex-direction: row;
  10460. align-items: center;
  10461. cursor: pointer;
  10462. color: #2b7bff;
  10463. }
  10464. .arrow {
  10465. margin-right: 8px;
  10466. width: 16px;
  10467. height: 16px;
  10468. min-width: 16px;
  10469. min-height: 16px;
  10470. background-size: 100% 100%;
  10471. display: block;
  10472. background-image: url(../../../assets/icon/new/u_up.png);
  10473. /* border-left: 7px solid transparent;
  10474. border-bottom: 7px solid #717C8D;
  10475. border-top: 0px solid transparent;
  10476. border-right: 7px solid transparent; */
  10477. /* box-sizing: border-box; */
  10478. transition: all .3s;
  10479. }
  10480. .arrowZ {
  10481. transform: rotate(180deg);
  10482. }
  10483. .addToolFunBox {
  10484. display: flex;
  10485. width: 100%;
  10486. align-items: center;
  10487. justify-content: center;
  10488. margin-bottom: 35px;
  10489. }
  10490. .addToolFun+.addToolFun {
  10491. margin-left: 10px;
  10492. }
  10493. .addToolFun {
  10494. display: flex;
  10495. width: 150px;
  10496. flex-direction: row;
  10497. align-items: center;
  10498. justify-content: center;
  10499. border: 1px dashed;
  10500. border-radius: 5px;
  10501. height: 50px;
  10502. /* margin: 35px auto 0; */
  10503. cursor: pointer;
  10504. }
  10505. .addToolImg {
  10506. width: 30px;
  10507. height: 30px;
  10508. margin-right: 20px;
  10509. }
  10510. .addToolsDia>>>.el-dialog__body {
  10511. padding: 20px;
  10512. }
  10513. .addToolsDia>>>.el-dialog__body>.toolChoose {
  10514. padding: 0;
  10515. }
  10516. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  10517. padding: 0;
  10518. border-bottom: none;
  10519. margin-bottom: 0;
  10520. }
  10521. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  10522. width: 100%;
  10523. }
  10524. .lineCss>>>.el-form-item__label {
  10525. width: auto !important;
  10526. }
  10527. .lineCss>>>.el-form-item__content {
  10528. margin-left: 50px !important;
  10529. }
  10530. .newSteps {
  10531. display: flex;
  10532. width: 100% !important;
  10533. height: 80px;
  10534. cursor: pointer;
  10535. margin: 10px 0;
  10536. border-radius: 10px;
  10537. flex-direction: row;
  10538. align-content: center;
  10539. justify-content: center;
  10540. align-items: center;
  10541. margin: 0 !important;
  10542. }
  10543. /* 评价样式 */
  10544. .elist_css {
  10545. padding-bottom: 60px !important;
  10546. }
  10547. .elist_title {
  10548. margin-bottom: 10px;
  10549. }
  10550. .elist_input {}
  10551. .elist_input_box {
  10552. display: flex;
  10553. align-items: center;
  10554. flex-wrap: wrap;
  10555. }
  10556. .elist_input_box+.elist_input_box {
  10557. margin-top: 30px;
  10558. }
  10559. .elist_input .elist_input_box input {
  10560. font: inherit;
  10561. color: currentColor;
  10562. /* width: 200px; */
  10563. max-width: 200px;
  10564. padding: 8px 14px;
  10565. display: block;
  10566. min-width: 0;
  10567. outline: none;
  10568. border: 1px solid rgba(0, 0, 0, 0.23);
  10569. border-radius: 4px;
  10570. box-sizing: border-box;
  10571. background: #fff;
  10572. margin: 0 20px 0 0;
  10573. }
  10574. .elist_input .elist_input_box span {
  10575. height: 36px;
  10576. line-height: 36px;
  10577. color: rgb(82, 82, 82);
  10578. min-width: 80px;
  10579. }
  10580. .elist_input .elist_input_box .remove {
  10581. height: 20px;
  10582. width: 20px;
  10583. background-size: 100% 100%;
  10584. background-position: unset;
  10585. margin-left: 5px;
  10586. }
  10587. .elist_input_box>>>.el-rate {
  10588. display: flex;
  10589. height: 36px;
  10590. align-items: center;
  10591. }
  10592. .elist_input_box .elist_inptu_text {
  10593. width: 100%;
  10594. display: flex;
  10595. align-items: center;
  10596. margin-top: 10px;
  10597. }
  10598. .elist_input_box .elist_inptu_text input {
  10599. /* width: 500px; */
  10600. width: 100%;
  10601. max-width: unset;
  10602. }
  10603. .elist_input_box>>>.el-rate__icon {
  10604. font-size: 24px;
  10605. }
  10606. .elist_btn {
  10607. margin-top: 10px;
  10608. }
  10609. .lineTitle {
  10610. /* margin-top: 15px; */
  10611. width: 110px;
  10612. font-size: 16px;
  10613. display: flex;
  10614. align-items: center;
  10615. line-height: 20px;
  10616. }
  10617. .lineTitle::before {
  10618. content: '';
  10619. display: block;
  10620. width: 3px;
  10621. height: 20px;
  10622. background: #0061FF;
  10623. border-radius: 3px;
  10624. margin: 0 5px 0 0;
  10625. }
  10626. .clineTitle::before {
  10627. content: '';
  10628. display: block;
  10629. min-width: 10px;
  10630. width: 10px;
  10631. height: 10px;
  10632. background: #0061ff;
  10633. border-radius: 50%;
  10634. margin: 0 5px 0 0;
  10635. }
  10636. .courseTop {
  10637. display: flex;
  10638. flex-direction: row;
  10639. justify-content: space-between;
  10640. align-items: center;
  10641. /* width: 100%; */
  10642. width: calc(100% - 40px);
  10643. /* background: rgb(255, 255, 255); */
  10644. /* border-radius: 10px; */
  10645. padding: 10px 0;
  10646. margin: 0 auto;
  10647. }
  10648. .stepsNav {
  10649. display: flex;
  10650. flex-direction: row;
  10651. justify-content: flex-start;
  10652. align-items: center;
  10653. }
  10654. .stepsWord {
  10655. font-size: 18px;
  10656. color: #fff;
  10657. font-weight: bold;
  10658. margin-left: auto;
  10659. background: rgb(15, 126, 255);
  10660. border-radius: 5px;
  10661. padding: 3px 25px;
  10662. box-sizing: border-box;
  10663. }
  10664. .stepBox {
  10665. width: calc(100% - 40px);
  10666. height: calc(100% - 50px);
  10667. overflow: hidden;
  10668. border-radius: 5px;
  10669. margin: 0 auto;
  10670. }
  10671. .rightBox {
  10672. width: calc(100%);
  10673. /* background: rgb(255, 255, 255); */
  10674. /* border-radius: 10px; */
  10675. overflow: auto;
  10676. height: calc(100% - 20px);
  10677. position: relative;
  10678. margin: 0 auto;
  10679. }
  10680. .e_add_top {
  10681. display: flex;
  10682. justify-content: space-between;
  10683. padding: 20px 20px 0 20px;
  10684. border-radius: 3px;
  10685. background: #fff;
  10686. }
  10687. .e_add_title2 {
  10688. display: flex;
  10689. align-items: center;
  10690. }
  10691. .e_add_title2 span {
  10692. width: 40px;
  10693. }
  10694. .e_add_title {
  10695. display: flex;
  10696. align-items: center;
  10697. color: #b8b8b8;
  10698. font-size: 18px;
  10699. position: relative;
  10700. height: 40px;
  10701. }
  10702. .e_add_title span {
  10703. margin-right: 10px;
  10704. }
  10705. .e_add_title .el_input {
  10706. width: 300px;
  10707. }
  10708. .e_add_title>>>.el-input__inner {
  10709. width: 400px;
  10710. }
  10711. .e_add_btn {}
  10712. .e_add_content {
  10713. display: flex;
  10714. width: 100%;
  10715. }
  10716. .e_add_list {
  10717. background: #fff;
  10718. height: 500px;
  10719. width: 210px;
  10720. position: relative;
  10721. margin: 15px 5px 0 0;
  10722. flex-shrink: 0;
  10723. display: flex;
  10724. flex-direction: column;
  10725. }
  10726. .e_add_list_title {
  10727. font-size: 20px;
  10728. width: 100%;
  10729. box-sizing: border-box;
  10730. padding: 15px 40px;
  10731. text-align: center;
  10732. border-bottom: 1px solid #eaeaea;
  10733. position: relative;
  10734. display: flex;
  10735. align-items: center;
  10736. justify-content: center;
  10737. height: 57px;
  10738. background: #f6f6f6;
  10739. }
  10740. .e_add_list_title span {
  10741. overflow: hidden;
  10742. white-space: nowrap;
  10743. text-overflow: ellipsis;
  10744. }
  10745. .e_add_list_title img {
  10746. position: absolute;
  10747. right: 15px;
  10748. width: 25px;
  10749. cursor: pointer;
  10750. top: 50%;
  10751. transform: translateY(-50%);
  10752. }
  10753. .e_add_list_body {
  10754. height: calc(100% - 187px);
  10755. overflow: auto;
  10756. }
  10757. .e_add_list_child {
  10758. width: 100%;
  10759. display: flex;
  10760. align-items: center;
  10761. justify-content: center;
  10762. position: relative;
  10763. box-sizing: border-box;
  10764. padding: 15px 40px;
  10765. text-align: center;
  10766. }
  10767. .e_add_list_child span {
  10768. overflow: hidden;
  10769. white-space: nowrap;
  10770. text-overflow: ellipsis;
  10771. cursor: pointer;
  10772. }
  10773. .e_add_list_child img {
  10774. position: absolute;
  10775. right: 10px;
  10776. width: 21px;
  10777. cursor: pointer;
  10778. top: 50%;
  10779. transform: translateY(-50%);
  10780. }
  10781. .e_add_list_child+.e_add_list_child {
  10782. border-top: 1px solid #eaeaea;
  10783. }
  10784. .e_add_list_child .active {
  10785. color: #409eff;
  10786. }
  10787. .e_add_list_btn {
  10788. position: absolute;
  10789. bottom: 0;
  10790. height: 50px;
  10791. background: rgb(120, 120, 254);
  10792. width: 100%;
  10793. color: #fff;
  10794. font-size: 16px;
  10795. text-align: center;
  10796. line-height: 50px;
  10797. cursor: pointer;
  10798. }
  10799. .e_add_list_detail {
  10800. position: absolute;
  10801. bottom: 0;
  10802. height: 130px;
  10803. background: rgb(120, 120, 254);
  10804. width: 100%;
  10805. color: #fff;
  10806. font-size: 16px;
  10807. display: flex;
  10808. align-items: center;
  10809. justify-content: center;
  10810. }
  10811. .e_add_list_detail textarea {
  10812. height: 90%;
  10813. width: 95%;
  10814. border: none;
  10815. resize: none;
  10816. outline: none;
  10817. padding: 5px;
  10818. box-sizing: border-box;
  10819. }
  10820. .e_add_list_pbox {
  10821. width: 100%;
  10822. }
  10823. .e_add_list_pbox_title {
  10824. height: 50px;
  10825. background: #fff;
  10826. display: flex;
  10827. align-items: center;
  10828. width: 100%;
  10829. box-sizing: border-box;
  10830. padding: 0 20px;
  10831. flex-direction: row;
  10832. flex-wrap: wrap;
  10833. }
  10834. .type_title {
  10835. font-size: 18px;
  10836. font-weight: 700;
  10837. }
  10838. .type_content {
  10839. font-size: 16px;
  10840. margin-left: 30px;
  10841. }
  10842. .type_content span+span {
  10843. margin-left: 20px;
  10844. }
  10845. .type_content span {
  10846. cursor: pointer;
  10847. padding-bottom: 5px;
  10848. box-sizing: border-box;
  10849. }
  10850. .type_content .active {
  10851. color: #409eff;
  10852. border-bottom: 2px solid #409eff;
  10853. }
  10854. .e_add_list_pbox_content {
  10855. height: calc(100% - 50px);
  10856. display: flex;
  10857. align-items: center;
  10858. width: 100%;
  10859. background: #fff;
  10860. }
  10861. .mbCss {
  10862. width: 100%;
  10863. display: flex;
  10864. flex-direction: row;
  10865. flex-wrap: nowrap;
  10866. align-content: center;
  10867. align-items: flex-start;
  10868. justify-content: flex-start;
  10869. }
  10870. .pjCss {
  10871. /* width: 42%; */
  10872. width: calc(100% - 55%);
  10873. display: flex;
  10874. flex-direction: column;
  10875. flex-wrap: nowrap;
  10876. align-items: flex-start;
  10877. margin-top: 1.5%;
  10878. }
  10879. .e_box {
  10880. display: flex;
  10881. flex-wrap: wrap;
  10882. max-height: 500px;
  10883. align-items: flex-start;
  10884. overflow: auto;
  10885. }
  10886. .e_card {
  10887. border: 1px solid #ccc;
  10888. background: #fff;
  10889. margin-right: 20px;
  10890. width: 270px;
  10891. display: flex;
  10892. flex-direction: column;
  10893. align-items: center;
  10894. border-radius: 5px;
  10895. margin-top: 10px;
  10896. text-align: center;
  10897. }
  10898. .e_card_picture {
  10899. margin: 10px 0;
  10900. }
  10901. .e_card_picture>img {
  10902. width: 50px;
  10903. }
  10904. .e_card_name {
  10905. width: 100%;
  10906. padding: 0 10px;
  10907. box-sizing: border-box;
  10908. margin-bottom: 10px;
  10909. overflow: hidden;
  10910. text-overflow: ellipsis;
  10911. white-space: nowrap;
  10912. }
  10913. .e_card_time {
  10914. width: 100%;
  10915. padding: 0 10px;
  10916. box-sizing: border-box;
  10917. font-size: 15px;
  10918. color: #c3c3c3;
  10919. margin-bottom: 10px;
  10920. }
  10921. .e_card_btn {
  10922. height: 40px;
  10923. display: flex;
  10924. align-items: center;
  10925. width: 100%;
  10926. background: rgb(244, 244, 244);
  10927. }
  10928. .e_card_btn:hover {
  10929. background: rgb(221 221 221);
  10930. }
  10931. .e_card_btn span {
  10932. flex: 1 1 auto;
  10933. text-align: center;
  10934. cursor: pointer;
  10935. }
  10936. .addEva {
  10937. border: 1px solid #ccc;
  10938. background: #fff;
  10939. margin-right: 20px;
  10940. width: 270px;
  10941. height: 149px;
  10942. display: flex;
  10943. flex-direction: column;
  10944. align-items: center;
  10945. border-radius: 5px;
  10946. margin-top: 10px;
  10947. text-align: center;
  10948. cursor: pointer;
  10949. justify-content: center;
  10950. }
  10951. .addEva>img {
  10952. width: 50px;
  10953. object-fit: cover;
  10954. }
  10955. .uploadFm {
  10956. border: 1px dashed #ccc;
  10957. width: 100%;
  10958. height: 140px;
  10959. position: relative;
  10960. cursor: pointer;
  10961. display: flex;
  10962. flex-direction: column;
  10963. justify-content: center;
  10964. align-items: center;
  10965. font-size: 14px;
  10966. color: #6e6e6e;
  10967. position: relative;
  10968. }
  10969. .cover_p {
  10970. width: 100% !important;
  10971. height: 100%;
  10972. object-fit: cover;
  10973. }
  10974. .uploadFm2:hover .cover_mask {
  10975. display: flex !important;
  10976. }
  10977. .cover_mask {
  10978. display: none;
  10979. width: 100%;
  10980. height: 100%;
  10981. position: absolute;
  10982. background: #00000054;
  10983. align-items: center;
  10984. justify-content: center;
  10985. flex-direction: column;
  10986. }
  10987. .cover_mask>img {
  10988. width: 30px;
  10989. }
  10990. .cover_mask>span {
  10991. color: #fff;
  10992. font-size: 12px;
  10993. }
  10994. .uploadFm>img {
  10995. width: 50px;
  10996. }
  10997. .fileCss {
  10998. width: 100%;
  10999. display: flex;
  11000. flex-direction: row;
  11001. flex-wrap: nowrap;
  11002. justify-content: space-around;
  11003. align-items: center;
  11004. padding-top: 15px;
  11005. }
  11006. .sysPicBox {
  11007. display: flex;
  11008. flex-direction: row;
  11009. flex-wrap: wrap;
  11010. align-content: flex-start;
  11011. height: 435px;
  11012. overflow: auto;
  11013. }
  11014. .sysPic {
  11015. width: 200px;
  11016. height: 115px;
  11017. margin: 0 20px 20px 0;
  11018. cursor: pointer;
  11019. }
  11020. .sysPic>img,
  11021. .isSysPic>img,
  11022. .deletePic>img {
  11023. width: 100%;
  11024. height: 100%;
  11025. object-fit: cover;
  11026. }
  11027. .isSysPic {
  11028. width: 200px;
  11029. height: 115px;
  11030. position: relative;
  11031. }
  11032. .deletePic {
  11033. width: 20px;
  11034. height: 20px;
  11035. position: absolute;
  11036. top: 0;
  11037. right: 0;
  11038. cursor: pointer;
  11039. }
  11040. .select_box1 {}
  11041. .select_box1_img {
  11042. background: #fff;
  11043. border-radius: 5px;
  11044. padding: 15px;
  11045. box-sizing: border-box;
  11046. margin-bottom: 20px;
  11047. }
  11048. .select_box1_title {
  11049. padding: 0 0 15px 0;
  11050. border-bottom: 1px solid #eee;
  11051. margin-bottom: 15px;
  11052. }
  11053. .select_box1_title span:nth-child(1) {
  11054. font-size: 16px;
  11055. margin-right: 20px;
  11056. color: #000;
  11057. }
  11058. .select_box1_title span:nth-child(2) {
  11059. font-size: 14px;
  11060. color: rgb(112, 112, 112);
  11061. }
  11062. .select_box1_add_img {}
  11063. .select_box1_select {
  11064. background: #fff;
  11065. border-radius: 5px;
  11066. padding: 15px;
  11067. box-sizing: border-box;
  11068. }
  11069. .select_box2 {}
  11070. .select_box2_title {
  11071. background: #fff;
  11072. border-radius: 5px;
  11073. padding: 5px 10px;
  11074. box-sizing: border-box;
  11075. margin-bottom: 10px;
  11076. }
  11077. .select_box2_box {
  11078. display: flex;
  11079. height: 500px;
  11080. }
  11081. .select_box2_img {
  11082. width: calc(100% - 310px);
  11083. height: 100%;
  11084. overflow: auto;
  11085. background: #fff;
  11086. border-radius: 5px;
  11087. }
  11088. .select_box2_img img {
  11089. width: 100%;
  11090. }
  11091. .select_box2_answer {
  11092. background: #fff;
  11093. margin-left: 10px;
  11094. border-radius: 5px;
  11095. width: 300px;
  11096. overflow: auto;
  11097. height: 100%;
  11098. display: flex;
  11099. flex-direction: column;
  11100. align-items: center;
  11101. padding-top: 10px;
  11102. box-sizing: border-box;
  11103. }
  11104. .select_box2_answer_box {
  11105. margin: 0 0 10px 0;
  11106. width: 85%;
  11107. }
  11108. .rate_textarea {
  11109. font: inherit;
  11110. color: currentColor;
  11111. width: 100%;
  11112. padding: 8px 14px;
  11113. display: block;
  11114. min-width: 0;
  11115. outline: none;
  11116. border: 1px solid rgba(0, 0, 0, 0.23);
  11117. border-radius: 4px;
  11118. box-sizing: border-box;
  11119. background: #fff;
  11120. margin: 0 20px 0 0;
  11121. resize: none;
  11122. }
  11123. .select_answer_title {
  11124. text-align: left;
  11125. width: 85%;
  11126. margin-bottom: 10px;
  11127. font-size: 18px;
  11128. color: #8e8e8e;
  11129. }
  11130. .mask {
  11131. background-color: rgb(0 0 0 / 30%);
  11132. /* position: fixed; */
  11133. position: absolute;
  11134. top: 0;
  11135. left: 0;
  11136. width: 100%;
  11137. height: 100%;
  11138. z-index: 90;
  11139. display: flex;
  11140. align-items: center;
  11141. justify-content: center;
  11142. }
  11143. .mask2 {
  11144. position: fixed !important;
  11145. z-index: 999999;
  11146. }
  11147. .progressBox {
  11148. width: 300px;
  11149. height: 150px;
  11150. background: #fff;
  11151. border-radius: 10px;
  11152. box-shadow: 0 0 6px 1px #bfbfbf;
  11153. display: flex;
  11154. align-items: center;
  11155. justify-content: center;
  11156. flex-direction: column;
  11157. position: relative;
  11158. color: #6c6c6c;
  11159. }
  11160. .progressBox .lbox {
  11161. height: 80px;
  11162. font-size: 16px;
  11163. display: flex;
  11164. align-items: center;
  11165. }
  11166. .progressBox .lbox img {
  11167. width: 40px;
  11168. margin-right: 20px;
  11169. }
  11170. .progressBox>>>.el-progress-bar__outer {
  11171. background-color: #d1dfff !important;
  11172. }
  11173. .mask .lbox2 {
  11174. height: 100%;
  11175. width: 100%;
  11176. font-size: 19px;
  11177. display: flex;
  11178. align-items: center;
  11179. justify-content: center;
  11180. }
  11181. .mask .lbox2 img {
  11182. width: 40px;
  11183. }
  11184. .updateTips::after {
  11185. content: "他人项目暂不支持修改基本信息,只支持修改阶段内容。";
  11186. font-size: 14px;
  11187. margin-left: 20px;
  11188. font-weight: 400;
  11189. color: #ff3a3a;
  11190. }
  11191. .updateMask {
  11192. width: 100%;
  11193. z-index: 3;
  11194. top: 0;
  11195. position: absolute;
  11196. }
  11197. .t_j_box {
  11198. display: flex;
  11199. }
  11200. .t_j_box span:nth-child(1) {
  11201. width: 15%;
  11202. overflow: hidden;
  11203. margin-right: 10px;
  11204. text-overflow: ellipsis;
  11205. white-space: nowrap;
  11206. }
  11207. .t_j_box span:nth-child(2) {
  11208. min-width: 30px;
  11209. margin-right: 10px;
  11210. }
  11211. .t_j_box span:nth-child(3) {
  11212. width: 38%;
  11213. overflow: hidden;
  11214. text-overflow: ellipsis;
  11215. margin-right: 10px;
  11216. }
  11217. .t_j_box span:nth-child(4) {
  11218. max-width: calc(45% - 60px);
  11219. overflow: hidden;
  11220. text-overflow: ellipsis;
  11221. }
  11222. .sentenBox {
  11223. background: #fff;
  11224. height: 600px;
  11225. overflow: auto;
  11226. background-image: url("../../../assets/icon/conSentences/csBg.png");
  11227. background-position: 102%;
  11228. background-repeat: no-repeat;
  11229. background-size: 60%;
  11230. }
  11231. .addSen {
  11232. background: #409efe;
  11233. width: 90px;
  11234. color: #fff;
  11235. height: 35px;
  11236. text-align: center;
  11237. line-height: 35px;
  11238. border-radius: 5px;
  11239. float: right;
  11240. margin: 10px 20px 0 0;
  11241. cursor: pointer;
  11242. }
  11243. .sentenTop {
  11244. display: flex;
  11245. flex-direction: row;
  11246. flex-wrap: nowrap;
  11247. align-items: center;
  11248. }
  11249. .sentenTop>div:nth-child(2) {
  11250. width: 300px;
  11251. margin: 0 15px;
  11252. }
  11253. .sentenTop>div:nth-child(3) {
  11254. background: #409efe;
  11255. color: #fff;
  11256. width: 65px;
  11257. height: 35px;
  11258. text-align: center;
  11259. line-height: 35px;
  11260. border-radius: 5px;
  11261. cursor: pointer;
  11262. }
  11263. .cardList {
  11264. padding: 30px 0 20px 0;
  11265. display: flex;
  11266. flex-direction: row;
  11267. flex-wrap: wrap;
  11268. align-items: center;
  11269. box-sizing: border-box;
  11270. border-bottom: 1px solid #f4f4f4;
  11271. width: 98%;
  11272. margin: 0 auto;
  11273. }
  11274. .cardBox {
  11275. display: flex;
  11276. flex-direction: row;
  11277. flex-wrap: wrap;
  11278. align-items: center;
  11279. align-content: center;
  11280. }
  11281. .isCard,
  11282. .isCard1 {
  11283. width: 140px;
  11284. height: 65px;
  11285. text-align: center;
  11286. line-height: 65px;
  11287. font-size: 20px;
  11288. cursor: pointer;
  11289. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  11290. background-size: cover;
  11291. position: relative;
  11292. z-index: 99;
  11293. }
  11294. .isCard1 {
  11295. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  11296. }
  11297. .isCard:hover .deleteWord {
  11298. display: block;
  11299. }
  11300. .isCard>div:nth-child(1),
  11301. .isCard1>div:nth-child(1) {
  11302. white-space: nowrap;
  11303. overflow: hidden;
  11304. text-overflow: ellipsis;
  11305. width: 80%;
  11306. margin: 0 auto;
  11307. }
  11308. .card {
  11309. width: 140px;
  11310. height: 65px;
  11311. }
  11312. .card>img {
  11313. width: 100%;
  11314. height: 100%;
  11315. }
  11316. .rightCardBox {
  11317. margin: 10px 0 0 10px;
  11318. }
  11319. .rightCardBox>div:nth-child(1) {
  11320. margin-bottom: 10px;
  11321. }
  11322. .cardCss {
  11323. display: flex;
  11324. flex-direction: column;
  11325. flex-wrap: nowrap;
  11326. align-items: center;
  11327. border-bottom: 3px solid #b4c3d3;
  11328. padding: 0 0 5px 0;
  11329. margin-right: 10px;
  11330. }
  11331. .cardCss>div:nth-child(2) {
  11332. background: #5b7b9d;
  11333. color: #fff;
  11334. width: 20px;
  11335. height: 20px;
  11336. border-radius: 50%;
  11337. text-align: center;
  11338. line-height: 20px;
  11339. }
  11340. .sentenTopBox {
  11341. display: flex;
  11342. flex-direction: row;
  11343. flex-wrap: nowrap;
  11344. align-items: center;
  11345. justify-content: space-between;
  11346. padding: 55px 0 0 20px;
  11347. box-sizing: border-box;
  11348. width: 85%;
  11349. }
  11350. .stepsBottom {
  11351. width: 100%;
  11352. box-shadow: 0 0 10px 10px #f7f7f7;
  11353. /* background: #f7f7f7; */
  11354. border-radius: 10px;
  11355. overflow: hidden;
  11356. height: 100%
  11357. }
  11358. .navTop {
  11359. background: #53749b;
  11360. color: #fff;
  11361. height: 40px;
  11362. line-height: 40px;
  11363. padding-left: 15px;
  11364. font-size: 18px;
  11365. }
  11366. .navBottom {
  11367. /* background: #6b91b7; */
  11368. height: 100%;
  11369. overflow: auto;
  11370. padding: 10px 0;
  11371. }
  11372. .navStage {
  11373. display: flex;
  11374. flex-direction: row;
  11375. flex-wrap: nowrap;
  11376. align-items: center;
  11377. padding: 10px 10px 10px 0;
  11378. cursor: pointer;
  11379. background: #ffffff;
  11380. width: 95%;
  11381. margin: 5px auto 5px;
  11382. box-sizing: border-box;
  11383. border-radius: 5px;
  11384. flex-wrap: wrap;
  11385. position: relative;
  11386. }
  11387. .navStage:hover>.chapter_upload_drag {
  11388. display: block;
  11389. }
  11390. .navTask:hover>.chapter_upload_drag {
  11391. display: block;
  11392. }
  11393. .chapter_upload:hover>.chapter_upload_drag {
  11394. display: block;
  11395. }
  11396. .navStage::before {
  11397. content: '';
  11398. display: block;
  11399. width: 16px;
  11400. height: 16px;
  11401. background-image: url(../../../assets/icon/new/icon_stage.png);
  11402. background-size: 100%;
  11403. margin-left: 25px;
  11404. }
  11405. .navStage .chapter_unit_open {
  11406. content: '';
  11407. display: block;
  11408. width: 16px;
  11409. height: 16px;
  11410. background-image: url(../../../assets/icon/new/down.png);
  11411. transform: rotate(-90deg);
  11412. background-size: 100%;
  11413. margin-left: 10px;
  11414. transition: all .5s;
  11415. }
  11416. .isNavStageOpen .chapter_unit_open {
  11417. transform: rotate(0deg);
  11418. }
  11419. .isNavStage {
  11420. background: #0061FF;
  11421. }
  11422. .isNavStage::before {
  11423. background-image: url(../../../assets/icon/new/icon_stage_a.png);
  11424. }
  11425. .isNavStage .chapter_unit_open {
  11426. background-image: url(../../../assets/icon/new/downC.png);
  11427. }
  11428. .isNavStage .nt_taskName {
  11429. font-weight: bold !important;
  11430. color: #FFFFFF !important;
  11431. }
  11432. .isNavStage .nt_taskTitle {
  11433. font-weight: bold !important;
  11434. color: #fff !important;
  11435. }
  11436. .navStage .nt_taskBox {
  11437. width: calc(100% - 68px);
  11438. padding: 0 0 0 5px;
  11439. box-sizing: border-box;
  11440. box-sizing: border-box;
  11441. display: flex;
  11442. flex-direction: row;
  11443. flex-wrap: nowrap;
  11444. align-items: baseline;
  11445. }
  11446. .navStage .nt_taskTitle {
  11447. color: #060E17;
  11448. line-height: 25px;
  11449. font-size: 16px;
  11450. }
  11451. .navStage .nt_taskName {
  11452. max-width: calc(100% - 82px);
  11453. white-space: nowrap;
  11454. overflow: hidden;
  11455. text-overflow: ellipsis;
  11456. font-size: 16px;
  11457. color: #060E17;
  11458. }
  11459. .navTask {
  11460. display: flex;
  11461. flex-direction: row;
  11462. flex-wrap: nowrap;
  11463. align-items: center;
  11464. padding: 10px 10px 10px 0;
  11465. cursor: pointer;
  11466. background: #ffffff;
  11467. width: 95%;
  11468. margin: 5px auto 5px;
  11469. box-sizing: border-box;
  11470. border-radius: 5px;
  11471. flex-wrap: wrap;
  11472. position: relative;
  11473. }
  11474. .navTask .chapter_upload_open {
  11475. content: '';
  11476. display: block;
  11477. width: 16px;
  11478. height: 16px;
  11479. background-image: url(../../../assets/icon/new/icon_arrow.png);
  11480. background-size: 100%;
  11481. margin-left: 23px;
  11482. }
  11483. .noImage .chapter_upload_open {
  11484. display: none;
  11485. background-image: unset !important;
  11486. }
  11487. .isNavOpen .chapter_upload_open {
  11488. /* background-image: url(../../assets/icon/new/icon_arrow_a.png) !important; */
  11489. transform: rotate(90deg);
  11490. }
  11491. .isNavTask .chapter_upload_open {
  11492. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  11493. transform: rotate(-90deg);
  11494. }
  11495. .isNavTask.isNavOpen .chapter_upload_open {
  11496. transform: rotate(0deg);
  11497. }
  11498. .dragOverTop {
  11499. border-top: 2px solid #0061FF !important;
  11500. border-radius: 0 !important;
  11501. margin-top: 10px;
  11502. }
  11503. .dragOverBottom {
  11504. border-bottom: 2px solid #0061FF !important;
  11505. border-radius: 0 !important;
  11506. margin-top: 10px;
  11507. }
  11508. .dragOverTop2 {
  11509. border-top: 2px solid #0061FF !important;
  11510. border-radius: 0 !important;
  11511. }
  11512. .dragOverBottom2 {
  11513. border-bottom: 2px solid #0061FF !important;
  11514. border-radius: 0 !important;
  11515. }
  11516. .isNavTask {
  11517. /* background: #3681FC; */
  11518. background: #EEF3FB;
  11519. }
  11520. .isNavTask>.chapter_upload_drag {
  11521. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  11522. }
  11523. .isNavTask .nt_taskName {
  11524. /* color: #fff !important; */
  11525. font-weight: bold !important;
  11526. color: #0061FF !important;
  11527. }
  11528. .isNavTask .nt_taskTitle {
  11529. /* color: #AECCFE !important; */
  11530. font-weight: bold !important;
  11531. color: #0061FF !important;
  11532. }
  11533. .navTask .nt_taskBox {
  11534. width: calc(100% - 40px);
  11535. padding: 0 0 0 5px;
  11536. box-sizing: border-box;
  11537. box-sizing: border-box;
  11538. display: flex;
  11539. flex-direction: row;
  11540. flex-wrap: nowrap;
  11541. align-items: baseline;
  11542. }
  11543. .navTask .nt_taskTitle {
  11544. /* color: #717C8D; */
  11545. color: #060E17;
  11546. line-height: 25px;
  11547. font-size: 16px;
  11548. /* min-width: 66px; */
  11549. }
  11550. .navTask .nt_taskName {
  11551. /* color: #fff; */
  11552. /* max-width: 130px; */
  11553. /* width: 100%; */
  11554. max-width: calc(100% - 66px);
  11555. font-size: 16px;
  11556. color: #060E17;
  11557. /* color: #0E1E33; */
  11558. }
  11559. .navTask .nt_taskName span {
  11560. width: 100%;
  11561. white-space: nowrap;
  11562. overflow: hidden;
  11563. text-overflow: ellipsis;
  11564. display: block;
  11565. }
  11566. .gjBox {
  11567. width: calc(100% - 25px);
  11568. padding: 0 0 0 0;
  11569. box-sizing: border-box;
  11570. border-left: 1px solid #CAD1DC;
  11571. margin-left: 25px;
  11572. }
  11573. .gjBox>div {
  11574. display: flex;
  11575. align-items: center;
  11576. }
  11577. .gjBox>div::before {
  11578. content: '';
  11579. height: 1px;
  11580. width: 10px;
  11581. background: #CAD1DC;
  11582. display: block;
  11583. margin-right: 5px;
  11584. }
  11585. .gjCss {
  11586. display: flex;
  11587. flex-direction: row;
  11588. flex-wrap: nowrap;
  11589. align-items: center;
  11590. padding: 15px 0;
  11591. box-sizing: border-box;
  11592. font-size: 14px;
  11593. cursor: pointer;
  11594. }
  11595. .isGjCss {
  11596. color: #0061ff;
  11597. }
  11598. .groupBox {}
  11599. .groupContent+.groupContent {
  11600. margin-top: 30px;
  11601. }
  11602. .groupTitle {
  11603. font-size: 24px;
  11604. color: rgb(80, 80, 80);
  11605. margin-bottom: 20px;
  11606. }
  11607. .groupName {
  11608. display: flex;
  11609. align-items: center;
  11610. }
  11611. .groupn {
  11612. font-size: 15px;
  11613. margin-right: 10px;
  11614. }
  11615. .groupName+.groupName {
  11616. margin-top: 15px;
  11617. }
  11618. .groupBtn {
  11619. margin-left: 10px;
  11620. }
  11621. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  11622. text-align: left;
  11623. }
  11624. .toolimg {
  11625. width: 200px;
  11626. border-radius: 10px;
  11627. box-shadow: rgb(223 218 218) 0px 0px 6px 1px;
  11628. cursor: pointer;
  11629. overflow: hidden;
  11630. position: relative;
  11631. }
  11632. .toolimg>img {
  11633. width: 100%;
  11634. height: 105px;
  11635. object-fit: contain;
  11636. }
  11637. .proMan {
  11638. width: 95%;
  11639. margin: 0 auto;
  11640. padding: 0 0 20px;
  11641. margin-top: 20px;
  11642. }
  11643. .proMan .title {
  11644. margin-bottom: 10px;
  11645. display: flex;
  11646. align-items: center;
  11647. }
  11648. .proMan .title img {
  11649. margin-right: 5px;
  11650. height: 17px;
  11651. width: 17px;
  11652. }
  11653. .ed_s>>>.text {
  11654. height: auto;
  11655. min-height: 100px;
  11656. }
  11657. .ed_s>>>.w-e-text-container {
  11658. min-height: 100px;
  11659. }
  11660. .toolimg_box {
  11661. display: flex;
  11662. flex-wrap: wrap;
  11663. }
  11664. .toolimg {
  11665. margin: 0 20px 20px 0;
  11666. }
  11667. .comment {
  11668. background: #f5f5f5;
  11669. /* border-radius: 0 0 15px 15px; */
  11670. display: flex;
  11671. flex-direction: row;
  11672. flex-wrap: nowrap;
  11673. align-items: center;
  11674. justify-content: flex-end;
  11675. height: 35px;
  11676. }
  11677. .worksName {
  11678. display: flex;
  11679. width: 92%;
  11680. flex-direction: row;
  11681. flex-wrap: nowrap;
  11682. justify-content: space-between;
  11683. align-items: center;
  11684. margin: 0 10px;
  11685. }
  11686. .worksName>div:nth-child(1) {
  11687. width: 60px;
  11688. white-space: nowrap;
  11689. overflow: hidden;
  11690. text-overflow: ellipsis;
  11691. }
  11692. .worksName>div:nth-child(2) {
  11693. max-width: calc(100% - 70px);
  11694. position: relative;
  11695. display: flex;
  11696. align-items: center;
  11697. }
  11698. .worksName>div:nth-child(2)>span {
  11699. width: 100%;
  11700. white-space: nowrap;
  11701. overflow: hidden;
  11702. text-overflow: ellipsis;
  11703. color: #4e91c4;
  11704. }
  11705. .worksName>div:nth-child(2)>img {
  11706. max-width: 16px;
  11707. width: 16px;
  11708. height: 15px;
  11709. }
  11710. .deleteImg {
  11711. width: 25px !important;
  11712. height: 25px !important;
  11713. cursor: pointer;
  11714. position: absolute;
  11715. top: 10px;
  11716. right: 10px;
  11717. }
  11718. .texttitle {
  11719. background: #1e5cc9;
  11720. /* width: 98%; */
  11721. height: 45px;
  11722. color: #fff;
  11723. line-height: 45px;
  11724. padding-left: 20px;
  11725. box-sizing: border-box;
  11726. }
  11727. .textBox {
  11728. font-size: 20px;
  11729. width: 90%;
  11730. display: flex;
  11731. flex-direction: column;
  11732. align-items: center;
  11733. margin: 20px auto 0;
  11734. }
  11735. .textContent {
  11736. font-size: 18px;
  11737. height: 450px;
  11738. width: 95%;
  11739. overflow: auto;
  11740. line-height: 30px;
  11741. }
  11742. .vedioTaskBox {
  11743. width: 100%;
  11744. display: flex;
  11745. flex-direction: row;
  11746. flex-wrap: nowrap;
  11747. align-items: center;
  11748. }
  11749. .box_course {
  11750. /* width: 60%; */
  11751. width: 81%;
  11752. }
  11753. .wheel {
  11754. width: 100%;
  11755. height: 100%;
  11756. }
  11757. .vedioList {
  11758. /* background: #f2f2f2; */
  11759. background: #fff;
  11760. border: 1px solid #ececec;
  11761. /* width: 38.8%; */
  11762. width: calc(100% - 83%);
  11763. height: 650px;
  11764. border-radius: 10px;
  11765. overflow: hidden;
  11766. }
  11767. .navTitile {
  11768. padding: 0 0px 0 15px;
  11769. background: #1e5cc9;
  11770. color: #fff;
  11771. height: 40px;
  11772. line-height: 40px;
  11773. border-top-left-radius: 10px;
  11774. border-top-right-radius: 10px;
  11775. }
  11776. .navBox {
  11777. background: rgb(255, 255, 255);
  11778. height: calc(100% - 40px);
  11779. padding: 5px 1px 0 1px;
  11780. overflow: auto;
  11781. }
  11782. .vedioTimeBox {
  11783. display: flex;
  11784. flex-direction: row;
  11785. align-items: center;
  11786. flex-wrap: nowrap;
  11787. position: relative;
  11788. }
  11789. .vedioName {
  11790. cursor: pointer;
  11791. margin: 0px 0px 10px 5px;
  11792. white-space: nowrap;
  11793. overflow: hidden;
  11794. text-overflow: ellipsis;
  11795. width: 100%;
  11796. }
  11797. .isClickNav {
  11798. color: #499eef;
  11799. }
  11800. .full_diy>>>.el-dialog {
  11801. margin: 0 !important;
  11802. height: 100%;
  11803. padding: 4px;
  11804. }
  11805. .full_diy>>>.el-dialog__body {
  11806. height: calc(100% - 100px);
  11807. }
  11808. .full_diy2>>>.el-dialog__body {
  11809. height: calc(100% - 50px);
  11810. padding: 0;
  11811. }
  11812. .queTop {
  11813. display: flex;
  11814. padding: 20px 0 20px 30px;
  11815. width: 100%;
  11816. flex-direction: row;
  11817. justify-content: flex-start;
  11818. align-items: center;
  11819. border-bottom: 1px solid #eeeeee;
  11820. box-sizing: border-box;
  11821. }
  11822. .question {
  11823. width: 40px;
  11824. margin-right: 10px;
  11825. margin-top: 7px;
  11826. }
  11827. .queTitle {
  11828. margin-left: 5px;
  11829. font-size: 25px;
  11830. display: flex;
  11831. align-items: center;
  11832. }
  11833. .addEditor {
  11834. width: 100px;
  11835. height: 30px;
  11836. background: #42cda6;
  11837. color: #fff;
  11838. border-radius: 5px;
  11839. text-align: center;
  11840. line-height: 30px;
  11841. box-shadow: 1px 3px 6px 1px #bfbfbf;
  11842. cursor: pointer;
  11843. }
  11844. .answerWidth {
  11845. width: 250px !important;
  11846. }
  11847. .answerBg {
  11848. background: url("../../../assets/icon/answerBgNew.png") no-repeat;
  11849. background-size: cover;
  11850. width: 100%;
  11851. height: 120px;
  11852. padding: 0 10px;
  11853. box-sizing: border-box;
  11854. color: #fff;
  11855. text-align: center;
  11856. display: flex;
  11857. flex-direction: column;
  11858. flex-wrap: nowrap;
  11859. align-items: center;
  11860. position: relative;
  11861. justify-content: center;
  11862. }
  11863. .answerContent {
  11864. /* width: 215px; */
  11865. max-height: 60px;
  11866. word-break: break-all;
  11867. text-align: center;
  11868. /* white-space: nowrap; */
  11869. overflow: hidden;
  11870. text-overflow: ellipsis;
  11871. /* padding: 23px 0 0; */
  11872. -webkit-line-clamp: 3;
  11873. -webkit-box-orient: vertical;
  11874. display: -webkit-box;
  11875. font-size: 15px;
  11876. }
  11877. .fullStyle>>>.el-dialog__body {
  11878. height: 100% !important;
  11879. }
  11880. .fullStyle>>>.el-dialog,
  11881. .fullStyle {
  11882. width: 100% !important;
  11883. max-width: 100% !important;
  11884. height: 100% !important;
  11885. margin: 0 !important;
  11886. }
  11887. .wb_j_box_btn {
  11888. width: calc(100% - 30px);
  11889. display: flex;
  11890. height: 40px;
  11891. border: 1.5px solid #CAD1DC;
  11892. border-radius: 4px;
  11893. box-sizing: border-box;
  11894. align-items: center;
  11895. font-size: 14px;
  11896. cursor: pointer;
  11897. overflow: hidden;
  11898. }
  11899. .wb_j_box_btn:hover {
  11900. border: 1.5px solid #0061FF;
  11901. }
  11902. .wb_j_box_title {
  11903. background: #F0F4FA;
  11904. height: 100%;
  11905. line-height: 40px;
  11906. width: 90px;
  11907. text-align: center;
  11908. color: #060E17;
  11909. border-right: 1.5px solid #CAD1DC;
  11910. box-sizing: border-box;
  11911. }
  11912. .wb_j_box_btn_c {
  11913. width: calc(100% - 90px);
  11914. padding: 0 35px 0 10px;
  11915. box-sizing: border-box;
  11916. position: relative;
  11917. }
  11918. .wb_j_box_span {
  11919. width: 100%;
  11920. overflow: hidden;
  11921. white-space: nowrap;
  11922. text-overflow: ellipsis;
  11923. word-wrap: break-word;
  11924. color: #717C8D;
  11925. }
  11926. .wb_j_box_arrow {
  11927. content: '';
  11928. width: 14px;
  11929. height: 14px;
  11930. background: url(../../../assets/icon/new/u_arrow.png);
  11931. background-size: 100% 100%;
  11932. position: absolute;
  11933. right: 12px;
  11934. top: 50%;
  11935. transform: translateY(-50%);
  11936. }
  11937. .tcMember+.tcMember::before {
  11938. content: "、";
  11939. }
  11940. .tcMember_box {
  11941. margin-left: 10px;
  11942. border: 1px solid #c0c4cc;
  11943. padding: 10px 14px;
  11944. border-radius: 4px;
  11945. background: #fff;
  11946. cursor: pointer;
  11947. color: #606266;
  11948. font-size: 14px;
  11949. width: 225px;
  11950. overflow: hidden;
  11951. text-overflow: ellipsis;
  11952. white-space: nowrap;
  11953. }
  11954. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  11955. height: auto;
  11956. }
  11957. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  11958. width: 200px;
  11959. height: 100px;
  11960. object-fit: contain;
  11961. background: unset;
  11962. }
  11963. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  11964. display: none;
  11965. }
  11966. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  11967. color: rgb(0 123 255) !important;
  11968. }
  11969. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  11970. color: rgb(0 123 255) !important;
  11971. }
  11972. .closeCss {
  11973. position: absolute;
  11974. top: 8px;
  11975. right: 8px;
  11976. cursor: pointer;
  11977. width: 20px;
  11978. height: 20px;
  11979. }
  11980. .closeCss>img {
  11981. width: 100%;
  11982. height: 100%;
  11983. }
  11984. .f_size_box {
  11985. display: flex;
  11986. margin: 5px 0px;
  11987. align-items: center;
  11988. color: #6c6c6c;
  11989. }
  11990. .f_size_box img {
  11991. height: 20px;
  11992. }
  11993. .f_size_box>div {
  11994. margin: 0 8px;
  11995. }
  11996. .moveBtn {
  11997. display: flex;
  11998. flex-direction: column;
  11999. align-items: flex-end;
  12000. width: 40px;
  12001. }
  12002. .rb_c_box {
  12003. width: 100%;
  12004. height: 100%;
  12005. display: flex;
  12006. /* padding: 20px; */
  12007. box-sizing: border-box;
  12008. justify-content: space-between;
  12009. }
  12010. .rb_c_box_left {
  12011. height: 100%;
  12012. background: #fff;
  12013. width: 270px;
  12014. min-width: 270px;
  12015. border-radius: 8px;
  12016. margin-right: 10px;
  12017. }
  12018. .rb_c_box_right {
  12019. height: 100%;
  12020. width: calc(100%);
  12021. overflow: hidden;
  12022. }
  12023. .rb_c_box_btn {
  12024. display: flex;
  12025. justify-content: flex-start;
  12026. height: 50px;
  12027. align-items: center;
  12028. }
  12029. .rb_c_box_right>.basic_box {
  12030. /* background: #fff; */
  12031. border-radius: 0;
  12032. height: calc(100% - 0px);
  12033. overflow: auto;
  12034. padding: 0;
  12035. }
  12036. .taskTitle {
  12037. font-size: 20px;
  12038. font-weight: bold;
  12039. margin-bottom: 35px;
  12040. }
  12041. .taskTitle:after {
  12042. content: '';
  12043. width: 100%;
  12044. display: block;
  12045. height: 1px;
  12046. background: #CAD1DC;
  12047. position: absolute;
  12048. left: 0;
  12049. margin: 15px 0 0;
  12050. }</style>