17.js 308 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442
  1. webpackJsonp([17],{
  2. /***/ 535:
  3. /***/ (function(module, exports, __webpack_require__) {
  4. var disposed = false
  5. function injectStyle (ssrContext) {
  6. if (disposed) return
  7. __webpack_require__(777)
  8. __webpack_require__(779)
  9. }
  10. var normalizeComponent = __webpack_require__(4)
  11. /* script */
  12. var __vue_script__ = __webpack_require__(781)
  13. /* template */
  14. var __vue_template__ = __webpack_require__(847)
  15. /* template functional */
  16. var __vue_template_functional__ = false
  17. /* styles */
  18. var __vue_styles__ = injectStyle
  19. /* scopeId */
  20. var __vue_scopeId__ = "data-v-4bac3242"
  21. /* moduleIdentifier (server only) */
  22. var __vue_module_identifier__ = null
  23. var Component = normalizeComponent(
  24. __vue_script__,
  25. __vue_template__,
  26. __vue_template_functional__,
  27. __vue_styles__,
  28. __vue_scopeId__,
  29. __vue_module_identifier__
  30. )
  31. Component.options.__file = "resources/assets/js/main/pages/project/panel.vue"
  32. /* hot reload */
  33. if (false) {(function () {
  34. var hotAPI = require("vue-hot-reload-api")
  35. hotAPI.install(require("vue"), false)
  36. if (!hotAPI.compatible) return
  37. module.hot.accept()
  38. if (!module.hot.data) {
  39. hotAPI.createRecord("data-v-4bac3242", Component.options)
  40. } else {
  41. hotAPI.reload("data-v-4bac3242", Component.options)
  42. }
  43. module.hot.dispose(function (data) {
  44. disposed = true
  45. })
  46. })()}
  47. module.exports = Component.exports
  48. /***/ }),
  49. /***/ 550:
  50. /***/ (function(module, exports, __webpack_require__) {
  51. var disposed = false
  52. function injectStyle (ssrContext) {
  53. if (disposed) return
  54. __webpack_require__(551)
  55. }
  56. var normalizeComponent = __webpack_require__(4)
  57. /* script */
  58. var __vue_script__ = __webpack_require__(553)
  59. /* template */
  60. var __vue_template__ = __webpack_require__(554)
  61. /* template functional */
  62. var __vue_template_functional__ = false
  63. /* styles */
  64. var __vue_styles__ = injectStyle
  65. /* scopeId */
  66. var __vue_scopeId__ = "data-v-35be3d57"
  67. /* moduleIdentifier (server only) */
  68. var __vue_module_identifier__ = null
  69. var Component = normalizeComponent(
  70. __vue_script__,
  71. __vue_template__,
  72. __vue_template_functional__,
  73. __vue_styles__,
  74. __vue_scopeId__,
  75. __vue_module_identifier__
  76. )
  77. Component.options.__file = "resources/assets/js/main/components/WContent.vue"
  78. /* hot reload */
  79. if (false) {(function () {
  80. var hotAPI = require("vue-hot-reload-api")
  81. hotAPI.install(require("vue"), false)
  82. if (!hotAPI.compatible) return
  83. module.hot.accept()
  84. if (!module.hot.data) {
  85. hotAPI.createRecord("data-v-35be3d57", Component.options)
  86. } else {
  87. hotAPI.reload("data-v-35be3d57", Component.options)
  88. }
  89. module.hot.dispose(function (data) {
  90. disposed = true
  91. })
  92. })()}
  93. module.exports = Component.exports
  94. /***/ }),
  95. /***/ 551:
  96. /***/ (function(module, exports, __webpack_require__) {
  97. // style-loader: Adds some css to the DOM by adding a <style> tag
  98. // load the styles
  99. var content = __webpack_require__(552);
  100. if(typeof content === 'string') content = [[module.i, content, '']];
  101. if(content.locals) module.exports = content.locals;
  102. // add the styles to the DOM
  103. var update = __webpack_require__(3)("5ee96958", content, false, {});
  104. // Hot Module Replacement
  105. if(false) {
  106. // When the styles change, update the <style> tags
  107. if(!content.locals) {
  108. module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-35be3d57\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./WContent.vue", function() {
  109. var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-35be3d57\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./WContent.vue");
  110. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  111. update(newContent);
  112. });
  113. }
  114. // When the module is disposed, remove the <style> tags
  115. module.hot.dispose(function() { update(); });
  116. }
  117. /***/ }),
  118. /***/ 552:
  119. /***/ (function(module, exports, __webpack_require__) {
  120. exports = module.exports = __webpack_require__(2)(false);
  121. // imports
  122. // module
  123. exports.push([module.i, "\n.w-content[data-v-35be3d57] {\n position: absolute;\n top: 72px;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: auto;\n background-repeat: no-repeat;\n background-position: center;\n background-color: #EEEEEE;\n background-size: cover;\n}\n.w-content .w-container[data-v-35be3d57] {\n min-height: 500px;\n}\n", ""]);
  124. // exports
  125. /***/ }),
  126. /***/ 553:
  127. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  128. "use strict";
  129. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  130. //
  131. //
  132. //
  133. //
  134. //
  135. //
  136. //
  137. //
  138. //
  139. //
  140. //
  141. //
  142. //
  143. //
  144. //
  145. //
  146. //
  147. //
  148. //
  149. //
  150. //
  151. //
  152. //
  153. //
  154. /* harmony default export */ __webpack_exports__["default"] = ({
  155. name: 'WContent',
  156. data: function data() {
  157. return {
  158. bgid: -1
  159. };
  160. },
  161. mounted: function mounted() {
  162. this.bgid = $A.runNum(this.usrInfo.bgid);
  163. },
  164. watch: {
  165. usrInfo: {
  166. handler: function handler(info) {
  167. this.bgid = $A.runNum(info.bgid);
  168. },
  169. deep: true
  170. }
  171. },
  172. methods: {
  173. getBgUrl: function getBgUrl(id, thumb) {
  174. if (id < 0) {
  175. return 'none';
  176. }
  177. id = Math.max(1, parseInt(id));
  178. return 'url(' + window.location.origin + '/images/bg/' + (thumb ? 'thumb/' : '') + id + '.jpg' + ')';
  179. }
  180. }
  181. });
  182. /***/ }),
  183. /***/ 554:
  184. /***/ (function(module, exports, __webpack_require__) {
  185. var render = function() {
  186. var _vm = this
  187. var _h = _vm.$createElement
  188. var _c = _vm._self._c || _h
  189. return _c(
  190. "div",
  191. {
  192. staticClass: "w-content",
  193. style: "background-image:" + _vm.getBgUrl(_vm.bgid)
  194. },
  195. [_vm._t("default")],
  196. 2
  197. )
  198. }
  199. var staticRenderFns = []
  200. render._withStripped = true
  201. module.exports = { render: render, staticRenderFns: staticRenderFns }
  202. if (false) {
  203. module.hot.accept()
  204. if (module.hot.data) {
  205. require("vue-hot-reload-api") .rerender("data-v-35be3d57", module.exports)
  206. }
  207. }
  208. /***/ }),
  209. /***/ 565:
  210. /***/ (function(module, exports, __webpack_require__) {
  211. var baseGetTag = __webpack_require__(14),
  212. isObjectLike = __webpack_require__(12);
  213. /** `Object#toString` result references. */
  214. var symbolTag = '[object Symbol]';
  215. /**
  216. * Checks if `value` is classified as a `Symbol` primitive or object.
  217. *
  218. * @static
  219. * @memberOf _
  220. * @since 4.0.0
  221. * @category Lang
  222. * @param {*} value The value to check.
  223. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  224. * @example
  225. *
  226. * _.isSymbol(Symbol.iterator);
  227. * // => true
  228. *
  229. * _.isSymbol('abc');
  230. * // => false
  231. */
  232. function isSymbol(value) {
  233. return typeof value == 'symbol' ||
  234. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  235. }
  236. module.exports = isSymbol;
  237. /***/ }),
  238. /***/ 566:
  239. /***/ (function(module, exports, __webpack_require__) {
  240. var isSymbol = __webpack_require__(565);
  241. /** Used as references for various `Number` constants. */
  242. var INFINITY = 1 / 0;
  243. /**
  244. * Converts `value` to a string key if it's not a string or symbol.
  245. *
  246. * @private
  247. * @param {*} value The value to inspect.
  248. * @returns {string|symbol} Returns the key.
  249. */
  250. function toKey(value) {
  251. if (typeof value == 'string' || isSymbol(value)) {
  252. return value;
  253. }
  254. var result = (value + '');
  255. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  256. }
  257. module.exports = toKey;
  258. /***/ }),
  259. /***/ 583:
  260. /***/ (function(module, exports, __webpack_require__) {
  261. var disposed = false
  262. function injectStyle (ssrContext) {
  263. if (disposed) return
  264. __webpack_require__(584)
  265. }
  266. var normalizeComponent = __webpack_require__(4)
  267. /* script */
  268. var __vue_script__ = __webpack_require__(586)
  269. /* template */
  270. var __vue_template__ = __webpack_require__(587)
  271. /* template functional */
  272. var __vue_template_functional__ = false
  273. /* styles */
  274. var __vue_styles__ = injectStyle
  275. /* scopeId */
  276. var __vue_scopeId__ = "data-v-1b3dd966"
  277. /* moduleIdentifier (server only) */
  278. var __vue_module_identifier__ = null
  279. var Component = normalizeComponent(
  280. __vue_script__,
  281. __vue_template__,
  282. __vue_template_functional__,
  283. __vue_styles__,
  284. __vue_scopeId__,
  285. __vue_module_identifier__
  286. )
  287. Component.options.__file = "resources/assets/js/main/components/project/archived.vue"
  288. /* hot reload */
  289. if (false) {(function () {
  290. var hotAPI = require("vue-hot-reload-api")
  291. hotAPI.install(require("vue"), false)
  292. if (!hotAPI.compatible) return
  293. module.hot.accept()
  294. if (!module.hot.data) {
  295. hotAPI.createRecord("data-v-1b3dd966", Component.options)
  296. } else {
  297. hotAPI.reload("data-v-1b3dd966", Component.options)
  298. }
  299. module.hot.dispose(function (data) {
  300. disposed = true
  301. })
  302. })()}
  303. module.exports = Component.exports
  304. /***/ }),
  305. /***/ 584:
  306. /***/ (function(module, exports, __webpack_require__) {
  307. // style-loader: Adds some css to the DOM by adding a <style> tag
  308. // load the styles
  309. var content = __webpack_require__(585);
  310. if(typeof content === 'string') content = [[module.i, content, '']];
  311. if(content.locals) module.exports = content.locals;
  312. // add the styles to the DOM
  313. var update = __webpack_require__(3)("3653cc78", content, false, {});
  314. // Hot Module Replacement
  315. if(false) {
  316. // When the styles change, update the <style> tags
  317. if(!content.locals) {
  318. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-1b3dd966\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./archived.vue", function() {
  319. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-1b3dd966\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./archived.vue");
  320. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  321. update(newContent);
  322. });
  323. }
  324. // When the module is disposed, remove the <style> tags
  325. module.hot.dispose(function() { update(); });
  326. }
  327. /***/ }),
  328. /***/ 585:
  329. /***/ (function(module, exports, __webpack_require__) {
  330. exports = module.exports = __webpack_require__(2)(false);
  331. // imports
  332. // module
  333. exports.push([module.i, "\n.project-archived .tableFill[data-v-1b3dd966] {\n margin: 12px 12px 20px;\n}\n", ""]);
  334. // exports
  335. /***/ }),
  336. /***/ 586:
  337. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  338. "use strict";
  339. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  340. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(11);
  341. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  342. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_task__ = __webpack_require__(38);
  343. //
  344. //
  345. //
  346. //
  347. //
  348. //
  349. //
  350. //
  351. //
  352. //
  353. //
  354. //
  355. //
  356. //
  357. //
  358. //
  359. //
  360. //
  361. /**
  362. * 项目已归档任务
  363. */
  364. /* harmony default export */ __webpack_exports__["default"] = ({
  365. name: 'ProjectArchived',
  366. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  367. props: {
  368. projectid: {
  369. default: 0
  370. },
  371. canload: {
  372. type: Boolean,
  373. default: true
  374. }
  375. },
  376. mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_task__["a" /* default */]],
  377. data: function data() {
  378. return {
  379. loadYet: false,
  380. loadIng: 0,
  381. columns: [],
  382. lists: [],
  383. listPage: 1,
  384. listTotal: 0,
  385. noDataText: ""
  386. };
  387. },
  388. mounted: function mounted() {
  389. var _this = this;
  390. if (this.canload) {
  391. this.loadYet = true;
  392. this.getLists(true);
  393. }
  394. $A.setOnTaskInfoListener('components/project/archived', function (act, detail) {
  395. if (detail.projectid != _this.projectid) {
  396. return;
  397. }
  398. //
  399. _this.lists.some(function (task, i) {
  400. if (task.id == detail.id) {
  401. _this.lists.splice(i, 1, detail);
  402. return true;
  403. }
  404. });
  405. //
  406. switch (act) {
  407. case "delete": // 删除任务
  408. case "unarchived":
  409. // 取消归档
  410. _this.lists.some(function (task, i) {
  411. if (task.id == detail.id) {
  412. _this.lists.splice(i, 1);
  413. return true;
  414. }
  415. });
  416. break;
  417. case "archived":
  418. // 归档
  419. var has = false;
  420. _this.lists.some(function (task) {
  421. if (task.id == detail.id) {
  422. return has = true;
  423. }
  424. });
  425. if (!has) {
  426. _this.lists.unshift(detail);
  427. }
  428. break;
  429. }
  430. });
  431. },
  432. watch: {
  433. projectid: function projectid() {
  434. if (this.loadYet) {
  435. this.getLists(true);
  436. }
  437. },
  438. canload: function canload(val) {
  439. if (val && !this.loadYet) {
  440. this.loadYet = true;
  441. this.getLists(true);
  442. }
  443. }
  444. },
  445. methods: {
  446. initLanguage: function initLanguage() {
  447. var _this2 = this;
  448. this.noDataText = this.$L("数据加载中.....");
  449. this.columns = [{
  450. "title": this.$L("任务名称"),
  451. "key": 'title',
  452. "minWidth": 120,
  453. render: function render(h, params) {
  454. return _this2.renderTaskTitle(h, params);
  455. }
  456. }, {
  457. "title": this.$L("创建人"),
  458. "key": 'createuser',
  459. "minWidth": 80,
  460. render: function render(h, params) {
  461. return h('UserView', {
  462. props: {
  463. username: params.row.createuser
  464. }
  465. });
  466. }
  467. }, {
  468. "title": this.$L("负责人"),
  469. "key": 'username',
  470. "minWidth": 80,
  471. render: function render(h, params) {
  472. return h('UserView', {
  473. props: {
  474. username: params.row.username
  475. }
  476. });
  477. }
  478. }, {
  479. "title": this.$L("完成"),
  480. "minWidth": 70,
  481. "align": "center",
  482. render: function render(h, params) {
  483. return h('span', params.row.complete ? '√' : '-');
  484. }
  485. }, {
  486. "title": this.$L("归档时间"),
  487. "width": 160,
  488. render: function render(h, params) {
  489. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.archiveddate));
  490. }
  491. }, {
  492. "title": this.$L("操作"),
  493. "key": 'action',
  494. "width": 100,
  495. "align": 'center',
  496. render: function render(h, params) {
  497. return h('Button', {
  498. props: {
  499. type: 'primary',
  500. size: 'small'
  501. },
  502. style: {
  503. fontSize: '12px'
  504. },
  505. on: {
  506. click: function click() {
  507. _this2.$Modal.confirm({
  508. title: _this2.$L('取消归档'),
  509. content: _this2.$L('你确定要取消归档吗?'),
  510. loading: true,
  511. onOk: function onOk() {
  512. $A.apiAjax({
  513. url: 'project/task/edit',
  514. method: 'post',
  515. data: {
  516. act: 'unarchived',
  517. taskid: params.row.id
  518. },
  519. error: function error() {
  520. _this2.$Modal.remove();
  521. alert(_this2.$L('网络繁忙,请稍后再试!'));
  522. },
  523. success: function success(res) {
  524. _this2.$Modal.remove();
  525. _this2.getLists();
  526. setTimeout(function () {
  527. if (res.ret === 1) {
  528. _this2.$Message.success(res.msg);
  529. $A.triggerTaskInfoListener('unarchived', res.data);
  530. $A.triggerTaskInfoChange(params.row.id);
  531. } else {
  532. _this2.$Modal.error({ title: _this2.$L('温馨提示'), content: res.msg });
  533. }
  534. }, 350);
  535. }
  536. });
  537. }
  538. });
  539. }
  540. }
  541. }, _this2.$L('取消归档'));
  542. }
  543. }];
  544. },
  545. setPage: function setPage(page) {
  546. this.listPage = page;
  547. this.getLists();
  548. },
  549. setPageSize: function setPageSize(size) {
  550. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  551. this.listPageSize = size;
  552. this.getLists();
  553. }
  554. },
  555. getLists: function getLists(resetLoad) {
  556. var _this3 = this;
  557. if (resetLoad === true) {
  558. this.listPage = 1;
  559. }
  560. if (this.projectid == 0) {
  561. this.lists = [];
  562. this.listTotal = 0;
  563. this.noDataText = this.$L("没有相关的数据");
  564. return;
  565. }
  566. this.loadIng++;
  567. this.noDataText = this.$L("数据加载中.....");
  568. $A.apiAjax({
  569. url: 'project/task/lists',
  570. data: {
  571. page: Math.max(this.listPage, 1),
  572. pagesize: Math.max($A.runNum(this.listPageSize), 10),
  573. projectid: this.projectid,
  574. archived: '已归档'
  575. },
  576. complete: function complete() {
  577. _this3.loadIng--;
  578. },
  579. error: function error() {
  580. _this3.noDataText = _this3.$L("数据加载失败!");
  581. },
  582. success: function success(res) {
  583. if (res.ret === 1) {
  584. _this3.lists = res.data.lists;
  585. _this3.listTotal = res.data.total;
  586. _this3.noDataText = _this3.$L("没有相关的数据");
  587. } else {
  588. _this3.lists = [];
  589. _this3.listTotal = 0;
  590. _this3.noDataText = res.msg;
  591. }
  592. }
  593. });
  594. }
  595. }
  596. });
  597. /***/ }),
  598. /***/ 587:
  599. /***/ (function(module, exports, __webpack_require__) {
  600. var render = function() {
  601. var _vm = this
  602. var _h = _vm.$createElement
  603. var _c = _vm._self._c || _h
  604. return _c("drawer-tabs-container", [
  605. _c(
  606. "div",
  607. { staticClass: "project-archived" },
  608. [
  609. _c("Table", {
  610. ref: "tableRef",
  611. staticClass: "tableFill",
  612. attrs: {
  613. columns: _vm.columns,
  614. data: _vm.lists,
  615. loading: _vm.loadIng > 0,
  616. "no-data-text": _vm.noDataText,
  617. stripe: ""
  618. }
  619. }),
  620. _vm._v(" "),
  621. _c("Page", {
  622. staticClass: "pageBox",
  623. attrs: {
  624. total: _vm.listTotal,
  625. current: _vm.listPage,
  626. disabled: _vm.loadIng > 0,
  627. "page-size-opts": [10, 20, 30, 50, 100],
  628. placement: "top",
  629. "show-elevator": "",
  630. "show-sizer": "",
  631. "show-total": "",
  632. transfer: "",
  633. simple: _vm.windowMax768
  634. },
  635. on: {
  636. "on-change": _vm.setPage,
  637. "on-page-size-change": _vm.setPageSize
  638. }
  639. })
  640. ],
  641. 1
  642. )
  643. ])
  644. }
  645. var staticRenderFns = []
  646. render._withStripped = true
  647. module.exports = { render: render, staticRenderFns: staticRenderFns }
  648. if (false) {
  649. module.hot.accept()
  650. if (module.hot.data) {
  651. require("vue-hot-reload-api") .rerender("data-v-1b3dd966", module.exports)
  652. }
  653. }
  654. /***/ }),
  655. /***/ 588:
  656. /***/ (function(module, exports, __webpack_require__) {
  657. var disposed = false
  658. function injectStyle (ssrContext) {
  659. if (disposed) return
  660. __webpack_require__(589)
  661. }
  662. var normalizeComponent = __webpack_require__(4)
  663. /* script */
  664. var __vue_script__ = __webpack_require__(591)
  665. /* template */
  666. var __vue_template__ = __webpack_require__(592)
  667. /* template functional */
  668. var __vue_template_functional__ = false
  669. /* styles */
  670. var __vue_styles__ = injectStyle
  671. /* scopeId */
  672. var __vue_scopeId__ = "data-v-720a9bad"
  673. /* moduleIdentifier (server only) */
  674. var __vue_module_identifier__ = null
  675. var Component = normalizeComponent(
  676. __vue_script__,
  677. __vue_template__,
  678. __vue_template_functional__,
  679. __vue_styles__,
  680. __vue_scopeId__,
  681. __vue_module_identifier__
  682. )
  683. Component.options.__file = "resources/assets/js/main/components/project/users.vue"
  684. /* hot reload */
  685. if (false) {(function () {
  686. var hotAPI = require("vue-hot-reload-api")
  687. hotAPI.install(require("vue"), false)
  688. if (!hotAPI.compatible) return
  689. module.hot.accept()
  690. if (!module.hot.data) {
  691. hotAPI.createRecord("data-v-720a9bad", Component.options)
  692. } else {
  693. hotAPI.reload("data-v-720a9bad", Component.options)
  694. }
  695. module.hot.dispose(function (data) {
  696. disposed = true
  697. })
  698. })()}
  699. module.exports = Component.exports
  700. /***/ }),
  701. /***/ 589:
  702. /***/ (function(module, exports, __webpack_require__) {
  703. // style-loader: Adds some css to the DOM by adding a <style> tag
  704. // load the styles
  705. var content = __webpack_require__(590);
  706. if(typeof content === 'string') content = [[module.i, content, '']];
  707. if(content.locals) module.exports = content.locals;
  708. // add the styles to the DOM
  709. var update = __webpack_require__(3)("6db19cd1", content, false, {});
  710. // Hot Module Replacement
  711. if(false) {
  712. // When the styles change, update the <style> tags
  713. if(!content.locals) {
  714. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-720a9bad\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./users.vue", function() {
  715. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-720a9bad\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./users.vue");
  716. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  717. update(newContent);
  718. });
  719. }
  720. // When the module is disposed, remove the <style> tags
  721. module.hot.dispose(function() { update(); });
  722. }
  723. /***/ }),
  724. /***/ 590:
  725. /***/ (function(module, exports, __webpack_require__) {
  726. exports = module.exports = __webpack_require__(2)(false);
  727. // imports
  728. // module
  729. exports.push([module.i, "\n.project-users[data-v-720a9bad] {\n padding: 0 12px;\n}\n.project-users .tableFill[data-v-720a9bad] {\n margin: 12px 0 20px;\n}\n", ""]);
  730. // exports
  731. /***/ }),
  732. /***/ 591:
  733. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  734. "use strict";
  735. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  736. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(11);
  737. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  738. //
  739. //
  740. //
  741. //
  742. //
  743. //
  744. //
  745. //
  746. //
  747. //
  748. //
  749. //
  750. //
  751. //
  752. //
  753. //
  754. //
  755. //
  756. //
  757. //
  758. //
  759. /* harmony default export */ __webpack_exports__["default"] = ({
  760. name: 'ProjectUsers',
  761. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  762. props: {
  763. projectid: {
  764. default: 0
  765. },
  766. canload: {
  767. type: Boolean,
  768. default: true
  769. }
  770. },
  771. data: function data() {
  772. return {
  773. loadYet: false,
  774. loadIng: 0,
  775. columns: [],
  776. lists: [],
  777. listPage: 1,
  778. listTotal: 0,
  779. noDataText: ""
  780. };
  781. },
  782. mounted: function mounted() {
  783. if (this.canload) {
  784. this.loadYet = true;
  785. this.getLists(true);
  786. }
  787. },
  788. watch: {
  789. projectid: function projectid() {
  790. if (this.loadYet) {
  791. this.getLists(true);
  792. }
  793. },
  794. canload: function canload(val) {
  795. if (val && !this.loadYet) {
  796. this.loadYet = true;
  797. this.getLists(true);
  798. }
  799. }
  800. },
  801. methods: {
  802. initLanguage: function initLanguage() {
  803. var _this = this;
  804. this.noDataText = this.$L("数据加载中.....");
  805. this.columns = [{
  806. "title": this.$L("头像"),
  807. "minWidth": 60,
  808. "maxWidth": 100,
  809. render: function render(h, params) {
  810. return h('UserImg', {
  811. props: {
  812. info: params.row
  813. },
  814. style: {
  815. width: "30px",
  816. height: "30px",
  817. fontSize: "16px",
  818. lineHeight: "30px",
  819. borderRadius: "15px",
  820. verticalAlign: "middle"
  821. }
  822. });
  823. }
  824. }, {
  825. "title": this.$L("用户名"),
  826. "key": 'username',
  827. "minWidth": 80,
  828. "ellipsis": true
  829. }, {
  830. "title": this.$L("昵称"),
  831. "minWidth": 80,
  832. "ellipsis": true,
  833. render: function render(h, params) {
  834. return h('span', params.row.nickname || '-');
  835. }
  836. }, {
  837. "title": this.$L("职位/职称"),
  838. "minWidth": 100,
  839. "ellipsis": true,
  840. render: function render(h, params) {
  841. return h('span', params.row.profession || '-');
  842. }
  843. }, {
  844. "title": this.$L("成员角色"),
  845. "minWidth": 100,
  846. render: function render(h, params) {
  847. return h('span', params.row.isowner ? _this.$L('项目负责人') : _this.$L('成员'));
  848. }
  849. }, {
  850. "title": this.$L("加入时间"),
  851. "width": 160,
  852. render: function render(h, params) {
  853. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.indate));
  854. }
  855. }, {
  856. "title": this.$L("操作"),
  857. "key": 'action',
  858. "width": 80,
  859. "align": 'center',
  860. render: function render(h, params) {
  861. return h('Button', {
  862. props: {
  863. type: 'primary',
  864. size: 'small'
  865. },
  866. style: {
  867. fontSize: '12px'
  868. },
  869. on: {
  870. click: function click() {
  871. _this.$Modal.confirm({
  872. title: _this.$L('移出成员'),
  873. content: _this.$L('你确定要将此成员移出项目吗?'),
  874. loading: true,
  875. onOk: function onOk() {
  876. $A.apiAjax({
  877. url: 'project/users/join',
  878. data: {
  879. act: 'delete',
  880. projectid: params.row.projectid,
  881. username: params.row.username
  882. },
  883. error: function error() {
  884. _this.$Modal.remove();
  885. alert(_this.$L('网络繁忙,请稍后再试!'));
  886. },
  887. success: function success(res) {
  888. _this.$Modal.remove();
  889. _this.getLists();
  890. setTimeout(function () {
  891. if (res.ret === 1) {
  892. _this.$Message.success(res.msg);
  893. } else {
  894. _this.$Modal.error({ title: _this.$L('温馨提示'), content: res.msg });
  895. }
  896. }, 350);
  897. }
  898. });
  899. }
  900. });
  901. }
  902. }
  903. }, _this.$L('删除'));
  904. }
  905. }];
  906. },
  907. setPage: function setPage(page) {
  908. this.listPage = page;
  909. this.getLists();
  910. },
  911. setPageSize: function setPageSize(size) {
  912. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  913. this.listPageSize = size;
  914. this.getLists();
  915. }
  916. },
  917. getLists: function getLists(resetLoad) {
  918. var _this2 = this;
  919. if (resetLoad === true) {
  920. this.listPage = 1;
  921. }
  922. if (this.projectid == 0) {
  923. this.lists = [];
  924. this.listTotal = 0;
  925. this.noDataText = this.$L("没有相关的数据");
  926. return;
  927. }
  928. this.loadIng++;
  929. this.noDataText = this.$L("数据加载中.....");
  930. $A.apiAjax({
  931. url: 'project/users/lists',
  932. data: {
  933. page: Math.max(this.listPage, 1),
  934. pagesize: Math.max($A.runNum(this.listPageSize), 10),
  935. projectid: this.projectid
  936. },
  937. complete: function complete() {
  938. _this2.loadIng--;
  939. },
  940. error: function error() {
  941. _this2.noDataText = _this2.$L("数据加载失败!");
  942. },
  943. success: function success(res) {
  944. if (res.ret === 1) {
  945. _this2.lists = res.data.lists;
  946. _this2.listTotal = res.data.total;
  947. _this2.noDataText = _this2.$L("没有相关的数据");
  948. } else {
  949. _this2.lists = [];
  950. _this2.listTotal = 0;
  951. _this2.noDataText = res.msg;
  952. }
  953. }
  954. });
  955. },
  956. addUser: function addUser() {
  957. var _this3 = this;
  958. this.userValue = "";
  959. this.$Modal.confirm({
  960. render: function render(h) {
  961. return h('div', [h('div', {
  962. style: {
  963. fontSize: '16px',
  964. fontWeight: '500',
  965. marginBottom: '20px'
  966. }
  967. }, _this3.$L('添加成员')), h('UserInput', {
  968. props: {
  969. value: _this3.userValue,
  970. multiple: true,
  971. noprojectid: _this3.projectid,
  972. placeholder: _this3.$L('请输入昵称/用户名搜索')
  973. },
  974. on: {
  975. input: function input(val) {
  976. _this3.userValue = val;
  977. }
  978. }
  979. })]);
  980. },
  981. loading: true,
  982. onOk: function onOk() {
  983. if (_this3.userValue) {
  984. var username = _this3.userValue;
  985. $A.apiAjax({
  986. url: 'project/users/join',
  987. data: {
  988. act: 'join',
  989. projectid: _this3.projectid,
  990. username: username
  991. },
  992. error: function error() {
  993. _this3.$Modal.remove();
  994. alert(_this3.$L('网络繁忙,请稍后再试!'));
  995. },
  996. success: function success(res) {
  997. _this3.$Modal.remove();
  998. _this3.getLists();
  999. setTimeout(function () {
  1000. if (res.ret === 1) {
  1001. _this3.$Message.success(res.msg);
  1002. } else {
  1003. _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
  1004. }
  1005. }, 350);
  1006. }
  1007. });
  1008. } else {
  1009. _this3.$Modal.remove();
  1010. }
  1011. }
  1012. });
  1013. }
  1014. }
  1015. });
  1016. /***/ }),
  1017. /***/ 592:
  1018. /***/ (function(module, exports, __webpack_require__) {
  1019. var render = function() {
  1020. var _vm = this
  1021. var _h = _vm.$createElement
  1022. var _c = _vm._self._c || _h
  1023. return _c("drawer-tabs-container", [
  1024. _c(
  1025. "div",
  1026. { staticClass: "project-users" },
  1027. [
  1028. _c(
  1029. "Button",
  1030. {
  1031. attrs: {
  1032. loading: _vm.loadIng > 0,
  1033. type: "primary",
  1034. icon: "md-add"
  1035. },
  1036. on: { click: _vm.addUser }
  1037. },
  1038. [_vm._v(_vm._s(_vm.$L("添加成员")))]
  1039. ),
  1040. _vm._v(" "),
  1041. _c("Table", {
  1042. ref: "tableRef",
  1043. staticClass: "tableFill",
  1044. attrs: {
  1045. columns: _vm.columns,
  1046. data: _vm.lists,
  1047. loading: _vm.loadIng > 0,
  1048. "no-data-text": _vm.noDataText,
  1049. stripe: ""
  1050. }
  1051. }),
  1052. _vm._v(" "),
  1053. _c("Page", {
  1054. staticClass: "pageBox",
  1055. attrs: {
  1056. total: _vm.listTotal,
  1057. current: _vm.listPage,
  1058. disabled: _vm.loadIng > 0,
  1059. "page-size-opts": [10, 20, 30, 50, 100],
  1060. placement: "top",
  1061. "show-elevator": "",
  1062. "show-sizer": "",
  1063. "show-total": "",
  1064. transfer: "",
  1065. simple: _vm.windowMax768
  1066. },
  1067. on: {
  1068. "on-change": _vm.setPage,
  1069. "on-page-size-change": _vm.setPageSize
  1070. }
  1071. })
  1072. ],
  1073. 1
  1074. )
  1075. ])
  1076. }
  1077. var staticRenderFns = []
  1078. render._withStripped = true
  1079. module.exports = { render: render, staticRenderFns: staticRenderFns }
  1080. if (false) {
  1081. module.hot.accept()
  1082. if (module.hot.data) {
  1083. require("vue-hot-reload-api") .rerender("data-v-720a9bad", module.exports)
  1084. }
  1085. }
  1086. /***/ }),
  1087. /***/ 593:
  1088. /***/ (function(module, exports, __webpack_require__) {
  1089. var disposed = false
  1090. function injectStyle (ssrContext) {
  1091. if (disposed) return
  1092. __webpack_require__(594)
  1093. }
  1094. var normalizeComponent = __webpack_require__(4)
  1095. /* script */
  1096. var __vue_script__ = __webpack_require__(596)
  1097. /* template */
  1098. var __vue_template__ = __webpack_require__(597)
  1099. /* template functional */
  1100. var __vue_template_functional__ = false
  1101. /* styles */
  1102. var __vue_styles__ = injectStyle
  1103. /* scopeId */
  1104. var __vue_scopeId__ = "data-v-4466db4e"
  1105. /* moduleIdentifier (server only) */
  1106. var __vue_module_identifier__ = null
  1107. var Component = normalizeComponent(
  1108. __vue_script__,
  1109. __vue_template__,
  1110. __vue_template_functional__,
  1111. __vue_styles__,
  1112. __vue_scopeId__,
  1113. __vue_module_identifier__
  1114. )
  1115. Component.options.__file = "resources/assets/js/main/components/project/statistics.vue"
  1116. /* hot reload */
  1117. if (false) {(function () {
  1118. var hotAPI = require("vue-hot-reload-api")
  1119. hotAPI.install(require("vue"), false)
  1120. if (!hotAPI.compatible) return
  1121. module.hot.accept()
  1122. if (!module.hot.data) {
  1123. hotAPI.createRecord("data-v-4466db4e", Component.options)
  1124. } else {
  1125. hotAPI.reload("data-v-4466db4e", Component.options)
  1126. }
  1127. module.hot.dispose(function (data) {
  1128. disposed = true
  1129. })
  1130. })()}
  1131. module.exports = Component.exports
  1132. /***/ }),
  1133. /***/ 594:
  1134. /***/ (function(module, exports, __webpack_require__) {
  1135. // style-loader: Adds some css to the DOM by adding a <style> tag
  1136. // load the styles
  1137. var content = __webpack_require__(595);
  1138. if(typeof content === 'string') content = [[module.i, content, '']];
  1139. if(content.locals) module.exports = content.locals;
  1140. // add the styles to the DOM
  1141. var update = __webpack_require__(3)("ffb4ffa8", content, false, {});
  1142. // Hot Module Replacement
  1143. if(false) {
  1144. // When the styles change, update the <style> tags
  1145. if(!content.locals) {
  1146. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-4466db4e\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./statistics.vue", function() {
  1147. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-4466db4e\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./statistics.vue");
  1148. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  1149. update(newContent);
  1150. });
  1151. }
  1152. // When the module is disposed, remove the <style> tags
  1153. module.hot.dispose(function() { update(); });
  1154. }
  1155. /***/ }),
  1156. /***/ 595:
  1157. /***/ (function(module, exports, __webpack_require__) {
  1158. exports = module.exports = __webpack_require__(2)(false);
  1159. // imports
  1160. // module
  1161. exports.push([module.i, "\n.project-statistics .tableFill[data-v-4466db4e] {\n margin: 12px 12px 20px;\n}\n.project-statistics ul.state-overview[data-v-4466db4e] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.project-statistics ul.state-overview > li[data-v-4466db4e] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n cursor: pointer;\n margin: 0 10px 5px;\n}\n.project-statistics ul.state-overview > li > div[data-v-4466db4e] {\n position: relative;\n -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n border-radius: 6px;\n color: #ffffff;\n height: 110px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.project-statistics ul.state-overview > li > div.terques[data-v-4466db4e] {\n background: #17BE6B;\n}\n.project-statistics ul.state-overview > li > div.purple[data-v-4466db4e] {\n background: #A218A5;\n}\n.project-statistics ul.state-overview > li > div.red[data-v-4466db4e] {\n background: #ED3F14;\n}\n.project-statistics ul.state-overview > li > div.yellow[data-v-4466db4e] {\n background: #FF9900;\n}\n.project-statistics ul.state-overview > li > div.blue[data-v-4466db4e] {\n background: #2D8CF0;\n}\n.project-statistics ul.state-overview > li > div[data-v-4466db4e]:hover {\n -webkit-box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.38);\n box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.38);\n}\n.project-statistics ul.state-overview > li > div[data-v-4466db4e]:after {\n position: absolute;\n content: \"\";\n left: 50%;\n bottom: 3px;\n width: 0;\n height: 2px;\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n background-color: #FFFFFF;\n border-radius: 2px;\n -webkit-transition: all 0.3s;\n transition: all 0.3s;\n opacity: 0;\n}\n.project-statistics ul.state-overview > li > div > h1[data-v-4466db4e] {\n font-size: 36px;\n margin: -2px 0 0;\n padding: 0;\n font-weight: 500;\n}\n.project-statistics ul.state-overview > li > div > p[data-v-4466db4e] {\n font-size: 18px;\n margin: 0;\n padding: 0;\n}\n.project-statistics ul.state-overview > li.active > div[data-v-4466db4e]:after {\n width: 90%;\n opacity: 1;\n}\n", ""]);
  1162. // exports
  1163. /***/ }),
  1164. /***/ 596:
  1165. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1166. "use strict";
  1167. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  1168. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(11);
  1169. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  1170. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_task__ = __webpack_require__(38);
  1171. //
  1172. //
  1173. //
  1174. //
  1175. //
  1176. //
  1177. //
  1178. //
  1179. //
  1180. //
  1181. //
  1182. //
  1183. //
  1184. //
  1185. //
  1186. //
  1187. //
  1188. //
  1189. //
  1190. //
  1191. //
  1192. //
  1193. //
  1194. //
  1195. //
  1196. //
  1197. //
  1198. //
  1199. //
  1200. //
  1201. //
  1202. //
  1203. //
  1204. //
  1205. //
  1206. //
  1207. //
  1208. //
  1209. //
  1210. //
  1211. //
  1212. //
  1213. //
  1214. //
  1215. //
  1216. //
  1217. //
  1218. //
  1219. //
  1220. //
  1221. //
  1222. //
  1223. //
  1224. //
  1225. //
  1226. //
  1227. //
  1228. //
  1229. //
  1230. //
  1231. //
  1232. //
  1233. //
  1234. //
  1235. //
  1236. //
  1237. //
  1238. //
  1239. //
  1240. //
  1241. //
  1242. //
  1243. //
  1244. //
  1245. //
  1246. //
  1247. //
  1248. //
  1249. //
  1250. //
  1251. //
  1252. //
  1253. //
  1254. //
  1255. //
  1256. //
  1257. //
  1258. //
  1259. //
  1260. //
  1261. //
  1262. //
  1263. //
  1264. //
  1265. //
  1266. //
  1267. //
  1268. //
  1269. //
  1270. //
  1271. //
  1272. //
  1273. //
  1274. //
  1275. //
  1276. //
  1277. //
  1278. //
  1279. //
  1280. //
  1281. //
  1282. //
  1283. //
  1284. //
  1285. //
  1286. //
  1287. //
  1288. //
  1289. //
  1290. //
  1291. //
  1292. //
  1293. //
  1294. /**
  1295. * 项目统计
  1296. */
  1297. /* harmony default export */ __webpack_exports__["default"] = ({
  1298. name: 'ProjectStatistics',
  1299. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  1300. props: {
  1301. projectid: {
  1302. default: 0
  1303. },
  1304. canload: {
  1305. type: Boolean,
  1306. default: true
  1307. }
  1308. },
  1309. mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_task__["a" /* default */]],
  1310. data: function data() {
  1311. return {
  1312. loadYet: false,
  1313. loadIng: 0,
  1314. columns: [],
  1315. taskType: '未完成',
  1316. lists: [],
  1317. listPage: 1,
  1318. listTotal: 0,
  1319. noDataText: "",
  1320. statistics_unfinished: 0,
  1321. statistics_overdue: 0,
  1322. statistics_complete: 0
  1323. };
  1324. },
  1325. mounted: function mounted() {
  1326. var _this = this;
  1327. if (this.canload) {
  1328. this.loadYet = true;
  1329. this.getLists(true);
  1330. }
  1331. $A.setOnTaskInfoListener('components/project/statistics', function (act, detail) {
  1332. if (detail.projectid != _this.projectid) {
  1333. return;
  1334. }
  1335. //
  1336. _this.lists.some(function (task, i) {
  1337. if (task.id == detail.id) {
  1338. _this.lists.splice(i, 1, detail);
  1339. return true;
  1340. }
  1341. });
  1342. //
  1343. switch (act) {
  1344. case "delete": // 删除任务
  1345. case "archived":
  1346. // 归档
  1347. _this.lists.some(function (task, i) {
  1348. if (task.id == detail.id) {
  1349. _this.lists.splice(i, 1);
  1350. if (task.complete) {
  1351. _this.statistics_complete--;
  1352. } else {
  1353. _this.statistics_unfinished++;
  1354. }
  1355. return true;
  1356. }
  1357. });
  1358. break;
  1359. case "unarchived":
  1360. // 取消归档
  1361. var has = false;
  1362. _this.lists.some(function (task) {
  1363. if (task.id == detail.id) {
  1364. if (task.complete) {
  1365. _this.statistics_complete++;
  1366. } else {
  1367. _this.statistics_unfinished--;
  1368. }
  1369. return has = true;
  1370. }
  1371. });
  1372. if (!has) {
  1373. _this.lists.unshift(detail);
  1374. }
  1375. break;
  1376. case "complete":
  1377. // 标记完成
  1378. _this.statistics_complete++;
  1379. _this.statistics_unfinished--;
  1380. break;
  1381. case "unfinished":
  1382. // 标记未完成
  1383. _this.statistics_complete--;
  1384. _this.statistics_unfinished++;
  1385. break;
  1386. }
  1387. });
  1388. },
  1389. watch: {
  1390. projectid: function projectid() {
  1391. if (this.loadYet) {
  1392. this.getLists(true);
  1393. }
  1394. },
  1395. canload: function canload(val) {
  1396. if (val && !this.loadYet) {
  1397. this.loadYet = true;
  1398. this.getLists(true);
  1399. }
  1400. },
  1401. taskType: function taskType() {
  1402. if (this.loadYet) {
  1403. this.getLists(true);
  1404. }
  1405. }
  1406. },
  1407. methods: {
  1408. initLanguage: function initLanguage() {
  1409. var _this2 = this;
  1410. this.noDataText = this.$L("数据加载中.....");
  1411. this.columns = [{
  1412. "title": this.$L("任务名称"),
  1413. "key": 'title',
  1414. "minWidth": 120,
  1415. render: function render(h, params) {
  1416. return _this2.renderTaskTitle(h, params);
  1417. }
  1418. }, {
  1419. "title": this.$L("创建人"),
  1420. "key": 'createuser',
  1421. "minWidth": 80,
  1422. render: function render(h, params) {
  1423. return h('UserView', {
  1424. props: {
  1425. username: params.row.createuser
  1426. }
  1427. });
  1428. }
  1429. }, {
  1430. "title": this.$L("负责人"),
  1431. "key": 'username',
  1432. "minWidth": 80,
  1433. render: function render(h, params) {
  1434. return h('UserView', {
  1435. props: {
  1436. username: params.row.username
  1437. }
  1438. });
  1439. }
  1440. }, {
  1441. "title": this.$L("完成"),
  1442. "minWidth": 70,
  1443. "align": "center",
  1444. render: function render(h, params) {
  1445. return h('span', params.row.complete ? '√' : '-');
  1446. }
  1447. }, {
  1448. "title": this.$L("创建时间"),
  1449. "width": 160,
  1450. render: function render(h, params) {
  1451. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.indate));
  1452. }
  1453. }];
  1454. },
  1455. setTaskType: function setTaskType(type) {
  1456. this.taskType = type;
  1457. },
  1458. setPage: function setPage(page) {
  1459. this.listPage = page;
  1460. this.getLists();
  1461. },
  1462. setPageSize: function setPageSize(size) {
  1463. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  1464. this.listPageSize = size;
  1465. this.getLists();
  1466. }
  1467. },
  1468. getLists: function getLists(resetLoad) {
  1469. var _this3 = this;
  1470. if (resetLoad === true) {
  1471. this.listPage = 1;
  1472. }
  1473. if (this.projectid == 0) {
  1474. this.lists = [];
  1475. this.listTotal = 0;
  1476. this.noDataText = this.$L("没有相关的数据");
  1477. return;
  1478. }
  1479. this.loadIng++;
  1480. var tempType = this.taskType;
  1481. this.noDataText = this.$L("数据加载中.....");
  1482. $A.apiAjax({
  1483. url: 'project/task/lists',
  1484. data: {
  1485. page: Math.max(this.listPage, 1),
  1486. pagesize: Math.max($A.runNum(this.listPageSize), 10),
  1487. projectid: this.projectid,
  1488. type: this.taskType,
  1489. statistics: 1
  1490. },
  1491. complete: function complete() {
  1492. _this3.loadIng--;
  1493. },
  1494. error: function error() {
  1495. _this3.noDataText = _this3.$L("数据加载失败!");
  1496. },
  1497. success: function success(res) {
  1498. if (tempType != _this3.taskType) {
  1499. return;
  1500. }
  1501. if (res.ret === 1) {
  1502. _this3.lists = res.data.lists;
  1503. _this3.listTotal = res.data.total;
  1504. _this3.noDataText = _this3.$L("没有相关的数据");
  1505. } else {
  1506. _this3.lists = [];
  1507. _this3.listTotal = 0;
  1508. _this3.noDataText = res.msg;
  1509. }
  1510. _this3.statistics_unfinished = res.data.statistics_unfinished || 0;
  1511. _this3.statistics_overdue = res.data.statistics_overdue || 0;
  1512. _this3.statistics_complete = res.data.statistics_complete || 0;
  1513. }
  1514. });
  1515. }
  1516. }
  1517. });
  1518. /***/ }),
  1519. /***/ 597:
  1520. /***/ (function(module, exports, __webpack_require__) {
  1521. var render = function() {
  1522. var _vm = this
  1523. var _h = _vm.$createElement
  1524. var _c = _vm._self._c || _h
  1525. return _c("drawer-tabs-container", [
  1526. _c(
  1527. "div",
  1528. { staticClass: "project-statistics" },
  1529. [
  1530. _c("ul", { staticClass: "state-overview" }, [
  1531. _c(
  1532. "li",
  1533. {
  1534. class: [_vm.taskType === "未完成" ? "active" : ""],
  1535. on: {
  1536. click: function($event) {
  1537. _vm.taskType = "未完成"
  1538. }
  1539. }
  1540. },
  1541. [
  1542. _c("div", { staticClass: "yellow" }, [
  1543. _c("h1", { staticClass: "count" }, [
  1544. _vm._v(_vm._s(_vm.statistics_unfinished))
  1545. ]),
  1546. _vm._v(" "),
  1547. _c("p", [_vm._v(_vm._s(_vm.$L("未完成任务")))])
  1548. ])
  1549. ]
  1550. ),
  1551. _vm._v(" "),
  1552. _c(
  1553. "li",
  1554. {
  1555. class: [_vm.taskType === "已超期" ? "active" : ""],
  1556. on: {
  1557. click: function($event) {
  1558. _vm.taskType = "已超期"
  1559. }
  1560. }
  1561. },
  1562. [
  1563. _c("div", { staticClass: "red" }, [
  1564. _c("h1", { staticClass: "count" }, [
  1565. _vm._v(_vm._s(_vm.statistics_overdue))
  1566. ]),
  1567. _vm._v(" "),
  1568. _c("p", [_vm._v(_vm._s(_vm.$L("超期任务")))])
  1569. ])
  1570. ]
  1571. ),
  1572. _vm._v(" "),
  1573. _c(
  1574. "li",
  1575. {
  1576. class: [_vm.taskType === "已完成" ? "active" : ""],
  1577. on: {
  1578. click: function($event) {
  1579. _vm.taskType = "已完成"
  1580. }
  1581. }
  1582. },
  1583. [
  1584. _c("div", { staticClass: "terques" }, [
  1585. _c("h1", { staticClass: "count" }, [
  1586. _vm._v(_vm._s(_vm.statistics_complete))
  1587. ]),
  1588. _vm._v(" "),
  1589. _c("p", [_vm._v(_vm._s(_vm.$L("已完成任务")))])
  1590. ])
  1591. ]
  1592. )
  1593. ]),
  1594. _vm._v(" "),
  1595. _c("Table", {
  1596. ref: "tableRef",
  1597. staticClass: "tableFill",
  1598. attrs: {
  1599. columns: _vm.columns,
  1600. data: _vm.lists,
  1601. loading: _vm.loadIng > 0,
  1602. "no-data-text": _vm.noDataText,
  1603. stripe: ""
  1604. }
  1605. }),
  1606. _vm._v(" "),
  1607. _c("Page", {
  1608. staticClass: "pageBox",
  1609. attrs: {
  1610. total: _vm.listTotal,
  1611. current: _vm.listPage,
  1612. disabled: _vm.loadIng > 0,
  1613. "page-size-opts": [10, 20, 30, 50, 100],
  1614. placement: "top",
  1615. "show-elevator": "",
  1616. "show-sizer": "",
  1617. "show-total": "",
  1618. transfer: "",
  1619. simple: _vm.windowMax768
  1620. },
  1621. on: {
  1622. "on-change": _vm.setPage,
  1623. "on-page-size-change": _vm.setPageSize
  1624. }
  1625. })
  1626. ],
  1627. 1
  1628. )
  1629. ])
  1630. }
  1631. var staticRenderFns = []
  1632. render._withStripped = true
  1633. module.exports = { render: render, staticRenderFns: staticRenderFns }
  1634. if (false) {
  1635. module.hot.accept()
  1636. if (module.hot.data) {
  1637. require("vue-hot-reload-api") .rerender("data-v-4466db4e", module.exports)
  1638. }
  1639. }
  1640. /***/ }),
  1641. /***/ 598:
  1642. /***/ (function(module, exports, __webpack_require__) {
  1643. var castPath = __webpack_require__(673),
  1644. toKey = __webpack_require__(566);
  1645. /**
  1646. * The base implementation of `_.get` without support for default values.
  1647. *
  1648. * @private
  1649. * @param {Object} object The object to query.
  1650. * @param {Array|string} path The path of the property to get.
  1651. * @returns {*} Returns the resolved value.
  1652. */
  1653. function baseGet(object, path) {
  1654. path = castPath(path, object);
  1655. var index = 0,
  1656. length = path.length;
  1657. while (object != null && index < length) {
  1658. object = object[toKey(path[index++])];
  1659. }
  1660. return (index && index == length) ? object : undefined;
  1661. }
  1662. module.exports = baseGet;
  1663. /***/ }),
  1664. /***/ 599:
  1665. /***/ (function(module, exports, __webpack_require__) {
  1666. var isArray = __webpack_require__(21),
  1667. isSymbol = __webpack_require__(565);
  1668. /** Used to match property names within property paths. */
  1669. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  1670. reIsPlainProp = /^\w*$/;
  1671. /**
  1672. * Checks if `value` is a property name and not a property path.
  1673. *
  1674. * @private
  1675. * @param {*} value The value to check.
  1676. * @param {Object} [object] The object to query keys on.
  1677. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  1678. */
  1679. function isKey(value, object) {
  1680. if (isArray(value)) {
  1681. return false;
  1682. }
  1683. var type = typeof value;
  1684. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  1685. value == null || isSymbol(value)) {
  1686. return true;
  1687. }
  1688. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  1689. (object != null && value in Object(object));
  1690. }
  1691. module.exports = isKey;
  1692. /***/ }),
  1693. /***/ 672:
  1694. /***/ (function(module, exports) {
  1695. /**
  1696. * A specialized version of `_.map` for arrays without support for iteratee
  1697. * shorthands.
  1698. *
  1699. * @private
  1700. * @param {Array} [array] The array to iterate over.
  1701. * @param {Function} iteratee The function invoked per iteration.
  1702. * @returns {Array} Returns the new mapped array.
  1703. */
  1704. function arrayMap(array, iteratee) {
  1705. var index = -1,
  1706. length = array == null ? 0 : array.length,
  1707. result = Array(length);
  1708. while (++index < length) {
  1709. result[index] = iteratee(array[index], index, array);
  1710. }
  1711. return result;
  1712. }
  1713. module.exports = arrayMap;
  1714. /***/ }),
  1715. /***/ 673:
  1716. /***/ (function(module, exports, __webpack_require__) {
  1717. var isArray = __webpack_require__(21),
  1718. isKey = __webpack_require__(599),
  1719. stringToPath = __webpack_require__(811),
  1720. toString = __webpack_require__(814);
  1721. /**
  1722. * Casts `value` to a path array if it's not one.
  1723. *
  1724. * @private
  1725. * @param {*} value The value to inspect.
  1726. * @param {Object} [object] The object to query keys on.
  1727. * @returns {Array} Returns the cast property path array.
  1728. */
  1729. function castPath(value, object) {
  1730. if (isArray(value)) {
  1731. return value;
  1732. }
  1733. return isKey(value, object) ? [value] : stringToPath(toString(value));
  1734. }
  1735. module.exports = castPath;
  1736. /***/ }),
  1737. /***/ 674:
  1738. /***/ (function(module, exports, __webpack_require__) {
  1739. var baseIsEqualDeep = __webpack_require__(819),
  1740. isObjectLike = __webpack_require__(12);
  1741. /**
  1742. * The base implementation of `_.isEqual` which supports partial comparisons
  1743. * and tracks traversed objects.
  1744. *
  1745. * @private
  1746. * @param {*} value The value to compare.
  1747. * @param {*} other The other value to compare.
  1748. * @param {boolean} bitmask The bitmask flags.
  1749. * 1 - Unordered comparison
  1750. * 2 - Partial comparison
  1751. * @param {Function} [customizer] The function to customize comparisons.
  1752. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  1753. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  1754. */
  1755. function baseIsEqual(value, other, bitmask, customizer, stack) {
  1756. if (value === other) {
  1757. return true;
  1758. }
  1759. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  1760. return value !== value && other !== other;
  1761. }
  1762. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  1763. }
  1764. module.exports = baseIsEqual;
  1765. /***/ }),
  1766. /***/ 675:
  1767. /***/ (function(module, exports, __webpack_require__) {
  1768. var SetCache = __webpack_require__(820),
  1769. arraySome = __webpack_require__(823),
  1770. cacheHas = __webpack_require__(824);
  1771. /** Used to compose bitmasks for value comparisons. */
  1772. var COMPARE_PARTIAL_FLAG = 1,
  1773. COMPARE_UNORDERED_FLAG = 2;
  1774. /**
  1775. * A specialized version of `baseIsEqualDeep` for arrays with support for
  1776. * partial deep comparisons.
  1777. *
  1778. * @private
  1779. * @param {Array} array The array to compare.
  1780. * @param {Array} other The other array to compare.
  1781. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  1782. * @param {Function} customizer The function to customize comparisons.
  1783. * @param {Function} equalFunc The function to determine equivalents of values.
  1784. * @param {Object} stack Tracks traversed `array` and `other` objects.
  1785. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  1786. */
  1787. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  1788. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  1789. arrLength = array.length,
  1790. othLength = other.length;
  1791. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  1792. return false;
  1793. }
  1794. // Check that cyclic values are equal.
  1795. var arrStacked = stack.get(array);
  1796. var othStacked = stack.get(other);
  1797. if (arrStacked && othStacked) {
  1798. return arrStacked == other && othStacked == array;
  1799. }
  1800. var index = -1,
  1801. result = true,
  1802. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  1803. stack.set(array, other);
  1804. stack.set(other, array);
  1805. // Ignore non-index properties.
  1806. while (++index < arrLength) {
  1807. var arrValue = array[index],
  1808. othValue = other[index];
  1809. if (customizer) {
  1810. var compared = isPartial
  1811. ? customizer(othValue, arrValue, index, other, array, stack)
  1812. : customizer(arrValue, othValue, index, array, other, stack);
  1813. }
  1814. if (compared !== undefined) {
  1815. if (compared) {
  1816. continue;
  1817. }
  1818. result = false;
  1819. break;
  1820. }
  1821. // Recursively compare arrays (susceptible to call stack limits).
  1822. if (seen) {
  1823. if (!arraySome(other, function(othValue, othIndex) {
  1824. if (!cacheHas(seen, othIndex) &&
  1825. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  1826. return seen.push(othIndex);
  1827. }
  1828. })) {
  1829. result = false;
  1830. break;
  1831. }
  1832. } else if (!(
  1833. arrValue === othValue ||
  1834. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  1835. )) {
  1836. result = false;
  1837. break;
  1838. }
  1839. }
  1840. stack['delete'](array);
  1841. stack['delete'](other);
  1842. return result;
  1843. }
  1844. module.exports = equalArrays;
  1845. /***/ }),
  1846. /***/ 676:
  1847. /***/ (function(module, exports, __webpack_require__) {
  1848. var isObject = __webpack_require__(13);
  1849. /**
  1850. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  1851. *
  1852. * @private
  1853. * @param {*} value The value to check.
  1854. * @returns {boolean} Returns `true` if `value` if suitable for strict
  1855. * equality comparisons, else `false`.
  1856. */
  1857. function isStrictComparable(value) {
  1858. return value === value && !isObject(value);
  1859. }
  1860. module.exports = isStrictComparable;
  1861. /***/ }),
  1862. /***/ 677:
  1863. /***/ (function(module, exports) {
  1864. /**
  1865. * A specialized version of `matchesProperty` for source values suitable
  1866. * for strict equality comparisons, i.e. `===`.
  1867. *
  1868. * @private
  1869. * @param {string} key The key of the property to get.
  1870. * @param {*} srcValue The value to match.
  1871. * @returns {Function} Returns the new spec function.
  1872. */
  1873. function matchesStrictComparable(key, srcValue) {
  1874. return function(object) {
  1875. if (object == null) {
  1876. return false;
  1877. }
  1878. return object[key] === srcValue &&
  1879. (srcValue !== undefined || (key in Object(object)));
  1880. };
  1881. }
  1882. module.exports = matchesStrictComparable;
  1883. /***/ }),
  1884. /***/ 678:
  1885. /***/ (function(module, exports) {
  1886. /**
  1887. * This method returns the first argument it receives.
  1888. *
  1889. * @static
  1890. * @since 0.1.0
  1891. * @memberOf _
  1892. * @category Util
  1893. * @param {*} value Any value.
  1894. * @returns {*} Returns `value`.
  1895. * @example
  1896. *
  1897. * var object = { 'a': 1 };
  1898. *
  1899. * console.log(_.identity(object) === object);
  1900. * // => true
  1901. */
  1902. function identity(value) {
  1903. return value;
  1904. }
  1905. module.exports = identity;
  1906. /***/ }),
  1907. /***/ 777:
  1908. /***/ (function(module, exports, __webpack_require__) {
  1909. // style-loader: Adds some css to the DOM by adding a <style> tag
  1910. // load the styles
  1911. var content = __webpack_require__(778);
  1912. if(typeof content === 'string') content = [[module.i, content, '']];
  1913. if(content.locals) module.exports = content.locals;
  1914. // add the styles to the DOM
  1915. var update = __webpack_require__(3)("0f52eb25", content, false, {});
  1916. // Hot Module Replacement
  1917. if(false) {
  1918. // When the styles change, update the <style> tags
  1919. if(!content.locals) {
  1920. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-4bac3242\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./panel.vue", function() {
  1921. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-4bac3242\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./panel.vue");
  1922. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  1923. update(newContent);
  1924. });
  1925. }
  1926. // When the module is disposed, remove the <style> tags
  1927. module.hot.dispose(function() { update(); });
  1928. }
  1929. /***/ }),
  1930. /***/ 778:
  1931. /***/ (function(module, exports, __webpack_require__) {
  1932. exports = module.exports = __webpack_require__(2)(false);
  1933. // imports
  1934. // module
  1935. exports.push([module.i, "\n#project-panel-enter-textarea {\n background: transparent;\n background: none;\n outline: none;\n border: 0;\n resize: none;\n padding: 0;\n margin: 8px 0;\n line-height: 22px;\n border-radius: 0;\n color: rgba(0, 0, 0, 0.85);\n}\n#project-panel-enter-textarea:focus {\n border-color: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n", ""]);
  1936. // exports
  1937. /***/ }),
  1938. /***/ 779:
  1939. /***/ (function(module, exports, __webpack_require__) {
  1940. // style-loader: Adds some css to the DOM by adding a <style> tag
  1941. // load the styles
  1942. var content = __webpack_require__(780);
  1943. if(typeof content === 'string') content = [[module.i, content, '']];
  1944. if(content.locals) module.exports = content.locals;
  1945. // add the styles to the DOM
  1946. var update = __webpack_require__(3)("109952df", content, false, {});
  1947. // Hot Module Replacement
  1948. if(false) {
  1949. // When the styles change, update the <style> tags
  1950. if(!content.locals) {
  1951. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-4bac3242\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=1!./panel.vue", function() {
  1952. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-4bac3242\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=1!./panel.vue");
  1953. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  1954. update(newContent);
  1955. });
  1956. }
  1957. // When the module is disposed, remove the <style> tags
  1958. module.hot.dispose(function() { update(); });
  1959. }
  1960. /***/ }),
  1961. /***/ 780:
  1962. /***/ (function(module, exports, __webpack_require__) {
  1963. exports = module.exports = __webpack_require__(2)(false);
  1964. // imports
  1965. // module
  1966. exports.push([module.i, "\n.project-panel .label-box[data-v-4bac3242] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n overflow-x: auto;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n width: 100%;\n height: 100%;\n padding: 15px;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n}\n.project-panel .label-box .label-item[data-v-4bac3242] {\n -webkit-box-flex: 0;\n -ms-flex-positive: 0;\n flex-grow: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n -ms-flex-preferred-size: auto;\n flex-basis: auto;\n position: relative;\n overflow: hidden;\n height: 100%;\n padding-right: 15px;\n}\n.project-panel .label-box .label-item.label-create[data-v-4bac3242] {\n cursor: pointer;\n}\n.project-panel .label-box .label-item.label-create:hover .trigger-box[data-v-4bac3242] {\n -webkit-transform: translate(0, -50%) scale(1.1);\n transform: translate(0, -50%) scale(1.1);\n}\n.project-panel .label-box .label-item.label-scroll:hover .label-bottom[data-v-4bac3242] {\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n}\n.project-panel .label-box .label-item .label-body[data-v-4bac3242] {\n width: 300px;\n height: 100%;\n border-radius: 0.15rem;\n background-color: #ebecf0;\n overflow: hidden;\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.project-panel .label-box .label-item .label-body .title-box[data-v-4bac3242] {\n padding: 0 12px;\n font-weight: bold;\n color: #666666;\n position: relative;\n cursor: move;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n height: 42px;\n}\n.project-panel .label-box .label-item .label-body .title-box .title-loading[data-v-4bac3242] {\n width: 16px;\n height: 16px;\n margin-right: 6px;\n}\n.project-panel .label-box .label-item .label-body .title-box h2[data-v-4bac3242] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-size: 16px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.project-panel .label-box .label-item .label-body .title-box i[data-v-4bac3242] {\n font-weight: 500;\n font-size: 18px;\n height: 100%;\n line-height: 42px;\n width: 42px;\n text-align: right;\n cursor: pointer;\n}\n.project-panel .label-box .label-item .label-body .task-box[data-v-4bac3242] {\n position: relative;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 100%;\n padding: 0 12px 2px;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n}\n.project-panel .label-box .label-item .label-body .task-box .task-main[data-v-4bac3242] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-main.filtr-persons .task-item[data-v-4bac3242] {\n display: none;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-main.filtr-persons .task-item.persons-item[data-v-4bac3242] {\n display: block;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-main.filtr-follower .task-item[data-v-4bac3242] {\n display: none;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-main.filtr-follower .task-item.follower-item[data-v-4bac3242] {\n display: block;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-main.filtr-create .task-item[data-v-4bac3242] {\n display: none;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-main.filtr-create .task-item.create-item[data-v-4bac3242] {\n display: block;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item[data-v-4bac3242] {\n width: 100%;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item.task-draggable .task-shadow[data-v-4bac3242] {\n cursor: pointer;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item.task-draggable .task-shadow[data-v-4bac3242]:hover {\n -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.38);\n box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.38);\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow[data-v-4bac3242] {\n margin: 5px 0 4px;\n padding: 8px 10px 8px 8px;\n background-color: #ffffff;\n border-left: 2px solid #BF9F03;\n border-right: 0;\n color: #091e42;\n border-radius: 3px;\n -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);\n -webkit-transition: all 0.3s;\n transition: all 0.3s;\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.p1[data-v-4bac3242] {\n border-left-color: #ff0000;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.p2[data-v-4bac3242] {\n border-left-color: #BB9F35;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.p3[data-v-4bac3242] {\n border-left-color: #449EDD;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.p4[data-v-4bac3242] {\n border-left-color: #84A83B;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.complete[data-v-4bac3242] {\n border-left-color: #c1c1c1;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.complete .task-title[data-v-4bac3242] {\n color: #666666;\n text-decoration: line-through;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.complete .task-more .task-status[data-v-4bac3242] {\n color: #666666;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.overdue .task-title[data-v-4bac3242] {\n font-weight: bold;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.overdue .task-more .task-status[data-v-4bac3242] {\n color: #ff0000;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.newtask[data-v-4bac3242] {\n -webkit-transform: scale(1.5);\n transform: scale(1.5);\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-title[data-v-4bac3242] {\n font-size: 12px;\n color: #091e42;\n word-break: break-all;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-title .ivu-icon[data-v-4bac3242] {\n font-size: 14px;\n color: #afafaf;\n vertical-align: top;\n padding: 2px 4px;\n -webkit-transform: scale(0.94);\n transform: scale(0.94);\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-more[data-v-4bac3242] {\n min-height: 30px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-more .task-status[data-v-4bac3242] {\n color: #19be6b;\n font-size: 12px;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-more .task-persons[data-v-4bac3242] {\n max-width: 150px;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-more .task-persons.persons-more[data-v-4bac3242] {\n text-align: right;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-more .task-persons.persons-more .task-userimg[data-v-4bac3242] {\n width: 20px;\n height: 20px;\n margin-left: 4px;\n margin-top: 4px;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-more .task-persons.persons-more .task-userimg .avatar[data-v-4bac3242] {\n width: 20px;\n height: 20px;\n font-size: 12px;\n line-height: 20px;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-more .task-persons .task-userimg[data-v-4bac3242] {\n width: 26px;\n height: 26px;\n vertical-align: bottom;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-more .task-persons .task-userimg .avatar[data-v-4bac3242] {\n width: 26px;\n height: 26px;\n font-size: 14px;\n line-height: 26px;\n border-radius: 13px;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .subtask-progress[data-v-4bac3242] {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: -1;\n border-radius: 0 3px 3px 0;\n overflow: hidden;\n pointer-events: none;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .subtask-progress em[data-v-4bac3242] {\n display: block;\n height: 100%;\n background-color: rgba(3, 150, 242, 0.07);\n}\n.project-panel .label-box .label-item .label-body .trigger-box[data-v-4bac3242] {\n text-align: center;\n font-size: 16px;\n color: #666;\n width: 100%;\n position: absolute;\n top: 50%;\n -webkit-transform: translate(0, -50%) scale(1);\n transform: translate(0, -50%) scale(1);\n -webkit-transition: all 0.3s;\n transition: all 0.3s;\n}\n.project-panel .label-box .label-item .label-bottom[data-v-4bac3242] {\n position: absolute;\n left: 50%;\n bottom: 14px;\n z-index: 1;\n width: 36px;\n height: 36px;\n border-radius: 50%;\n background-color: #2db7f5;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-transition: -webkit-transform 0.2s;\n transition: -webkit-transform 0.2s;\n transition: transform 0.2s;\n transition: transform 0.2s, -webkit-transform 0.2s;\n -webkit-transform: translate(-50%, 200%);\n transform: translate(-50%, 200%);\n cursor: pointer;\n}\n.project-panel .label-box .label-item .label-bottom .label-bottom-icon[data-v-4bac3242] {\n color: #ffffff;\n font-size: 36px;\n}\n", ""]);
  1967. // exports
  1968. /***/ }),
  1969. /***/ 781:
  1970. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1971. "use strict";
  1972. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  1973. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuedraggable__ = __webpack_require__(62);
  1974. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuedraggable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vuedraggable__);
  1975. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_WContent__ = __webpack_require__(550);
  1976. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_WContent___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__components_WContent__);
  1977. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_project_task_add__ = __webpack_require__(782);
  1978. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_project_task_add___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__components_project_task_add__);
  1979. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_project_task_lists__ = __webpack_require__(789);
  1980. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_project_task_lists___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__components_project_task_lists__);
  1981. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_project_task_files__ = __webpack_require__(68);
  1982. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_project_task_files___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__components_project_task_files__);
  1983. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_project_task_logs__ = __webpack_require__(69);
  1984. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_project_task_logs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__components_project_task_logs__);
  1985. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_project_archived__ = __webpack_require__(583);
  1986. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_project_archived___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__components_project_archived__);
  1987. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_project_users__ = __webpack_require__(588);
  1988. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_project_users___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__components_project_users__);
  1989. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_project_statistics__ = __webpack_require__(593);
  1990. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_project_statistics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8__components_project_statistics__);
  1991. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__components_iview_WDrawer__ = __webpack_require__(60);
  1992. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__components_iview_WDrawer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9__components_iview_WDrawer__);
  1993. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__components_project_gantt_index__ = __webpack_require__(794);
  1994. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__components_project_gantt_index___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10__components_project_gantt_index__);
  1995. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__components_project_setting__ = __webpack_require__(804);
  1996. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__components_project_setting___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11__components_project_setting__);
  1997. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__components_ScrollerY__ = __webpack_require__(67);
  1998. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__components_ScrollerY___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12__components_ScrollerY__);
  1999. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_lodash_orderBy__ = __webpack_require__(809);
  2000. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_lodash_orderBy___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_lodash_orderBy__);
  2001. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  2002. function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
  2003. //
  2004. //
  2005. //
  2006. //
  2007. //
  2008. //
  2009. //
  2010. //
  2011. //
  2012. //
  2013. //
  2014. //
  2015. //
  2016. //
  2017. //
  2018. //
  2019. //
  2020. //
  2021. //
  2022. //
  2023. //
  2024. //
  2025. //
  2026. //
  2027. //
  2028. //
  2029. //
  2030. //
  2031. //
  2032. //
  2033. //
  2034. //
  2035. //
  2036. //
  2037. //
  2038. //
  2039. //
  2040. //
  2041. //
  2042. //
  2043. //
  2044. //
  2045. //
  2046. //
  2047. //
  2048. //
  2049. //
  2050. //
  2051. //
  2052. //
  2053. //
  2054. //
  2055. //
  2056. //
  2057. //
  2058. //
  2059. //
  2060. //
  2061. //
  2062. //
  2063. //
  2064. //
  2065. //
  2066. //
  2067. //
  2068. //
  2069. //
  2070. //
  2071. //
  2072. //
  2073. //
  2074. //
  2075. //
  2076. //
  2077. //
  2078. //
  2079. //
  2080. //
  2081. //
  2082. //
  2083. //
  2084. //
  2085. //
  2086. //
  2087. //
  2088. //
  2089. //
  2090. //
  2091. //
  2092. //
  2093. //
  2094. //
  2095. //
  2096. //
  2097. //
  2098. //
  2099. //
  2100. //
  2101. //
  2102. //
  2103. //
  2104. //
  2105. //
  2106. //
  2107. //
  2108. //
  2109. //
  2110. //
  2111. //
  2112. //
  2113. //
  2114. //
  2115. //
  2116. //
  2117. //
  2118. //
  2119. //
  2120. //
  2121. //
  2122. //
  2123. //
  2124. //
  2125. //
  2126. //
  2127. //
  2128. //
  2129. //
  2130. //
  2131. //
  2132. //
  2133. //
  2134. //
  2135. //
  2136. //
  2137. //
  2138. //
  2139. //
  2140. //
  2141. //
  2142. //
  2143. //
  2144. //
  2145. //
  2146. //
  2147. //
  2148. //
  2149. //
  2150. //
  2151. //
  2152. //
  2153. //
  2154. //
  2155. //
  2156. //
  2157. //
  2158. //
  2159. //
  2160. //
  2161. //
  2162. //
  2163. //
  2164. //
  2165. //
  2166. //
  2167. //
  2168. //
  2169. //
  2170. //
  2171. //
  2172. //
  2173. //
  2174. //
  2175. //
  2176. //
  2177. //
  2178. //
  2179. //
  2180. //
  2181. //
  2182. //
  2183. //
  2184. //
  2185. //
  2186. //
  2187. //
  2188. //
  2189. //
  2190. //
  2191. //
  2192. //
  2193. //
  2194. //
  2195. //
  2196. //
  2197. //
  2198. //
  2199. //
  2200. //
  2201. //
  2202. //
  2203. //
  2204. //
  2205. //
  2206. //
  2207. //
  2208. //
  2209. //
  2210. //
  2211. //
  2212. //
  2213. //
  2214. //
  2215. //
  2216. //
  2217. //
  2218. //
  2219. //
  2220. //
  2221. //
  2222. //
  2223. //
  2224. //
  2225. //
  2226. //
  2227. //
  2228. //
  2229. //
  2230. //
  2231. //
  2232. //
  2233. //
  2234. //
  2235. //
  2236. //
  2237. //
  2238. //
  2239. //
  2240. //
  2241. //
  2242. //
  2243. //
  2244. //
  2245. //
  2246. //
  2247. //
  2248. //
  2249. //
  2250. //
  2251. //
  2252. //
  2253. //
  2254. //
  2255. //
  2256. //
  2257. //
  2258. //
  2259. //
  2260. //
  2261. //
  2262. //
  2263. //
  2264. //
  2265. //
  2266. //
  2267. //
  2268. //
  2269. //
  2270. //
  2271. //
  2272. //
  2273. //
  2274. //
  2275. //
  2276. //
  2277. //
  2278. //
  2279. //
  2280. //
  2281. //
  2282. //
  2283. //
  2284. //
  2285. //
  2286. //
  2287. //
  2288. //
  2289. //
  2290. //
  2291. //
  2292. //
  2293. //
  2294. //
  2295. //
  2296. //
  2297. //
  2298. //
  2299. //
  2300. //
  2301. //
  2302. //
  2303. //
  2304. //
  2305. //
  2306. //
  2307. //
  2308. //
  2309. //
  2310. //
  2311. //
  2312. //
  2313. //
  2314. //
  2315. //
  2316. //
  2317. //
  2318. //
  2319. //
  2320. //
  2321. //
  2322. //
  2323. //
  2324. //
  2325. //
  2326. //
  2327. //
  2328. //
  2329. //
  2330. //
  2331. //
  2332. //
  2333. //
  2334. //
  2335. //
  2336. //
  2337. //
  2338. //
  2339. //
  2340. //
  2341. //
  2342. //
  2343. //
  2344. //
  2345. //
  2346. //
  2347. //
  2348. //
  2349. //
  2350. //
  2351. //
  2352. //
  2353. //
  2354. //
  2355. //
  2356. //
  2357. //
  2358. //
  2359. //
  2360. //
  2361. //
  2362. //
  2363. //
  2364. //
  2365. //
  2366. //
  2367. //
  2368. //
  2369. //
  2370. //
  2371. //
  2372. //
  2373. //
  2374. //
  2375. //
  2376. //
  2377. //
  2378. //
  2379. //
  2380. //
  2381. //
  2382. //
  2383. //
  2384. //
  2385. //
  2386. //
  2387. //
  2388. //
  2389. //
  2390. //
  2391. //
  2392. //
  2393. //
  2394. //
  2395. //
  2396. //
  2397. //
  2398. //
  2399. //
  2400. //
  2401. //
  2402. //
  2403. //
  2404. //
  2405. //
  2406. //
  2407. //
  2408. //
  2409. //
  2410. //
  2411. //
  2412. //
  2413. //
  2414. //
  2415. //
  2416. //
  2417. //
  2418. //
  2419. //
  2420. //
  2421. //
  2422. //
  2423. //
  2424. //
  2425. //
  2426. //
  2427. //
  2428. //
  2429. //
  2430. //
  2431. //
  2432. //
  2433. //
  2434. //
  2435. //
  2436. //
  2437. //
  2438. //
  2439. //
  2440. //
  2441. //
  2442. //
  2443. //
  2444. //
  2445. //
  2446. //
  2447. //
  2448. //
  2449. //
  2450. //
  2451. //
  2452. //
  2453. //
  2454. //
  2455. //
  2456. //
  2457. //
  2458. //
  2459. //
  2460. //
  2461. //
  2462. //
  2463. //
  2464. //
  2465. //
  2466. //
  2467. //
  2468. //
  2469. //
  2470. //
  2471. //
  2472. //
  2473. //
  2474. //
  2475. //
  2476. //
  2477. //
  2478. //
  2479. /* harmony default export */ __webpack_exports__["default"] = ({
  2480. components: {
  2481. ScrollerY: __WEBPACK_IMPORTED_MODULE_12__components_ScrollerY___default.a,
  2482. ProjectSetting: __WEBPACK_IMPORTED_MODULE_11__components_project_setting___default.a,
  2483. ProjectGantt: __WEBPACK_IMPORTED_MODULE_10__components_project_gantt_index___default.a,
  2484. WDrawer: __WEBPACK_IMPORTED_MODULE_9__components_iview_WDrawer___default.a,
  2485. ProjectStatistics: __WEBPACK_IMPORTED_MODULE_8__components_project_statistics___default.a,
  2486. ProjectUsers: __WEBPACK_IMPORTED_MODULE_7__components_project_users___default.a,
  2487. ProjectArchived: __WEBPACK_IMPORTED_MODULE_6__components_project_archived___default.a,
  2488. ProjectTaskLogs: __WEBPACK_IMPORTED_MODULE_5__components_project_task_logs___default.a,
  2489. ProjectTaskFiles: __WEBPACK_IMPORTED_MODULE_4__components_project_task_files___default.a, ProjectTaskLists: __WEBPACK_IMPORTED_MODULE_3__components_project_task_lists___default.a, ProjectAddTask: __WEBPACK_IMPORTED_MODULE_2__components_project_task_add___default.a, draggable: __WEBPACK_IMPORTED_MODULE_0_vuedraggable___default.a, WContent: __WEBPACK_IMPORTED_MODULE_1__components_WContent___default.a },
  2490. data: function data() {
  2491. return {
  2492. loadIng: 0,
  2493. loadDetailed: false,
  2494. projectid: 0,
  2495. projectDetail: {},
  2496. projectLabel: [],
  2497. projectSimpleLabel: [],
  2498. projectSortData: '',
  2499. projectSortDisabled: false,
  2500. projectDrawerShow: false,
  2501. projectDrawerTab: 'lists',
  2502. projectSettingDrawerShow: false,
  2503. projectSettingDrawerTab: 'setting',
  2504. projectGanttShow: false,
  2505. filtrTask: '',
  2506. routeName: ''
  2507. };
  2508. },
  2509. mounted: function mounted() {
  2510. var _this = this;
  2511. this.routeName = this.$route.name;
  2512. $A.setOnTaskInfoListener('pages/project-panel', function (act, detail) {
  2513. if (detail.projectid != _this.projectid) {
  2514. return;
  2515. }
  2516. //
  2517. switch (act) {
  2518. case 'addlabel':
  2519. // 添加分类
  2520. var tempLists = _this.projectLabel.filter(function (res) {
  2521. return res.id == detail.labelid;
  2522. });
  2523. if (tempLists.length == 0) {
  2524. _this.projectLabel.push(Object.assign(detail, { id: detail.labelid }));
  2525. _this.projectSortData = _this.getProjectSort();
  2526. }
  2527. return;
  2528. case 'deletelabel':
  2529. // 删除分类
  2530. _this.projectLabel.some(function (label, index) {
  2531. if (label.id == detail.labelid) {
  2532. _this.projectLabel.splice(index, 1);
  2533. _this.projectSortData = _this.getProjectSort();
  2534. return true;
  2535. }
  2536. });
  2537. return;
  2538. case 'deleteproject':
  2539. // 删除项目
  2540. return;
  2541. case "labelsort": // 调整分类排序
  2542. case "tasksort":
  2543. // 调整任务排序
  2544. if (detail.__modifyUsername != _this.usrName) {
  2545. if (_this.routeName == _this.$route.name) {
  2546. _this.$Modal.confirm({
  2547. title: _this.$L("更新提示"),
  2548. content: _this.$L('团队成员(%)调整了%,<br/>更新时间:%。<br/><br/>点击【确定】加载最新数据。', detail.nickname, _this.$L(act == 'labelsort' ? '分类排序' : '任务排序'), $A.formatDate("Y-m-d H:i:s", detail.time)),
  2549. onOk: function onOk() {
  2550. _this.getDetail(true);
  2551. }
  2552. });
  2553. } else {
  2554. _this.getDetail(true);
  2555. }
  2556. }
  2557. return;
  2558. }
  2559. //
  2560. _this.projectLabel.forEach(function (label) {
  2561. label.taskLists.some(function (task, i) {
  2562. if (task.id == detail.id) {
  2563. label.taskLists.splice(i, 1, detail);
  2564. return true;
  2565. }
  2566. });
  2567. });
  2568. //
  2569. switch (act) {
  2570. case "delete": // 删除任务
  2571. case "archived":
  2572. // 归档
  2573. _this.projectLabel.forEach(function (label) {
  2574. label.taskLists.some(function (task, i) {
  2575. if (task.id == detail.id) {
  2576. label.taskLists.splice(i, 1);
  2577. return true;
  2578. }
  2579. });
  2580. });
  2581. _this.projectSortData = _this.getProjectSort();
  2582. break;
  2583. case "create":
  2584. // 创建任务
  2585. _this.projectLabel.some(function (label) {
  2586. if (label.id == detail.labelid) {
  2587. var _tempLists = label.taskLists.filter(function (res) {
  2588. return res.id == detail.id;
  2589. });
  2590. if (_tempLists.length == 0) {
  2591. detail.isNewtask = true;
  2592. if (detail.insertbottom) {
  2593. label.taskLists.push(detail);
  2594. } else {
  2595. label.taskLists.unshift(detail);
  2596. }
  2597. _this.$nextTick(function () {
  2598. _this.$set(detail, 'isNewtask', false);
  2599. });
  2600. }
  2601. return true;
  2602. }
  2603. });
  2604. break;
  2605. case "unarchived":
  2606. // 取消归档
  2607. _this.projectLabel.forEach(function (label) {
  2608. if (label.id == detail.labelid) {
  2609. var index = label.taskLists.length;
  2610. label.taskLists.some(function (task, i) {
  2611. if (detail.inorder > task.inorder || detail.inorder == task.inorder && detail.id > task.id) {
  2612. index = i;
  2613. return true;
  2614. }
  2615. });
  2616. label.taskLists.splice(index, 0, detail);
  2617. }
  2618. });
  2619. _this.projectSortData = _this.getProjectSort();
  2620. break;
  2621. case "complete": // 标记完成
  2622. case "unfinished":
  2623. // 标记未完成
  2624. _this.taskNewSort();
  2625. break;
  2626. }
  2627. }, true);
  2628. },
  2629. activated: function activated() {
  2630. var _this2 = this;
  2631. this.projectid = this.$route.params.projectid;
  2632. if (_typeof(this.$route.params.other) === "object") {
  2633. this.$set(this.projectDetail, 'title', $A.getObject(this.$route.params.other, 'title'));
  2634. }
  2635. if (this.$route.params.statistics === '已完成') {
  2636. this.projectSettingDrawerTab = 'statistics';
  2637. this.projectSettingDrawerShow = true;
  2638. this.$nextTick(function () {
  2639. _this2.$refs.statistics.setTaskType('已完成');
  2640. });
  2641. }
  2642. },
  2643. deactivated: function deactivated() {
  2644. if ($A.getToken() === false) {
  2645. this.projectid = 0;
  2646. }
  2647. this.projectGanttShow = false;
  2648. this.projectDrawerShow = false;
  2649. this.projectSettingDrawerShow = false;
  2650. },
  2651. watch: {
  2652. projectid: function projectid(val) {
  2653. if ($A.runNum(val) <= 0) {
  2654. return;
  2655. }
  2656. this.projectDetail = {};
  2657. this.projectLabel = [];
  2658. this.projectSimpleLabel = [];
  2659. this.getDetail();
  2660. },
  2661. '$route': function $route(To) {
  2662. if (To.name == 'project-panel') {
  2663. this.projectid = To.params.projectid;
  2664. }
  2665. }
  2666. },
  2667. methods: {
  2668. getDetail: function getDetail(successTip) {
  2669. var _this3 = this;
  2670. this.loadIng++;
  2671. $A.apiAjax({
  2672. url: 'project/detail',
  2673. data: {
  2674. projectid: this.projectid
  2675. },
  2676. complete: function complete() {
  2677. _this3.loadIng--;
  2678. _this3.loadDetailed = true;
  2679. },
  2680. error: function error() {
  2681. _this3.goBack({ name: 'project' });
  2682. alert(_this3.$L('网络繁忙,请稍后再试!'));
  2683. },
  2684. success: function success(res) {
  2685. if (res.ret === 1) {
  2686. _this3.projectLabel = res.data.label;
  2687. _this3.taskNewSort();
  2688. _this3.projectDetail = res.data.project;
  2689. _this3.projectSimpleLabel = res.data.simpleLabel;
  2690. _this3.projectSortData = _this3.getProjectSort();
  2691. if (successTip === true) {
  2692. _this3.$Message.success(_this3.$L('刷新成功!'));
  2693. }
  2694. } else {
  2695. _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
  2696. }
  2697. }
  2698. });
  2699. },
  2700. getProjectSort: function getProjectSort() {
  2701. var sortData = "",
  2702. taskData = "";
  2703. this.projectLabel.forEach(function (label) {
  2704. taskData = "";
  2705. label.taskLists.forEach(function (task) {
  2706. if (taskData) taskData += "-";
  2707. taskData += task.id;
  2708. });
  2709. if (sortData) sortData += ";";
  2710. sortData += label.id + ":" + taskData;
  2711. });
  2712. return sortData;
  2713. },
  2714. handleLabel: function handleLabel(event, labelDetail) {
  2715. switch (event) {
  2716. case 'refresh':
  2717. {
  2718. this.refreshLabel(labelDetail);
  2719. break;
  2720. }
  2721. case 'rename':
  2722. {
  2723. this.renameLabel(labelDetail);
  2724. break;
  2725. }
  2726. case 'delete':
  2727. {
  2728. this.deleteLabel(labelDetail);
  2729. break;
  2730. }
  2731. }
  2732. },
  2733. refreshLabel: function refreshLabel(item) {
  2734. var _this4 = this;
  2735. this.$set(item, 'loadIng', true);
  2736. $A.apiAjax({
  2737. url: 'project/task/lists',
  2738. data: {
  2739. projectid: this.projectid,
  2740. labelid: item.id
  2741. },
  2742. complete: function complete() {
  2743. _this4.$set(item, 'loadIng', false);
  2744. },
  2745. error: function error() {
  2746. window.location.reload();
  2747. },
  2748. success: function success(res) {
  2749. if (res.ret === 1) {
  2750. _this4.$set(item, 'taskLists', res.data.lists);
  2751. } else {
  2752. window.location.reload();
  2753. }
  2754. }
  2755. });
  2756. },
  2757. renameLabel: function renameLabel(item) {
  2758. var _this5 = this;
  2759. this.renameValue = "";
  2760. this.$Modal.confirm({
  2761. render: function render(h) {
  2762. return h('div', [h('div', {
  2763. style: {
  2764. fontSize: '16px',
  2765. fontWeight: '500',
  2766. marginBottom: '20px'
  2767. }
  2768. }, _this5.$L('重命名列表')), h('Input', {
  2769. props: {
  2770. value: _this5.renameValue,
  2771. autofocus: true,
  2772. placeholder: _this5.$L('请输入新的列表名称')
  2773. },
  2774. on: {
  2775. input: function input(val) {
  2776. _this5.renameValue = val;
  2777. }
  2778. }
  2779. })]);
  2780. },
  2781. loading: true,
  2782. onOk: function onOk() {
  2783. if (_this5.renameValue) {
  2784. _this5.$set(item, 'loadIng', true);
  2785. var title = _this5.renameValue;
  2786. $A.apiAjax({
  2787. url: 'project/label/rename',
  2788. data: {
  2789. projectid: _this5.projectid,
  2790. labelid: item.id,
  2791. title: title
  2792. },
  2793. complete: function complete() {
  2794. _this5.$set(item, 'loadIng', false);
  2795. },
  2796. error: function error() {
  2797. _this5.$Modal.remove();
  2798. alert(_this5.$L('网络繁忙,请稍后再试!'));
  2799. },
  2800. success: function success(res) {
  2801. _this5.$Modal.remove();
  2802. _this5.$set(item, 'title', title);
  2803. setTimeout(function () {
  2804. if (res.ret === 1) {
  2805. _this5.$Message.success(res.msg);
  2806. } else {
  2807. _this5.$Modal.error({ title: _this5.$L('温馨提示'), content: res.msg });
  2808. }
  2809. }, 350);
  2810. }
  2811. });
  2812. } else {
  2813. _this5.$Modal.remove();
  2814. }
  2815. }
  2816. });
  2817. },
  2818. deleteLabel: function deleteLabel(item) {
  2819. var _this6 = this;
  2820. var redTip = item.taskLists.length > 0 ? '<div style="color:red;font-weight:500">' + this.$L('注:将同时删除列表下所有任务') + '</div>' : '';
  2821. this.$Modal.confirm({
  2822. title: this.$L('删除列表'),
  2823. content: '<div>' + this.$L('你确定要删除此列表吗?') + '</div>' + redTip,
  2824. loading: true,
  2825. onOk: function onOk() {
  2826. $A.apiAjax({
  2827. url: 'project/label/delete',
  2828. data: {
  2829. projectid: _this6.projectid,
  2830. labelid: item.id
  2831. },
  2832. error: function error() {
  2833. _this6.$Modal.remove();
  2834. alert(_this6.$L('网络繁忙,请稍后再试!'));
  2835. },
  2836. success: function success(res) {
  2837. _this6.$Modal.remove();
  2838. _this6.projectLabel.some(function (label, index) {
  2839. if (label.id == item.id) {
  2840. _this6.projectLabel.splice(index, 1);
  2841. _this6.projectSortData = _this6.getProjectSort();
  2842. return true;
  2843. }
  2844. });
  2845. setTimeout(function () {
  2846. if (res.ret === 1) {
  2847. _this6.$Message.success(res.msg);
  2848. $A.triggerTaskInfoListener('deletelabel', { labelid: item.id, projectid: item.projectid });
  2849. } else {
  2850. _this6.$Modal.error({ title: _this6.$L('温馨提示'), content: res.msg });
  2851. }
  2852. }, 350);
  2853. }
  2854. });
  2855. }
  2856. });
  2857. },
  2858. addLabel: function addLabel() {
  2859. var _this7 = this;
  2860. this.labelValue = "";
  2861. this.$Modal.confirm({
  2862. render: function render(h) {
  2863. return h('div', [h('div', {
  2864. style: {
  2865. fontSize: '16px',
  2866. fontWeight: '500',
  2867. marginBottom: '20px'
  2868. }
  2869. }, _this7.$L('添加列表')), h('Input', {
  2870. props: {
  2871. value: _this7.labelValue,
  2872. autofocus: true,
  2873. placeholder: _this7.$L('请输入列表名称')
  2874. },
  2875. on: {
  2876. input: function input(val) {
  2877. _this7.labelValue = val;
  2878. }
  2879. }
  2880. })]);
  2881. },
  2882. loading: true,
  2883. onOk: function onOk() {
  2884. if (_this7.labelValue) {
  2885. var data = {
  2886. projectid: _this7.projectid,
  2887. title: _this7.labelValue
  2888. };
  2889. $A.apiAjax({
  2890. url: 'project/label/add',
  2891. data: data,
  2892. error: function error() {
  2893. _this7.$Modal.remove();
  2894. alert(_this7.$L('网络繁忙,请稍后再试!'));
  2895. },
  2896. success: function success(res) {
  2897. _this7.$Modal.remove();
  2898. _this7.projectLabel.push(res.data);
  2899. _this7.projectSortData = _this7.getProjectSort();
  2900. $A.triggerTaskInfoListener('addlabel', Object.assign(data, { labelid: res.data.id }));
  2901. setTimeout(function () {
  2902. if (res.ret === 1) {
  2903. _this7.$Message.success(res.msg);
  2904. } else {
  2905. _this7.$Modal.error({ title: _this7.$L('温馨提示'), content: res.msg });
  2906. }
  2907. }, 350);
  2908. }
  2909. });
  2910. } else {
  2911. _this7.$Modal.remove();
  2912. }
  2913. }
  2914. });
  2915. },
  2916. addTaskSuccess: function addTaskSuccess(taskDetail, label) {
  2917. var _this8 = this;
  2918. if (label.taskLists instanceof Array) {
  2919. taskDetail.isNewtask = true;
  2920. if (taskDetail.insertbottom) {
  2921. label.taskLists.push(taskDetail);
  2922. } else {
  2923. label.taskLists.unshift(taskDetail);
  2924. }
  2925. this.$nextTick(function () {
  2926. _this8.$set(taskDetail, 'isNewtask', false);
  2927. });
  2928. } else {
  2929. this.refreshLabel(label);
  2930. }
  2931. },
  2932. openProjectDrawer: function openProjectDrawer(tab) {
  2933. if (tab == 'projectGanttShow') {
  2934. this.projectGanttShow = !this.projectGanttShow;
  2935. return;
  2936. } else if (tab == 'openProjectSettingDrawer') {
  2937. this.openProjectSettingDrawer('setting');
  2938. return;
  2939. }
  2940. this.projectDrawerTab = tab;
  2941. this.projectDrawerShow = true;
  2942. },
  2943. openProjectSettingDrawer: function openProjectSettingDrawer(tab) {
  2944. this.projectSettingDrawerTab = tab;
  2945. this.projectSettingDrawerShow = true;
  2946. },
  2947. projectSortUpdate: function projectSortUpdate(isLabel) {
  2948. var _this9 = this;
  2949. var oldSort = this.projectSortData;
  2950. var newSort = this.getProjectSort();
  2951. if (oldSort == newSort) {
  2952. return;
  2953. }
  2954. this.projectSortData = newSort;
  2955. this.projectSortDisabled = true;
  2956. this.loadIng++;
  2957. $A.apiAjax({
  2958. url: 'project/sort',
  2959. data: {
  2960. projectid: this.projectid,
  2961. oldsort: oldSort,
  2962. newsort: newSort,
  2963. label: isLabel === true ? 1 : 0
  2964. },
  2965. complete: function complete() {
  2966. _this9.projectSortDisabled = false;
  2967. _this9.loadIng--;
  2968. },
  2969. error: function error() {
  2970. _this9.getDetail();
  2971. alert(_this9.$L('网络繁忙,请稍后再试!'));
  2972. },
  2973. success: function success(res) {
  2974. if (res.ret === 1) {
  2975. _this9.projectLabel.forEach(function (label) {
  2976. var length = label.taskLists.length;
  2977. label.taskLists.forEach(function (task, index) {
  2978. task.inorder = length - index;
  2979. });
  2980. });
  2981. _this9.taskNewSort();
  2982. //
  2983. _this9.$Message.success(res.msg);
  2984. $A.triggerTaskInfoListener(isLabel ? 'labelsort' : 'tasksort', { projectid: _this9.projectid, nickname: $A.getNickName(), time: Math.round(new Date().getTime() / 1000) });
  2985. } else {
  2986. _this9.getDetail();
  2987. _this9.$Modal.error({ title: _this9.$L('温馨提示'), content: res.msg });
  2988. }
  2989. }
  2990. });
  2991. },
  2992. projectMouse: function projectMouse(label) {
  2993. var hasScroll = false;
  2994. var el = this.$refs['box_' + label.id];
  2995. if (el && el.length > 0) {
  2996. el = el[0].$el;
  2997. hasScroll = el.scrollHeight > el.offsetHeight;
  2998. }
  2999. this.$set(label, 'hasScroll', hasScroll);
  3000. },
  3001. projectBoxScroll: function projectBoxScroll(e, label) {
  3002. this.$set(label, 'endScroll', e.scrollE < 50);
  3003. },
  3004. projectFocus: function projectFocus(label) {
  3005. var el = this.$refs['add_' + label.id];
  3006. if (el && el.length > 0) {
  3007. el[0].setFocus();
  3008. }
  3009. el = this.$refs['box_' + label.id];
  3010. if (el && el.length > 0) {
  3011. el[0].scrollToBottom(false);
  3012. }
  3013. },
  3014. subtaskProgress: function subtaskProgress(task) {
  3015. var subtask = task.subtask,
  3016. complete = task.complete;
  3017. if (!subtask || subtask.length === 0) {
  3018. return complete ? 100 : 0;
  3019. }
  3020. var completeLists = subtask.filter(function (item) {
  3021. return item.status == 'complete';
  3022. });
  3023. return parseFloat((completeLists.length / subtask.length * 100).toFixed(2));
  3024. },
  3025. openTaskModal: function openTaskModal(taskDetail) {
  3026. this.taskDetail(taskDetail);
  3027. },
  3028. taskNewSort: function taskNewSort() {
  3029. var _this10 = this;
  3030. this.$nextTick(function () {
  3031. _this10.projectLabel.forEach(function (item) {
  3032. item.taskLists = _this10.taskReturnNewSort(item.taskLists);
  3033. });
  3034. });
  3035. },
  3036. taskReturnNewSort: function taskReturnNewSort(lists) {
  3037. var tmpLists = __WEBPACK_IMPORTED_MODULE_13_lodash_orderBy___default()(lists, ['complete', 'inorder'], ['asc', 'desc']);
  3038. var array = [];
  3039. array.unshift.apply(array, _toConsumableArray(tmpLists.filter(function (_ref) {
  3040. var complete = _ref.complete;
  3041. return complete;
  3042. })));
  3043. array.unshift.apply(array, _toConsumableArray(tmpLists.filter(function (_ref2) {
  3044. var complete = _ref2.complete;
  3045. return !complete;
  3046. })));
  3047. return array;
  3048. },
  3049. isPersonsTask: function isPersonsTask(task) {
  3050. var _this11 = this;
  3051. return task.persons && !!task.persons.find(function (_ref3) {
  3052. var username = _ref3.username;
  3053. return username == _this11.usrInfo.username;
  3054. });
  3055. },
  3056. isFollowerTask: function isFollowerTask(task) {
  3057. return task.follower && task.follower.indexOf(this.usrInfo.username) !== -1;
  3058. },
  3059. isCreateTask: function isCreateTask(task) {
  3060. return task.createuser == this.usrInfo.username;
  3061. }
  3062. }
  3063. });
  3064. /***/ }),
  3065. /***/ 782:
  3066. /***/ (function(module, exports, __webpack_require__) {
  3067. var disposed = false
  3068. function injectStyle (ssrContext) {
  3069. if (disposed) return
  3070. __webpack_require__(783)
  3071. __webpack_require__(785)
  3072. }
  3073. var normalizeComponent = __webpack_require__(4)
  3074. /* script */
  3075. var __vue_script__ = __webpack_require__(787)
  3076. /* template */
  3077. var __vue_template__ = __webpack_require__(788)
  3078. /* template functional */
  3079. var __vue_template_functional__ = false
  3080. /* styles */
  3081. var __vue_styles__ = injectStyle
  3082. /* scopeId */
  3083. var __vue_scopeId__ = "data-v-7dae0bfc"
  3084. /* moduleIdentifier (server only) */
  3085. var __vue_module_identifier__ = null
  3086. var Component = normalizeComponent(
  3087. __vue_script__,
  3088. __vue_template__,
  3089. __vue_template_functional__,
  3090. __vue_styles__,
  3091. __vue_scopeId__,
  3092. __vue_module_identifier__
  3093. )
  3094. Component.options.__file = "resources/assets/js/main/components/project/task/add.vue"
  3095. /* hot reload */
  3096. if (false) {(function () {
  3097. var hotAPI = require("vue-hot-reload-api")
  3098. hotAPI.install(require("vue"), false)
  3099. if (!hotAPI.compatible) return
  3100. module.hot.accept()
  3101. if (!module.hot.data) {
  3102. hotAPI.createRecord("data-v-7dae0bfc", Component.options)
  3103. } else {
  3104. hotAPI.reload("data-v-7dae0bfc", Component.options)
  3105. }
  3106. module.hot.dispose(function (data) {
  3107. disposed = true
  3108. })
  3109. })()}
  3110. module.exports = Component.exports
  3111. /***/ }),
  3112. /***/ 783:
  3113. /***/ (function(module, exports, __webpack_require__) {
  3114. // style-loader: Adds some css to the DOM by adding a <style> tag
  3115. // load the styles
  3116. var content = __webpack_require__(784);
  3117. if(typeof content === 'string') content = [[module.i, content, '']];
  3118. if(content.locals) module.exports = content.locals;
  3119. // add the styles to the DOM
  3120. var update = __webpack_require__(3)("1187e5ab", content, false, {});
  3121. // Hot Module Replacement
  3122. if(false) {
  3123. // When the styles change, update the <style> tags
  3124. if(!content.locals) {
  3125. module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-7dae0bfc\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./add.vue", function() {
  3126. var newContent = require("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-7dae0bfc\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./add.vue");
  3127. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  3128. update(newContent);
  3129. });
  3130. }
  3131. // When the module is disposed, remove the <style> tags
  3132. module.hot.dispose(function() { update(); });
  3133. }
  3134. /***/ }),
  3135. /***/ 784:
  3136. /***/ (function(module, exports, __webpack_require__) {
  3137. exports = module.exports = __webpack_require__(2)(false);
  3138. // imports
  3139. // module
  3140. exports.push([module.i, "\n.enter-module-btn-drop-list .ivu-dropdown-item {\n padding: 5px 16px;\n font-size: 12px !important;\n}\n", ""]);
  3141. // exports
  3142. /***/ }),
  3143. /***/ 785:
  3144. /***/ (function(module, exports, __webpack_require__) {
  3145. // style-loader: Adds some css to the DOM by adding a <style> tag
  3146. // load the styles
  3147. var content = __webpack_require__(786);
  3148. if(typeof content === 'string') content = [[module.i, content, '']];
  3149. if(content.locals) module.exports = content.locals;
  3150. // add the styles to the DOM
  3151. var update = __webpack_require__(3)("42fdf46b", content, false, {});
  3152. // Hot Module Replacement
  3153. if(false) {
  3154. // When the styles change, update the <style> tags
  3155. if(!content.locals) {
  3156. module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-7dae0bfc\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=1!./add.vue", function() {
  3157. var newContent = require("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-7dae0bfc\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=1!./add.vue");
  3158. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  3159. update(newContent);
  3160. });
  3161. }
  3162. // When the module is disposed, remove the <style> tags
  3163. module.hot.dispose(function() { update(); });
  3164. }
  3165. /***/ }),
  3166. /***/ 786:
  3167. /***/ (function(module, exports, __webpack_require__) {
  3168. exports = module.exports = __webpack_require__(2)(false);
  3169. // imports
  3170. // module
  3171. exports.push([module.i, "\n.task-input-box[data-v-7dae0bfc] {\n position: relative;\n margin-top: 5px;\n margin-bottom: 20px;\n min-height: 70px;\n}\n.task-input-box .input-placeholder[data-v-7dae0bfc],\n .task-input-box .input-enter[data-v-7dae0bfc] {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n width: 100%;\n}\n.task-input-box .input-placeholder[data-v-7dae0bfc] {\n z-index: 1;\n height: 40px;\n line-height: 40px;\n color: rgba(0, 0, 0, 0.36);\n padding-left: 12px;\n padding-right: 12px;\n}\n.task-input-box .input-enter[data-v-7dae0bfc] {\n z-index: 2;\n position: relative;\n background-color: transparent;\n}\n.task-input-box .input-enter .input-enter-textarea[data-v-7dae0bfc] {\n border-radius: 4px;\n padding-left: 12px;\n padding-right: 12px;\n color: rgba(0, 0, 0, 0.85);\n}\n.task-input-box .input-enter .input-enter-textarea.bright[data-v-7dae0bfc] {\n background-color: rgba(46, 73, 136, 0.08);\n}\n.task-input-box .input-enter .input-enter-textarea.highlight[data-v-7dae0bfc] {\n background-color: #ffffff;\n}\n.task-input-box .input-enter .input-enter-module[data-v-7dae0bfc] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n margin-top: 8px;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon[data-v-7dae0bfc] {\n display: inline-block;\n width: 16px;\n height: 16px;\n margin-right: 5px;\n border-radius: 4px;\n vertical-align: middle;\n cursor: pointer;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon.p1[data-v-7dae0bfc] {\n background-color: #ff0000;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon.p2[data-v-7dae0bfc] {\n background-color: #BB9F35;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon.p3[data-v-7dae0bfc] {\n background-color: #449EDD;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon.p4[data-v-7dae0bfc] {\n background-color: #84A83B;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon.user[data-v-7dae0bfc] {\n width: 24px;\n height: 24px;\n margin-left: 10px;\n margin-right: 10px;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon.user .avatar[data-v-7dae0bfc] {\n width: 24px;\n height: 24px;\n font-size: 14px;\n line-height: 24px;\n border-radius: 12px;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon.user i[data-v-7dae0bfc] {\n line-height: 24px;\n font-size: 16px;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon i[data-v-7dae0bfc] {\n width: 100%;\n height: 100%;\n color: #ffffff;\n line-height: 16px;\n font-size: 14px;\n -webkit-transform: scale(0.85);\n transform: scale(0.85);\n vertical-align: 0;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-flex[data-v-7dae0bfc] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-btn button[data-v-7dae0bfc] {\n font-size: 12px;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-btn .enter-module-btn-1[data-v-7dae0bfc] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-btn .enter-module-btn-2[data-v-7dae0bfc] {\n padding: 0 2px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-btn .enter-module-btn-drop[data-v-7dae0bfc] {\n margin-left: -4px;\n border-left: 1px solid #c0daff;\n}\n.task-input-box .load-box[data-v-7dae0bfc] {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n z-index: 9;\n}\n.task-input-box .load-box .load-box-main[data-v-7dae0bfc] {\n width: 24px;\n height: 24px;\n}\n", ""]);
  3172. // exports
  3173. /***/ }),
  3174. /***/ 787:
  3175. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3176. "use strict";
  3177. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  3178. //
  3179. //
  3180. //
  3181. //
  3182. //
  3183. //
  3184. //
  3185. //
  3186. //
  3187. //
  3188. //
  3189. //
  3190. //
  3191. //
  3192. //
  3193. //
  3194. //
  3195. //
  3196. //
  3197. //
  3198. //
  3199. //
  3200. //
  3201. //
  3202. //
  3203. //
  3204. //
  3205. //
  3206. //
  3207. //
  3208. //
  3209. //
  3210. //
  3211. //
  3212. //
  3213. //
  3214. //
  3215. //
  3216. //
  3217. //
  3218. //
  3219. //
  3220. //
  3221. //
  3222. //
  3223. //
  3224. //
  3225. //
  3226. //
  3227. //
  3228. //
  3229. //
  3230. //
  3231. //
  3232. //
  3233. //
  3234. //
  3235. //
  3236. //
  3237. //
  3238. //
  3239. //
  3240. //
  3241. //
  3242. //
  3243. //
  3244. //
  3245. //
  3246. //
  3247. //
  3248. //
  3249. //
  3250. //
  3251. //
  3252. //
  3253. //
  3254. //
  3255. //
  3256. //
  3257. //
  3258. //
  3259. //
  3260. //
  3261. //
  3262. //
  3263. //
  3264. //
  3265. //
  3266. //
  3267. //
  3268. //
  3269. //
  3270. //
  3271. //
  3272. //
  3273. //
  3274. //
  3275. //
  3276. //
  3277. //
  3278. //
  3279. //
  3280. //
  3281. //
  3282. //
  3283. //
  3284. //
  3285. //
  3286. //
  3287. //
  3288. //
  3289. //
  3290. //
  3291. //
  3292. //
  3293. //
  3294. //
  3295. //
  3296. //
  3297. //
  3298. //
  3299. //
  3300. //
  3301. //
  3302. //
  3303. //
  3304. //
  3305. //
  3306. //
  3307. //
  3308. //
  3309. //
  3310. //
  3311. //
  3312. //
  3313. //
  3314. //
  3315. //
  3316. //
  3317. //
  3318. //
  3319. //
  3320. //
  3321. //
  3322. //
  3323. //
  3324. //
  3325. //
  3326. //
  3327. //
  3328. //
  3329. //
  3330. //
  3331. //
  3332. //
  3333. //
  3334. //
  3335. //
  3336. //
  3337. //
  3338. //
  3339. //
  3340. //
  3341. //
  3342. //
  3343. //
  3344. //
  3345. //
  3346. //
  3347. //
  3348. //
  3349. //
  3350. //
  3351. //
  3352. //
  3353. //
  3354. //
  3355. //
  3356. //
  3357. //
  3358. //
  3359. //
  3360. //
  3361. //
  3362. //
  3363. //
  3364. //
  3365. //
  3366. //
  3367. //
  3368. //
  3369. //
  3370. //
  3371. //
  3372. //
  3373. /* harmony default export */ __webpack_exports__["default"] = ({
  3374. name: 'ProjectAddTask',
  3375. props: {
  3376. placeholder: {
  3377. type: String,
  3378. default: ''
  3379. },
  3380. projectid: {
  3381. type: Number,
  3382. default: 0
  3383. },
  3384. labelid: {
  3385. type: Number,
  3386. default: 0
  3387. }
  3388. },
  3389. data: function data() {
  3390. return {
  3391. loadIng: 0,
  3392. addText: '',
  3393. addLevel: 2,
  3394. addUserInfo: {},
  3395. addFocus: false,
  3396. nameTipDisabled: false
  3397. };
  3398. },
  3399. mounted: function mounted() {
  3400. this.addUserInfo = $A.cloneData(this.usrInfo);
  3401. },
  3402. methods: {
  3403. changeUser: function changeUser(user) {
  3404. if (typeof user.username === "undefined") {
  3405. this.addUserInfo = $A.cloneData(this.usrInfo);
  3406. } else {
  3407. this.addUserInfo = user;
  3408. }
  3409. },
  3410. dropAdd: function dropAdd(name) {
  3411. if (name == 'insertbottom') {
  3412. this.clickAdd(true);
  3413. }
  3414. },
  3415. clickAdd: function clickAdd() {
  3416. var _this = this;
  3417. var insertbottom = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
  3418. var addText = this.addText.trim();
  3419. if ($A.count(addText) == 0 || this.loadIng > 0) {
  3420. return;
  3421. }
  3422. this.loadIng++;
  3423. $A.apiAjax({
  3424. url: 'project/task/add',
  3425. data: {
  3426. projectid: this.projectid,
  3427. labelid: this.labelid,
  3428. title: addText,
  3429. level: this.addLevel,
  3430. username: this.addUserInfo.username,
  3431. insertbottom: insertbottom ? 1 : 0
  3432. },
  3433. complete: function complete() {
  3434. _this.loadIng--;
  3435. },
  3436. error: function error() {
  3437. alert(_this.$L('网络繁忙,请稍后再试!'));
  3438. },
  3439. success: function success(res) {
  3440. if (res.ret === 1) {
  3441. _this.addText = '';
  3442. _this.addFocus = false;
  3443. _this.$Message.success(res.msg);
  3444. res.data.insertbottom = insertbottom;
  3445. _this.$emit('on-add-success', res.data);
  3446. $A.triggerTaskInfoListener('create', res.data);
  3447. $A.triggerTaskInfoChange(res.data.id);
  3448. } else {
  3449. _this.$Modal.error({ title: _this.$L('温馨提示'), content: res.msg });
  3450. }
  3451. }
  3452. });
  3453. },
  3454. addKeydown: function addKeydown(e) {
  3455. if (e.keyCode == 13) {
  3456. if (e.shiftKey) {
  3457. return;
  3458. }
  3459. this.clickAdd(false);
  3460. e.preventDefault();
  3461. }
  3462. },
  3463. setFocus: function setFocus() {
  3464. this.$refs.addInput.focus();
  3465. },
  3466. onFocus: function onFocus(focus) {
  3467. this.addFocus = focus;
  3468. this.$emit('on-focus', focus);
  3469. }
  3470. }
  3471. });
  3472. /***/ }),
  3473. /***/ 788:
  3474. /***/ (function(module, exports, __webpack_require__) {
  3475. var render = function() {
  3476. var _vm = this
  3477. var _h = _vm.$createElement
  3478. var _c = _vm._self._c || _h
  3479. return _c("div", { staticClass: "task-input-box" }, [
  3480. !_vm.addText
  3481. ? _c(
  3482. "div",
  3483. { staticClass: "input-placeholder" },
  3484. [
  3485. _c("Icon", { attrs: { type: "md-create", size: "18" } }),
  3486. _vm._v(
  3487. " " +
  3488. _vm._s(
  3489. _vm.addFocus
  3490. ? "" + _vm.$L("输入任务,回车即可保存")
  3491. : _vm.placeholder
  3492. ) +
  3493. "\n "
  3494. )
  3495. ],
  3496. 1
  3497. )
  3498. : _vm._e(),
  3499. _vm._v(" "),
  3500. _c(
  3501. "div",
  3502. { staticClass: "input-enter" },
  3503. [
  3504. _c("Input", {
  3505. ref: "addInput",
  3506. staticClass: "input-enter-textarea",
  3507. class: { bright: _vm.addFocus === true, highlight: !!_vm.addText },
  3508. attrs: {
  3509. type: "textarea",
  3510. "element-id": "project-panel-enter-textarea",
  3511. autosize: { minRows: 1, maxRows: 6 },
  3512. maxlength: 255
  3513. },
  3514. on: {
  3515. "on-focus": function($event) {
  3516. return _vm.onFocus(true)
  3517. },
  3518. "on-blur": function($event) {
  3519. return _vm.onFocus(false)
  3520. },
  3521. "on-keydown": _vm.addKeydown
  3522. },
  3523. model: {
  3524. value: _vm.addText,
  3525. callback: function($$v) {
  3526. _vm.addText = $$v
  3527. },
  3528. expression: "addText"
  3529. }
  3530. }),
  3531. _vm._v(" "),
  3532. !!_vm.addText
  3533. ? _c(
  3534. "div",
  3535. { staticClass: "input-enter-module" },
  3536. [
  3537. _c(
  3538. "Tooltip",
  3539. {
  3540. attrs: {
  3541. content: _vm.$L("重要且紧急"),
  3542. placement: "bottom",
  3543. transfer: ""
  3544. }
  3545. },
  3546. [
  3547. _c(
  3548. "div",
  3549. {
  3550. staticClass: "enter-module-icon p1",
  3551. on: {
  3552. click: function($event) {
  3553. _vm.addLevel = 1
  3554. }
  3555. }
  3556. },
  3557. [
  3558. _vm.addLevel == "1"
  3559. ? _c("Icon", { attrs: { type: "md-checkmark" } })
  3560. : _vm._e()
  3561. ],
  3562. 1
  3563. )
  3564. ]
  3565. ),
  3566. _vm._v(" "),
  3567. _c(
  3568. "Tooltip",
  3569. {
  3570. attrs: {
  3571. content: _vm.$L("重要不紧急"),
  3572. placement: "bottom",
  3573. transfer: ""
  3574. }
  3575. },
  3576. [
  3577. _c(
  3578. "div",
  3579. {
  3580. staticClass: "enter-module-icon p2",
  3581. on: {
  3582. click: function($event) {
  3583. _vm.addLevel = 2
  3584. }
  3585. }
  3586. },
  3587. [
  3588. _vm.addLevel == "2"
  3589. ? _c("Icon", { attrs: { type: "md-checkmark" } })
  3590. : _vm._e()
  3591. ],
  3592. 1
  3593. )
  3594. ]
  3595. ),
  3596. _vm._v(" "),
  3597. _c(
  3598. "Tooltip",
  3599. {
  3600. attrs: {
  3601. content: _vm.$L("紧急不重要"),
  3602. placement: "bottom",
  3603. transfer: ""
  3604. }
  3605. },
  3606. [
  3607. _c(
  3608. "div",
  3609. {
  3610. staticClass: "enter-module-icon p3",
  3611. on: {
  3612. click: function($event) {
  3613. _vm.addLevel = 3
  3614. }
  3615. }
  3616. },
  3617. [
  3618. _vm.addLevel == "3"
  3619. ? _c("Icon", { attrs: { type: "md-checkmark" } })
  3620. : _vm._e()
  3621. ],
  3622. 1
  3623. )
  3624. ]
  3625. ),
  3626. _vm._v(" "),
  3627. _c(
  3628. "Tooltip",
  3629. {
  3630. attrs: {
  3631. content: _vm.$L("不重要不紧急"),
  3632. placement: "bottom",
  3633. transfer: ""
  3634. }
  3635. },
  3636. [
  3637. _c(
  3638. "div",
  3639. {
  3640. staticClass: "enter-module-icon p4",
  3641. on: {
  3642. click: function($event) {
  3643. _vm.addLevel = 4
  3644. }
  3645. }
  3646. },
  3647. [
  3648. _vm.addLevel == "4"
  3649. ? _c("Icon", { attrs: { type: "md-checkmark" } })
  3650. : _vm._e()
  3651. ],
  3652. 1
  3653. )
  3654. ]
  3655. ),
  3656. _vm._v(" "),
  3657. _c("div", { staticClass: "enter-module-flex" }),
  3658. _vm._v(" "),
  3659. _c(
  3660. "Poptip",
  3661. {
  3662. attrs: { placement: "bottom", transfer: "" },
  3663. on: {
  3664. "on-popper-show": function($event) {
  3665. _vm.nameTipDisabled = true
  3666. },
  3667. "on-popper-hide": function($event) {
  3668. _vm.nameTipDisabled = false
  3669. }
  3670. }
  3671. },
  3672. [
  3673. _c(
  3674. "Tooltip",
  3675. {
  3676. attrs: {
  3677. placement: "bottom",
  3678. disabled: _vm.nameTipDisabled
  3679. }
  3680. },
  3681. [
  3682. _c(
  3683. "div",
  3684. { staticClass: "enter-module-icon user" },
  3685. [
  3686. _c("UserImg", {
  3687. staticClass: "avatar",
  3688. attrs: { info: _vm.addUserInfo }
  3689. })
  3690. ],
  3691. 1
  3692. ),
  3693. _vm._v(" "),
  3694. _c(
  3695. "div",
  3696. { attrs: { slot: "content" }, slot: "content" },
  3697. [
  3698. _vm._v(
  3699. "\n " +
  3700. _vm._s(_vm.$L("负责人")) +
  3701. ": "
  3702. ),
  3703. _c("UserView", {
  3704. attrs: { username: _vm.addUserInfo.username }
  3705. })
  3706. ],
  3707. 1
  3708. )
  3709. ]
  3710. ),
  3711. _vm._v(" "),
  3712. _c("div", { attrs: { slot: "content" }, slot: "content" }, [
  3713. _c(
  3714. "div",
  3715. { staticStyle: { width: "240px" } },
  3716. [
  3717. _vm._v(
  3718. "\n " +
  3719. _vm._s(_vm.$L("选择负责人")) +
  3720. "\n "
  3721. ),
  3722. _c("UserInput", {
  3723. staticStyle: { margin: "5px 0 3px" },
  3724. attrs: {
  3725. projectid: _vm.projectid,
  3726. placeholder: _vm.$L("留空默认: 自己")
  3727. },
  3728. on: { change: _vm.changeUser },
  3729. model: {
  3730. value: _vm.addUserInfo.username,
  3731. callback: function($$v) {
  3732. _vm.$set(_vm.addUserInfo, "username", $$v)
  3733. },
  3734. expression: "addUserInfo.username"
  3735. }
  3736. })
  3737. ],
  3738. 1
  3739. )
  3740. ])
  3741. ],
  3742. 1
  3743. ),
  3744. _vm._v(" "),
  3745. _c(
  3746. "div",
  3747. { staticClass: "enter-module-btn" },
  3748. [
  3749. _c(
  3750. "Button",
  3751. {
  3752. staticClass: "enter-module-btn-1",
  3753. attrs: { type: "info", size: "small" },
  3754. on: {
  3755. click: function($event) {
  3756. return _vm.clickAdd(false)
  3757. }
  3758. }
  3759. },
  3760. [_vm._v(_vm._s(_vm.$L("添加任务")))]
  3761. ),
  3762. _vm._v(" "),
  3763. _c(
  3764. "Dropdown",
  3765. {
  3766. staticClass: "enter-module-btn-drop",
  3767. attrs: { placement: "bottom-end", transfer: "" },
  3768. on: { "on-click": _vm.dropAdd }
  3769. },
  3770. [
  3771. _c(
  3772. "Button",
  3773. {
  3774. staticClass: "enter-module-btn-2",
  3775. attrs: { type: "info", size: "small" }
  3776. },
  3777. [_c("Icon", { attrs: { type: "ios-arrow-down" } })],
  3778. 1
  3779. ),
  3780. _vm._v(" "),
  3781. _c(
  3782. "DropdownMenu",
  3783. {
  3784. staticClass: "enter-module-btn-drop-list",
  3785. attrs: { slot: "list" },
  3786. slot: "list"
  3787. },
  3788. [
  3789. _c(
  3790. "DropdownItem",
  3791. { attrs: { name: "insertbottom" } },
  3792. [_vm._v(_vm._s(_vm.$L("添加至列表结尾")))]
  3793. )
  3794. ],
  3795. 1
  3796. )
  3797. ],
  3798. 1
  3799. )
  3800. ],
  3801. 1
  3802. )
  3803. ],
  3804. 1
  3805. )
  3806. : _vm._e()
  3807. ],
  3808. 1
  3809. ),
  3810. _vm._v(" "),
  3811. _vm.loadIng > 0
  3812. ? _c(
  3813. "div",
  3814. {
  3815. staticClass: "load-box",
  3816. on: {
  3817. click: function($event) {
  3818. $event.stopPropagation()
  3819. }
  3820. }
  3821. },
  3822. [_c("div", { staticClass: "load-box-main" }, [_c("w-loading")], 1)]
  3823. )
  3824. : _vm._e()
  3825. ])
  3826. }
  3827. var staticRenderFns = []
  3828. render._withStripped = true
  3829. module.exports = { render: render, staticRenderFns: staticRenderFns }
  3830. if (false) {
  3831. module.hot.accept()
  3832. if (module.hot.data) {
  3833. require("vue-hot-reload-api") .rerender("data-v-7dae0bfc", module.exports)
  3834. }
  3835. }
  3836. /***/ }),
  3837. /***/ 789:
  3838. /***/ (function(module, exports, __webpack_require__) {
  3839. var disposed = false
  3840. function injectStyle (ssrContext) {
  3841. if (disposed) return
  3842. __webpack_require__(790)
  3843. }
  3844. var normalizeComponent = __webpack_require__(4)
  3845. /* script */
  3846. var __vue_script__ = __webpack_require__(792)
  3847. /* template */
  3848. var __vue_template__ = __webpack_require__(793)
  3849. /* template functional */
  3850. var __vue_template_functional__ = false
  3851. /* styles */
  3852. var __vue_styles__ = injectStyle
  3853. /* scopeId */
  3854. var __vue_scopeId__ = "data-v-11cf9cb6"
  3855. /* moduleIdentifier (server only) */
  3856. var __vue_module_identifier__ = null
  3857. var Component = normalizeComponent(
  3858. __vue_script__,
  3859. __vue_template__,
  3860. __vue_template_functional__,
  3861. __vue_styles__,
  3862. __vue_scopeId__,
  3863. __vue_module_identifier__
  3864. )
  3865. Component.options.__file = "resources/assets/js/main/components/project/task/lists.vue"
  3866. /* hot reload */
  3867. if (false) {(function () {
  3868. var hotAPI = require("vue-hot-reload-api")
  3869. hotAPI.install(require("vue"), false)
  3870. if (!hotAPI.compatible) return
  3871. module.hot.accept()
  3872. if (!module.hot.data) {
  3873. hotAPI.createRecord("data-v-11cf9cb6", Component.options)
  3874. } else {
  3875. hotAPI.reload("data-v-11cf9cb6", Component.options)
  3876. }
  3877. module.hot.dispose(function (data) {
  3878. disposed = true
  3879. })
  3880. })()}
  3881. module.exports = Component.exports
  3882. /***/ }),
  3883. /***/ 790:
  3884. /***/ (function(module, exports, __webpack_require__) {
  3885. // style-loader: Adds some css to the DOM by adding a <style> tag
  3886. // load the styles
  3887. var content = __webpack_require__(791);
  3888. if(typeof content === 'string') content = [[module.i, content, '']];
  3889. if(content.locals) module.exports = content.locals;
  3890. // add the styles to the DOM
  3891. var update = __webpack_require__(3)("82725c66", content, false, {});
  3892. // Hot Module Replacement
  3893. if(false) {
  3894. // When the styles change, update the <style> tags
  3895. if(!content.locals) {
  3896. module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-11cf9cb6\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./lists.vue", function() {
  3897. var newContent = require("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-11cf9cb6\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./lists.vue");
  3898. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  3899. update(newContent);
  3900. });
  3901. }
  3902. // When the module is disposed, remove the <style> tags
  3903. module.hot.dispose(function() { update(); });
  3904. }
  3905. /***/ }),
  3906. /***/ 791:
  3907. /***/ (function(module, exports, __webpack_require__) {
  3908. exports = module.exports = __webpack_require__(2)(false);
  3909. // imports
  3910. // module
  3911. exports.push([module.i, "\n.project-task-lists[data-v-11cf9cb6] {\n margin: 0 12px;\n}\n.project-task-lists .tableFill[data-v-11cf9cb6] {\n margin: 12px 0 20px;\n}\n", ""]);
  3912. // exports
  3913. /***/ }),
  3914. /***/ 792:
  3915. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3916. "use strict";
  3917. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  3918. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(11);
  3919. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  3920. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_task__ = __webpack_require__(38);
  3921. //
  3922. //
  3923. //
  3924. //
  3925. //
  3926. //
  3927. //
  3928. //
  3929. //
  3930. //
  3931. //
  3932. //
  3933. //
  3934. //
  3935. //
  3936. //
  3937. //
  3938. //
  3939. //
  3940. //
  3941. //
  3942. //
  3943. //
  3944. //
  3945. //
  3946. //
  3947. //
  3948. //
  3949. //
  3950. //
  3951. //
  3952. //
  3953. //
  3954. //
  3955. //
  3956. //
  3957. //
  3958. //
  3959. //
  3960. //
  3961. //
  3962. //
  3963. //
  3964. //
  3965. //
  3966. //
  3967. //
  3968. //
  3969. //
  3970. //
  3971. //
  3972. //
  3973. //
  3974. //
  3975. //
  3976. //
  3977. //
  3978. //
  3979. //
  3980. //
  3981. //
  3982. //
  3983. //
  3984. //
  3985. //
  3986. //
  3987. /**
  3988. * 项目任务列表
  3989. */
  3990. /* harmony default export */ __webpack_exports__["default"] = ({
  3991. name: 'ProjectTaskLists',
  3992. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  3993. props: {
  3994. projectid: {
  3995. default: 0
  3996. },
  3997. canload: {
  3998. type: Boolean,
  3999. default: true
  4000. },
  4001. labelLists: {
  4002. type: Array
  4003. }
  4004. },
  4005. mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_task__["a" /* default */]],
  4006. data: function data() {
  4007. return {
  4008. keys: {},
  4009. sorts: { key: '', order: '' },
  4010. loadYet: false,
  4011. loadIng: 0,
  4012. exportLoad: 0,
  4013. columns: [],
  4014. lists: [],
  4015. listPage: 1,
  4016. listTotal: 0,
  4017. noDataText: ""
  4018. };
  4019. },
  4020. mounted: function mounted() {
  4021. var _this = this;
  4022. if (this.canload) {
  4023. this.loadYet = true;
  4024. this.getLists(true);
  4025. }
  4026. $A.setOnTaskInfoListener('components/project/task/lists', function (act, detail) {
  4027. if (detail.projectid != _this.projectid) {
  4028. return;
  4029. }
  4030. //
  4031. _this.lists.some(function (task, i) {
  4032. if (task.id == detail.id) {
  4033. _this.lists.splice(i, 1, detail);
  4034. return true;
  4035. }
  4036. });
  4037. //
  4038. switch (act) {
  4039. case "username": // 负责人
  4040. case "delete": // 删除任务
  4041. case "archived":
  4042. // 归档
  4043. _this.lists.some(function (task, i) {
  4044. if (task.id == detail.id) {
  4045. _this.lists.splice(i, 1);
  4046. return true;
  4047. }
  4048. });
  4049. break;
  4050. case "unarchived":
  4051. // 取消归档
  4052. var has = false;
  4053. _this.lists.some(function (task) {
  4054. if (task.id == detail.id) {
  4055. return has = true;
  4056. }
  4057. });
  4058. if (!has) {
  4059. _this.lists.unshift(detail);
  4060. }
  4061. break;
  4062. }
  4063. });
  4064. },
  4065. watch: {
  4066. projectid: function projectid() {
  4067. if (this.loadYet) {
  4068. this.getLists(true);
  4069. }
  4070. },
  4071. canload: function canload(val) {
  4072. if (val && !this.loadYet) {
  4073. this.loadYet = true;
  4074. this.getLists(true);
  4075. }
  4076. }
  4077. },
  4078. methods: {
  4079. initLanguage: function initLanguage() {
  4080. var _this2 = this;
  4081. this.noDataText = this.$L("数据加载中.....");
  4082. this.columns = [{
  4083. "title": this.$L("任务名称"),
  4084. "key": 'title',
  4085. "minWidth": 120,
  4086. render: function render(h, params) {
  4087. return _this2.renderTaskTitle(h, params);
  4088. }
  4089. }, {
  4090. "title": this.$L("阶段"),
  4091. "key": 'labelid',
  4092. "minWidth": 80,
  4093. "sortable": true,
  4094. render: function render(h, params) {
  4095. var labelid = params.row.labelid;
  4096. var labelDetail = _this2.labelLists.find(function (item) {
  4097. return item.id === labelid;
  4098. });
  4099. return h('span', labelDetail ? labelDetail.title : labelid);
  4100. }
  4101. }, {
  4102. "title": this.$L("计划时间"),
  4103. "key": 'enddate',
  4104. "width": 160,
  4105. "align": "center",
  4106. "sortable": true,
  4107. render: function render(h, params) {
  4108. if (!params.row.startdate && !params.row.enddate) {
  4109. return h('span', '-');
  4110. }
  4111. return h('div', {
  4112. style: {
  4113. fontSize: '12px',
  4114. lineHeight: '14px'
  4115. }
  4116. }, [h('div', params.row.startdate ? $A.formatDate("Y-m-d H:i:s", params.row.startdate) : '-'), h('div', params.row.enddate ? $A.formatDate("Y-m-d H:i:s", params.row.enddate) : '-')]);
  4117. }
  4118. }, {
  4119. "title": this.$L("负责人"),
  4120. "key": 'username',
  4121. "minWidth": 90,
  4122. "sortable": true,
  4123. render: function render(h, params) {
  4124. return h('UserView', {
  4125. props: {
  4126. username: params.row.username
  4127. }
  4128. });
  4129. }
  4130. }, {
  4131. "title": this.$L("优先级"),
  4132. "key": 'level',
  4133. "align": "center",
  4134. "minWidth": 90,
  4135. "maxWidth": 100,
  4136. "sortable": true,
  4137. render: function render(h, params) {
  4138. var level = params.row.level;
  4139. var color = void 0;
  4140. switch (level) {
  4141. case 1:
  4142. color = "#ff0000";
  4143. break;
  4144. case 2:
  4145. color = "#BB9F35";
  4146. break;
  4147. case 3:
  4148. color = "#449EDD";
  4149. break;
  4150. case 4:
  4151. color = "#84A83B";
  4152. break;
  4153. }
  4154. return h('span', {
  4155. style: {
  4156. color: color
  4157. }
  4158. }, "P" + level);
  4159. }
  4160. }, {
  4161. "title": this.$L("状态"),
  4162. "key": 'type',
  4163. "align": "center",
  4164. "minWidth": 80,
  4165. "maxWidth": 100,
  4166. "sortable": true,
  4167. render: function render(h, params) {
  4168. var color = void 0;
  4169. var status = void 0;
  4170. if (params.row.overdue) {
  4171. color = "#ff0000";
  4172. status = _this2.$L("已超期");
  4173. } else if (params.row.complete) {
  4174. color = "";
  4175. status = _this2.$L("已完成");
  4176. } else {
  4177. color = "#19be6b";
  4178. status = _this2.$L("未完成");
  4179. }
  4180. return h('span', {
  4181. style: {
  4182. color: color
  4183. }
  4184. }, status);
  4185. }
  4186. }, {
  4187. "title": this.$L("创建时间"),
  4188. "key": 'indate',
  4189. "width": 160,
  4190. "sortable": true,
  4191. render: function render(h, params) {
  4192. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.indate));
  4193. }
  4194. }];
  4195. },
  4196. exportTab: function exportTab() {
  4197. var _this3 = this;
  4198. var whereData = $A.cloneData(this.keys);
  4199. whereData.page = Math.max(this.listPage, 1);
  4200. whereData.pagesize = Math.max($A.runNum(this.listPageSize), 10);
  4201. whereData.projectid = this.projectid;
  4202. whereData.sorts = $A.cloneData(this.sorts);
  4203. whereData.export = 1;
  4204. this.exportLoad++;
  4205. $A.apiAjax({
  4206. url: 'project/task/lists',
  4207. data: whereData,
  4208. complete: function complete() {
  4209. _this3.exportLoad--;
  4210. },
  4211. error: function error() {
  4212. alert(_this3.$L('网络繁忙,请稍后再试!'));
  4213. },
  4214. success: function success(res) {
  4215. if (res.ret === 1) {
  4216. _this3.$Modal.info({
  4217. okText: _this3.$L('关闭'),
  4218. render: function render(h) {
  4219. return h('div', [h('div', {
  4220. style: {
  4221. fontSize: '16px',
  4222. fontWeight: '500',
  4223. marginBottom: '20px'
  4224. }
  4225. }, _this3.$L('导出结果')), h('a', {
  4226. attrs: { href: res.data.url, target: '_blank' }
  4227. }, _this3.$L('点击下载 (%)', res.data.size + " KB"))]);
  4228. }
  4229. });
  4230. } else {
  4231. _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
  4232. }
  4233. }
  4234. });
  4235. },
  4236. sreachTab: function sreachTab(clear) {
  4237. if (clear === true) {
  4238. this.keys = {};
  4239. }
  4240. this.getLists(true);
  4241. },
  4242. sortChange: function sortChange(info) {
  4243. this.sorts = { key: info.key, order: info.order };
  4244. this.getLists(true);
  4245. },
  4246. setPage: function setPage(page) {
  4247. this.listPage = page;
  4248. this.getLists();
  4249. },
  4250. setPageSize: function setPageSize(size) {
  4251. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  4252. this.listPageSize = size;
  4253. this.getLists();
  4254. }
  4255. },
  4256. getLists: function getLists(resetLoad) {
  4257. var _this4 = this;
  4258. if (resetLoad === true) {
  4259. this.listPage = 1;
  4260. }
  4261. if (this.projectid == 0) {
  4262. this.lists = [];
  4263. this.listTotal = 0;
  4264. this.noDataText = this.$L("没有相关的数据");
  4265. return;
  4266. }
  4267. this.loadIng++;
  4268. var whereData = $A.cloneData(this.keys);
  4269. whereData.page = Math.max(this.listPage, 1);
  4270. whereData.pagesize = Math.max($A.runNum(this.listPageSize), 10);
  4271. whereData.projectid = this.projectid;
  4272. whereData.sorts = $A.cloneData(this.sorts);
  4273. this.noDataText = this.$L("数据加载中.....");
  4274. $A.apiAjax({
  4275. url: 'project/task/lists',
  4276. data: whereData,
  4277. complete: function complete() {
  4278. _this4.loadIng--;
  4279. },
  4280. error: function error() {
  4281. _this4.noDataText = _this4.$L("数据加载失败!");
  4282. },
  4283. success: function success(res) {
  4284. if (res.ret === 1) {
  4285. _this4.lists = res.data.lists;
  4286. _this4.listTotal = res.data.total;
  4287. _this4.noDataText = _this4.$L("没有相关的数据");
  4288. } else {
  4289. _this4.lists = [];
  4290. _this4.listTotal = 0;
  4291. _this4.noDataText = res.msg;
  4292. }
  4293. }
  4294. });
  4295. }
  4296. }
  4297. });
  4298. /***/ }),
  4299. /***/ 793:
  4300. /***/ (function(module, exports, __webpack_require__) {
  4301. var render = function() {
  4302. var _vm = this
  4303. var _h = _vm.$createElement
  4304. var _c = _vm._self._c || _h
  4305. return _c("drawer-tabs-container", [
  4306. _c(
  4307. "div",
  4308. { staticClass: "project-task-lists" },
  4309. [
  4310. _c("Row", { staticClass: "sreachBox" }, [
  4311. _c("div", { staticClass: "item" }, [
  4312. _c(
  4313. "div",
  4314. { staticClass: "item-4" },
  4315. [
  4316. _c("sreachTitle", { attrs: { val: _vm.keys.type } }, [
  4317. _vm._v(_vm._s(_vm.$L("状态")))
  4318. ]),
  4319. _vm._v(" "),
  4320. _c(
  4321. "Select",
  4322. {
  4323. attrs: { placeholder: _vm.$L("全部") },
  4324. model: {
  4325. value: _vm.keys.type,
  4326. callback: function($$v) {
  4327. _vm.$set(_vm.keys, "type", $$v)
  4328. },
  4329. expression: "keys.type"
  4330. }
  4331. },
  4332. [
  4333. _c("Option", { attrs: { value: "" } }, [
  4334. _vm._v(_vm._s(_vm.$L("全部")))
  4335. ]),
  4336. _vm._v(" "),
  4337. _c("Option", { attrs: { value: "未完成" } }, [
  4338. _vm._v(_vm._s(_vm.$L("未完成")))
  4339. ]),
  4340. _vm._v(" "),
  4341. _c("Option", { attrs: { value: "已超期" } }, [
  4342. _vm._v(_vm._s(_vm.$L("已超期")))
  4343. ]),
  4344. _vm._v(" "),
  4345. _c("Option", { attrs: { value: "已完成" } }, [
  4346. _vm._v(_vm._s(_vm.$L("已完成")))
  4347. ])
  4348. ],
  4349. 1
  4350. )
  4351. ],
  4352. 1
  4353. ),
  4354. _vm._v(" "),
  4355. _c(
  4356. "div",
  4357. { staticClass: "item-4" },
  4358. [
  4359. _c("sreachTitle", { attrs: { val: _vm.keys.username } }, [
  4360. _vm._v(_vm._s(_vm.$L("负责人")))
  4361. ]),
  4362. _vm._v(" "),
  4363. _c("Input", {
  4364. attrs: { placeholder: _vm.$L("用户名") },
  4365. model: {
  4366. value: _vm.keys.username,
  4367. callback: function($$v) {
  4368. _vm.$set(_vm.keys, "username", $$v)
  4369. },
  4370. expression: "keys.username"
  4371. }
  4372. })
  4373. ],
  4374. 1
  4375. ),
  4376. _vm._v(" "),
  4377. _c(
  4378. "div",
  4379. { staticClass: "item-4" },
  4380. [
  4381. _c("sreachTitle", { attrs: { val: _vm.keys.level } }, [
  4382. _vm._v(_vm._s(_vm.$L("级别")))
  4383. ]),
  4384. _vm._v(" "),
  4385. _c(
  4386. "Select",
  4387. {
  4388. attrs: { placeholder: _vm.$L("全部") },
  4389. model: {
  4390. value: _vm.keys.level,
  4391. callback: function($$v) {
  4392. _vm.$set(_vm.keys, "level", $$v)
  4393. },
  4394. expression: "keys.level"
  4395. }
  4396. },
  4397. [
  4398. _c("Option", { attrs: { value: "" } }, [
  4399. _vm._v(_vm._s(_vm.$L("全部")))
  4400. ]),
  4401. _vm._v(" "),
  4402. _c("Option", { attrs: { value: "1" } }, [_vm._v("P1")]),
  4403. _vm._v(" "),
  4404. _c("Option", { attrs: { value: "2" } }, [_vm._v("P2")]),
  4405. _vm._v(" "),
  4406. _c("Option", { attrs: { value: "3" } }, [_vm._v("P3")]),
  4407. _vm._v(" "),
  4408. _c("Option", { attrs: { value: "4" } }, [_vm._v("P4")])
  4409. ],
  4410. 1
  4411. )
  4412. ],
  4413. 1
  4414. ),
  4415. _vm._v(" "),
  4416. _c(
  4417. "div",
  4418. { staticClass: "item-4" },
  4419. [
  4420. _c("sreachTitle", { attrs: { val: _vm.keys.labelid } }, [
  4421. _vm._v(_vm._s(_vm.$L("阶段")))
  4422. ]),
  4423. _vm._v(" "),
  4424. _c(
  4425. "Select",
  4426. {
  4427. attrs: { placeholder: _vm.$L("全部") },
  4428. model: {
  4429. value: _vm.keys.labelid,
  4430. callback: function($$v) {
  4431. _vm.$set(_vm.keys, "labelid", $$v)
  4432. },
  4433. expression: "keys.labelid"
  4434. }
  4435. },
  4436. [
  4437. _c("Option", { attrs: { value: "" } }, [
  4438. _vm._v(_vm._s(_vm.$L("全部")))
  4439. ]),
  4440. _vm._v(" "),
  4441. _vm._l(_vm.labelLists, function(item) {
  4442. return _c(
  4443. "Option",
  4444. { key: item.id, attrs: { value: item.id } },
  4445. [_vm._v(_vm._s(item.title))]
  4446. )
  4447. })
  4448. ],
  4449. 2
  4450. )
  4451. ],
  4452. 1
  4453. )
  4454. ]),
  4455. _vm._v(" "),
  4456. _c(
  4457. "div",
  4458. { staticClass: "item item-button" },
  4459. [
  4460. _c(
  4461. "Button",
  4462. {
  4463. staticClass: "left-btn",
  4464. attrs: {
  4465. type: "info",
  4466. icon: "md-swap",
  4467. loading: _vm.exportLoad > 0
  4468. },
  4469. on: { click: _vm.exportTab }
  4470. },
  4471. [_vm._v(_vm._s(_vm.$L("导出列表")))]
  4472. ),
  4473. _vm._v(" "),
  4474. _vm.$A.objImplode(_vm.keys) != ""
  4475. ? _c(
  4476. "Button",
  4477. {
  4478. attrs: { type: "text" },
  4479. on: {
  4480. click: function($event) {
  4481. return _vm.sreachTab(true)
  4482. }
  4483. }
  4484. },
  4485. [_vm._v(_vm._s(_vm.$L("取消筛选")))]
  4486. )
  4487. : _vm._e(),
  4488. _vm._v(" "),
  4489. _c(
  4490. "Button",
  4491. {
  4492. attrs: {
  4493. type: "primary",
  4494. icon: "md-search",
  4495. loading: _vm.loadIng > 0
  4496. },
  4497. on: { click: _vm.sreachTab }
  4498. },
  4499. [_vm._v(_vm._s(_vm.$L("搜索")))]
  4500. )
  4501. ],
  4502. 1
  4503. )
  4504. ]),
  4505. _vm._v(" "),
  4506. _c("Table", {
  4507. ref: "tableRef",
  4508. staticClass: "tableFill",
  4509. attrs: {
  4510. columns: _vm.columns,
  4511. data: _vm.lists,
  4512. loading: _vm.loadIng > 0,
  4513. "no-data-text": _vm.noDataText,
  4514. stripe: ""
  4515. },
  4516. on: { "on-sort-change": _vm.sortChange }
  4517. }),
  4518. _vm._v(" "),
  4519. _c("Page", {
  4520. staticClass: "pageBox",
  4521. attrs: {
  4522. total: _vm.listTotal,
  4523. current: _vm.listPage,
  4524. disabled: _vm.loadIng > 0,
  4525. "page-size-opts": [10, 20, 30, 50, 100],
  4526. placement: "top",
  4527. "show-elevator": "",
  4528. "show-sizer": "",
  4529. "show-total": "",
  4530. transfer: "",
  4531. simple: _vm.windowMax768
  4532. },
  4533. on: {
  4534. "on-change": _vm.setPage,
  4535. "on-page-size-change": _vm.setPageSize
  4536. }
  4537. })
  4538. ],
  4539. 1
  4540. )
  4541. ])
  4542. }
  4543. var staticRenderFns = []
  4544. render._withStripped = true
  4545. module.exports = { render: render, staticRenderFns: staticRenderFns }
  4546. if (false) {
  4547. module.hot.accept()
  4548. if (module.hot.data) {
  4549. require("vue-hot-reload-api") .rerender("data-v-11cf9cb6", module.exports)
  4550. }
  4551. }
  4552. /***/ }),
  4553. /***/ 794:
  4554. /***/ (function(module, exports, __webpack_require__) {
  4555. var disposed = false
  4556. function injectStyle (ssrContext) {
  4557. if (disposed) return
  4558. __webpack_require__(795)
  4559. }
  4560. var normalizeComponent = __webpack_require__(4)
  4561. /* script */
  4562. var __vue_script__ = __webpack_require__(797)
  4563. /* template */
  4564. var __vue_template__ = __webpack_require__(803)
  4565. /* template functional */
  4566. var __vue_template_functional__ = false
  4567. /* styles */
  4568. var __vue_styles__ = injectStyle
  4569. /* scopeId */
  4570. var __vue_scopeId__ = null
  4571. /* moduleIdentifier (server only) */
  4572. var __vue_module_identifier__ = null
  4573. var Component = normalizeComponent(
  4574. __vue_script__,
  4575. __vue_template__,
  4576. __vue_template_functional__,
  4577. __vue_styles__,
  4578. __vue_scopeId__,
  4579. __vue_module_identifier__
  4580. )
  4581. Component.options.__file = "resources/assets/js/main/components/project/gantt/index.vue"
  4582. /* hot reload */
  4583. if (false) {(function () {
  4584. var hotAPI = require("vue-hot-reload-api")
  4585. hotAPI.install(require("vue"), false)
  4586. if (!hotAPI.compatible) return
  4587. module.hot.accept()
  4588. if (!module.hot.data) {
  4589. hotAPI.createRecord("data-v-91cfb088", Component.options)
  4590. } else {
  4591. hotAPI.reload("data-v-91cfb088", Component.options)
  4592. }
  4593. module.hot.dispose(function (data) {
  4594. disposed = true
  4595. })
  4596. })()}
  4597. module.exports = Component.exports
  4598. /***/ }),
  4599. /***/ 795:
  4600. /***/ (function(module, exports, __webpack_require__) {
  4601. // style-loader: Adds some css to the DOM by adding a <style> tag
  4602. // load the styles
  4603. var content = __webpack_require__(796);
  4604. if(typeof content === 'string') content = [[module.i, content, '']];
  4605. if(content.locals) module.exports = content.locals;
  4606. // add the styles to the DOM
  4607. var update = __webpack_require__(3)("87129f5a", content, false, {});
  4608. // Hot Module Replacement
  4609. if(false) {
  4610. // When the styles change, update the <style> tags
  4611. if(!content.locals) {
  4612. module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-91cfb088\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./index.vue", function() {
  4613. var newContent = require("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-91cfb088\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./index.vue");
  4614. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  4615. update(newContent);
  4616. });
  4617. }
  4618. // When the module is disposed, remove the <style> tags
  4619. module.hot.dispose(function() { update(); });
  4620. }
  4621. /***/ }),
  4622. /***/ 796:
  4623. /***/ (function(module, exports, __webpack_require__) {
  4624. exports = module.exports = __webpack_require__(2)(false);
  4625. // imports
  4626. // module
  4627. exports.push([module.i, "\n.project-gstc-gantt {\n position: absolute;\n top: 15px;\n left: 15px;\n right: 15px;\n bottom: 15px;\n z-index: 1;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n background-color: #fdfdfd;\n border-radius: 3px;\n overflow: hidden;\n}\n.project-gstc-gantt .project-gstc-dropdown-filtr {\n position: absolute;\n top: 38px;\n left: 222px;\n}\n.project-gstc-gantt .project-gstc-dropdown-filtr .project-gstc-dropdown-icon {\n cursor: pointer;\n color: #999;\n font-size: 20px;\n}\n.project-gstc-gantt .project-gstc-dropdown-filtr .project-gstc-dropdown-icon.filtr {\n color: #058ce4;\n}\n.project-gstc-gantt .project-gstc-close {\n position: absolute;\n top: 8px;\n left: 12px;\n cursor: pointer;\n}\n.project-gstc-gantt .project-gstc-close:hover i {\n -webkit-transform: scale(1) rotate(45deg);\n transform: scale(1) rotate(45deg);\n}\n.project-gstc-gantt .project-gstc-close i {\n color: #666666;\n font-size: 28px;\n -webkit-transform: scale(0.92);\n transform: scale(0.92);\n -webkit-transition: all .2s;\n transition: all .2s;\n}\n.project-gstc-gantt .project-gstc-edit {\n position: absolute;\n bottom: 6px;\n right: 6px;\n background: #ffffff;\n border-radius: 4px;\n opacity: 0;\n -webkit-transform: translate(120%, 0);\n transform: translate(120%, 0);\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n}\n.project-gstc-gantt .project-gstc-edit.visible {\n opacity: 1;\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n.project-gstc-gantt .project-gstc-edit.info .project-gstc-edit-info {\n display: block;\n}\n.project-gstc-gantt .project-gstc-edit.info .project-gstc-edit-small {\n display: none;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info {\n display: none;\n border: 1px solid #e4e4e4;\n background: #ffffff;\n padding: 6px;\n border-radius: 4px;\n width: 500px;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns {\n margin: 12px 6px 4px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .ivu-btn {\n margin-right: 8px;\n font-size: 13px;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .zoom {\n font-size: 20px;\n color: #444444;\n cursor: pointer;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .zoom:hover {\n color: #57a3f3;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small {\n border: 1px solid #e4e4e4;\n background: #ffffff;\n padding: 6px 12px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .project-gstc-edit-text {\n cursor: pointer;\n text-decoration: underline;\n color: #444444;\n margin-right: 8px;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .project-gstc-edit-text:hover {\n color: #57a3f3;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .ivu-btn {\n margin-left: 4px;\n font-size: 13px;\n}\n", ""]);
  4628. // exports
  4629. /***/ }),
  4630. /***/ 797:
  4631. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4632. "use strict";
  4633. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  4634. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__gantt_index__ = __webpack_require__(798);
  4635. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__gantt_index___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__gantt_index__);
  4636. //
  4637. //
  4638. //
  4639. //
  4640. //
  4641. //
  4642. //
  4643. //
  4644. //
  4645. //
  4646. //
  4647. //
  4648. //
  4649. //
  4650. //
  4651. //
  4652. //
  4653. //
  4654. //
  4655. //
  4656. //
  4657. //
  4658. //
  4659. //
  4660. //
  4661. //
  4662. //
  4663. //
  4664. //
  4665. //
  4666. //
  4667. //
  4668. //
  4669. //
  4670. //
  4671. //
  4672. //
  4673. //
  4674. //
  4675. //
  4676. //
  4677. //
  4678. //
  4679. //
  4680. //
  4681. //
  4682. //
  4683. //
  4684. //
  4685. //
  4686. //
  4687. //
  4688. //
  4689. //
  4690. //
  4691. //
  4692. //
  4693. //
  4694. //
  4695. //
  4696. //
  4697. //
  4698. //
  4699. //
  4700. //
  4701. //
  4702. //
  4703. //
  4704. //
  4705. //
  4706. //
  4707. //
  4708. //
  4709. //
  4710. //
  4711. //
  4712. //
  4713. //
  4714. //
  4715. //
  4716. //
  4717. //
  4718. //
  4719. //
  4720. //
  4721. //
  4722. //
  4723. //
  4724. //
  4725. //
  4726. //
  4727. //
  4728. //
  4729. //
  4730. //
  4731. //
  4732. //
  4733. //
  4734. //
  4735. //
  4736. //
  4737. //
  4738. //
  4739. //
  4740. //
  4741. //
  4742. //
  4743. //
  4744. //
  4745. //
  4746. //
  4747. //
  4748. //
  4749. //
  4750. //
  4751. //
  4752. //
  4753. //
  4754. //
  4755. //
  4756. //
  4757. //
  4758. //
  4759. //
  4760. //
  4761. //
  4762. //
  4763. //
  4764. //
  4765. //
  4766. //
  4767. //
  4768. //
  4769. //
  4770. //
  4771. //
  4772. //
  4773. //
  4774. //
  4775. //
  4776. //
  4777. /**
  4778. * 甘特图
  4779. */
  4780. /* harmony default export */ __webpack_exports__["default"] = ({
  4781. name: 'ProjectGantt',
  4782. components: { GanttView: __WEBPACK_IMPORTED_MODULE_0__gantt_index___default.a },
  4783. props: {
  4784. projectLabel: {
  4785. default: []
  4786. }
  4787. },
  4788. data: function data() {
  4789. return {
  4790. loadFinish: false,
  4791. lists: [],
  4792. editColumns: [],
  4793. editData: [],
  4794. editShowInfo: false,
  4795. editLoad: 0,
  4796. filtrProjectId: 0
  4797. };
  4798. },
  4799. mounted: function mounted() {
  4800. this.editColumns = [{
  4801. title: this.$L('任务名称'),
  4802. key: 'label',
  4803. minWidth: 150,
  4804. ellipsis: true
  4805. }, {
  4806. title: this.$L('原计划时间'),
  4807. minWidth: 135,
  4808. align: 'center',
  4809. render: function render(h, params) {
  4810. if (params.row.notime === true) {
  4811. return h('span', '-');
  4812. }
  4813. return h('div', {
  4814. style: {}
  4815. }, [h('div', $A.formatDate('Y-m-d H:i', Math.round(params.row.backTime.start / 1000))), h('div', $A.formatDate('Y-m-d H:i', Math.round(params.row.backTime.end / 1000)))]);
  4816. }
  4817. }, {
  4818. title: this.$L('新计划时间'),
  4819. minWidth: 135,
  4820. align: 'center',
  4821. render: function render(h, params) {
  4822. return h('div', {
  4823. style: {}
  4824. }, [h('div', $A.formatDate('Y-m-d H:i', Math.round(params.row.newTime.start / 1000))), h('div', $A.formatDate('Y-m-d H:i', Math.round(params.row.newTime.end / 1000)))]);
  4825. }
  4826. }];
  4827. //
  4828. this.initData();
  4829. this.loadFinish = true;
  4830. },
  4831. watch: {
  4832. projectLabel: {
  4833. handler: function handler() {
  4834. this.initData();
  4835. },
  4836. deep: true
  4837. }
  4838. },
  4839. methods: {
  4840. initData: function initData() {
  4841. var _this = this;
  4842. this.lists = [];
  4843. this.projectLabel.forEach(function (item) {
  4844. if (_this.filtrProjectId > 0) {
  4845. if (item.id != _this.filtrProjectId) {
  4846. return;
  4847. }
  4848. }
  4849. item.taskLists.forEach(function (taskData) {
  4850. var notime = taskData.startdate == 0 || taskData.enddate == 0;
  4851. var times = _this.getTimeObj(taskData);
  4852. var start = times.start;
  4853. var end = times.end;
  4854. //
  4855. var color = '#058ce4';
  4856. if (taskData.complete) {
  4857. color = '#c1c1c1';
  4858. } else {
  4859. if (taskData.level === 1) {
  4860. color = '#ff0000';
  4861. } else if (taskData.level === 2) {
  4862. color = '#BB9F35';
  4863. } else if (taskData.level === 3) {
  4864. color = '#449EDD';
  4865. } else if (taskData.level === 4) {
  4866. color = '#84A83B';
  4867. }
  4868. }
  4869. //
  4870. var tempTime = { start: start, end: end };
  4871. var findData = _this.editData.find(function (t) {
  4872. return t.id == taskData.id;
  4873. });
  4874. if (findData) {
  4875. findData.backTime = $A.cloneData(tempTime);
  4876. tempTime = $A.cloneData(findData.newTime);
  4877. }
  4878. //
  4879. _this.lists.push({
  4880. id: taskData.id,
  4881. label: taskData.title,
  4882. time: tempTime,
  4883. notime: notime,
  4884. style: { background: color }
  4885. });
  4886. });
  4887. });
  4888. //
  4889. if (this.lists.length == 0 && this.filtrProjectId == 0) {
  4890. this.$Modal.warning({
  4891. title: this.$L("温馨提示"),
  4892. content: this.$L('任务列表为空,请先添加任务。'),
  4893. onOk: function onOk() {
  4894. _this.$emit('on-close');
  4895. }
  4896. });
  4897. }
  4898. },
  4899. updateTime: function updateTime(item) {
  4900. var original = this.getRawTime(item.id);
  4901. if (Math.abs(original.end - item.time.end) > 1000 || Math.abs(original.start - item.time.start) > 1000) {
  4902. //修改时间(变化超过1秒钟)
  4903. var backTime = $A.cloneData(original);
  4904. var newTime = $A.cloneData(item.time);
  4905. var findData = this.editData.find(function (_ref) {
  4906. var id = _ref.id;
  4907. return id == item.id;
  4908. });
  4909. if (findData) {
  4910. findData.newTime = newTime;
  4911. } else {
  4912. this.editData.push({
  4913. id: item.id,
  4914. label: item.label,
  4915. notime: item.notime,
  4916. backTime: backTime,
  4917. newTime: newTime
  4918. });
  4919. }
  4920. }
  4921. },
  4922. clickItem: function clickItem(item) {
  4923. this.taskDetail(item.id);
  4924. },
  4925. editSubmit: function editSubmit(save) {
  4926. var _this2 = this;
  4927. var triggerTask = [];
  4928. this.editData.forEach(function (item) {
  4929. if (save) {
  4930. _this2.editLoad++;
  4931. var timeStart = $A.formatDate('Y-m-d H:i', Math.round(item.newTime.start / 1000));
  4932. var timeEnd = $A.formatDate('Y-m-d H:i', Math.round(item.newTime.end / 1000));
  4933. var ajaxData = {
  4934. act: 'plannedtime',
  4935. taskid: item.id,
  4936. content: timeStart + "," + timeEnd
  4937. };
  4938. $A.apiAjax({
  4939. url: 'project/task/edit',
  4940. method: 'post',
  4941. data: ajaxData,
  4942. error: function error() {
  4943. _this2.lists.some(function (task) {
  4944. if (task.id == item.id) {
  4945. _this2.$set(task, 'time', item.backTime);
  4946. return true;
  4947. }
  4948. });
  4949. },
  4950. success: function success(res) {
  4951. if (res.ret === 1) {
  4952. triggerTask.push({
  4953. status: 'await',
  4954. act: ajaxData.act,
  4955. taskid: ajaxData.taskid,
  4956. data: res.data
  4957. });
  4958. } else {
  4959. _this2.lists.some(function (task) {
  4960. if (task.id == item.id) {
  4961. _this2.$set(task, 'time', item.backTime);
  4962. return true;
  4963. }
  4964. });
  4965. }
  4966. },
  4967. afterComplete: function afterComplete() {
  4968. _this2.editLoad--;
  4969. if (_this2.editLoad <= 0) {
  4970. triggerTask.forEach(function (info) {
  4971. if (info.status == 'await') {
  4972. info.status = 'trigger';
  4973. $A.triggerTaskInfoListener(info.act, info.data);
  4974. $A.triggerTaskInfoChange(info.taskid);
  4975. }
  4976. });
  4977. }
  4978. }
  4979. });
  4980. } else {
  4981. _this2.lists.some(function (task) {
  4982. if (task.id == item.id) {
  4983. _this2.$set(task, 'time', item.backTime);
  4984. return true;
  4985. }
  4986. });
  4987. }
  4988. });
  4989. this.editData = [];
  4990. },
  4991. getRawTime: function getRawTime(taskId) {
  4992. var _this3 = this;
  4993. var times = null;
  4994. this.projectLabel.some(function (item) {
  4995. item.taskLists.some(function (taskData) {
  4996. if (taskData.id == taskId) {
  4997. times = _this3.getTimeObj(taskData);
  4998. return true;
  4999. }
  5000. });
  5001. if (times) {
  5002. return true;
  5003. }
  5004. });
  5005. return times;
  5006. },
  5007. getTimeObj: function getTimeObj(taskData) {
  5008. var start = taskData.startdate || taskData.indate;
  5009. var end = taskData.enddate || taskData.indate + 86400;
  5010. if (end == start) {
  5011. end = Math.round(new Date($A.formatDate('Y-m-d 23:59:59', end)).getTime() / 1000);
  5012. }
  5013. end = Math.max(end, start + 60);
  5014. start *= 1000;
  5015. end *= 1000;
  5016. return { start: start, end: end };
  5017. },
  5018. tapProject: function tapProject(e) {
  5019. this.filtrProjectId = $A.runNum(e);
  5020. this.initData();
  5021. }
  5022. }
  5023. });
  5024. /***/ }),
  5025. /***/ 798:
  5026. /***/ (function(module, exports, __webpack_require__) {
  5027. var disposed = false
  5028. function injectStyle (ssrContext) {
  5029. if (disposed) return
  5030. __webpack_require__(799)
  5031. }
  5032. var normalizeComponent = __webpack_require__(4)
  5033. /* script */
  5034. var __vue_script__ = __webpack_require__(801)
  5035. /* template */
  5036. var __vue_template__ = __webpack_require__(802)
  5037. /* template functional */
  5038. var __vue_template_functional__ = false
  5039. /* styles */
  5040. var __vue_styles__ = injectStyle
  5041. /* scopeId */
  5042. var __vue_scopeId__ = "data-v-ab75349c"
  5043. /* moduleIdentifier (server only) */
  5044. var __vue_module_identifier__ = null
  5045. var Component = normalizeComponent(
  5046. __vue_script__,
  5047. __vue_template__,
  5048. __vue_template_functional__,
  5049. __vue_styles__,
  5050. __vue_scopeId__,
  5051. __vue_module_identifier__
  5052. )
  5053. Component.options.__file = "resources/assets/js/main/components/gantt/index.vue"
  5054. /* hot reload */
  5055. if (false) {(function () {
  5056. var hotAPI = require("vue-hot-reload-api")
  5057. hotAPI.install(require("vue"), false)
  5058. if (!hotAPI.compatible) return
  5059. module.hot.accept()
  5060. if (!module.hot.data) {
  5061. hotAPI.createRecord("data-v-ab75349c", Component.options)
  5062. } else {
  5063. hotAPI.reload("data-v-ab75349c", Component.options)
  5064. }
  5065. module.hot.dispose(function (data) {
  5066. disposed = true
  5067. })
  5068. })()}
  5069. module.exports = Component.exports
  5070. /***/ }),
  5071. /***/ 799:
  5072. /***/ (function(module, exports, __webpack_require__) {
  5073. // style-loader: Adds some css to the DOM by adding a <style> tag
  5074. // load the styles
  5075. var content = __webpack_require__(800);
  5076. if(typeof content === 'string') content = [[module.i, content, '']];
  5077. if(content.locals) module.exports = content.locals;
  5078. // add the styles to the DOM
  5079. var update = __webpack_require__(3)("1f2ff96e", content, false, {});
  5080. // Hot Module Replacement
  5081. if(false) {
  5082. // When the styles change, update the <style> tags
  5083. if(!content.locals) {
  5084. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-ab75349c\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./index.vue", function() {
  5085. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-ab75349c\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./index.vue");
  5086. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  5087. update(newContent);
  5088. });
  5089. }
  5090. // When the module is disposed, remove the <style> tags
  5091. module.hot.dispose(function() { update(); });
  5092. }
  5093. /***/ }),
  5094. /***/ 800:
  5095. /***/ (function(module, exports, __webpack_require__) {
  5096. exports = module.exports = __webpack_require__(2)(false);
  5097. // imports
  5098. // module
  5099. exports.push([module.i, "\n.wook-gantt[data-v-ab75349c] {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-align: self-start;\n -ms-flex-align: self-start;\n align-items: self-start;\n color: #747a81;\n}\n.wook-gantt *[data-v-ab75349c] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.wook-gantt .gantt-left[data-v-ab75349c] {\n -webkit-box-flex: 0;\n -ms-flex-positive: 0;\n flex-grow: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n height: 100%;\n background-color: #ffffff;\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.wook-gantt .gantt-left[data-v-ab75349c]:after {\n content: \"\";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: 1px;\n background-color: rgba(237, 241, 242, 0.75);\n}\n.wook-gantt .gantt-left .gantt-title[data-v-ab75349c] {\n height: 76px;\n -webkit-box-flex: 0;\n -ms-flex-positive: 0;\n flex-grow: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n background-color: #F9FAFB;\n padding-left: 12px;\n overflow: hidden;\n}\n.wook-gantt .gantt-left .gantt-title .gantt-title-text[data-v-ab75349c] {\n line-height: 100px;\n max-width: 200px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-weight: 600;\n}\n.wook-gantt .gantt-left .gantt-item[data-v-ab75349c] {\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n max-height: 100%;\n overflow: auto;\n -ms-overflow-style: none;\n}\n.wook-gantt .gantt-left .gantt-item[data-v-ab75349c]::-webkit-scrollbar {\n display: none;\n}\n.wook-gantt .gantt-left .gantt-item > li[data-v-ab75349c] {\n height: 40px;\n border-bottom: 1px solid rgba(237, 241, 242, 0.75);\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.wook-gantt .gantt-left .gantt-item > li:hover .item-icon[data-v-ab75349c] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.wook-gantt .gantt-left .gantt-item > li .item-title[data-v-ab75349c] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n padding: 0 12px;\n cursor: default;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.wook-gantt .gantt-left .gantt-item > li .item-icon[data-v-ab75349c] {\n display: none;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n width: 32px;\n margin-right: 2px;\n font-size: 16px;\n color: #888888;\n}\n.wook-gantt .gantt-right[data-v-ab75349c] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n height: 100%;\n background-color: #ffffff;\n position: relative;\n overflow: hidden;\n}\n.wook-gantt .gantt-right .gantt-chart[data-v-ab75349c] {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-month[data-v-ab75349c] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1;\n height: 26px;\n line-height: 20px;\n font-size: 14px;\n background-color: #F9FAFB;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-month > li[data-v-ab75349c] {\n -webkit-box-flex: 0;\n -ms-flex-positive: 0;\n flex-grow: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n height: 100%;\n position: relative;\n overflow: hidden;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-month > li[data-v-ab75349c]:after {\n content: \"\";\n position: absolute;\n top: 0;\n right: 0;\n width: 1px;\n height: 100%;\n background-color: rgba(237, 241, 242, 0.75);\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-month > li .month-format[data-v-ab75349c] {\n overflow: hidden;\n white-space: nowrap;\n padding: 6px 6px 0;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-date[data-v-ab75349c] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n position: absolute;\n top: 26px;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n cursor: move;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-date[data-v-ab75349c]:before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 50px;\n background-color: #F9FAFB;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-date > li[data-v-ab75349c] {\n -webkit-box-flex: 0;\n -ms-flex-positive: 0;\n flex-grow: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n height: 100%;\n position: relative;\n overflow: hidden;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-date > li[data-v-ab75349c]:after {\n content: \"\";\n position: absolute;\n top: 0;\n right: 0;\n width: 1px;\n height: 100%;\n background-color: rgba(237, 241, 242, 0.75);\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-date > li .date-format[data-v-ab75349c] {\n overflow: hidden;\n white-space: nowrap;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n height: 44px;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-date > li .date-format .format-day[data-v-ab75349c] {\n line-height: 28px;\n font-size: 18px;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-date > li .date-format .format-wook[data-v-ab75349c] {\n line-height: 16px;\n font-weight: 300;\n font-size: 13px;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-timeline[data-v-ab75349c] {\n position: absolute;\n top: 76px;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 3;\n overflow-x: hidden;\n overflow-y: auto;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-timeline > li[data-v-ab75349c] {\n cursor: default;\n height: 40px;\n border-bottom: 1px solid rgba(237, 241, 242, 0.75);\n position: relative;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-timeline > li .timeline-item[data-v-ab75349c] {\n position: absolute;\n top: 0;\n -ms-touch-action: none;\n touch-action: none;\n pointer-events: auto;\n padding: 4px;\n margin-top: 4px;\n background: #e74c3c;\n border-radius: 18px;\n color: #fff;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n will-change: contents;\n height: 32px;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-timeline > li .timeline-item .timeline-title[data-v-ab75349c] {\n -ms-touch-action: none;\n touch-action: none;\n -webkit-box-flex: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin-left: 4px;\n margin-right: 10px;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-timeline > li .timeline-item .timeline-resizer[data-v-ab75349c] {\n height: 22px;\n -ms-touch-action: none;\n touch-action: none;\n width: 8px;\n background: rgba(255, 255, 255, 0.1);\n cursor: ew-resize;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n will-change: visibility;\n position: absolute;\n top: 5px;\n right: 5px;\n}\n", ""]);
  5100. // exports
  5101. /***/ }),
  5102. /***/ 801:
  5103. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5104. "use strict";
  5105. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  5106. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  5107. //
  5108. //
  5109. //
  5110. //
  5111. //
  5112. //
  5113. //
  5114. //
  5115. //
  5116. //
  5117. //
  5118. //
  5119. //
  5120. //
  5121. //
  5122. //
  5123. //
  5124. //
  5125. //
  5126. //
  5127. //
  5128. //
  5129. //
  5130. //
  5131. //
  5132. //
  5133. //
  5134. //
  5135. //
  5136. //
  5137. //
  5138. //
  5139. //
  5140. //
  5141. //
  5142. //
  5143. //
  5144. //
  5145. //
  5146. //
  5147. //
  5148. //
  5149. //
  5150. //
  5151. //
  5152. //
  5153. //
  5154. //
  5155. //
  5156. //
  5157. /* harmony default export */ __webpack_exports__["default"] = ({
  5158. name: 'GanttView',
  5159. props: {
  5160. lists: {
  5161. type: Array
  5162. },
  5163. menuWidth: {
  5164. type: Number,
  5165. default: 300
  5166. },
  5167. itemWidth: {
  5168. type: Number,
  5169. default: 100
  5170. }
  5171. },
  5172. data: function data() {
  5173. return {
  5174. mouseType: '',
  5175. mouseWidth: 0,
  5176. mouseScaleWidth: 0,
  5177. dateWidth: 100,
  5178. ganttWidth: 0,
  5179. mouseItem: null,
  5180. mouseBak: {},
  5181. dateMove: null
  5182. };
  5183. },
  5184. mounted: function mounted() {
  5185. this.dateWidth = this.itemWidth;
  5186. this.$refs.ganttRight.addEventListener('mousewheel', this.handleScroll, false);
  5187. document.addEventListener('mousemove', this.itemMouseMove);
  5188. document.addEventListener('mouseup', this.itemMouseUp);
  5189. window.addEventListener("resize", this.handleResize, false);
  5190. this.handleResize();
  5191. },
  5192. beforeDestroy: function beforeDestroy() {
  5193. this.$refs.ganttRight.removeEventListener('mousewheel', this.handleScroll, false);
  5194. document.removeEventListener('mousemove', this.itemMouseMove);
  5195. document.removeEventListener('mouseup', this.itemMouseUp);
  5196. window.removeEventListener("resize", this.handleResize, false);
  5197. },
  5198. watch: {
  5199. itemWidth: function itemWidth(val) {
  5200. this.dateWidth = val;
  5201. }
  5202. },
  5203. computed: {
  5204. monthNum: function monthNum() {
  5205. var ganttWidth = this.ganttWidth,
  5206. dateWidth = this.dateWidth;
  5207. return Math.floor(ganttWidth / dateWidth / 30) + 2;
  5208. },
  5209. monthStyle: function monthStyle() {
  5210. var mouseWidth = this.mouseWidth,
  5211. dateWidth = this.dateWidth;
  5212. return function (index) {
  5213. var mouseDay = mouseWidth == 0 ? 0 : mouseWidth / dateWidth;
  5214. var date = new Date();
  5215. //今天00:00:00
  5216. var nowDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
  5217. //当前时间
  5218. var curDay = new Date(nowDay.getTime() + mouseDay * 86400000);
  5219. //当月最后一天
  5220. var lastDay = new Date(curDay.getFullYear(), curDay.getMonth() + 1, 0, 23, 59, 59);
  5221. //相差天数
  5222. var diffDay = (lastDay - curDay) / 1000 / 60 / 60 / 24;
  5223. //
  5224. var width = dateWidth * diffDay;
  5225. if (index > 0) {
  5226. lastDay = new Date(curDay.getFullYear(), curDay.getMonth() + 1 + index, 0);
  5227. width = lastDay.getDate() * dateWidth;
  5228. }
  5229. return {
  5230. width: width + 'px'
  5231. };
  5232. };
  5233. },
  5234. monthFormat: function monthFormat() {
  5235. var mouseWidth = this.mouseWidth,
  5236. dateWidth = this.dateWidth;
  5237. return function (index) {
  5238. var mouseDay = mouseWidth == 0 ? 0 : mouseWidth / dateWidth;
  5239. var date = new Date();
  5240. //开始位置时间(今天00:00:00)
  5241. var nowDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
  5242. //当前时间
  5243. var curDay = new Date(nowDay.getTime() + mouseDay * 86400000);
  5244. //
  5245. if (index > 0) {
  5246. curDay = new Date(curDay.getFullYear(), curDay.getMonth() + 1 + index, 0);
  5247. }
  5248. return $A.formatDate("Y-m", curDay);
  5249. };
  5250. },
  5251. dateNum: function dateNum() {
  5252. var ganttWidth = this.ganttWidth,
  5253. dateWidth = this.dateWidth;
  5254. return Math.floor(ganttWidth / dateWidth) + 2;
  5255. },
  5256. dateStyle: function dateStyle() {
  5257. var mouseWidth = this.mouseWidth,
  5258. dateWidth = this.dateWidth;
  5259. return function (index) {
  5260. var style = {};
  5261. //
  5262. var mouseDay = mouseWidth == 0 ? 0 : mouseWidth / dateWidth;
  5263. var mouseData = Math.floor(mouseDay) + index;
  5264. if (mouseDay == Math.floor(mouseDay)) {
  5265. mouseData--;
  5266. }
  5267. var j = mouseWidth == 0 ? index - 1 : mouseData;
  5268. var date = new Date(new Date().getTime() + j * 86400000);
  5269. if ([0, 6].indexOf(date.getDay()) !== -1) {
  5270. style.backgroundColor = '#f9fafb';
  5271. }
  5272. //
  5273. var width = dateWidth;
  5274. if (index == 0) {
  5275. width = Math.abs((mouseWidth % width - width) % width);
  5276. }
  5277. style.width = width + 'px';
  5278. return style;
  5279. };
  5280. },
  5281. dateFormat: function dateFormat() {
  5282. var mouseWidth = this.mouseWidth,
  5283. dateWidth = this.dateWidth;
  5284. return function (index, type) {
  5285. var mouseDay = mouseWidth == 0 ? 0 : mouseWidth / dateWidth;
  5286. var mouseData = Math.floor(mouseDay) + index;
  5287. if (mouseDay == Math.floor(mouseDay)) {
  5288. mouseData--;
  5289. }
  5290. var j = mouseWidth == 0 ? index - 1 : mouseData;
  5291. var date = new Date(new Date().getTime() + j * 86400000);
  5292. if (type == 'day') {
  5293. return date.getDate();
  5294. } else if (type == 'wook') {
  5295. return this.$L('\u661F\u671F' + '日一二三四五六'.charAt(date.getDay()));
  5296. } else {
  5297. return date;
  5298. }
  5299. };
  5300. },
  5301. itemStyle: function itemStyle() {
  5302. var mouseWidth = this.mouseWidth,
  5303. dateWidth = this.dateWidth,
  5304. ganttWidth = this.ganttWidth;
  5305. return function (item) {
  5306. var _item$time = item.time,
  5307. start = _item$time.start,
  5308. end = _item$time.end;
  5309. var style = item.style,
  5310. moveX = item.moveX,
  5311. moveW = item.moveW;
  5312. var date = new Date();
  5313. //开始位置时间戳(今天00:00:00时间戳)
  5314. var nowTime = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0).getTime();
  5315. //距离开始位置多少天
  5316. var diffStartDay = (start - nowTime) / 1000 / 60 / 60 / 24;
  5317. var diffEndDay = (end - nowTime) / 1000 / 60 / 60 / 24;
  5318. //
  5319. var left = dateWidth * diffStartDay + mouseWidth * -1;
  5320. var width = dateWidth * (diffEndDay - diffStartDay);
  5321. if (typeof moveX === "number") {
  5322. left += moveX;
  5323. }
  5324. if (typeof moveW === "number") {
  5325. width += moveW;
  5326. }
  5327. //
  5328. var customStyle = {
  5329. left: Math.min(Math.max(left, width * -1.2), ganttWidth * 1.2).toFixed(2) + 'px',
  5330. width: width.toFixed(2) + 'px'
  5331. };
  5332. if (left < 0 && Math.abs(left) < width) {
  5333. customStyle.paddingLeft = Math.abs(left).toFixed(2) + 'px';
  5334. }
  5335. if (left + width > ganttWidth && left < ganttWidth) {
  5336. customStyle.paddingRight = Math.abs(left + width - ganttWidth).toFixed(2) + 'px';
  5337. }
  5338. if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) === "object") {
  5339. return Object.assign(customStyle, style);
  5340. }
  5341. return customStyle;
  5342. };
  5343. }
  5344. },
  5345. methods: {
  5346. itemScrollListener: function itemScrollListener(e) {
  5347. if (this.mouseType == 'timeline') {
  5348. return;
  5349. }
  5350. this.$refs.ganttTimeline.scrollTop = e.target.scrollTop;
  5351. },
  5352. timelineScrollListener: function timelineScrollListener(e) {
  5353. if (this.mouseType == 'item') {
  5354. return;
  5355. }
  5356. this.$refs.ganttItem.scrollTop = e.target.scrollTop;
  5357. },
  5358. handleScroll: function handleScroll(e) {
  5359. e.preventDefault();
  5360. if (e.ctrlKey) {
  5361. //缩放
  5362. this.dateWidth = Math.min(600, Math.max(24, this.dateWidth - Math.floor(e.deltaY)));
  5363. this.mouseWidth = this.ganttWidth / 2 * ((this.dateWidth - 100) / 100) + this.dateWidth / 100 * this.mouseScaleWidth;
  5364. return;
  5365. }
  5366. if (e.deltaY != 0) {
  5367. var ganttTimeline = this.$refs.ganttTimeline;
  5368. var newTop = ganttTimeline.scrollTop + e.deltaY;
  5369. if (newTop < 0) {
  5370. newTop = 0;
  5371. } else if (newTop > ganttTimeline.scrollHeight - ganttTimeline.clientHeight) {
  5372. newTop = ganttTimeline.scrollHeight - ganttTimeline.clientHeight;
  5373. }
  5374. if (ganttTimeline.scrollTop != newTop) {
  5375. this.mouseType = 'timeline';
  5376. ganttTimeline.scrollTop = newTop;
  5377. }
  5378. }
  5379. if (e.deltaX != 0) {
  5380. this.mouseWidth += e.deltaX;
  5381. this.mouseScaleWidth += e.deltaX * (100 / this.dateWidth);
  5382. }
  5383. },
  5384. handleResize: function handleResize() {
  5385. this.ganttWidth = this.$refs.ganttTimeline.clientWidth;
  5386. },
  5387. dateMouseDown: function dateMouseDown(e) {
  5388. e.preventDefault();
  5389. this.mouseItem = null;
  5390. this.dateMove = {
  5391. clientX: e.clientX
  5392. };
  5393. },
  5394. itemMouseDown: function itemMouseDown(e, item) {
  5395. e.preventDefault();
  5396. var type = 'moveX';
  5397. if (e.target.className == 'timeline-resizer') {
  5398. type = 'moveW';
  5399. }
  5400. if (typeof item[type] !== "number") {
  5401. this.$set(item, type, 0);
  5402. }
  5403. this.mouseBak = {
  5404. type: type,
  5405. clientX: e.clientX,
  5406. value: item[type]
  5407. };
  5408. this.mouseItem = item;
  5409. this.dateMove = null;
  5410. },
  5411. itemMouseMove: function itemMouseMove(e) {
  5412. if (this.mouseItem != null) {
  5413. e.preventDefault();
  5414. var diff = e.clientX - this.mouseBak.clientX;
  5415. this.$set(this.mouseItem, this.mouseBak.type, this.mouseBak.value + diff);
  5416. } else if (this.dateMove != null) {
  5417. e.preventDefault();
  5418. var moveX = (this.dateMove.clientX - e.clientX) * 5;
  5419. this.dateMove.clientX = e.clientX;
  5420. this.mouseWidth += moveX;
  5421. this.mouseScaleWidth += moveX * (100 / this.dateWidth);
  5422. }
  5423. },
  5424. itemMouseUp: function itemMouseUp(e) {
  5425. if (this.mouseItem != null) {
  5426. var _mouseItem$time = this.mouseItem.time,
  5427. start = _mouseItem$time.start,
  5428. end = _mouseItem$time.end;
  5429. var isM = false;
  5430. //一个宽度的时间
  5431. var oneWidthTime = 86400000 / this.dateWidth;
  5432. //修改起止时间
  5433. if (typeof this.mouseItem.moveX === "number" && this.mouseItem.moveX != 0) {
  5434. var moveTime = this.mouseItem.moveX * oneWidthTime;
  5435. this.$set(this.mouseItem.time, 'start', start + moveTime);
  5436. this.$set(this.mouseItem.time, 'end', end + moveTime);
  5437. this.$set(this.mouseItem, 'moveX', 0);
  5438. isM = true;
  5439. }
  5440. //修改结束时间
  5441. if (typeof this.mouseItem.moveW === "number" && this.mouseItem.moveW != 0) {
  5442. var _moveTime = this.mouseItem.moveW * oneWidthTime;
  5443. this.$set(this.mouseItem.time, 'end', end + _moveTime);
  5444. this.$set(this.mouseItem, 'moveW', 0);
  5445. isM = true;
  5446. }
  5447. //
  5448. if (isM) {
  5449. this.$emit("on-change", this.mouseItem);
  5450. } else if (e.target.className == 'timeline-title') {
  5451. this.clickItem(this.mouseItem);
  5452. }
  5453. this.mouseItem = null;
  5454. } else if (this.dateMove != null) {
  5455. this.dateMove = null;
  5456. }
  5457. },
  5458. scrollPosition: function scrollPosition(pos) {
  5459. var date = new Date();
  5460. //今天00:00:00
  5461. var nowDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
  5462. //一个宽度的时间
  5463. var oneWidthTime = 86400000 / this.dateWidth;
  5464. //
  5465. var moveWidth = (this.lists[pos].time.start - nowDay) / oneWidthTime - this.dateWidth - this.mouseWidth;
  5466. this.mouseWidth += moveWidth;
  5467. this.mouseScaleWidth += moveWidth * (100 / this.dateWidth);
  5468. },
  5469. clickItem: function clickItem(item) {
  5470. this.$emit("on-click", item);
  5471. }
  5472. }
  5473. });
  5474. /***/ }),
  5475. /***/ 802:
  5476. /***/ (function(module, exports, __webpack_require__) {
  5477. var render = function() {
  5478. var _vm = this
  5479. var _h = _vm.$createElement
  5480. var _c = _vm._self._c || _h
  5481. return _c("div", { staticClass: "wook-gantt" }, [
  5482. _c(
  5483. "div",
  5484. { staticClass: "gantt-left", style: { width: _vm.menuWidth + "px" } },
  5485. [
  5486. _c("div", { staticClass: "gantt-title" }, [
  5487. _c("div", { staticClass: "gantt-title-text" }, [
  5488. _vm._v(_vm._s(_vm.$L("任务名称")))
  5489. ])
  5490. ]),
  5491. _vm._v(" "),
  5492. _c(
  5493. "ul",
  5494. {
  5495. ref: "ganttItem",
  5496. staticClass: "gantt-item",
  5497. on: {
  5498. scroll: _vm.itemScrollListener,
  5499. mouseenter: function($event) {
  5500. _vm.mouseType = "item"
  5501. }
  5502. }
  5503. },
  5504. _vm._l(_vm.lists, function(item, key) {
  5505. return _c(
  5506. "li",
  5507. { key: key },
  5508. [
  5509. _c(
  5510. "div",
  5511. {
  5512. staticClass: "item-title",
  5513. on: {
  5514. click: function($event) {
  5515. return _vm.clickItem(item)
  5516. }
  5517. }
  5518. },
  5519. [_vm._v(_vm._s(item.label))]
  5520. ),
  5521. _vm._v(" "),
  5522. _c("Icon", {
  5523. staticClass: "item-icon",
  5524. attrs: { type: "ios-locate-outline" },
  5525. on: {
  5526. click: function($event) {
  5527. return _vm.scrollPosition(key)
  5528. }
  5529. }
  5530. })
  5531. ],
  5532. 1
  5533. )
  5534. }),
  5535. 0
  5536. )
  5537. ]
  5538. ),
  5539. _vm._v(" "),
  5540. _c("div", { ref: "ganttRight", staticClass: "gantt-right" }, [
  5541. _c("div", { staticClass: "gantt-chart" }, [
  5542. _c(
  5543. "ul",
  5544. { staticClass: "gantt-month" },
  5545. _vm._l(_vm.monthNum, function(item, key) {
  5546. return _c("li", { key: key, style: _vm.monthStyle(key) }, [
  5547. _c("div", { staticClass: "month-format" }, [
  5548. _vm._v(_vm._s(_vm.monthFormat(key)))
  5549. ])
  5550. ])
  5551. }),
  5552. 0
  5553. ),
  5554. _vm._v(" "),
  5555. _c(
  5556. "ul",
  5557. { staticClass: "gantt-date", on: { mousedown: _vm.dateMouseDown } },
  5558. _vm._l(_vm.dateNum, function(item, key) {
  5559. return _c("li", { key: key, style: _vm.dateStyle(key) }, [
  5560. _c("div", { staticClass: "date-format" }, [
  5561. _c("div", { staticClass: "format-day" }, [
  5562. _vm._v(_vm._s(_vm.dateFormat(key, "day")))
  5563. ]),
  5564. _vm._v(" "),
  5565. _vm.dateWidth > 46
  5566. ? _c("div", { staticClass: "format-wook" }, [
  5567. _vm._v(_vm._s(_vm.dateFormat(key, "wook")))
  5568. ])
  5569. : _vm._e()
  5570. ])
  5571. ])
  5572. }),
  5573. 0
  5574. ),
  5575. _vm._v(" "),
  5576. _c(
  5577. "ul",
  5578. {
  5579. ref: "ganttTimeline",
  5580. staticClass: "gantt-timeline",
  5581. on: {
  5582. scroll: _vm.timelineScrollListener,
  5583. mouseenter: function($event) {
  5584. _vm.mouseType = "timeline"
  5585. }
  5586. }
  5587. },
  5588. _vm._l(_vm.lists, function(item, key) {
  5589. return _c("li", { key: key }, [
  5590. _c(
  5591. "div",
  5592. {
  5593. staticClass: "timeline-item",
  5594. style: _vm.itemStyle(item),
  5595. on: {
  5596. mousedown: function($event) {
  5597. return _vm.itemMouseDown($event, item)
  5598. }
  5599. }
  5600. },
  5601. [
  5602. _c("div", { staticClass: "timeline-title" }, [
  5603. _vm._v(_vm._s(item.label))
  5604. ]),
  5605. _vm._v(" "),
  5606. _c("div", { staticClass: "timeline-resizer" })
  5607. ]
  5608. )
  5609. ])
  5610. }),
  5611. 0
  5612. )
  5613. ])
  5614. ])
  5615. ])
  5616. }
  5617. var staticRenderFns = []
  5618. render._withStripped = true
  5619. module.exports = { render: render, staticRenderFns: staticRenderFns }
  5620. if (false) {
  5621. module.hot.accept()
  5622. if (module.hot.data) {
  5623. require("vue-hot-reload-api") .rerender("data-v-ab75349c", module.exports)
  5624. }
  5625. }
  5626. /***/ }),
  5627. /***/ 803:
  5628. /***/ (function(module, exports, __webpack_require__) {
  5629. var render = function() {
  5630. var _vm = this
  5631. var _h = _vm.$createElement
  5632. var _c = _vm._self._c || _h
  5633. return _c(
  5634. "div",
  5635. { staticClass: "project-gstc-gantt" },
  5636. [
  5637. _c("GanttView", {
  5638. attrs: {
  5639. lists: _vm.lists,
  5640. menuWidth: _vm.windowMax768 ? 180 : 260,
  5641. itemWidth: 80
  5642. },
  5643. on: { "on-change": _vm.updateTime, "on-click": _vm.clickItem }
  5644. }),
  5645. _vm._v(" "),
  5646. _c(
  5647. "Dropdown",
  5648. {
  5649. staticClass: "project-gstc-dropdown-filtr",
  5650. style: _vm.windowMax768 ? { left: "142px" } : {},
  5651. on: { "on-click": _vm.tapProject }
  5652. },
  5653. [
  5654. _c("Icon", {
  5655. staticClass: "project-gstc-dropdown-icon",
  5656. class: { filtr: _vm.filtrProjectId > 0 },
  5657. attrs: { type: "md-funnel" }
  5658. }),
  5659. _vm._v(" "),
  5660. _c(
  5661. "DropdownMenu",
  5662. { attrs: { slot: "list" }, slot: "list" },
  5663. [
  5664. _c(
  5665. "DropdownItem",
  5666. {
  5667. class: { "dropdown-active": _vm.filtrProjectId == 0 },
  5668. attrs: { name: 0 }
  5669. },
  5670. [_vm._v(_vm._s(_vm.$L("全部")))]
  5671. ),
  5672. _vm._v(" "),
  5673. _vm._l(_vm.projectLabel, function(item, index) {
  5674. return _c(
  5675. "DropdownItem",
  5676. {
  5677. key: index,
  5678. class: { "dropdown-active": _vm.filtrProjectId == item.id },
  5679. attrs: { name: item.id }
  5680. },
  5681. [
  5682. _vm._v(
  5683. _vm._s(item.title) +
  5684. " (" +
  5685. _vm._s(item.taskLists.length) +
  5686. ")"
  5687. )
  5688. ]
  5689. )
  5690. })
  5691. ],
  5692. 2
  5693. )
  5694. ],
  5695. 1
  5696. ),
  5697. _vm._v(" "),
  5698. _c(
  5699. "div",
  5700. {
  5701. staticClass: "project-gstc-close",
  5702. on: {
  5703. click: function($event) {
  5704. return _vm.$emit("on-close")
  5705. }
  5706. }
  5707. },
  5708. [_c("Icon", { attrs: { type: "md-close" } })],
  5709. 1
  5710. ),
  5711. _vm._v(" "),
  5712. _c(
  5713. "div",
  5714. {
  5715. staticClass: "project-gstc-edit",
  5716. class: { info: _vm.editShowInfo, visible: _vm.editData.length > 0 }
  5717. },
  5718. [
  5719. _c(
  5720. "div",
  5721. { staticClass: "project-gstc-edit-info" },
  5722. [
  5723. _c("Table", {
  5724. staticClass: "tableFill",
  5725. attrs: {
  5726. size: "small",
  5727. "max-height": "600",
  5728. columns: _vm.editColumns,
  5729. data: _vm.editData
  5730. }
  5731. }),
  5732. _vm._v(" "),
  5733. _c(
  5734. "div",
  5735. { staticClass: "project-gstc-edit-btns" },
  5736. [
  5737. _c(
  5738. "Button",
  5739. {
  5740. attrs: {
  5741. loading: _vm.editLoad > 0,
  5742. size: "small",
  5743. type: "text"
  5744. },
  5745. on: {
  5746. click: function($event) {
  5747. return _vm.editSubmit(false)
  5748. }
  5749. }
  5750. },
  5751. [_vm._v(_vm._s(_vm.$L("取消")))]
  5752. ),
  5753. _vm._v(" "),
  5754. _c(
  5755. "Button",
  5756. {
  5757. attrs: {
  5758. loading: _vm.editLoad > 0,
  5759. size: "small",
  5760. type: "primary"
  5761. },
  5762. on: {
  5763. click: function($event) {
  5764. return _vm.editSubmit(true)
  5765. }
  5766. }
  5767. },
  5768. [_vm._v(_vm._s(_vm.$L("保存")))]
  5769. ),
  5770. _vm._v(" "),
  5771. _c("Icon", {
  5772. staticClass: "zoom",
  5773. attrs: { type: "md-arrow-dropright" },
  5774. on: {
  5775. click: function($event) {
  5776. _vm.editShowInfo = false
  5777. }
  5778. }
  5779. })
  5780. ],
  5781. 1
  5782. )
  5783. ],
  5784. 1
  5785. ),
  5786. _vm._v(" "),
  5787. _c(
  5788. "div",
  5789. { staticClass: "project-gstc-edit-small" },
  5790. [
  5791. _c(
  5792. "div",
  5793. {
  5794. staticClass: "project-gstc-edit-text",
  5795. on: {
  5796. click: function($event) {
  5797. _vm.editShowInfo = true
  5798. }
  5799. }
  5800. },
  5801. [
  5802. _vm._v(
  5803. _vm._s(_vm.$L("未保存计划时间")) +
  5804. ": " +
  5805. _vm._s(_vm.editData.length)
  5806. )
  5807. ]
  5808. ),
  5809. _vm._v(" "),
  5810. _c(
  5811. "Button",
  5812. {
  5813. attrs: {
  5814. loading: _vm.editLoad > 0,
  5815. size: "small",
  5816. type: "text"
  5817. },
  5818. on: {
  5819. click: function($event) {
  5820. return _vm.editSubmit(false)
  5821. }
  5822. }
  5823. },
  5824. [_vm._v(_vm._s(_vm.$L("取消")))]
  5825. ),
  5826. _vm._v(" "),
  5827. _c(
  5828. "Button",
  5829. {
  5830. attrs: {
  5831. loading: _vm.editLoad > 0,
  5832. size: "small",
  5833. type: "primary"
  5834. },
  5835. on: {
  5836. click: function($event) {
  5837. return _vm.editSubmit(true)
  5838. }
  5839. }
  5840. },
  5841. [_vm._v(_vm._s(_vm.$L("保存")))]
  5842. )
  5843. ],
  5844. 1
  5845. )
  5846. ]
  5847. )
  5848. ],
  5849. 1
  5850. )
  5851. }
  5852. var staticRenderFns = []
  5853. render._withStripped = true
  5854. module.exports = { render: render, staticRenderFns: staticRenderFns }
  5855. if (false) {
  5856. module.hot.accept()
  5857. if (module.hot.data) {
  5858. require("vue-hot-reload-api") .rerender("data-v-91cfb088", module.exports)
  5859. }
  5860. }
  5861. /***/ }),
  5862. /***/ 804:
  5863. /***/ (function(module, exports, __webpack_require__) {
  5864. var disposed = false
  5865. function injectStyle (ssrContext) {
  5866. if (disposed) return
  5867. __webpack_require__(805)
  5868. }
  5869. var normalizeComponent = __webpack_require__(4)
  5870. /* script */
  5871. var __vue_script__ = __webpack_require__(807)
  5872. /* template */
  5873. var __vue_template__ = __webpack_require__(808)
  5874. /* template functional */
  5875. var __vue_template_functional__ = false
  5876. /* styles */
  5877. var __vue_styles__ = injectStyle
  5878. /* scopeId */
  5879. var __vue_scopeId__ = "data-v-6f0e28b5"
  5880. /* moduleIdentifier (server only) */
  5881. var __vue_module_identifier__ = null
  5882. var Component = normalizeComponent(
  5883. __vue_script__,
  5884. __vue_template__,
  5885. __vue_template_functional__,
  5886. __vue_styles__,
  5887. __vue_scopeId__,
  5888. __vue_module_identifier__
  5889. )
  5890. Component.options.__file = "resources/assets/js/main/components/project/setting.vue"
  5891. /* hot reload */
  5892. if (false) {(function () {
  5893. var hotAPI = require("vue-hot-reload-api")
  5894. hotAPI.install(require("vue"), false)
  5895. if (!hotAPI.compatible) return
  5896. module.hot.accept()
  5897. if (!module.hot.data) {
  5898. hotAPI.createRecord("data-v-6f0e28b5", Component.options)
  5899. } else {
  5900. hotAPI.reload("data-v-6f0e28b5", Component.options)
  5901. }
  5902. module.hot.dispose(function (data) {
  5903. disposed = true
  5904. })
  5905. })()}
  5906. module.exports = Component.exports
  5907. /***/ }),
  5908. /***/ 805:
  5909. /***/ (function(module, exports, __webpack_require__) {
  5910. // style-loader: Adds some css to the DOM by adding a <style> tag
  5911. // load the styles
  5912. var content = __webpack_require__(806);
  5913. if(typeof content === 'string') content = [[module.i, content, '']];
  5914. if(content.locals) module.exports = content.locals;
  5915. // add the styles to the DOM
  5916. var update = __webpack_require__(3)("6310644a", content, false, {});
  5917. // Hot Module Replacement
  5918. if(false) {
  5919. // When the styles change, update the <style> tags
  5920. if(!content.locals) {
  5921. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-6f0e28b5\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./setting.vue", function() {
  5922. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-6f0e28b5\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./setting.vue");
  5923. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  5924. update(newContent);
  5925. });
  5926. }
  5927. // When the module is disposed, remove the <style> tags
  5928. module.hot.dispose(function() { update(); });
  5929. }
  5930. /***/ }),
  5931. /***/ 806:
  5932. /***/ (function(module, exports, __webpack_require__) {
  5933. exports = module.exports = __webpack_require__(2)(false);
  5934. // imports
  5935. // module
  5936. exports.push([module.i, "\n.project-setting[data-v-6f0e28b5] {\n padding: 0 12px;\n}\n.project-setting .project-setting-title[data-v-6f0e28b5] {\n padding: 12px;\n font-size: 14px;\n font-weight: 600;\n}\n.project-setting .project-setting-group[data-v-6f0e28b5] {\n display: inline-block;\n}\n.project-setting .form-placeholder[data-v-6f0e28b5] {\n font-size: 12px;\n color: #999999;\n}\n.project-setting .form-placeholder[data-v-6f0e28b5]:hover {\n color: #000000;\n}\n", ""]);
  5937. // exports
  5938. /***/ }),
  5939. /***/ 807:
  5940. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5941. "use strict";
  5942. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  5943. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(11);
  5944. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  5945. //
  5946. //
  5947. //
  5948. //
  5949. //
  5950. //
  5951. //
  5952. //
  5953. //
  5954. //
  5955. //
  5956. //
  5957. //
  5958. //
  5959. //
  5960. //
  5961. //
  5962. //
  5963. //
  5964. //
  5965. //
  5966. //
  5967. //
  5968. //
  5969. //
  5970. //
  5971. //
  5972. //
  5973. //
  5974. //
  5975. //
  5976. //
  5977. //
  5978. //
  5979. //
  5980. //
  5981. //
  5982. //
  5983. //
  5984. //
  5985. //
  5986. //
  5987. //
  5988. //
  5989. //
  5990. //
  5991. //
  5992. //
  5993. //
  5994. //
  5995. //
  5996. //
  5997. //
  5998. //
  5999. //
  6000. //
  6001. //
  6002. //
  6003. //
  6004. //
  6005. //
  6006. //
  6007. //
  6008. //
  6009. //
  6010. //
  6011. //
  6012. //
  6013. //
  6014. //
  6015. //
  6016. //
  6017. //
  6018. //
  6019. //
  6020. //
  6021. //
  6022. //
  6023. //
  6024. //
  6025. //
  6026. //
  6027. //
  6028. //
  6029. //
  6030. //
  6031. //
  6032. //
  6033. //
  6034. //
  6035. //
  6036. //
  6037. //
  6038. //
  6039. //
  6040. //
  6041. //
  6042. //
  6043. //
  6044. //
  6045. /* harmony default export */ __webpack_exports__["default"] = ({
  6046. name: 'ProjectSetting',
  6047. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  6048. props: {
  6049. projectid: {
  6050. default: 0
  6051. },
  6052. canload: {
  6053. type: Boolean,
  6054. default: true
  6055. }
  6056. },
  6057. data: function data() {
  6058. return {
  6059. loadYet: false,
  6060. loadIng: 0,
  6061. formSystem: {}
  6062. };
  6063. },
  6064. mounted: function mounted() {
  6065. if (this.canload) {
  6066. this.loadYet = true;
  6067. this.getSetting();
  6068. }
  6069. },
  6070. watch: {
  6071. projectid: function projectid() {
  6072. if (this.loadYet) {
  6073. this.getSetting();
  6074. }
  6075. },
  6076. canload: function canload(val) {
  6077. if (val && !this.loadYet) {
  6078. this.loadYet = true;
  6079. this.getSetting();
  6080. }
  6081. }
  6082. },
  6083. methods: {
  6084. getSetting: function getSetting(save) {
  6085. var _this = this;
  6086. this.loadIng++;
  6087. $A.apiAjax({
  6088. url: 'project/setting?act=' + (save ? 'save' : 'get'),
  6089. data: Object.assign(this.formSystem, {
  6090. projectid: this.projectid
  6091. }),
  6092. complete: function complete() {
  6093. _this.loadIng--;
  6094. },
  6095. success: function success(res) {
  6096. if (res.ret === 1) {
  6097. _this.formSystem = res.data;
  6098. _this.formSystem__reset = $A.cloneData(_this.formSystem);
  6099. if (save) {
  6100. _this.$Message.success(_this.$L('修改成功'));
  6101. _this.$emit('on-change', res.data);
  6102. }
  6103. } else {
  6104. if (save) {
  6105. _this.$Modal.error({ title: _this.$L('温馨提示'), content: res.msg });
  6106. }
  6107. }
  6108. }
  6109. });
  6110. },
  6111. handleSubmit: function handleSubmit(name) {
  6112. var _this2 = this;
  6113. this.$refs[name].validate(function (valid) {
  6114. if (valid) {
  6115. switch (name) {
  6116. case "formSystem":
  6117. {
  6118. _this2.getSetting(true);
  6119. break;
  6120. }
  6121. }
  6122. }
  6123. });
  6124. },
  6125. handleReset: function handleReset(name) {
  6126. if (typeof this[name + '__reset'] !== "undefined") {
  6127. this[name] = $A.cloneData(this[name + '__reset']);
  6128. return;
  6129. }
  6130. this.$refs[name].resetFields();
  6131. }
  6132. }
  6133. });
  6134. /***/ }),
  6135. /***/ 808:
  6136. /***/ (function(module, exports, __webpack_require__) {
  6137. var render = function() {
  6138. var _vm = this
  6139. var _h = _vm.$createElement
  6140. var _c = _vm._self._c || _h
  6141. return _c("drawer-tabs-container", [
  6142. _c(
  6143. "div",
  6144. { staticClass: "project-setting" },
  6145. [
  6146. _c(
  6147. "Form",
  6148. {
  6149. ref: "formSystem",
  6150. attrs: { model: _vm.formSystem, "label-width": 110 },
  6151. nativeOn: {
  6152. submit: function($event) {
  6153. $event.preventDefault()
  6154. }
  6155. }
  6156. },
  6157. [
  6158. _c("div", { staticClass: "project-setting-title" }, [
  6159. _vm._v(_vm._s(_vm.$L("项目信息")) + ":")
  6160. ]),
  6161. _vm._v(" "),
  6162. _c(
  6163. "FormItem",
  6164. { attrs: { label: _vm.$L("项目简介") } },
  6165. [
  6166. _c("Input", {
  6167. staticStyle: { "max-width": "450px" },
  6168. attrs: {
  6169. type: "textarea",
  6170. autosize: { minRows: 3, maxRows: 20 }
  6171. },
  6172. model: {
  6173. value: _vm.formSystem.project_desc,
  6174. callback: function($$v) {
  6175. _vm.$set(_vm.formSystem, "project_desc", $$v)
  6176. },
  6177. expression: "formSystem.project_desc"
  6178. }
  6179. })
  6180. ],
  6181. 1
  6182. ),
  6183. _vm._v(" "),
  6184. _c("div", { staticClass: "project-setting-title" }, [
  6185. _vm._v(_vm._s(_vm.$L("项目权限")) + ":")
  6186. ]),
  6187. _vm._v(" "),
  6188. _c(
  6189. "FormItem",
  6190. { attrs: { prop: "project_role_export" } },
  6191. [
  6192. _c(
  6193. "div",
  6194. { attrs: { slot: "label" }, slot: "label" },
  6195. [
  6196. _c(
  6197. "Tooltip",
  6198. {
  6199. attrs: {
  6200. content: _vm.$L("任务列表导出Excel"),
  6201. transfer: ""
  6202. }
  6203. },
  6204. [_vm._v(_vm._s(_vm.$L("导出列表")))]
  6205. )
  6206. ],
  6207. 1
  6208. ),
  6209. _vm._v(" "),
  6210. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6211. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6212. ]),
  6213. _vm._v(" "),
  6214. _c(
  6215. "CheckboxGroup",
  6216. {
  6217. staticClass: "project-setting-group",
  6218. model: {
  6219. value: _vm.formSystem.project_role_export,
  6220. callback: function($$v) {
  6221. _vm.$set(_vm.formSystem, "project_role_export", $$v)
  6222. },
  6223. expression: "formSystem.project_role_export"
  6224. }
  6225. },
  6226. [
  6227. _c("Checkbox", { attrs: { label: "member" } }, [
  6228. _vm._v(_vm._s(_vm.$L("项目成员")))
  6229. ])
  6230. ],
  6231. 1
  6232. )
  6233. ],
  6234. 1
  6235. ),
  6236. _vm._v(" "),
  6237. _c("div", { staticClass: "project-setting-title" }, [
  6238. _vm._v(_vm._s(_vm.$L("任务权限")) + ":")
  6239. ]),
  6240. _vm._v(" "),
  6241. _c(
  6242. "FormItem",
  6243. { attrs: { label: _vm.$L("添加任务") } },
  6244. [
  6245. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6246. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6247. ]),
  6248. _vm._v(" "),
  6249. _c(
  6250. "CheckboxGroup",
  6251. {
  6252. staticClass: "project-setting-group",
  6253. model: {
  6254. value: _vm.formSystem.add_role,
  6255. callback: function($$v) {
  6256. _vm.$set(_vm.formSystem, "add_role", $$v)
  6257. },
  6258. expression: "formSystem.add_role"
  6259. }
  6260. },
  6261. [
  6262. _c("Checkbox", { attrs: { label: "member" } }, [
  6263. _vm._v(_vm._s(_vm.$L("项目成员")))
  6264. ])
  6265. ],
  6266. 1
  6267. )
  6268. ],
  6269. 1
  6270. ),
  6271. _vm._v(" "),
  6272. _c(
  6273. "FormItem",
  6274. { attrs: { label: _vm.$L("修改任务") } },
  6275. [
  6276. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6277. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6278. ]),
  6279. _vm._v(" "),
  6280. _c(
  6281. "CheckboxGroup",
  6282. {
  6283. staticClass: "project-setting-group",
  6284. model: {
  6285. value: _vm.formSystem.edit_role,
  6286. callback: function($$v) {
  6287. _vm.$set(_vm.formSystem, "edit_role", $$v)
  6288. },
  6289. expression: "formSystem.edit_role"
  6290. }
  6291. },
  6292. [
  6293. _c("Checkbox", { attrs: { label: "owner" } }, [
  6294. _vm._v(_vm._s(_vm.$L("任务负责人")))
  6295. ]),
  6296. _vm._v(" "),
  6297. _c("Checkbox", { attrs: { label: "member" } }, [
  6298. _vm._v(_vm._s(_vm.$L("项目成员")))
  6299. ])
  6300. ],
  6301. 1
  6302. )
  6303. ],
  6304. 1
  6305. ),
  6306. _vm._v(" "),
  6307. _c(
  6308. "FormItem",
  6309. { attrs: { label: _vm.$L("标记完成") } },
  6310. [
  6311. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6312. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6313. ]),
  6314. _vm._v(" "),
  6315. _c(
  6316. "CheckboxGroup",
  6317. {
  6318. staticClass: "project-setting-group",
  6319. model: {
  6320. value: _vm.formSystem.complete_role,
  6321. callback: function($$v) {
  6322. _vm.$set(_vm.formSystem, "complete_role", $$v)
  6323. },
  6324. expression: "formSystem.complete_role"
  6325. }
  6326. },
  6327. [
  6328. _c("Checkbox", { attrs: { label: "owner" } }, [
  6329. _vm._v(_vm._s(_vm.$L("任务负责人")))
  6330. ]),
  6331. _vm._v(" "),
  6332. _c("Checkbox", { attrs: { label: "member" } }, [
  6333. _vm._v(_vm._s(_vm.$L("项目成员")))
  6334. ])
  6335. ],
  6336. 1
  6337. )
  6338. ],
  6339. 1
  6340. ),
  6341. _vm._v(" "),
  6342. _c(
  6343. "FormItem",
  6344. { attrs: { label: _vm.$L("归档任务") } },
  6345. [
  6346. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6347. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6348. ]),
  6349. _vm._v(" "),
  6350. _c(
  6351. "CheckboxGroup",
  6352. {
  6353. staticClass: "project-setting-group",
  6354. model: {
  6355. value: _vm.formSystem.archived_role,
  6356. callback: function($$v) {
  6357. _vm.$set(_vm.formSystem, "archived_role", $$v)
  6358. },
  6359. expression: "formSystem.archived_role"
  6360. }
  6361. },
  6362. [
  6363. _c("Checkbox", { attrs: { label: "owner" } }, [
  6364. _vm._v(_vm._s(_vm.$L("任务负责人")))
  6365. ]),
  6366. _vm._v(" "),
  6367. _c("Checkbox", { attrs: { label: "member" } }, [
  6368. _vm._v(_vm._s(_vm.$L("项目成员")))
  6369. ])
  6370. ],
  6371. 1
  6372. )
  6373. ],
  6374. 1
  6375. ),
  6376. _vm._v(" "),
  6377. _c(
  6378. "FormItem",
  6379. { attrs: { label: _vm.$L("删除任务") } },
  6380. [
  6381. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6382. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6383. ]),
  6384. _vm._v(" "),
  6385. _c(
  6386. "CheckboxGroup",
  6387. {
  6388. staticClass: "project-setting-group",
  6389. model: {
  6390. value: _vm.formSystem.del_role,
  6391. callback: function($$v) {
  6392. _vm.$set(_vm.formSystem, "del_role", $$v)
  6393. },
  6394. expression: "formSystem.del_role"
  6395. }
  6396. },
  6397. [
  6398. _c("Checkbox", { attrs: { label: "owner" } }, [
  6399. _vm._v(_vm._s(_vm.$L("任务负责人")))
  6400. ]),
  6401. _vm._v(" "),
  6402. _c("Checkbox", { attrs: { label: "member" } }, [
  6403. _vm._v(_vm._s(_vm.$L("项目成员")))
  6404. ])
  6405. ],
  6406. 1
  6407. )
  6408. ],
  6409. 1
  6410. ),
  6411. _vm._v(" "),
  6412. _c("div", { staticClass: "project-setting-title" }, [
  6413. _vm._v(_vm._s(_vm.$L("面板显示")) + ":")
  6414. ]),
  6415. _vm._v(" "),
  6416. _c("FormItem", { attrs: { label: _vm.$L("显示已完成") } }, [
  6417. _c(
  6418. "div",
  6419. [
  6420. _c(
  6421. "RadioGroup",
  6422. {
  6423. model: {
  6424. value: _vm.formSystem.complete_show,
  6425. callback: function($$v) {
  6426. _vm.$set(_vm.formSystem, "complete_show", $$v)
  6427. },
  6428. expression: "formSystem.complete_show"
  6429. }
  6430. },
  6431. [
  6432. _c("Radio", { attrs: { label: "show" } }, [
  6433. _vm._v(_vm._s(_vm.$L("显示")))
  6434. ]),
  6435. _vm._v(" "),
  6436. _c("Radio", { attrs: { label: "hide" } }, [
  6437. _vm._v(_vm._s(_vm.$L("隐藏")))
  6438. ])
  6439. ],
  6440. 1
  6441. )
  6442. ],
  6443. 1
  6444. ),
  6445. _vm._v(" "),
  6446. _vm.formSystem.complete_show == "show"
  6447. ? _c("div", { staticClass: "form-placeholder" }, [
  6448. _vm._v(
  6449. "\n " +
  6450. _vm._s(_vm.$L("项目面板显示已完成的任务。")) +
  6451. "\n "
  6452. )
  6453. ])
  6454. : _c("div", { staticClass: "form-placeholder" }, [
  6455. _vm._v(
  6456. "\n " +
  6457. _vm._s(_vm.$L("项目面板隐藏已完成的任务。")) +
  6458. "\n "
  6459. )
  6460. ])
  6461. ]),
  6462. _vm._v(" "),
  6463. _c(
  6464. "FormItem",
  6465. [
  6466. _c(
  6467. "Button",
  6468. {
  6469. attrs: { loading: _vm.loadIng > 0, type: "primary" },
  6470. on: {
  6471. click: function($event) {
  6472. return _vm.handleSubmit("formSystem")
  6473. }
  6474. }
  6475. },
  6476. [_vm._v(_vm._s(_vm.$L("提交")))]
  6477. ),
  6478. _vm._v(" "),
  6479. _c(
  6480. "Button",
  6481. {
  6482. staticStyle: { "margin-left": "8px" },
  6483. attrs: { loading: _vm.loadIng > 0 },
  6484. on: {
  6485. click: function($event) {
  6486. return _vm.handleReset("formSystem")
  6487. }
  6488. }
  6489. },
  6490. [_vm._v(_vm._s(_vm.$L("重置")))]
  6491. )
  6492. ],
  6493. 1
  6494. )
  6495. ],
  6496. 1
  6497. )
  6498. ],
  6499. 1
  6500. )
  6501. ])
  6502. }
  6503. var staticRenderFns = []
  6504. render._withStripped = true
  6505. module.exports = { render: render, staticRenderFns: staticRenderFns }
  6506. if (false) {
  6507. module.hot.accept()
  6508. if (module.hot.data) {
  6509. require("vue-hot-reload-api") .rerender("data-v-6f0e28b5", module.exports)
  6510. }
  6511. }
  6512. /***/ }),
  6513. /***/ 809:
  6514. /***/ (function(module, exports, __webpack_require__) {
  6515. var baseOrderBy = __webpack_require__(810),
  6516. isArray = __webpack_require__(21);
  6517. /**
  6518. * This method is like `_.sortBy` except that it allows specifying the sort
  6519. * orders of the iteratees to sort by. If `orders` is unspecified, all values
  6520. * are sorted in ascending order. Otherwise, specify an order of "desc" for
  6521. * descending or "asc" for ascending sort order of corresponding values.
  6522. *
  6523. * @static
  6524. * @memberOf _
  6525. * @since 4.0.0
  6526. * @category Collection
  6527. * @param {Array|Object} collection The collection to iterate over.
  6528. * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
  6529. * The iteratees to sort by.
  6530. * @param {string[]} [orders] The sort orders of `iteratees`.
  6531. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  6532. * @returns {Array} Returns the new sorted array.
  6533. * @example
  6534. *
  6535. * var users = [
  6536. * { 'user': 'fred', 'age': 48 },
  6537. * { 'user': 'barney', 'age': 34 },
  6538. * { 'user': 'fred', 'age': 40 },
  6539. * { 'user': 'barney', 'age': 36 }
  6540. * ];
  6541. *
  6542. * // Sort by `user` in ascending order and by `age` in descending order.
  6543. * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
  6544. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  6545. */
  6546. function orderBy(collection, iteratees, orders, guard) {
  6547. if (collection == null) {
  6548. return [];
  6549. }
  6550. if (!isArray(iteratees)) {
  6551. iteratees = iteratees == null ? [] : [iteratees];
  6552. }
  6553. orders = guard ? undefined : orders;
  6554. if (!isArray(orders)) {
  6555. orders = orders == null ? [] : [orders];
  6556. }
  6557. return baseOrderBy(collection, iteratees, orders);
  6558. }
  6559. module.exports = orderBy;
  6560. /***/ }),
  6561. /***/ 810:
  6562. /***/ (function(module, exports, __webpack_require__) {
  6563. var arrayMap = __webpack_require__(672),
  6564. baseGet = __webpack_require__(598),
  6565. baseIteratee = __webpack_require__(816),
  6566. baseMap = __webpack_require__(838),
  6567. baseSortBy = __webpack_require__(844),
  6568. baseUnary = __webpack_require__(26),
  6569. compareMultiple = __webpack_require__(845),
  6570. identity = __webpack_require__(678),
  6571. isArray = __webpack_require__(21);
  6572. /**
  6573. * The base implementation of `_.orderBy` without param guards.
  6574. *
  6575. * @private
  6576. * @param {Array|Object} collection The collection to iterate over.
  6577. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  6578. * @param {string[]} orders The sort orders of `iteratees`.
  6579. * @returns {Array} Returns the new sorted array.
  6580. */
  6581. function baseOrderBy(collection, iteratees, orders) {
  6582. if (iteratees.length) {
  6583. iteratees = arrayMap(iteratees, function(iteratee) {
  6584. if (isArray(iteratee)) {
  6585. return function(value) {
  6586. return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
  6587. }
  6588. }
  6589. return iteratee;
  6590. });
  6591. } else {
  6592. iteratees = [identity];
  6593. }
  6594. var index = -1;
  6595. iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
  6596. var result = baseMap(collection, function(value, key, collection) {
  6597. var criteria = arrayMap(iteratees, function(iteratee) {
  6598. return iteratee(value);
  6599. });
  6600. return { 'criteria': criteria, 'index': ++index, 'value': value };
  6601. });
  6602. return baseSortBy(result, function(object, other) {
  6603. return compareMultiple(object, other, orders);
  6604. });
  6605. }
  6606. module.exports = baseOrderBy;
  6607. /***/ }),
  6608. /***/ 811:
  6609. /***/ (function(module, exports, __webpack_require__) {
  6610. var memoizeCapped = __webpack_require__(812);
  6611. /** Used to match property names within property paths. */
  6612. var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  6613. /** Used to match backslashes in property paths. */
  6614. var reEscapeChar = /\\(\\)?/g;
  6615. /**
  6616. * Converts `string` to a property path array.
  6617. *
  6618. * @private
  6619. * @param {string} string The string to convert.
  6620. * @returns {Array} Returns the property path array.
  6621. */
  6622. var stringToPath = memoizeCapped(function(string) {
  6623. var result = [];
  6624. if (string.charCodeAt(0) === 46 /* . */) {
  6625. result.push('');
  6626. }
  6627. string.replace(rePropName, function(match, number, quote, subString) {
  6628. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  6629. });
  6630. return result;
  6631. });
  6632. module.exports = stringToPath;
  6633. /***/ }),
  6634. /***/ 812:
  6635. /***/ (function(module, exports, __webpack_require__) {
  6636. var memoize = __webpack_require__(813);
  6637. /** Used as the maximum memoize cache size. */
  6638. var MAX_MEMOIZE_SIZE = 500;
  6639. /**
  6640. * A specialized version of `_.memoize` which clears the memoized function's
  6641. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  6642. *
  6643. * @private
  6644. * @param {Function} func The function to have its output memoized.
  6645. * @returns {Function} Returns the new memoized function.
  6646. */
  6647. function memoizeCapped(func) {
  6648. var result = memoize(func, function(key) {
  6649. if (cache.size === MAX_MEMOIZE_SIZE) {
  6650. cache.clear();
  6651. }
  6652. return key;
  6653. });
  6654. var cache = result.cache;
  6655. return result;
  6656. }
  6657. module.exports = memoizeCapped;
  6658. /***/ }),
  6659. /***/ 813:
  6660. /***/ (function(module, exports, __webpack_require__) {
  6661. var MapCache = __webpack_require__(65);
  6662. /** Error message constants. */
  6663. var FUNC_ERROR_TEXT = 'Expected a function';
  6664. /**
  6665. * Creates a function that memoizes the result of `func`. If `resolver` is
  6666. * provided, it determines the cache key for storing the result based on the
  6667. * arguments provided to the memoized function. By default, the first argument
  6668. * provided to the memoized function is used as the map cache key. The `func`
  6669. * is invoked with the `this` binding of the memoized function.
  6670. *
  6671. * **Note:** The cache is exposed as the `cache` property on the memoized
  6672. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  6673. * constructor with one whose instances implement the
  6674. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  6675. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  6676. *
  6677. * @static
  6678. * @memberOf _
  6679. * @since 0.1.0
  6680. * @category Function
  6681. * @param {Function} func The function to have its output memoized.
  6682. * @param {Function} [resolver] The function to resolve the cache key.
  6683. * @returns {Function} Returns the new memoized function.
  6684. * @example
  6685. *
  6686. * var object = { 'a': 1, 'b': 2 };
  6687. * var other = { 'c': 3, 'd': 4 };
  6688. *
  6689. * var values = _.memoize(_.values);
  6690. * values(object);
  6691. * // => [1, 2]
  6692. *
  6693. * values(other);
  6694. * // => [3, 4]
  6695. *
  6696. * object.a = 2;
  6697. * values(object);
  6698. * // => [1, 2]
  6699. *
  6700. * // Modify the result cache.
  6701. * values.cache.set(object, ['a', 'b']);
  6702. * values(object);
  6703. * // => ['a', 'b']
  6704. *
  6705. * // Replace `_.memoize.Cache`.
  6706. * _.memoize.Cache = WeakMap;
  6707. */
  6708. function memoize(func, resolver) {
  6709. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  6710. throw new TypeError(FUNC_ERROR_TEXT);
  6711. }
  6712. var memoized = function() {
  6713. var args = arguments,
  6714. key = resolver ? resolver.apply(this, args) : args[0],
  6715. cache = memoized.cache;
  6716. if (cache.has(key)) {
  6717. return cache.get(key);
  6718. }
  6719. var result = func.apply(this, args);
  6720. memoized.cache = cache.set(key, result) || cache;
  6721. return result;
  6722. };
  6723. memoized.cache = new (memoize.Cache || MapCache);
  6724. return memoized;
  6725. }
  6726. // Expose `MapCache`.
  6727. memoize.Cache = MapCache;
  6728. module.exports = memoize;
  6729. /***/ }),
  6730. /***/ 814:
  6731. /***/ (function(module, exports, __webpack_require__) {
  6732. var baseToString = __webpack_require__(815);
  6733. /**
  6734. * Converts `value` to a string. An empty string is returned for `null`
  6735. * and `undefined` values. The sign of `-0` is preserved.
  6736. *
  6737. * @static
  6738. * @memberOf _
  6739. * @since 4.0.0
  6740. * @category Lang
  6741. * @param {*} value The value to convert.
  6742. * @returns {string} Returns the converted string.
  6743. * @example
  6744. *
  6745. * _.toString(null);
  6746. * // => ''
  6747. *
  6748. * _.toString(-0);
  6749. * // => '-0'
  6750. *
  6751. * _.toString([1, 2, 3]);
  6752. * // => '1,2,3'
  6753. */
  6754. function toString(value) {
  6755. return value == null ? '' : baseToString(value);
  6756. }
  6757. module.exports = toString;
  6758. /***/ }),
  6759. /***/ 815:
  6760. /***/ (function(module, exports, __webpack_require__) {
  6761. var Symbol = __webpack_require__(24),
  6762. arrayMap = __webpack_require__(672),
  6763. isArray = __webpack_require__(21),
  6764. isSymbol = __webpack_require__(565);
  6765. /** Used as references for various `Number` constants. */
  6766. var INFINITY = 1 / 0;
  6767. /** Used to convert symbols to primitives and strings. */
  6768. var symbolProto = Symbol ? Symbol.prototype : undefined,
  6769. symbolToString = symbolProto ? symbolProto.toString : undefined;
  6770. /**
  6771. * The base implementation of `_.toString` which doesn't convert nullish
  6772. * values to empty strings.
  6773. *
  6774. * @private
  6775. * @param {*} value The value to process.
  6776. * @returns {string} Returns the string.
  6777. */
  6778. function baseToString(value) {
  6779. // Exit early for strings to avoid a performance hit in some environments.
  6780. if (typeof value == 'string') {
  6781. return value;
  6782. }
  6783. if (isArray(value)) {
  6784. // Recursively convert values (susceptible to call stack limits).
  6785. return arrayMap(value, baseToString) + '';
  6786. }
  6787. if (isSymbol(value)) {
  6788. return symbolToString ? symbolToString.call(value) : '';
  6789. }
  6790. var result = (value + '');
  6791. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  6792. }
  6793. module.exports = baseToString;
  6794. /***/ }),
  6795. /***/ 816:
  6796. /***/ (function(module, exports, __webpack_require__) {
  6797. var baseMatches = __webpack_require__(817),
  6798. baseMatchesProperty = __webpack_require__(830),
  6799. identity = __webpack_require__(678),
  6800. isArray = __webpack_require__(21),
  6801. property = __webpack_require__(835);
  6802. /**
  6803. * The base implementation of `_.iteratee`.
  6804. *
  6805. * @private
  6806. * @param {*} [value=_.identity] The value to convert to an iteratee.
  6807. * @returns {Function} Returns the iteratee.
  6808. */
  6809. function baseIteratee(value) {
  6810. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  6811. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  6812. if (typeof value == 'function') {
  6813. return value;
  6814. }
  6815. if (value == null) {
  6816. return identity;
  6817. }
  6818. if (typeof value == 'object') {
  6819. return isArray(value)
  6820. ? baseMatchesProperty(value[0], value[1])
  6821. : baseMatches(value);
  6822. }
  6823. return property(value);
  6824. }
  6825. module.exports = baseIteratee;
  6826. /***/ }),
  6827. /***/ 817:
  6828. /***/ (function(module, exports, __webpack_require__) {
  6829. var baseIsMatch = __webpack_require__(818),
  6830. getMatchData = __webpack_require__(829),
  6831. matchesStrictComparable = __webpack_require__(677);
  6832. /**
  6833. * The base implementation of `_.matches` which doesn't clone `source`.
  6834. *
  6835. * @private
  6836. * @param {Object} source The object of property values to match.
  6837. * @returns {Function} Returns the new spec function.
  6838. */
  6839. function baseMatches(source) {
  6840. var matchData = getMatchData(source);
  6841. if (matchData.length == 1 && matchData[0][2]) {
  6842. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  6843. }
  6844. return function(object) {
  6845. return object === source || baseIsMatch(object, source, matchData);
  6846. };
  6847. }
  6848. module.exports = baseMatches;
  6849. /***/ }),
  6850. /***/ 818:
  6851. /***/ (function(module, exports, __webpack_require__) {
  6852. var Stack = __webpack_require__(66),
  6853. baseIsEqual = __webpack_require__(674);
  6854. /** Used to compose bitmasks for value comparisons. */
  6855. var COMPARE_PARTIAL_FLAG = 1,
  6856. COMPARE_UNORDERED_FLAG = 2;
  6857. /**
  6858. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  6859. *
  6860. * @private
  6861. * @param {Object} object The object to inspect.
  6862. * @param {Object} source The object of property values to match.
  6863. * @param {Array} matchData The property names, values, and compare flags to match.
  6864. * @param {Function} [customizer] The function to customize comparisons.
  6865. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  6866. */
  6867. function baseIsMatch(object, source, matchData, customizer) {
  6868. var index = matchData.length,
  6869. length = index,
  6870. noCustomizer = !customizer;
  6871. if (object == null) {
  6872. return !length;
  6873. }
  6874. object = Object(object);
  6875. while (index--) {
  6876. var data = matchData[index];
  6877. if ((noCustomizer && data[2])
  6878. ? data[1] !== object[data[0]]
  6879. : !(data[0] in object)
  6880. ) {
  6881. return false;
  6882. }
  6883. }
  6884. while (++index < length) {
  6885. data = matchData[index];
  6886. var key = data[0],
  6887. objValue = object[key],
  6888. srcValue = data[1];
  6889. if (noCustomizer && data[2]) {
  6890. if (objValue === undefined && !(key in object)) {
  6891. return false;
  6892. }
  6893. } else {
  6894. var stack = new Stack;
  6895. if (customizer) {
  6896. var result = customizer(objValue, srcValue, key, object, source, stack);
  6897. }
  6898. if (!(result === undefined
  6899. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  6900. : result
  6901. )) {
  6902. return false;
  6903. }
  6904. }
  6905. }
  6906. return true;
  6907. }
  6908. module.exports = baseIsMatch;
  6909. /***/ }),
  6910. /***/ 819:
  6911. /***/ (function(module, exports, __webpack_require__) {
  6912. var Stack = __webpack_require__(66),
  6913. equalArrays = __webpack_require__(675),
  6914. equalByTag = __webpack_require__(825),
  6915. equalObjects = __webpack_require__(828),
  6916. getTag = __webpack_require__(27),
  6917. isArray = __webpack_require__(21),
  6918. isBuffer = __webpack_require__(41),
  6919. isTypedArray = __webpack_require__(74);
  6920. /** Used to compose bitmasks for value comparisons. */
  6921. var COMPARE_PARTIAL_FLAG = 1;
  6922. /** `Object#toString` result references. */
  6923. var argsTag = '[object Arguments]',
  6924. arrayTag = '[object Array]',
  6925. objectTag = '[object Object]';
  6926. /** Used for built-in method references. */
  6927. var objectProto = Object.prototype;
  6928. /** Used to check objects for own properties. */
  6929. var hasOwnProperty = objectProto.hasOwnProperty;
  6930. /**
  6931. * A specialized version of `baseIsEqual` for arrays and objects which performs
  6932. * deep comparisons and tracks traversed objects enabling objects with circular
  6933. * references to be compared.
  6934. *
  6935. * @private
  6936. * @param {Object} object The object to compare.
  6937. * @param {Object} other The other object to compare.
  6938. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  6939. * @param {Function} customizer The function to customize comparisons.
  6940. * @param {Function} equalFunc The function to determine equivalents of values.
  6941. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  6942. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  6943. */
  6944. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  6945. var objIsArr = isArray(object),
  6946. othIsArr = isArray(other),
  6947. objTag = objIsArr ? arrayTag : getTag(object),
  6948. othTag = othIsArr ? arrayTag : getTag(other);
  6949. objTag = objTag == argsTag ? objectTag : objTag;
  6950. othTag = othTag == argsTag ? objectTag : othTag;
  6951. var objIsObj = objTag == objectTag,
  6952. othIsObj = othTag == objectTag,
  6953. isSameTag = objTag == othTag;
  6954. if (isSameTag && isBuffer(object)) {
  6955. if (!isBuffer(other)) {
  6956. return false;
  6957. }
  6958. objIsArr = true;
  6959. objIsObj = false;
  6960. }
  6961. if (isSameTag && !objIsObj) {
  6962. stack || (stack = new Stack);
  6963. return (objIsArr || isTypedArray(object))
  6964. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  6965. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  6966. }
  6967. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  6968. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  6969. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  6970. if (objIsWrapped || othIsWrapped) {
  6971. var objUnwrapped = objIsWrapped ? object.value() : object,
  6972. othUnwrapped = othIsWrapped ? other.value() : other;
  6973. stack || (stack = new Stack);
  6974. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  6975. }
  6976. }
  6977. if (!isSameTag) {
  6978. return false;
  6979. }
  6980. stack || (stack = new Stack);
  6981. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  6982. }
  6983. module.exports = baseIsEqualDeep;
  6984. /***/ }),
  6985. /***/ 820:
  6986. /***/ (function(module, exports, __webpack_require__) {
  6987. var MapCache = __webpack_require__(65),
  6988. setCacheAdd = __webpack_require__(821),
  6989. setCacheHas = __webpack_require__(822);
  6990. /**
  6991. *
  6992. * Creates an array cache object to store unique values.
  6993. *
  6994. * @private
  6995. * @constructor
  6996. * @param {Array} [values] The values to cache.
  6997. */
  6998. function SetCache(values) {
  6999. var index = -1,
  7000. length = values == null ? 0 : values.length;
  7001. this.__data__ = new MapCache;
  7002. while (++index < length) {
  7003. this.add(values[index]);
  7004. }
  7005. }
  7006. // Add methods to `SetCache`.
  7007. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  7008. SetCache.prototype.has = setCacheHas;
  7009. module.exports = SetCache;
  7010. /***/ }),
  7011. /***/ 821:
  7012. /***/ (function(module, exports) {
  7013. /** Used to stand-in for `undefined` hash values. */
  7014. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  7015. /**
  7016. * Adds `value` to the array cache.
  7017. *
  7018. * @private
  7019. * @name add
  7020. * @memberOf SetCache
  7021. * @alias push
  7022. * @param {*} value The value to cache.
  7023. * @returns {Object} Returns the cache instance.
  7024. */
  7025. function setCacheAdd(value) {
  7026. this.__data__.set(value, HASH_UNDEFINED);
  7027. return this;
  7028. }
  7029. module.exports = setCacheAdd;
  7030. /***/ }),
  7031. /***/ 822:
  7032. /***/ (function(module, exports) {
  7033. /**
  7034. * Checks if `value` is in the array cache.
  7035. *
  7036. * @private
  7037. * @name has
  7038. * @memberOf SetCache
  7039. * @param {*} value The value to search for.
  7040. * @returns {number} Returns `true` if `value` is found, else `false`.
  7041. */
  7042. function setCacheHas(value) {
  7043. return this.__data__.has(value);
  7044. }
  7045. module.exports = setCacheHas;
  7046. /***/ }),
  7047. /***/ 823:
  7048. /***/ (function(module, exports) {
  7049. /**
  7050. * A specialized version of `_.some` for arrays without support for iteratee
  7051. * shorthands.
  7052. *
  7053. * @private
  7054. * @param {Array} [array] The array to iterate over.
  7055. * @param {Function} predicate The function invoked per iteration.
  7056. * @returns {boolean} Returns `true` if any element passes the predicate check,
  7057. * else `false`.
  7058. */
  7059. function arraySome(array, predicate) {
  7060. var index = -1,
  7061. length = array == null ? 0 : array.length;
  7062. while (++index < length) {
  7063. if (predicate(array[index], index, array)) {
  7064. return true;
  7065. }
  7066. }
  7067. return false;
  7068. }
  7069. module.exports = arraySome;
  7070. /***/ }),
  7071. /***/ 824:
  7072. /***/ (function(module, exports) {
  7073. /**
  7074. * Checks if a `cache` value for `key` exists.
  7075. *
  7076. * @private
  7077. * @param {Object} cache The cache to query.
  7078. * @param {string} key The key of the entry to check.
  7079. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  7080. */
  7081. function cacheHas(cache, key) {
  7082. return cache.has(key);
  7083. }
  7084. module.exports = cacheHas;
  7085. /***/ }),
  7086. /***/ 825:
  7087. /***/ (function(module, exports, __webpack_require__) {
  7088. var Symbol = __webpack_require__(24),
  7089. Uint8Array = __webpack_require__(70),
  7090. eq = __webpack_require__(40),
  7091. equalArrays = __webpack_require__(675),
  7092. mapToArray = __webpack_require__(826),
  7093. setToArray = __webpack_require__(827);
  7094. /** Used to compose bitmasks for value comparisons. */
  7095. var COMPARE_PARTIAL_FLAG = 1,
  7096. COMPARE_UNORDERED_FLAG = 2;
  7097. /** `Object#toString` result references. */
  7098. var boolTag = '[object Boolean]',
  7099. dateTag = '[object Date]',
  7100. errorTag = '[object Error]',
  7101. mapTag = '[object Map]',
  7102. numberTag = '[object Number]',
  7103. regexpTag = '[object RegExp]',
  7104. setTag = '[object Set]',
  7105. stringTag = '[object String]',
  7106. symbolTag = '[object Symbol]';
  7107. var arrayBufferTag = '[object ArrayBuffer]',
  7108. dataViewTag = '[object DataView]';
  7109. /** Used to convert symbols to primitives and strings. */
  7110. var symbolProto = Symbol ? Symbol.prototype : undefined,
  7111. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  7112. /**
  7113. * A specialized version of `baseIsEqualDeep` for comparing objects of
  7114. * the same `toStringTag`.
  7115. *
  7116. * **Note:** This function only supports comparing values with tags of
  7117. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  7118. *
  7119. * @private
  7120. * @param {Object} object The object to compare.
  7121. * @param {Object} other The other object to compare.
  7122. * @param {string} tag The `toStringTag` of the objects to compare.
  7123. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  7124. * @param {Function} customizer The function to customize comparisons.
  7125. * @param {Function} equalFunc The function to determine equivalents of values.
  7126. * @param {Object} stack Tracks traversed `object` and `other` objects.
  7127. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  7128. */
  7129. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  7130. switch (tag) {
  7131. case dataViewTag:
  7132. if ((object.byteLength != other.byteLength) ||
  7133. (object.byteOffset != other.byteOffset)) {
  7134. return false;
  7135. }
  7136. object = object.buffer;
  7137. other = other.buffer;
  7138. case arrayBufferTag:
  7139. if ((object.byteLength != other.byteLength) ||
  7140. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  7141. return false;
  7142. }
  7143. return true;
  7144. case boolTag:
  7145. case dateTag:
  7146. case numberTag:
  7147. // Coerce booleans to `1` or `0` and dates to milliseconds.
  7148. // Invalid dates are coerced to `NaN`.
  7149. return eq(+object, +other);
  7150. case errorTag:
  7151. return object.name == other.name && object.message == other.message;
  7152. case regexpTag:
  7153. case stringTag:
  7154. // Coerce regexes to strings and treat strings, primitives and objects,
  7155. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  7156. // for more details.
  7157. return object == (other + '');
  7158. case mapTag:
  7159. var convert = mapToArray;
  7160. case setTag:
  7161. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  7162. convert || (convert = setToArray);
  7163. if (object.size != other.size && !isPartial) {
  7164. return false;
  7165. }
  7166. // Assume cyclic values are equal.
  7167. var stacked = stack.get(object);
  7168. if (stacked) {
  7169. return stacked == other;
  7170. }
  7171. bitmask |= COMPARE_UNORDERED_FLAG;
  7172. // Recursively compare objects (susceptible to call stack limits).
  7173. stack.set(object, other);
  7174. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  7175. stack['delete'](object);
  7176. return result;
  7177. case symbolTag:
  7178. if (symbolValueOf) {
  7179. return symbolValueOf.call(object) == symbolValueOf.call(other);
  7180. }
  7181. }
  7182. return false;
  7183. }
  7184. module.exports = equalByTag;
  7185. /***/ }),
  7186. /***/ 826:
  7187. /***/ (function(module, exports) {
  7188. /**
  7189. * Converts `map` to its key-value pairs.
  7190. *
  7191. * @private
  7192. * @param {Object} map The map to convert.
  7193. * @returns {Array} Returns the key-value pairs.
  7194. */
  7195. function mapToArray(map) {
  7196. var index = -1,
  7197. result = Array(map.size);
  7198. map.forEach(function(value, key) {
  7199. result[++index] = [key, value];
  7200. });
  7201. return result;
  7202. }
  7203. module.exports = mapToArray;
  7204. /***/ }),
  7205. /***/ 827:
  7206. /***/ (function(module, exports) {
  7207. /**
  7208. * Converts `set` to an array of its values.
  7209. *
  7210. * @private
  7211. * @param {Object} set The set to convert.
  7212. * @returns {Array} Returns the values.
  7213. */
  7214. function setToArray(set) {
  7215. var index = -1,
  7216. result = Array(set.size);
  7217. set.forEach(function(value) {
  7218. result[++index] = value;
  7219. });
  7220. return result;
  7221. }
  7222. module.exports = setToArray;
  7223. /***/ }),
  7224. /***/ 828:
  7225. /***/ (function(module, exports, __webpack_require__) {
  7226. var getAllKeys = __webpack_require__(71);
  7227. /** Used to compose bitmasks for value comparisons. */
  7228. var COMPARE_PARTIAL_FLAG = 1;
  7229. /** Used for built-in method references. */
  7230. var objectProto = Object.prototype;
  7231. /** Used to check objects for own properties. */
  7232. var hasOwnProperty = objectProto.hasOwnProperty;
  7233. /**
  7234. * A specialized version of `baseIsEqualDeep` for objects with support for
  7235. * partial deep comparisons.
  7236. *
  7237. * @private
  7238. * @param {Object} object The object to compare.
  7239. * @param {Object} other The other object to compare.
  7240. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  7241. * @param {Function} customizer The function to customize comparisons.
  7242. * @param {Function} equalFunc The function to determine equivalents of values.
  7243. * @param {Object} stack Tracks traversed `object` and `other` objects.
  7244. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  7245. */
  7246. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  7247. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  7248. objProps = getAllKeys(object),
  7249. objLength = objProps.length,
  7250. othProps = getAllKeys(other),
  7251. othLength = othProps.length;
  7252. if (objLength != othLength && !isPartial) {
  7253. return false;
  7254. }
  7255. var index = objLength;
  7256. while (index--) {
  7257. var key = objProps[index];
  7258. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  7259. return false;
  7260. }
  7261. }
  7262. // Check that cyclic values are equal.
  7263. var objStacked = stack.get(object);
  7264. var othStacked = stack.get(other);
  7265. if (objStacked && othStacked) {
  7266. return objStacked == other && othStacked == object;
  7267. }
  7268. var result = true;
  7269. stack.set(object, other);
  7270. stack.set(other, object);
  7271. var skipCtor = isPartial;
  7272. while (++index < objLength) {
  7273. key = objProps[index];
  7274. var objValue = object[key],
  7275. othValue = other[key];
  7276. if (customizer) {
  7277. var compared = isPartial
  7278. ? customizer(othValue, objValue, key, other, object, stack)
  7279. : customizer(objValue, othValue, key, object, other, stack);
  7280. }
  7281. // Recursively compare objects (susceptible to call stack limits).
  7282. if (!(compared === undefined
  7283. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  7284. : compared
  7285. )) {
  7286. result = false;
  7287. break;
  7288. }
  7289. skipCtor || (skipCtor = key == 'constructor');
  7290. }
  7291. if (result && !skipCtor) {
  7292. var objCtor = object.constructor,
  7293. othCtor = other.constructor;
  7294. // Non `Object` object instances with different constructors are not equal.
  7295. if (objCtor != othCtor &&
  7296. ('constructor' in object && 'constructor' in other) &&
  7297. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  7298. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  7299. result = false;
  7300. }
  7301. }
  7302. stack['delete'](object);
  7303. stack['delete'](other);
  7304. return result;
  7305. }
  7306. module.exports = equalObjects;
  7307. /***/ }),
  7308. /***/ 829:
  7309. /***/ (function(module, exports, __webpack_require__) {
  7310. var isStrictComparable = __webpack_require__(676),
  7311. keys = __webpack_require__(25);
  7312. /**
  7313. * Gets the property names, values, and compare flags of `object`.
  7314. *
  7315. * @private
  7316. * @param {Object} object The object to query.
  7317. * @returns {Array} Returns the match data of `object`.
  7318. */
  7319. function getMatchData(object) {
  7320. var result = keys(object),
  7321. length = result.length;
  7322. while (length--) {
  7323. var key = result[length],
  7324. value = object[key];
  7325. result[length] = [key, value, isStrictComparable(value)];
  7326. }
  7327. return result;
  7328. }
  7329. module.exports = getMatchData;
  7330. /***/ }),
  7331. /***/ 830:
  7332. /***/ (function(module, exports, __webpack_require__) {
  7333. var baseIsEqual = __webpack_require__(674),
  7334. get = __webpack_require__(831),
  7335. hasIn = __webpack_require__(832),
  7336. isKey = __webpack_require__(599),
  7337. isStrictComparable = __webpack_require__(676),
  7338. matchesStrictComparable = __webpack_require__(677),
  7339. toKey = __webpack_require__(566);
  7340. /** Used to compose bitmasks for value comparisons. */
  7341. var COMPARE_PARTIAL_FLAG = 1,
  7342. COMPARE_UNORDERED_FLAG = 2;
  7343. /**
  7344. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  7345. *
  7346. * @private
  7347. * @param {string} path The path of the property to get.
  7348. * @param {*} srcValue The value to match.
  7349. * @returns {Function} Returns the new spec function.
  7350. */
  7351. function baseMatchesProperty(path, srcValue) {
  7352. if (isKey(path) && isStrictComparable(srcValue)) {
  7353. return matchesStrictComparable(toKey(path), srcValue);
  7354. }
  7355. return function(object) {
  7356. var objValue = get(object, path);
  7357. return (objValue === undefined && objValue === srcValue)
  7358. ? hasIn(object, path)
  7359. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  7360. };
  7361. }
  7362. module.exports = baseMatchesProperty;
  7363. /***/ }),
  7364. /***/ 831:
  7365. /***/ (function(module, exports, __webpack_require__) {
  7366. var baseGet = __webpack_require__(598);
  7367. /**
  7368. * Gets the value at `path` of `object`. If the resolved value is
  7369. * `undefined`, the `defaultValue` is returned in its place.
  7370. *
  7371. * @static
  7372. * @memberOf _
  7373. * @since 3.7.0
  7374. * @category Object
  7375. * @param {Object} object The object to query.
  7376. * @param {Array|string} path The path of the property to get.
  7377. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  7378. * @returns {*} Returns the resolved value.
  7379. * @example
  7380. *
  7381. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  7382. *
  7383. * _.get(object, 'a[0].b.c');
  7384. * // => 3
  7385. *
  7386. * _.get(object, ['a', '0', 'b', 'c']);
  7387. * // => 3
  7388. *
  7389. * _.get(object, 'a.b.c', 'default');
  7390. * // => 'default'
  7391. */
  7392. function get(object, path, defaultValue) {
  7393. var result = object == null ? undefined : baseGet(object, path);
  7394. return result === undefined ? defaultValue : result;
  7395. }
  7396. module.exports = get;
  7397. /***/ }),
  7398. /***/ 832:
  7399. /***/ (function(module, exports, __webpack_require__) {
  7400. var baseHasIn = __webpack_require__(833),
  7401. hasPath = __webpack_require__(834);
  7402. /**
  7403. * Checks if `path` is a direct or inherited property of `object`.
  7404. *
  7405. * @static
  7406. * @memberOf _
  7407. * @since 4.0.0
  7408. * @category Object
  7409. * @param {Object} object The object to query.
  7410. * @param {Array|string} path The path to check.
  7411. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  7412. * @example
  7413. *
  7414. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  7415. *
  7416. * _.hasIn(object, 'a');
  7417. * // => true
  7418. *
  7419. * _.hasIn(object, 'a.b');
  7420. * // => true
  7421. *
  7422. * _.hasIn(object, ['a', 'b']);
  7423. * // => true
  7424. *
  7425. * _.hasIn(object, 'b');
  7426. * // => false
  7427. */
  7428. function hasIn(object, path) {
  7429. return object != null && hasPath(object, path, baseHasIn);
  7430. }
  7431. module.exports = hasIn;
  7432. /***/ }),
  7433. /***/ 833:
  7434. /***/ (function(module, exports) {
  7435. /**
  7436. * The base implementation of `_.hasIn` without support for deep paths.
  7437. *
  7438. * @private
  7439. * @param {Object} [object] The object to query.
  7440. * @param {Array|string} key The key to check.
  7441. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  7442. */
  7443. function baseHasIn(object, key) {
  7444. return object != null && key in Object(object);
  7445. }
  7446. module.exports = baseHasIn;
  7447. /***/ }),
  7448. /***/ 834:
  7449. /***/ (function(module, exports, __webpack_require__) {
  7450. var castPath = __webpack_require__(673),
  7451. isArguments = __webpack_require__(72),
  7452. isArray = __webpack_require__(21),
  7453. isIndex = __webpack_require__(73),
  7454. isLength = __webpack_require__(42),
  7455. toKey = __webpack_require__(566);
  7456. /**
  7457. * Checks if `path` exists on `object`.
  7458. *
  7459. * @private
  7460. * @param {Object} object The object to query.
  7461. * @param {Array|string} path The path to check.
  7462. * @param {Function} hasFunc The function to check properties.
  7463. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  7464. */
  7465. function hasPath(object, path, hasFunc) {
  7466. path = castPath(path, object);
  7467. var index = -1,
  7468. length = path.length,
  7469. result = false;
  7470. while (++index < length) {
  7471. var key = toKey(path[index]);
  7472. if (!(result = object != null && hasFunc(object, key))) {
  7473. break;
  7474. }
  7475. object = object[key];
  7476. }
  7477. if (result || ++index != length) {
  7478. return result;
  7479. }
  7480. length = object == null ? 0 : object.length;
  7481. return !!length && isLength(length) && isIndex(key, length) &&
  7482. (isArray(object) || isArguments(object));
  7483. }
  7484. module.exports = hasPath;
  7485. /***/ }),
  7486. /***/ 835:
  7487. /***/ (function(module, exports, __webpack_require__) {
  7488. var baseProperty = __webpack_require__(836),
  7489. basePropertyDeep = __webpack_require__(837),
  7490. isKey = __webpack_require__(599),
  7491. toKey = __webpack_require__(566);
  7492. /**
  7493. * Creates a function that returns the value at `path` of a given object.
  7494. *
  7495. * @static
  7496. * @memberOf _
  7497. * @since 2.4.0
  7498. * @category Util
  7499. * @param {Array|string} path The path of the property to get.
  7500. * @returns {Function} Returns the new accessor function.
  7501. * @example
  7502. *
  7503. * var objects = [
  7504. * { 'a': { 'b': 2 } },
  7505. * { 'a': { 'b': 1 } }
  7506. * ];
  7507. *
  7508. * _.map(objects, _.property('a.b'));
  7509. * // => [2, 1]
  7510. *
  7511. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  7512. * // => [1, 2]
  7513. */
  7514. function property(path) {
  7515. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  7516. }
  7517. module.exports = property;
  7518. /***/ }),
  7519. /***/ 836:
  7520. /***/ (function(module, exports) {
  7521. /**
  7522. * The base implementation of `_.property` without support for deep paths.
  7523. *
  7524. * @private
  7525. * @param {string} key The key of the property to get.
  7526. * @returns {Function} Returns the new accessor function.
  7527. */
  7528. function baseProperty(key) {
  7529. return function(object) {
  7530. return object == null ? undefined : object[key];
  7531. };
  7532. }
  7533. module.exports = baseProperty;
  7534. /***/ }),
  7535. /***/ 837:
  7536. /***/ (function(module, exports, __webpack_require__) {
  7537. var baseGet = __webpack_require__(598);
  7538. /**
  7539. * A specialized version of `baseProperty` which supports deep paths.
  7540. *
  7541. * @private
  7542. * @param {Array|string} path The path of the property to get.
  7543. * @returns {Function} Returns the new accessor function.
  7544. */
  7545. function basePropertyDeep(path) {
  7546. return function(object) {
  7547. return baseGet(object, path);
  7548. };
  7549. }
  7550. module.exports = basePropertyDeep;
  7551. /***/ }),
  7552. /***/ 838:
  7553. /***/ (function(module, exports, __webpack_require__) {
  7554. var baseEach = __webpack_require__(839),
  7555. isArrayLike = __webpack_require__(39);
  7556. /**
  7557. * The base implementation of `_.map` without support for iteratee shorthands.
  7558. *
  7559. * @private
  7560. * @param {Array|Object} collection The collection to iterate over.
  7561. * @param {Function} iteratee The function invoked per iteration.
  7562. * @returns {Array} Returns the new mapped array.
  7563. */
  7564. function baseMap(collection, iteratee) {
  7565. var index = -1,
  7566. result = isArrayLike(collection) ? Array(collection.length) : [];
  7567. baseEach(collection, function(value, key, collection) {
  7568. result[++index] = iteratee(value, key, collection);
  7569. });
  7570. return result;
  7571. }
  7572. module.exports = baseMap;
  7573. /***/ }),
  7574. /***/ 839:
  7575. /***/ (function(module, exports, __webpack_require__) {
  7576. var baseForOwn = __webpack_require__(840),
  7577. createBaseEach = __webpack_require__(843);
  7578. /**
  7579. * The base implementation of `_.forEach` without support for iteratee shorthands.
  7580. *
  7581. * @private
  7582. * @param {Array|Object} collection The collection to iterate over.
  7583. * @param {Function} iteratee The function invoked per iteration.
  7584. * @returns {Array|Object} Returns `collection`.
  7585. */
  7586. var baseEach = createBaseEach(baseForOwn);
  7587. module.exports = baseEach;
  7588. /***/ }),
  7589. /***/ 840:
  7590. /***/ (function(module, exports, __webpack_require__) {
  7591. var baseFor = __webpack_require__(841),
  7592. keys = __webpack_require__(25);
  7593. /**
  7594. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  7595. *
  7596. * @private
  7597. * @param {Object} object The object to iterate over.
  7598. * @param {Function} iteratee The function invoked per iteration.
  7599. * @returns {Object} Returns `object`.
  7600. */
  7601. function baseForOwn(object, iteratee) {
  7602. return object && baseFor(object, iteratee, keys);
  7603. }
  7604. module.exports = baseForOwn;
  7605. /***/ }),
  7606. /***/ 841:
  7607. /***/ (function(module, exports, __webpack_require__) {
  7608. var createBaseFor = __webpack_require__(842);
  7609. /**
  7610. * The base implementation of `baseForOwn` which iterates over `object`
  7611. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  7612. * Iteratee functions may exit iteration early by explicitly returning `false`.
  7613. *
  7614. * @private
  7615. * @param {Object} object The object to iterate over.
  7616. * @param {Function} iteratee The function invoked per iteration.
  7617. * @param {Function} keysFunc The function to get the keys of `object`.
  7618. * @returns {Object} Returns `object`.
  7619. */
  7620. var baseFor = createBaseFor();
  7621. module.exports = baseFor;
  7622. /***/ }),
  7623. /***/ 842:
  7624. /***/ (function(module, exports) {
  7625. /**
  7626. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  7627. *
  7628. * @private
  7629. * @param {boolean} [fromRight] Specify iterating from right to left.
  7630. * @returns {Function} Returns the new base function.
  7631. */
  7632. function createBaseFor(fromRight) {
  7633. return function(object, iteratee, keysFunc) {
  7634. var index = -1,
  7635. iterable = Object(object),
  7636. props = keysFunc(object),
  7637. length = props.length;
  7638. while (length--) {
  7639. var key = props[fromRight ? length : ++index];
  7640. if (iteratee(iterable[key], key, iterable) === false) {
  7641. break;
  7642. }
  7643. }
  7644. return object;
  7645. };
  7646. }
  7647. module.exports = createBaseFor;
  7648. /***/ }),
  7649. /***/ 843:
  7650. /***/ (function(module, exports, __webpack_require__) {
  7651. var isArrayLike = __webpack_require__(39);
  7652. /**
  7653. * Creates a `baseEach` or `baseEachRight` function.
  7654. *
  7655. * @private
  7656. * @param {Function} eachFunc The function to iterate over a collection.
  7657. * @param {boolean} [fromRight] Specify iterating from right to left.
  7658. * @returns {Function} Returns the new base function.
  7659. */
  7660. function createBaseEach(eachFunc, fromRight) {
  7661. return function(collection, iteratee) {
  7662. if (collection == null) {
  7663. return collection;
  7664. }
  7665. if (!isArrayLike(collection)) {
  7666. return eachFunc(collection, iteratee);
  7667. }
  7668. var length = collection.length,
  7669. index = fromRight ? length : -1,
  7670. iterable = Object(collection);
  7671. while ((fromRight ? index-- : ++index < length)) {
  7672. if (iteratee(iterable[index], index, iterable) === false) {
  7673. break;
  7674. }
  7675. }
  7676. return collection;
  7677. };
  7678. }
  7679. module.exports = createBaseEach;
  7680. /***/ }),
  7681. /***/ 844:
  7682. /***/ (function(module, exports) {
  7683. /**
  7684. * The base implementation of `_.sortBy` which uses `comparer` to define the
  7685. * sort order of `array` and replaces criteria objects with their corresponding
  7686. * values.
  7687. *
  7688. * @private
  7689. * @param {Array} array The array to sort.
  7690. * @param {Function} comparer The function to define sort order.
  7691. * @returns {Array} Returns `array`.
  7692. */
  7693. function baseSortBy(array, comparer) {
  7694. var length = array.length;
  7695. array.sort(comparer);
  7696. while (length--) {
  7697. array[length] = array[length].value;
  7698. }
  7699. return array;
  7700. }
  7701. module.exports = baseSortBy;
  7702. /***/ }),
  7703. /***/ 845:
  7704. /***/ (function(module, exports, __webpack_require__) {
  7705. var compareAscending = __webpack_require__(846);
  7706. /**
  7707. * Used by `_.orderBy` to compare multiple properties of a value to another
  7708. * and stable sort them.
  7709. *
  7710. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  7711. * specify an order of "desc" for descending or "asc" for ascending sort order
  7712. * of corresponding values.
  7713. *
  7714. * @private
  7715. * @param {Object} object The object to compare.
  7716. * @param {Object} other The other object to compare.
  7717. * @param {boolean[]|string[]} orders The order to sort by for each property.
  7718. * @returns {number} Returns the sort order indicator for `object`.
  7719. */
  7720. function compareMultiple(object, other, orders) {
  7721. var index = -1,
  7722. objCriteria = object.criteria,
  7723. othCriteria = other.criteria,
  7724. length = objCriteria.length,
  7725. ordersLength = orders.length;
  7726. while (++index < length) {
  7727. var result = compareAscending(objCriteria[index], othCriteria[index]);
  7728. if (result) {
  7729. if (index >= ordersLength) {
  7730. return result;
  7731. }
  7732. var order = orders[index];
  7733. return result * (order == 'desc' ? -1 : 1);
  7734. }
  7735. }
  7736. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  7737. // that causes it, under certain circumstances, to provide the same value for
  7738. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  7739. // for more details.
  7740. //
  7741. // This also ensures a stable sort in V8 and other engines.
  7742. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  7743. return object.index - other.index;
  7744. }
  7745. module.exports = compareMultiple;
  7746. /***/ }),
  7747. /***/ 846:
  7748. /***/ (function(module, exports, __webpack_require__) {
  7749. var isSymbol = __webpack_require__(565);
  7750. /**
  7751. * Compares values to sort them in ascending order.
  7752. *
  7753. * @private
  7754. * @param {*} value The value to compare.
  7755. * @param {*} other The other value to compare.
  7756. * @returns {number} Returns the sort order indicator for `value`.
  7757. */
  7758. function compareAscending(value, other) {
  7759. if (value !== other) {
  7760. var valIsDefined = value !== undefined,
  7761. valIsNull = value === null,
  7762. valIsReflexive = value === value,
  7763. valIsSymbol = isSymbol(value);
  7764. var othIsDefined = other !== undefined,
  7765. othIsNull = other === null,
  7766. othIsReflexive = other === other,
  7767. othIsSymbol = isSymbol(other);
  7768. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  7769. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  7770. (valIsNull && othIsDefined && othIsReflexive) ||
  7771. (!valIsDefined && othIsReflexive) ||
  7772. !valIsReflexive) {
  7773. return 1;
  7774. }
  7775. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  7776. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  7777. (othIsNull && valIsDefined && valIsReflexive) ||
  7778. (!othIsDefined && valIsReflexive) ||
  7779. !othIsReflexive) {
  7780. return -1;
  7781. }
  7782. }
  7783. return 0;
  7784. }
  7785. module.exports = compareAscending;
  7786. /***/ }),
  7787. /***/ 847:
  7788. /***/ (function(module, exports, __webpack_require__) {
  7789. var render = function() {
  7790. var _vm = this
  7791. var _h = _vm.$createElement
  7792. var _c = _vm._self._c || _h
  7793. return _c(
  7794. "div",
  7795. { staticClass: "w-main project-panel" },
  7796. [
  7797. _c("v-title", [
  7798. _vm._v(
  7799. _vm._s(_vm.$L("项目面板")) +
  7800. "-" +
  7801. _vm._s(_vm.$L("轻量级的团队在线协作"))
  7802. )
  7803. ]),
  7804. _vm._v(" "),
  7805. _c("div", { staticClass: "w-nav" }, [
  7806. _c("div", { staticClass: "nav-row" }, [
  7807. _c("div", { staticClass: "w-nav-left" }, [
  7808. _c("div", { staticClass: "page-nav-left" }, [
  7809. _c("span", { staticClass: "bold" }, [
  7810. _vm._v(_vm._s(_vm.projectDetail.title))
  7811. ]),
  7812. _vm._v(" "),
  7813. _vm.loadIng > 0
  7814. ? _c(
  7815. "div",
  7816. { staticClass: "page-nav-loading" },
  7817. [_c("w-loading")],
  7818. 1
  7819. )
  7820. : _c("div", { staticClass: "page-nav-refresh" }, [
  7821. _c(
  7822. "em",
  7823. {
  7824. on: {
  7825. click: function($event) {
  7826. return _vm.getDetail(true)
  7827. }
  7828. }
  7829. },
  7830. [_vm._v(_vm._s(_vm.$L("刷新")))]
  7831. )
  7832. ])
  7833. ])
  7834. ]),
  7835. _vm._v(" "),
  7836. _c("div", { staticClass: "w-nav-flex" }),
  7837. _vm._v(" "),
  7838. _c("div", { staticClass: "w-nav-right" }, [
  7839. _c(
  7840. "span",
  7841. {
  7842. staticClass: "ft hover",
  7843. class: { active: _vm.filtrTask != "" }
  7844. },
  7845. [
  7846. _c(
  7847. "Dropdown",
  7848. {
  7849. attrs: { transfer: "" },
  7850. on: {
  7851. "on-click": function(res) {
  7852. _vm.filtrTask = res
  7853. }
  7854. }
  7855. },
  7856. [
  7857. _c("Icon", {
  7858. staticClass: "icon",
  7859. attrs: { type: "md-funnel" }
  7860. }),
  7861. _vm._v(
  7862. " " +
  7863. _vm._s(_vm.$L("筛选")) +
  7864. "\n "
  7865. ),
  7866. _c(
  7867. "DropdownMenu",
  7868. { attrs: { slot: "list" }, slot: "list" },
  7869. [
  7870. _c(
  7871. "DropdownItem",
  7872. {
  7873. class: { "dropdown-active": _vm.filtrTask == "" },
  7874. attrs: { name: "" }
  7875. },
  7876. [_vm._v(_vm._s(_vm.$L("全部任务")))]
  7877. ),
  7878. _vm._v(" "),
  7879. _c(
  7880. "DropdownItem",
  7881. {
  7882. class: {
  7883. "dropdown-active": _vm.filtrTask == "persons"
  7884. },
  7885. attrs: { name: "persons" }
  7886. },
  7887. [_vm._v(_vm._s(_vm.$L("我负责的任务")))]
  7888. ),
  7889. _vm._v(" "),
  7890. _c(
  7891. "DropdownItem",
  7892. {
  7893. class: {
  7894. "dropdown-active": _vm.filtrTask == "follower"
  7895. },
  7896. attrs: { name: "follower" }
  7897. },
  7898. [_vm._v(_vm._s(_vm.$L("我关注的任务")))]
  7899. ),
  7900. _vm._v(" "),
  7901. _c(
  7902. "DropdownItem",
  7903. {
  7904. class: {
  7905. "dropdown-active": _vm.filtrTask == "create"
  7906. },
  7907. attrs: { name: "create" }
  7908. },
  7909. [_vm._v(_vm._s(_vm.$L("我创建的任务")))]
  7910. )
  7911. ],
  7912. 1
  7913. )
  7914. ],
  7915. 1
  7916. )
  7917. ],
  7918. 1
  7919. ),
  7920. _vm._v(" "),
  7921. _c(
  7922. "span",
  7923. { staticClass: "m768-show-i" },
  7924. [
  7925. _c(
  7926. "Dropdown",
  7927. {
  7928. attrs: { trigger: "click", transfer: "" },
  7929. on: { "on-click": _vm.openProjectDrawer }
  7930. },
  7931. [
  7932. _c("Icon", { attrs: { type: "md-menu", size: "18" } }),
  7933. _vm._v(" "),
  7934. _c(
  7935. "DropdownMenu",
  7936. { attrs: { slot: "list" }, slot: "list" },
  7937. [
  7938. _c("DropdownItem", { attrs: { name: "lists" } }, [
  7939. _vm._v(_vm._s(_vm.$L("列表")))
  7940. ]),
  7941. _vm._v(" "),
  7942. _c(
  7943. "DropdownItem",
  7944. { attrs: { name: "projectGanttShow" } },
  7945. [_vm._v(_vm._s(_vm.$L("甘特图")))]
  7946. ),
  7947. _vm._v(" "),
  7948. _c("DropdownItem", { attrs: { name: "files" } }, [
  7949. _vm._v(_vm._s(_vm.$L("文件")))
  7950. ]),
  7951. _vm._v(" "),
  7952. _c("DropdownItem", { attrs: { name: "logs" } }, [
  7953. _vm._v(_vm._s(_vm.$L("动态")))
  7954. ]),
  7955. _vm._v(" "),
  7956. _c(
  7957. "DropdownItem",
  7958. { attrs: { name: "openProjectSettingDrawer" } },
  7959. [_vm._v(_vm._s(_vm.$L("设置")))]
  7960. )
  7961. ],
  7962. 1
  7963. )
  7964. ],
  7965. 1
  7966. )
  7967. ],
  7968. 1
  7969. ),
  7970. _vm._v(" "),
  7971. _c("span", { staticClass: "m768-hide-i" }, [
  7972. _c(
  7973. "span",
  7974. {
  7975. staticClass: "ft hover",
  7976. on: {
  7977. click: function($event) {
  7978. return _vm.openProjectDrawer("lists")
  7979. }
  7980. }
  7981. },
  7982. [
  7983. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  7984. _vm._v(" " + _vm._s(_vm.$L("列表")))
  7985. ]
  7986. ),
  7987. _vm._v(" "),
  7988. _c(
  7989. "span",
  7990. {
  7991. staticClass: "ft hover",
  7992. class: { active: _vm.projectGanttShow },
  7993. on: {
  7994. click: function($event) {
  7995. _vm.projectGanttShow = !_vm.projectGanttShow
  7996. }
  7997. }
  7998. },
  7999. [
  8000. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  8001. _vm._v(" " + _vm._s(_vm.$L("甘特图")))
  8002. ]
  8003. ),
  8004. _vm._v(" "),
  8005. _c(
  8006. "span",
  8007. {
  8008. staticClass: "ft hover",
  8009. on: {
  8010. click: function($event) {
  8011. return _vm.openProjectDrawer("files")
  8012. }
  8013. }
  8014. },
  8015. [
  8016. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  8017. _vm._v(" " + _vm._s(_vm.$L("文件")))
  8018. ]
  8019. ),
  8020. _vm._v(" "),
  8021. _c(
  8022. "span",
  8023. {
  8024. staticClass: "ft hover",
  8025. on: {
  8026. click: function($event) {
  8027. return _vm.openProjectDrawer("logs")
  8028. }
  8029. }
  8030. },
  8031. [
  8032. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  8033. _vm._v(" " + _vm._s(_vm.$L("动态")))
  8034. ]
  8035. ),
  8036. _vm._v(" "),
  8037. _c(
  8038. "span",
  8039. {
  8040. staticClass: "ft hover",
  8041. on: {
  8042. click: function($event) {
  8043. return _vm.openProjectSettingDrawer("setting")
  8044. }
  8045. }
  8046. },
  8047. [
  8048. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  8049. _vm._v(" " + _vm._s(_vm.$L("设置")))
  8050. ]
  8051. )
  8052. ])
  8053. ])
  8054. ])
  8055. ]),
  8056. _vm._v(" "),
  8057. _c(
  8058. "w-content",
  8059. [
  8060. _c(
  8061. "draggable",
  8062. {
  8063. staticClass: "label-box",
  8064. style: {
  8065. visibility: _vm.projectGanttShow ? "hidden" : "visible"
  8066. },
  8067. attrs: {
  8068. draggable: ".label-draggable",
  8069. animation: 150,
  8070. disabled: _vm.projectSortDisabled || _vm.windowMax768
  8071. },
  8072. on: {
  8073. sort: function($event) {
  8074. return _vm.projectSortUpdate(true)
  8075. }
  8076. },
  8077. model: {
  8078. value: _vm.projectLabel,
  8079. callback: function($$v) {
  8080. _vm.projectLabel = $$v
  8081. },
  8082. expression: "projectLabel"
  8083. }
  8084. },
  8085. [
  8086. _vm._l(_vm.projectLabel, function(label) {
  8087. return _vm.projectLabel.length > 0
  8088. ? _c(
  8089. "div",
  8090. {
  8091. key: label.id,
  8092. staticClass: "label-item label-draggable",
  8093. class: {
  8094. "label-scroll":
  8095. label.hasScroll === true && label.endScroll !== true
  8096. },
  8097. on: {
  8098. mouseenter: function($event) {
  8099. return _vm.projectMouse(label)
  8100. }
  8101. }
  8102. },
  8103. [
  8104. _c(
  8105. "div",
  8106. { staticClass: "label-body" },
  8107. [
  8108. _c(
  8109. "div",
  8110. { staticClass: "title-box" },
  8111. [
  8112. label.loadIng === true
  8113. ? _c(
  8114. "div",
  8115. { staticClass: "title-loading" },
  8116. [_c("w-loading")],
  8117. 1
  8118. )
  8119. : _vm._e(),
  8120. _vm._v(" "),
  8121. _c("h2", [_vm._v(_vm._s(label.title))]),
  8122. _vm._v(" "),
  8123. _c(
  8124. "Dropdown",
  8125. {
  8126. attrs: { trigger: "click", transfer: "" },
  8127. on: {
  8128. "on-click": function($event) {
  8129. return _vm.handleLabel($event, label)
  8130. }
  8131. }
  8132. },
  8133. [
  8134. _c("Icon", { attrs: { type: "ios-more" } }),
  8135. _vm._v(" "),
  8136. _c(
  8137. "DropdownMenu",
  8138. { attrs: { slot: "list" }, slot: "list" },
  8139. [
  8140. _c(
  8141. "Dropdown-item",
  8142. { attrs: { name: "refresh" } },
  8143. [_vm._v(_vm._s(_vm.$L("刷新列表")))]
  8144. ),
  8145. _vm._v(" "),
  8146. _c(
  8147. "Dropdown-item",
  8148. { attrs: { name: "rename" } },
  8149. [_vm._v(_vm._s(_vm.$L("重命名")))]
  8150. ),
  8151. _vm._v(" "),
  8152. _c(
  8153. "Dropdown-item",
  8154. { attrs: { name: "delete" } },
  8155. [_vm._v(_vm._s(_vm.$L("删除")))]
  8156. )
  8157. ],
  8158. 1
  8159. )
  8160. ],
  8161. 1
  8162. )
  8163. ],
  8164. 1
  8165. ),
  8166. _vm._v(" "),
  8167. _c(
  8168. "ScrollerY",
  8169. {
  8170. ref: "box_" + label.id,
  8171. refInFor: true,
  8172. staticClass: "task-box",
  8173. on: {
  8174. "on-scroll": function($event) {
  8175. return _vm.projectBoxScroll($event, label)
  8176. }
  8177. }
  8178. },
  8179. [
  8180. _c(
  8181. "draggable",
  8182. {
  8183. staticClass: "task-main",
  8184. class: [
  8185. _vm.filtrTask
  8186. ? "filtr-" + _vm.filtrTask
  8187. : ""
  8188. ],
  8189. attrs: {
  8190. group: "task",
  8191. draggable: ".task-draggable",
  8192. animation: 150,
  8193. disabled:
  8194. _vm.projectSortDisabled ||
  8195. _vm.windowMax768
  8196. },
  8197. on: {
  8198. sort: function($event) {
  8199. return _vm.projectSortUpdate(false)
  8200. },
  8201. remove: function($event) {
  8202. return _vm.projectSortUpdate(false)
  8203. }
  8204. },
  8205. model: {
  8206. value: label.taskLists,
  8207. callback: function($$v) {
  8208. _vm.$set(label, "taskLists", $$v)
  8209. },
  8210. expression: "label.taskLists"
  8211. }
  8212. },
  8213. [
  8214. _vm._l(label.taskLists, function(task) {
  8215. return _c(
  8216. "div",
  8217. {
  8218. key: task.id,
  8219. staticClass:
  8220. "task-item task-draggable",
  8221. class: {
  8222. "persons-item": _vm.isPersonsTask(
  8223. task
  8224. ),
  8225. "follower-item": _vm.isFollowerTask(
  8226. task
  8227. ),
  8228. "create-item": _vm.isCreateTask(
  8229. task
  8230. )
  8231. }
  8232. },
  8233. [
  8234. _c(
  8235. "div",
  8236. {
  8237. staticClass: "task-shadow",
  8238. class: [
  8239. "p" + task.level,
  8240. task.complete ? "complete" : "",
  8241. task.overdue ? "overdue" : "",
  8242. task.isNewtask === true
  8243. ? "newtask"
  8244. : ""
  8245. ],
  8246. on: {
  8247. click: function($event) {
  8248. return _vm.openTaskModal(task)
  8249. }
  8250. }
  8251. },
  8252. [
  8253. _c(
  8254. "div",
  8255. {
  8256. staticClass:
  8257. "subtask-progress"
  8258. },
  8259. [
  8260. _c("em", {
  8261. style: {
  8262. width:
  8263. _vm.subtaskProgress(
  8264. task
  8265. ) + "%"
  8266. }
  8267. })
  8268. ]
  8269. ),
  8270. _vm._v(" "),
  8271. _c(
  8272. "div",
  8273. { staticClass: "task-title" },
  8274. [
  8275. _vm._v(_vm._s(task.title)),
  8276. task.desc
  8277. ? _c("Icon", {
  8278. attrs: {
  8279. type:
  8280. "ios-list-box-outline"
  8281. }
  8282. })
  8283. : _vm._e()
  8284. ],
  8285. 1
  8286. ),
  8287. _vm._v(" "),
  8288. _c(
  8289. "div",
  8290. { staticClass: "task-more" },
  8291. [
  8292. task.overdue
  8293. ? _c(
  8294. "div",
  8295. {
  8296. staticClass:
  8297. "task-status"
  8298. },
  8299. [
  8300. _vm._v(
  8301. _vm._s(
  8302. _vm.$L("已超期")
  8303. )
  8304. )
  8305. ]
  8306. )
  8307. : task.complete
  8308. ? _c(
  8309. "div",
  8310. {
  8311. staticClass:
  8312. "task-status"
  8313. },
  8314. [
  8315. _vm._v(
  8316. _vm._s(
  8317. _vm.$L("已完成")
  8318. )
  8319. )
  8320. ]
  8321. )
  8322. : _c(
  8323. "div",
  8324. {
  8325. staticClass:
  8326. "task-status"
  8327. },
  8328. [
  8329. _vm._v(
  8330. _vm._s(
  8331. _vm.$L("未完成")
  8332. )
  8333. )
  8334. ]
  8335. ),
  8336. _vm._v(" "),
  8337. _c(
  8338. "div",
  8339. {
  8340. staticClass:
  8341. "task-persons",
  8342. class: {
  8343. "persons-more":
  8344. task.persons.length >
  8345. 1
  8346. }
  8347. },
  8348. _vm._l(
  8349. task.persons,
  8350. function(person, iper) {
  8351. return _c(
  8352. "Tooltip",
  8353. {
  8354. key: iper,
  8355. staticClass:
  8356. "task-userimg",
  8357. attrs: {
  8358. content:
  8359. person.nickname ||
  8360. person.username,
  8361. transfer: ""
  8362. }
  8363. },
  8364. [
  8365. _c("UserImg", {
  8366. staticClass:
  8367. "avatar",
  8368. attrs: {
  8369. info: person
  8370. }
  8371. })
  8372. ],
  8373. 1
  8374. )
  8375. }
  8376. ),
  8377. 1
  8378. )
  8379. ]
  8380. )
  8381. ]
  8382. )
  8383. ]
  8384. )
  8385. }),
  8386. _vm._v(" "),
  8387. _c(
  8388. "div",
  8389. {
  8390. attrs: { slot: "footer" },
  8391. slot: "footer"
  8392. },
  8393. [
  8394. _c("project-add-task", {
  8395. ref: "add_" + label.id,
  8396. refInFor: true,
  8397. attrs: {
  8398. placeholder:
  8399. _vm.$L("添加任务至") +
  8400. '"' +
  8401. label.title +
  8402. '"',
  8403. projectid: label.projectid,
  8404. labelid: label.id
  8405. },
  8406. on: {
  8407. "on-add-success": function($event) {
  8408. return _vm.addTaskSuccess(
  8409. $event,
  8410. label
  8411. )
  8412. }
  8413. }
  8414. })
  8415. ],
  8416. 1
  8417. )
  8418. ],
  8419. 2
  8420. )
  8421. ],
  8422. 1
  8423. )
  8424. ],
  8425. 1
  8426. ),
  8427. _vm._v(" "),
  8428. _c(
  8429. "div",
  8430. {
  8431. staticClass: "label-bottom",
  8432. on: {
  8433. click: function($event) {
  8434. return _vm.projectFocus(label)
  8435. }
  8436. }
  8437. },
  8438. [
  8439. _c("Icon", {
  8440. staticClass: "label-bottom-icon",
  8441. attrs: { type: "ios-add" }
  8442. })
  8443. ],
  8444. 1
  8445. )
  8446. ]
  8447. )
  8448. : _vm._e()
  8449. }),
  8450. _vm._v(" "),
  8451. _vm.loadDetailed
  8452. ? _c(
  8453. "div",
  8454. {
  8455. staticClass: "label-item label-create",
  8456. attrs: { slot: "footer" },
  8457. on: { click: _vm.addLabel },
  8458. slot: "footer"
  8459. },
  8460. [
  8461. _c("div", { staticClass: "label-body" }, [
  8462. _c("div", { staticClass: "trigger-box ft hover" }, [
  8463. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  8464. _vm._v(_vm._s(_vm.$L("添加一个新列表")))
  8465. ])
  8466. ])
  8467. ]
  8468. )
  8469. : _vm._e()
  8470. ],
  8471. 2
  8472. ),
  8473. _vm._v(" "),
  8474. _vm.projectGanttShow
  8475. ? _c("project-gantt", {
  8476. attrs: { projectLabel: _vm.projectLabel },
  8477. on: {
  8478. "on-close": function($event) {
  8479. _vm.projectGanttShow = false
  8480. }
  8481. }
  8482. })
  8483. : _vm._e()
  8484. ],
  8485. 1
  8486. ),
  8487. _vm._v(" "),
  8488. _c(
  8489. "WDrawer",
  8490. {
  8491. attrs: { maxWidth: "1080" },
  8492. model: {
  8493. value: _vm.projectDrawerShow,
  8494. callback: function($$v) {
  8495. _vm.projectDrawerShow = $$v
  8496. },
  8497. expression: "projectDrawerShow"
  8498. }
  8499. },
  8500. [
  8501. _vm.projectDrawerShow
  8502. ? _c(
  8503. "Tabs",
  8504. {
  8505. model: {
  8506. value: _vm.projectDrawerTab,
  8507. callback: function($$v) {
  8508. _vm.projectDrawerTab = $$v
  8509. },
  8510. expression: "projectDrawerTab"
  8511. }
  8512. },
  8513. [
  8514. _c(
  8515. "TabPane",
  8516. { attrs: { label: _vm.$L("任务列表"), name: "lists" } },
  8517. [
  8518. _c("project-task-lists", {
  8519. attrs: {
  8520. canload:
  8521. _vm.projectDrawerShow &&
  8522. _vm.projectDrawerTab == "lists",
  8523. projectid: _vm.projectid,
  8524. labelLists: _vm.projectSimpleLabel
  8525. }
  8526. })
  8527. ],
  8528. 1
  8529. ),
  8530. _vm._v(" "),
  8531. _c(
  8532. "TabPane",
  8533. { attrs: { label: _vm.$L("文件列表"), name: "files" } },
  8534. [
  8535. _c("project-task-files", {
  8536. attrs: {
  8537. canload:
  8538. _vm.projectDrawerShow &&
  8539. _vm.projectDrawerTab == "files",
  8540. projectid: _vm.projectid
  8541. }
  8542. })
  8543. ],
  8544. 1
  8545. ),
  8546. _vm._v(" "),
  8547. _c(
  8548. "TabPane",
  8549. { attrs: { label: _vm.$L("项目动态"), name: "logs" } },
  8550. [
  8551. _c("project-task-logs", {
  8552. attrs: {
  8553. canload:
  8554. _vm.projectDrawerShow &&
  8555. _vm.projectDrawerTab == "logs",
  8556. projectid: _vm.projectid
  8557. }
  8558. })
  8559. ],
  8560. 1
  8561. )
  8562. ],
  8563. 1
  8564. )
  8565. : _vm._e()
  8566. ],
  8567. 1
  8568. ),
  8569. _vm._v(" "),
  8570. _c(
  8571. "WDrawer",
  8572. {
  8573. attrs: { maxWidth: "1000" },
  8574. model: {
  8575. value: _vm.projectSettingDrawerShow,
  8576. callback: function($$v) {
  8577. _vm.projectSettingDrawerShow = $$v
  8578. },
  8579. expression: "projectSettingDrawerShow"
  8580. }
  8581. },
  8582. [
  8583. _vm.projectSettingDrawerShow
  8584. ? _c(
  8585. "Tabs",
  8586. {
  8587. model: {
  8588. value: _vm.projectSettingDrawerTab,
  8589. callback: function($$v) {
  8590. _vm.projectSettingDrawerTab = $$v
  8591. },
  8592. expression: "projectSettingDrawerTab"
  8593. }
  8594. },
  8595. [
  8596. _c(
  8597. "TabPane",
  8598. { attrs: { label: _vm.$L("项目设置"), name: "setting" } },
  8599. [
  8600. _c("project-setting", {
  8601. attrs: {
  8602. canload:
  8603. _vm.projectSettingDrawerShow &&
  8604. _vm.projectSettingDrawerTab == "setting",
  8605. projectid: _vm.projectid
  8606. },
  8607. on: { "on-change": _vm.getDetail }
  8608. })
  8609. ],
  8610. 1
  8611. ),
  8612. _vm._v(" "),
  8613. _c(
  8614. "TabPane",
  8615. {
  8616. attrs: { label: _vm.$L("已归档任务"), name: "archived" }
  8617. },
  8618. [
  8619. _c("project-archived", {
  8620. attrs: {
  8621. canload:
  8622. _vm.projectSettingDrawerShow &&
  8623. _vm.projectSettingDrawerTab == "archived",
  8624. projectid: _vm.projectid
  8625. }
  8626. })
  8627. ],
  8628. 1
  8629. ),
  8630. _vm._v(" "),
  8631. _c(
  8632. "TabPane",
  8633. {
  8634. attrs: { label: _vm.$L("项目统计"), name: "statistics" }
  8635. },
  8636. [
  8637. _c("project-statistics", {
  8638. ref: "statistics",
  8639. attrs: {
  8640. canload:
  8641. _vm.projectSettingDrawerShow &&
  8642. _vm.projectSettingDrawerTab == "statistics",
  8643. projectid: _vm.projectid
  8644. }
  8645. })
  8646. ],
  8647. 1
  8648. ),
  8649. _vm._v(" "),
  8650. _c(
  8651. "TabPane",
  8652. { attrs: { label: _vm.$L("成员管理"), name: "member" } },
  8653. [
  8654. _c("project-users", {
  8655. attrs: {
  8656. canload:
  8657. _vm.projectSettingDrawerShow &&
  8658. _vm.projectSettingDrawerTab == "member",
  8659. projectid: _vm.projectid
  8660. }
  8661. })
  8662. ],
  8663. 1
  8664. )
  8665. ],
  8666. 1
  8667. )
  8668. : _vm._e()
  8669. ],
  8670. 1
  8671. )
  8672. ],
  8673. 1
  8674. )
  8675. }
  8676. var staticRenderFns = []
  8677. render._withStripped = true
  8678. module.exports = { render: render, staticRenderFns: staticRenderFns }
  8679. if (false) {
  8680. module.hot.accept()
  8681. if (module.hot.data) {
  8682. require("vue-hot-reload-api") .rerender("data-v-4bac3242", module.exports)
  8683. }
  8684. }
  8685. /***/ })
  8686. });