123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558 |
- webpackJsonp([19],{
- 291:
- (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(772)
- __webpack_require__(774)
- }
- var normalizeComponent = __webpack_require__(2)
- var __vue_script__ = __webpack_require__(776)
- var __vue_template__ = __webpack_require__(842)
- var __vue_template_functional__ = false
- var __vue_styles__ = injectStyle
- var __vue_scopeId__ = "data-v-4bac3242"
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/pages/project/panel.vue"
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-4bac3242", Component.options)
- } else {
- hotAPI.reload("data-v-4bac3242", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- }),
- 307:
- (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(308)
- }
- var normalizeComponent = __webpack_require__(2)
- var __vue_script__ = __webpack_require__(310)
- var __vue_template__ = __webpack_require__(311)
- var __vue_template_functional__ = false
- var __vue_styles__ = injectStyle
- var __vue_scopeId__ = "data-v-35be3d57"
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/WContent.vue"
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-35be3d57", Component.options)
- } else {
- hotAPI.reload("data-v-35be3d57", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- }),
- 308:
- (function(module, exports, __webpack_require__) {
- var content = __webpack_require__(309);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- var update = __webpack_require__(1)("5ee96958", content, false, {});
- if(false) {
-
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
-
- module.hot.dispose(function() { update(); });
- }
- }),
- 309:
- (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- 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", ""]);
- }),
- 310:
- (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- __webpack_exports__["default"] = ({
- name: 'WContent',
- data: function data() {
- return {
- bgid: -1
- };
- },
- mounted: function mounted() {
- this.bgid = $A.runNum(this.usrInfo.bgid);
- },
- watch: {
- usrInfo: {
- handler: function handler(info) {
- this.bgid = $A.runNum(info.bgid);
- },
- deep: true
- }
- },
- methods: {
- getBgUrl: function getBgUrl(id, thumb) {
- if (id < 0) {
- return 'none';
- }
- id = Math.max(1, parseInt(id));
- return 'url(' + window.location.origin + '/images/bg/' + (thumb ? 'thumb/' : '') + id + '.jpg' + ')';
- }
- }
- });
- }),
- 311:
- (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "w-content",
- style: "background-image:" + _vm.getBgUrl(_vm.bgid)
- },
- [_vm._t("default")],
- 2
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-35be3d57", module.exports)
- }
- }
- }),
- 325:
- (function(module, exports, __webpack_require__) {
- var baseGetTag = __webpack_require__(10),
- isObjectLike = __webpack_require__(8);
- var symbolTag = '[object Symbol]';
- function isSymbol(value) {
- return typeof value == 'symbol' ||
- (isObjectLike(value) && baseGetTag(value) == symbolTag);
- }
- module.exports = isSymbol;
- }),
- 326:
- (function(module, exports, __webpack_require__) {
- var isSymbol = __webpack_require__(325);
- var INFINITY = 1 / 0;
- function toKey(value) {
- if (typeof value == 'string' || isSymbol(value)) {
- return value;
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
- }
- module.exports = toKey;
- }),
- 344:
- (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(345)
- }
- var normalizeComponent = __webpack_require__(2)
- var __vue_script__ = __webpack_require__(347)
- var __vue_template__ = __webpack_require__(348)
- var __vue_template_functional__ = false
- var __vue_styles__ = injectStyle
- var __vue_scopeId__ = "data-v-1b3dd966"
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/project/archived.vue"
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-1b3dd966", Component.options)
- } else {
- hotAPI.reload("data-v-1b3dd966", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- }),
- 345:
- (function(module, exports, __webpack_require__) {
- var content = __webpack_require__(346);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- var update = __webpack_require__(1)("3653cc78", content, false, {});
- if(false) {
-
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
-
- module.hot.dispose(function() { update(); });
- }
- }),
- 346:
- (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- exports.push([module.i, "\n.project-archived .tableFill[data-v-1b3dd966] {\n margin: 12px 12px 20px;\n}\n", ""]);
- }),
- 347:
- (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
- var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
- var __WEBPACK_IMPORTED_MODULE_1__mixins_task__ = __webpack_require__(30);
- __webpack_exports__["default"] = ({
- name: 'ProjectArchived',
- components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
- props: {
- projectid: {
- default: 0
- },
- canload: {
- type: Boolean,
- default: true
- }
- },
- mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_task__["a" ]],
- data: function data() {
- return {
- loadYet: false,
- loadIng: 0,
- columns: [],
- lists: [],
- listPage: 1,
- listTotal: 0,
- noDataText: ""
- };
- },
- mounted: function mounted() {
- var _this = this;
- if (this.canload) {
- this.loadYet = true;
- this.getLists(true);
- }
- $A.setOnTaskInfoListener('components/project/archived', function (act, detail) {
- if (detail.projectid != _this.projectid) {
- return;
- }
-
- _this.lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.lists.splice(i, 1, detail);
- return true;
- }
- });
-
- switch (act) {
- case "delete":
- case "unarchived":
-
- _this.lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.lists.splice(i, 1);
- return true;
- }
- });
- break;
- case "archived":
-
- var has = false;
- _this.lists.some(function (task) {
- if (task.id == detail.id) {
- return has = true;
- }
- });
- if (!has) {
- _this.lists.unshift(detail);
- }
- break;
- }
- });
- },
- watch: {
- projectid: function projectid() {
- if (this.loadYet) {
- this.getLists(true);
- }
- },
- canload: function canload(val) {
- if (val && !this.loadYet) {
- this.loadYet = true;
- this.getLists(true);
- }
- }
- },
- methods: {
- initLanguage: function initLanguage() {
- var _this2 = this;
- this.noDataText = this.$L("数据加载中.....");
- this.columns = [{
- "title": this.$L("任务名称"),
- "key": 'title',
- "minWidth": 120,
- render: function render(h, params) {
- return _this2.renderTaskTitle(h, params);
- }
- }, {
- "title": this.$L("创建人"),
- "key": 'createuser',
- "minWidth": 80,
- render: function render(h, params) {
- return h('UserView', {
- props: {
- username: params.row.createuser
- }
- });
- }
- }, {
- "title": this.$L("负责人"),
- "key": 'username',
- "minWidth": 80,
- render: function render(h, params) {
- return h('UserView', {
- props: {
- username: params.row.username
- }
- });
- }
- }, {
- "title": this.$L("完成"),
- "minWidth": 70,
- "align": "center",
- render: function render(h, params) {
- return h('span', params.row.complete ? '√' : '-');
- }
- }, {
- "title": this.$L("归档时间"),
- "width": 160,
- render: function render(h, params) {
- return h('span', $A.formatDate("Y-m-d H:i:s", params.row.archiveddate));
- }
- }, {
- "title": this.$L("操作"),
- "key": 'action',
- "width": 100,
- "align": 'center',
- render: function render(h, params) {
- return h('Button', {
- props: {
- type: 'primary',
- size: 'small'
- },
- style: {
- fontSize: '12px'
- },
- on: {
- click: function click() {
- _this2.$Modal.confirm({
- title: _this2.$L('取消归档'),
- content: _this2.$L('你确定要取消归档吗?'),
- loading: true,
- onOk: function onOk() {
- $A.apiAjax({
- url: 'project/task/edit',
- method: 'post',
- data: {
- act: 'unarchived',
- taskid: params.row.id
- },
- error: function error() {
- _this2.$Modal.remove();
- alert(_this2.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- _this2.$Modal.remove();
- _this2.getLists();
- setTimeout(function () {
- if (res.ret === 1) {
- _this2.$Message.success(res.msg);
- $A.triggerTaskInfoListener('unarchived', res.data);
- $A.triggerTaskInfoChange(params.row.id);
- } else {
- _this2.$Modal.error({ title: _this2.$L('温馨提示'), content: res.msg });
- }
- }, 350);
- }
- });
- }
- });
- }
- }
- }, _this2.$L('取消归档'));
- }
- }];
- },
- setPage: function setPage(page) {
- this.listPage = page;
- this.getLists();
- },
- setPageSize: function setPageSize(size) {
- if (Math.max($A.runNum(this.listPageSize), 10) != size) {
- this.listPageSize = size;
- this.getLists();
- }
- },
- getLists: function getLists(resetLoad) {
- var _this3 = this;
- if (resetLoad === true) {
- this.listPage = 1;
- }
- if (this.projectid == 0) {
- this.lists = [];
- this.listTotal = 0;
- this.noDataText = this.$L("没有相关的数据");
- return;
- }
- this.loadIng++;
- this.noDataText = this.$L("数据加载中.....");
- $A.apiAjax({
- url: 'project/task/lists',
- data: {
- page: Math.max(this.listPage, 1),
- pagesize: Math.max($A.runNum(this.listPageSize), 10),
- projectid: this.projectid,
- archived: '已归档'
- },
- complete: function complete() {
- _this3.loadIng--;
- },
- error: function error() {
- _this3.noDataText = _this3.$L("数据加载失败!");
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this3.lists = res.data.lists;
- _this3.listTotal = res.data.total;
- _this3.noDataText = _this3.$L("没有相关的数据");
- } else {
- _this3.lists = [];
- _this3.listTotal = 0;
- _this3.noDataText = res.msg;
- }
- }
- });
- }
- }
- });
- }),
- 348:
- (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("drawer-tabs-container", [
- _c(
- "div",
- { staticClass: "project-archived" },
- [
- _c("Table", {
- ref: "tableRef",
- staticClass: "tableFill",
- attrs: {
- columns: _vm.columns,
- data: _vm.lists,
- loading: _vm.loadIng > 0,
- "no-data-text": _vm.noDataText,
- stripe: ""
- }
- }),
- _vm._v(" "),
- _c("Page", {
- staticClass: "pageBox",
- attrs: {
- total: _vm.listTotal,
- current: _vm.listPage,
- disabled: _vm.loadIng > 0,
- "page-size-opts": [10, 20, 30, 50, 100],
- placement: "top",
- "show-elevator": "",
- "show-sizer": "",
- "show-total": "",
- transfer: "",
- simple: _vm.windowMax768
- },
- on: {
- "on-change": _vm.setPage,
- "on-page-size-change": _vm.setPageSize
- }
- })
- ],
- 1
- )
- ])
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-1b3dd966", module.exports)
- }
- }
- }),
- 349:
- (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(350)
- }
- var normalizeComponent = __webpack_require__(2)
- var __vue_script__ = __webpack_require__(352)
- var __vue_template__ = __webpack_require__(353)
- var __vue_template_functional__ = false
- var __vue_styles__ = injectStyle
- var __vue_scopeId__ = "data-v-720a9bad"
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/project/users.vue"
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-720a9bad", Component.options)
- } else {
- hotAPI.reload("data-v-720a9bad", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- }),
- 350:
- (function(module, exports, __webpack_require__) {
- var content = __webpack_require__(351);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- var update = __webpack_require__(1)("6db19cd1", content, false, {});
- if(false) {
-
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
-
- module.hot.dispose(function() { update(); });
- }
- }),
- 351:
- (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- 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", ""]);
- }),
- 352:
- (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
- var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
- __webpack_exports__["default"] = ({
- name: 'ProjectUsers',
- components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
- props: {
- projectid: {
- default: 0
- },
- canload: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- loadYet: false,
- loadIng: 0,
- columns: [],
- lists: [],
- listPage: 1,
- listTotal: 0,
- noDataText: ""
- };
- },
- mounted: function mounted() {
- if (this.canload) {
- this.loadYet = true;
- this.getLists(true);
- }
- },
- watch: {
- projectid: function projectid() {
- if (this.loadYet) {
- this.getLists(true);
- }
- },
- canload: function canload(val) {
- if (val && !this.loadYet) {
- this.loadYet = true;
- this.getLists(true);
- }
- }
- },
- methods: {
- initLanguage: function initLanguage() {
- var _this = this;
- this.noDataText = this.$L("数据加载中.....");
- this.columns = [{
- "title": this.$L("头像"),
- "minWidth": 60,
- "maxWidth": 100,
- render: function render(h, params) {
- return h('UserImg', {
- props: {
- info: params.row
- },
- style: {
- width: "30px",
- height: "30px",
- fontSize: "16px",
- lineHeight: "30px",
- borderRadius: "15px",
- verticalAlign: "middle"
- }
- });
- }
- }, {
- "title": this.$L("用户名"),
- "key": 'username',
- "minWidth": 80,
- "ellipsis": true
- }, {
- "title": this.$L("昵称"),
- "minWidth": 80,
- "ellipsis": true,
- render: function render(h, params) {
- return h('span', params.row.nickname || '-');
- }
- }, {
- "title": this.$L("职位/职称"),
- "minWidth": 100,
- "ellipsis": true,
- render: function render(h, params) {
- return h('span', params.row.profession || '-');
- }
- }, {
- "title": this.$L("成员角色"),
- "minWidth": 100,
- render: function render(h, params) {
- return h('span', params.row.isowner ? _this.$L('项目负责人') : _this.$L('成员'));
- }
- }, {
- "title": this.$L("加入时间"),
- "width": 160,
- render: function render(h, params) {
- return h('span', $A.formatDate("Y-m-d H:i:s", params.row.indate));
- }
- }, {
- "title": this.$L("操作"),
- "key": 'action',
- "width": 80,
- "align": 'center',
- render: function render(h, params) {
- return h('Button', {
- props: {
- type: 'primary',
- size: 'small'
- },
- style: {
- fontSize: '12px'
- },
- on: {
- click: function click() {
- _this.$Modal.confirm({
- title: _this.$L('移出成员'),
- content: _this.$L('你确定要将此成员移出项目吗?'),
- loading: true,
- onOk: function onOk() {
- $A.apiAjax({
- url: 'project/users/join',
- data: {
- act: 'delete',
- projectid: params.row.projectid,
- username: params.row.username
- },
- error: function error() {
- _this.$Modal.remove();
- alert(_this.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- _this.$Modal.remove();
- _this.getLists();
- setTimeout(function () {
- if (res.ret === 1) {
- _this.$Message.success(res.msg);
- } else {
- _this.$Modal.error({ title: _this.$L('温馨提示'), content: res.msg });
- }
- }, 350);
- }
- });
- }
- });
- }
- }
- }, _this.$L('删除'));
- }
- }];
- },
- setPage: function setPage(page) {
- this.listPage = page;
- this.getLists();
- },
- setPageSize: function setPageSize(size) {
- if (Math.max($A.runNum(this.listPageSize), 10) != size) {
- this.listPageSize = size;
- this.getLists();
- }
- },
- getLists: function getLists(resetLoad) {
- var _this2 = this;
- if (resetLoad === true) {
- this.listPage = 1;
- }
- if (this.projectid == 0) {
- this.lists = [];
- this.listTotal = 0;
- this.noDataText = this.$L("没有相关的数据");
- return;
- }
- this.loadIng++;
- this.noDataText = this.$L("数据加载中.....");
- $A.apiAjax({
- url: 'project/users/lists',
- data: {
- page: Math.max(this.listPage, 1),
- pagesize: Math.max($A.runNum(this.listPageSize), 10),
- projectid: this.projectid
- },
- complete: function complete() {
- _this2.loadIng--;
- },
- error: function error() {
- _this2.noDataText = _this2.$L("数据加载失败!");
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this2.lists = res.data.lists;
- _this2.listTotal = res.data.total;
- _this2.noDataText = _this2.$L("没有相关的数据");
- } else {
- _this2.lists = [];
- _this2.listTotal = 0;
- _this2.noDataText = res.msg;
- }
- }
- });
- },
- addUser: function addUser() {
- var _this3 = this;
- this.userValue = "";
- this.$Modal.confirm({
- render: function render(h) {
- return h('div', [h('div', {
- style: {
- fontSize: '16px',
- fontWeight: '500',
- marginBottom: '20px'
- }
- }, _this3.$L('添加成员')), h('UserInput', {
- props: {
- value: _this3.userValue,
- multiple: true,
- noprojectid: _this3.projectid,
- placeholder: _this3.$L('请输入昵称/用户名搜索')
- },
- on: {
- input: function input(val) {
- _this3.userValue = val;
- }
- }
- })]);
- },
- loading: true,
- onOk: function onOk() {
- if (_this3.userValue) {
- var username = _this3.userValue;
- $A.apiAjax({
- url: 'project/users/join',
- data: {
- act: 'join',
- projectid: _this3.projectid,
- username: username
- },
- error: function error() {
- _this3.$Modal.remove();
- alert(_this3.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- _this3.$Modal.remove();
- _this3.getLists();
- setTimeout(function () {
- if (res.ret === 1) {
- _this3.$Message.success(res.msg);
- } else {
- _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
- }
- }, 350);
- }
- });
- } else {
- _this3.$Modal.remove();
- }
- }
- });
- }
- }
- });
- }),
- 353:
- (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("drawer-tabs-container", [
- _c(
- "div",
- { staticClass: "project-users" },
- [
- _c(
- "Button",
- {
- attrs: {
- loading: _vm.loadIng > 0,
- type: "primary",
- icon: "md-add"
- },
- on: { click: _vm.addUser }
- },
- [_vm._v(_vm._s(_vm.$L("添加成员")))]
- ),
- _vm._v(" "),
- _c("Table", {
- ref: "tableRef",
- staticClass: "tableFill",
- attrs: {
- columns: _vm.columns,
- data: _vm.lists,
- loading: _vm.loadIng > 0,
- "no-data-text": _vm.noDataText,
- stripe: ""
- }
- }),
- _vm._v(" "),
- _c("Page", {
- staticClass: "pageBox",
- attrs: {
- total: _vm.listTotal,
- current: _vm.listPage,
- disabled: _vm.loadIng > 0,
- "page-size-opts": [10, 20, 30, 50, 100],
- placement: "top",
- "show-elevator": "",
- "show-sizer": "",
- "show-total": "",
- transfer: "",
- simple: _vm.windowMax768
- },
- on: {
- "on-change": _vm.setPage,
- "on-page-size-change": _vm.setPageSize
- }
- })
- ],
- 1
- )
- ])
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-720a9bad", module.exports)
- }
- }
- }),
- 354:
- (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(355)
- }
- var normalizeComponent = __webpack_require__(2)
- var __vue_script__ = __webpack_require__(357)
- var __vue_template__ = __webpack_require__(358)
- var __vue_template_functional__ = false
- var __vue_styles__ = injectStyle
- var __vue_scopeId__ = "data-v-4466db4e"
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/project/statistics.vue"
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-4466db4e", Component.options)
- } else {
- hotAPI.reload("data-v-4466db4e", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- }),
- 355:
- (function(module, exports, __webpack_require__) {
- var content = __webpack_require__(356);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- var update = __webpack_require__(1)("ffb4ffa8", content, false, {});
- if(false) {
-
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
-
- module.hot.dispose(function() { update(); });
- }
- }),
- 356:
- (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- 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", ""]);
- }),
- 357:
- (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
- var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
- var __WEBPACK_IMPORTED_MODULE_1__mixins_task__ = __webpack_require__(30);
- __webpack_exports__["default"] = ({
- name: 'ProjectStatistics',
- components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
- props: {
- projectid: {
- default: 0
- },
- canload: {
- type: Boolean,
- default: true
- }
- },
- mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_task__["a" ]],
- data: function data() {
- return {
- loadYet: false,
- loadIng: 0,
- columns: [],
- taskType: '未完成',
- lists: [],
- listPage: 1,
- listTotal: 0,
- noDataText: "",
- statistics_unfinished: 0,
- statistics_overdue: 0,
- statistics_complete: 0
- };
- },
- mounted: function mounted() {
- var _this = this;
- if (this.canload) {
- this.loadYet = true;
- this.getLists(true);
- }
- $A.setOnTaskInfoListener('components/project/statistics', function (act, detail) {
- if (detail.projectid != _this.projectid) {
- return;
- }
-
- _this.lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.lists.splice(i, 1, detail);
- return true;
- }
- });
-
- switch (act) {
- case "delete":
- case "archived":
-
- _this.lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.lists.splice(i, 1);
- if (task.complete) {
- _this.statistics_complete--;
- } else {
- _this.statistics_unfinished++;
- }
- return true;
- }
- });
- break;
- case "unarchived":
-
- var has = false;
- _this.lists.some(function (task) {
- if (task.id == detail.id) {
- if (task.complete) {
- _this.statistics_complete++;
- } else {
- _this.statistics_unfinished--;
- }
- return has = true;
- }
- });
- if (!has) {
- _this.lists.unshift(detail);
- }
- break;
- case "complete":
-
- _this.statistics_complete++;
- _this.statistics_unfinished--;
- break;
- case "unfinished":
-
- _this.statistics_complete--;
- _this.statistics_unfinished++;
- break;
- }
- });
- },
- watch: {
- projectid: function projectid() {
- if (this.loadYet) {
- this.getLists(true);
- }
- },
- canload: function canload(val) {
- if (val && !this.loadYet) {
- this.loadYet = true;
- this.getLists(true);
- }
- },
- taskType: function taskType() {
- if (this.loadYet) {
- this.getLists(true);
- }
- }
- },
- methods: {
- initLanguage: function initLanguage() {
- var _this2 = this;
- this.noDataText = this.$L("数据加载中.....");
- this.columns = [{
- "title": this.$L("任务名称"),
- "key": 'title',
- "minWidth": 120,
- render: function render(h, params) {
- return _this2.renderTaskTitle(h, params);
- }
- }, {
- "title": this.$L("创建人"),
- "key": 'createuser',
- "minWidth": 80,
- render: function render(h, params) {
- return h('UserView', {
- props: {
- username: params.row.createuser
- }
- });
- }
- }, {
- "title": this.$L("负责人"),
- "key": 'username',
- "minWidth": 80,
- render: function render(h, params) {
- return h('UserView', {
- props: {
- username: params.row.username
- }
- });
- }
- }, {
- "title": this.$L("完成"),
- "minWidth": 70,
- "align": "center",
- render: function render(h, params) {
- return h('span', params.row.complete ? '√' : '-');
- }
- }, {
- "title": this.$L("创建时间"),
- "width": 160,
- render: function render(h, params) {
- return h('span', $A.formatDate("Y-m-d H:i:s", params.row.indate));
- }
- }];
- },
- setTaskType: function setTaskType(type) {
- this.taskType = type;
- },
- setPage: function setPage(page) {
- this.listPage = page;
- this.getLists();
- },
- setPageSize: function setPageSize(size) {
- if (Math.max($A.runNum(this.listPageSize), 10) != size) {
- this.listPageSize = size;
- this.getLists();
- }
- },
- getLists: function getLists(resetLoad) {
- var _this3 = this;
- if (resetLoad === true) {
- this.listPage = 1;
- }
- if (this.projectid == 0) {
- this.lists = [];
- this.listTotal = 0;
- this.noDataText = this.$L("没有相关的数据");
- return;
- }
- this.loadIng++;
- var tempType = this.taskType;
- this.noDataText = this.$L("数据加载中.....");
- $A.apiAjax({
- url: 'project/task/lists',
- data: {
- page: Math.max(this.listPage, 1),
- pagesize: Math.max($A.runNum(this.listPageSize), 10),
- projectid: this.projectid,
- type: this.taskType,
- statistics: 1
- },
- complete: function complete() {
- _this3.loadIng--;
- },
- error: function error() {
- _this3.noDataText = _this3.$L("数据加载失败!");
- },
- success: function success(res) {
- if (tempType != _this3.taskType) {
- return;
- }
- if (res.ret === 1) {
- _this3.lists = res.data.lists;
- _this3.listTotal = res.data.total;
- _this3.noDataText = _this3.$L("没有相关的数据");
- } else {
- _this3.lists = [];
- _this3.listTotal = 0;
- _this3.noDataText = res.msg;
- }
- _this3.statistics_unfinished = res.data.statistics_unfinished || 0;
- _this3.statistics_overdue = res.data.statistics_overdue || 0;
- _this3.statistics_complete = res.data.statistics_complete || 0;
- }
- });
- }
- }
- });
- }),
- 358:
- (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("drawer-tabs-container", [
- _c(
- "div",
- { staticClass: "project-statistics" },
- [
- _c("ul", { staticClass: "state-overview" }, [
- _c(
- "li",
- {
- class: [_vm.taskType === "未完成" ? "active" : ""],
- on: {
- click: function($event) {
- _vm.taskType = "未完成"
- }
- }
- },
- [
- _c("div", { staticClass: "yellow" }, [
- _c("h1", { staticClass: "count" }, [
- _vm._v(_vm._s(_vm.statistics_unfinished))
- ]),
- _vm._v(" "),
- _c("p", [_vm._v(_vm._s(_vm.$L("未完成任务")))])
- ])
- ]
- ),
- _vm._v(" "),
- _c(
- "li",
- {
- class: [_vm.taskType === "已超期" ? "active" : ""],
- on: {
- click: function($event) {
- _vm.taskType = "已超期"
- }
- }
- },
- [
- _c("div", { staticClass: "red" }, [
- _c("h1", { staticClass: "count" }, [
- _vm._v(_vm._s(_vm.statistics_overdue))
- ]),
- _vm._v(" "),
- _c("p", [_vm._v(_vm._s(_vm.$L("超期任务")))])
- ])
- ]
- ),
- _vm._v(" "),
- _c(
- "li",
- {
- class: [_vm.taskType === "已完成" ? "active" : ""],
- on: {
- click: function($event) {
- _vm.taskType = "已完成"
- }
- }
- },
- [
- _c("div", { staticClass: "terques" }, [
- _c("h1", { staticClass: "count" }, [
- _vm._v(_vm._s(_vm.statistics_complete))
- ]),
- _vm._v(" "),
- _c("p", [_vm._v(_vm._s(_vm.$L("已完成任务")))])
- ])
- ]
- )
- ]),
- _vm._v(" "),
- _c("Table", {
- ref: "tableRef",
- staticClass: "tableFill",
- attrs: {
- columns: _vm.columns,
- data: _vm.lists,
- loading: _vm.loadIng > 0,
- "no-data-text": _vm.noDataText,
- stripe: ""
- }
- }),
- _vm._v(" "),
- _c("Page", {
- staticClass: "pageBox",
- attrs: {
- total: _vm.listTotal,
- current: _vm.listPage,
- disabled: _vm.loadIng > 0,
- "page-size-opts": [10, 20, 30, 50, 100],
- placement: "top",
- "show-elevator": "",
- "show-sizer": "",
- "show-total": "",
- transfer: "",
- simple: _vm.windowMax768
- },
- on: {
- "on-change": _vm.setPage,
- "on-page-size-change": _vm.setPageSize
- }
- })
- ],
- 1
- )
- ])
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-4466db4e", module.exports)
- }
- }
- }),
- 359:
- (function(module, exports, __webpack_require__) {
- var castPath = __webpack_require__(438),
- toKey = __webpack_require__(326);
- function baseGet(object, path) {
- path = castPath(path, object);
- var index = 0,
- length = path.length;
- while (object != null && index < length) {
- object = object[toKey(path[index++])];
- }
- return (index && index == length) ? object : undefined;
- }
- module.exports = baseGet;
- }),
- 360:
- (function(module, exports, __webpack_require__) {
- var isArray = __webpack_require__(16),
- isSymbol = __webpack_require__(325);
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- reIsPlainProp = /^\w*$/;
- function isKey(value, object) {
- if (isArray(value)) {
- return false;
- }
- var type = typeof value;
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
- value == null || isSymbol(value)) {
- return true;
- }
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
- (object != null && value in Object(object));
- }
- module.exports = isKey;
- }),
- 437:
- (function(module, exports) {
- function arrayMap(array, iteratee) {
- var index = -1,
- length = array == null ? 0 : array.length,
- result = Array(length);
- while (++index < length) {
- result[index] = iteratee(array[index], index, array);
- }
- return result;
- }
- module.exports = arrayMap;
- }),
- 438:
- (function(module, exports, __webpack_require__) {
- var isArray = __webpack_require__(16),
- isKey = __webpack_require__(360),
- stringToPath = __webpack_require__(806),
- toString = __webpack_require__(809);
- function castPath(value, object) {
- if (isArray(value)) {
- return value;
- }
- return isKey(value, object) ? [value] : stringToPath(toString(value));
- }
- module.exports = castPath;
- }),
- 439:
- (function(module, exports, __webpack_require__) {
- var baseIsEqualDeep = __webpack_require__(814),
- isObjectLike = __webpack_require__(8);
- function baseIsEqual(value, other, bitmask, customizer, stack) {
- if (value === other) {
- return true;
- }
- if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
- return value !== value && other !== other;
- }
- return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
- }
- module.exports = baseIsEqual;
- }),
- 440:
- (function(module, exports, __webpack_require__) {
- var SetCache = __webpack_require__(815),
- arraySome = __webpack_require__(818),
- cacheHas = __webpack_require__(819);
- var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
- arrLength = array.length,
- othLength = other.length;
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
- return false;
- }
-
- var arrStacked = stack.get(array);
- var othStacked = stack.get(other);
- if (arrStacked && othStacked) {
- return arrStacked == other && othStacked == array;
- }
- var index = -1,
- result = true,
- seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
- stack.set(array, other);
- stack.set(other, array);
-
- while (++index < arrLength) {
- var arrValue = array[index],
- othValue = other[index];
- if (customizer) {
- var compared = isPartial
- ? customizer(othValue, arrValue, index, other, array, stack)
- : customizer(arrValue, othValue, index, array, other, stack);
- }
- if (compared !== undefined) {
- if (compared) {
- continue;
- }
- result = false;
- break;
- }
-
- if (seen) {
- if (!arraySome(other, function(othValue, othIndex) {
- if (!cacheHas(seen, othIndex) &&
- (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
- return seen.push(othIndex);
- }
- })) {
- result = false;
- break;
- }
- } else if (!(
- arrValue === othValue ||
- equalFunc(arrValue, othValue, bitmask, customizer, stack)
- )) {
- result = false;
- break;
- }
- }
- stack['delete'](array);
- stack['delete'](other);
- return result;
- }
- module.exports = equalArrays;
- }),
- 441:
- (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(9);
- function isStrictComparable(value) {
- return value === value && !isObject(value);
- }
- module.exports = isStrictComparable;
- }),
- 442:
- (function(module, exports) {
- function matchesStrictComparable(key, srcValue) {
- return function(object) {
- if (object == null) {
- return false;
- }
- return object[key] === srcValue &&
- (srcValue !== undefined || (key in Object(object)));
- };
- }
- module.exports = matchesStrictComparable;
- }),
- 443:
- (function(module, exports) {
- function identity(value) {
- return value;
- }
- module.exports = identity;
- }),
- 772:
- (function(module, exports, __webpack_require__) {
- var content = __webpack_require__(773);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- var update = __webpack_require__(1)("0f52eb25", content, false, {});
- if(false) {
-
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
-
- module.hot.dispose(function() { update(); });
- }
- }),
- 773:
- (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- 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", ""]);
- }),
- 774:
- (function(module, exports, __webpack_require__) {
- var content = __webpack_require__(775);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- var update = __webpack_require__(1)("109952df", content, false, {});
- if(false) {
-
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
-
- module.hot.dispose(function() { update(); });
- }
- }),
- 775:
- (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- 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", ""]);
- }),
- 776:
- (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- var __WEBPACK_IMPORTED_MODULE_0_vuedraggable__ = __webpack_require__(51);
- var __WEBPACK_IMPORTED_MODULE_0_vuedraggable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vuedraggable__);
- var __WEBPACK_IMPORTED_MODULE_1__components_WContent__ = __webpack_require__(307);
- var __WEBPACK_IMPORTED_MODULE_1__components_WContent___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__components_WContent__);
- var __WEBPACK_IMPORTED_MODULE_2__components_project_task_add__ = __webpack_require__(777);
- var __WEBPACK_IMPORTED_MODULE_2__components_project_task_add___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__components_project_task_add__);
- var __WEBPACK_IMPORTED_MODULE_3__components_project_task_lists__ = __webpack_require__(784);
- var __WEBPACK_IMPORTED_MODULE_3__components_project_task_lists___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__components_project_task_lists__);
- var __WEBPACK_IMPORTED_MODULE_4__components_project_task_files__ = __webpack_require__(57);
- var __WEBPACK_IMPORTED_MODULE_4__components_project_task_files___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__components_project_task_files__);
- var __WEBPACK_IMPORTED_MODULE_5__components_project_task_logs__ = __webpack_require__(58);
- var __WEBPACK_IMPORTED_MODULE_5__components_project_task_logs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__components_project_task_logs__);
- var __WEBPACK_IMPORTED_MODULE_6__components_project_archived__ = __webpack_require__(344);
- var __WEBPACK_IMPORTED_MODULE_6__components_project_archived___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__components_project_archived__);
- var __WEBPACK_IMPORTED_MODULE_7__components_project_users__ = __webpack_require__(349);
- var __WEBPACK_IMPORTED_MODULE_7__components_project_users___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__components_project_users__);
- var __WEBPACK_IMPORTED_MODULE_8__components_project_statistics__ = __webpack_require__(354);
- var __WEBPACK_IMPORTED_MODULE_8__components_project_statistics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8__components_project_statistics__);
- var __WEBPACK_IMPORTED_MODULE_9__components_iview_WDrawer__ = __webpack_require__(49);
- var __WEBPACK_IMPORTED_MODULE_9__components_iview_WDrawer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9__components_iview_WDrawer__);
- var __WEBPACK_IMPORTED_MODULE_10__components_project_gantt_index__ = __webpack_require__(789);
- var __WEBPACK_IMPORTED_MODULE_10__components_project_gantt_index___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10__components_project_gantt_index__);
- var __WEBPACK_IMPORTED_MODULE_11__components_project_setting__ = __webpack_require__(799);
- var __WEBPACK_IMPORTED_MODULE_11__components_project_setting___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11__components_project_setting__);
- var __WEBPACK_IMPORTED_MODULE_12__components_ScrollerY__ = __webpack_require__(56);
- var __WEBPACK_IMPORTED_MODULE_12__components_ScrollerY___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12__components_ScrollerY__);
- var __WEBPACK_IMPORTED_MODULE_13_lodash_orderBy__ = __webpack_require__(804);
- var __WEBPACK_IMPORTED_MODULE_13_lodash_orderBy___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_lodash_orderBy__);
- 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; };
- 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); } }
- __webpack_exports__["default"] = ({
- components: {
- ScrollerY: __WEBPACK_IMPORTED_MODULE_12__components_ScrollerY___default.a,
- ProjectSetting: __WEBPACK_IMPORTED_MODULE_11__components_project_setting___default.a,
- ProjectGantt: __WEBPACK_IMPORTED_MODULE_10__components_project_gantt_index___default.a,
- WDrawer: __WEBPACK_IMPORTED_MODULE_9__components_iview_WDrawer___default.a,
- ProjectStatistics: __WEBPACK_IMPORTED_MODULE_8__components_project_statistics___default.a,
- ProjectUsers: __WEBPACK_IMPORTED_MODULE_7__components_project_users___default.a,
- ProjectArchived: __WEBPACK_IMPORTED_MODULE_6__components_project_archived___default.a,
- ProjectTaskLogs: __WEBPACK_IMPORTED_MODULE_5__components_project_task_logs___default.a,
- 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 },
- data: function data() {
- return {
- loadIng: 0,
- loadDetailed: false,
- projectid: 0,
- projectDetail: {},
- projectLabel: [],
- projectSimpleLabel: [],
- projectSortData: '',
- projectSortDisabled: false,
- projectDrawerShow: false,
- projectDrawerTab: 'lists',
- projectSettingDrawerShow: false,
- projectSettingDrawerTab: 'setting',
- projectGanttShow: false,
- filtrTask: '',
- routeName: ''
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.routeName = this.$route.name;
- $A.setOnTaskInfoListener('pages/project-panel', function (act, detail) {
- if (detail.projectid != _this.projectid) {
- return;
- }
-
- switch (act) {
- case 'addlabel':
-
- var tempLists = _this.projectLabel.filter(function (res) {
- return res.id == detail.labelid;
- });
- if (tempLists.length == 0) {
- _this.projectLabel.push(Object.assign(detail, { id: detail.labelid }));
- _this.projectSortData = _this.getProjectSort();
- }
- return;
- case 'deletelabel':
-
- _this.projectLabel.some(function (label, index) {
- if (label.id == detail.labelid) {
- _this.projectLabel.splice(index, 1);
- _this.projectSortData = _this.getProjectSort();
- return true;
- }
- });
- return;
- case 'deleteproject':
-
- return;
- case "labelsort":
- case "tasksort":
-
- if (detail.__modifyUsername != _this.usrName) {
- if (_this.routeName == _this.$route.name) {
- _this.$Modal.confirm({
- title: _this.$L("更新提示"),
- content: _this.$L('团队成员(%)调整了%,<br/>更新时间:%。<br/><br/>点击【确定】加载最新数据。', detail.nickname, _this.$L(act == 'labelsort' ? '分类排序' : '任务排序'), $A.formatDate("Y-m-d H:i:s", detail.time)),
- onOk: function onOk() {
- _this.getDetail(true);
- }
- });
- } else {
- _this.getDetail(true);
- }
- }
- return;
- }
-
- _this.projectLabel.forEach(function (label) {
- label.taskLists.some(function (task, i) {
- if (task.id == detail.id) {
- label.taskLists.splice(i, 1, detail);
- return true;
- }
- });
- });
-
- switch (act) {
- case "delete":
- case "archived":
-
- _this.projectLabel.forEach(function (label) {
- label.taskLists.some(function (task, i) {
- if (task.id == detail.id) {
- label.taskLists.splice(i, 1);
- return true;
- }
- });
- });
- _this.projectSortData = _this.getProjectSort();
- break;
- case "create":
-
- _this.projectLabel.some(function (label) {
- if (label.id == detail.labelid) {
- var _tempLists = label.taskLists.filter(function (res) {
- return res.id == detail.id;
- });
- if (_tempLists.length == 0) {
- detail.isNewtask = true;
- if (detail.insertbottom) {
- label.taskLists.push(detail);
- } else {
- label.taskLists.unshift(detail);
- }
- _this.$nextTick(function () {
- _this.$set(detail, 'isNewtask', false);
- });
- }
- return true;
- }
- });
- break;
- case "unarchived":
- // 取消归档
- _this.projectLabel.forEach(function (label) {
- if (label.id == detail.labelid) {
- var index = label.taskLists.length;
- label.taskLists.some(function (task, i) {
- if (detail.inorder > task.inorder || detail.inorder == task.inorder && detail.id > task.id) {
- index = i;
- return true;
- }
- });
- label.taskLists.splice(index, 0, detail);
- }
- });
- _this.projectSortData = _this.getProjectSort();
- break;
- case "complete":
- case "unfinished":
-
- _this.taskNewSort();
- break;
- }
- }, true);
- },
- activated: function activated() {
- var _this2 = this;
- this.projectid = this.$route.params.projectid;
- if (_typeof(this.$route.params.other) === "object") {
- this.$set(this.projectDetail, 'title', $A.getObject(this.$route.params.other, 'title'));
- }
- if (this.$route.params.statistics === '已完成') {
- this.projectSettingDrawerTab = 'statistics';
- this.projectSettingDrawerShow = true;
- this.$nextTick(function () {
- _this2.$refs.statistics.setTaskType('已完成');
- });
- }
- },
- deactivated: function deactivated() {
- if ($A.getToken() === false) {
- this.projectid = 0;
- }
- this.projectGanttShow = false;
- this.projectDrawerShow = false;
- this.projectSettingDrawerShow = false;
- },
- watch: {
- projectid: function projectid(val) {
- if ($A.runNum(val) <= 0) {
- return;
- }
- this.projectDetail = {};
- this.projectLabel = [];
- this.projectSimpleLabel = [];
- this.getDetail();
- },
- '$route': function $route(To) {
- if (To.name == 'project-panel') {
- this.projectid = To.params.projectid;
- }
- }
- },
- methods: {
- getDetail: function getDetail(successTip) {
- var _this3 = this;
- this.loadIng++;
- $A.apiAjax({
- url: 'project/detail',
- data: {
- projectid: this.projectid
- },
- complete: function complete() {
- _this3.loadIng--;
- _this3.loadDetailed = true;
- },
- error: function error() {
- _this3.goBack({ name: 'project' });
- alert(_this3.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this3.projectLabel = res.data.label;
- _this3.taskNewSort();
- _this3.projectDetail = res.data.project;
- _this3.projectSimpleLabel = res.data.simpleLabel;
- _this3.projectSortData = _this3.getProjectSort();
- if (successTip === true) {
- _this3.$Message.success(_this3.$L('刷新成功!'));
- }
- } else {
- _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
- }
- }
- });
- },
- getProjectSort: function getProjectSort() {
- var sortData = "",
- taskData = "";
- this.projectLabel.forEach(function (label) {
- taskData = "";
- label.taskLists.forEach(function (task) {
- if (taskData) taskData += "-";
- taskData += task.id;
- });
- if (sortData) sortData += ";";
- sortData += label.id + ":" + taskData;
- });
- return sortData;
- },
- getLabelSort: function getLabelSort() {},
- handleLabel: function handleLabel(event, labelDetail) {
- switch (event) {
- case 'refresh':
- {
- this.refreshLabel(labelDetail);
- break;
- }
- case 'rename':
- {
- this.renameLabel(labelDetail);
- break;
- }
- case 'delete':
- {
- this.deleteLabel(labelDetail);
- break;
- }
- }
- },
- refreshLabel: function refreshLabel(item) {
- var _this4 = this;
- this.$set(item, 'loadIng', true);
- $A.apiAjax({
- url: 'project/task/lists',
- data: {
- projectid: this.projectid,
- labelid: item.id
- },
- complete: function complete() {
- _this4.$set(item, 'loadIng', false);
- },
- error: function error() {
- window.location.reload();
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this4.$set(item, 'taskLists', res.data.lists);
- } else {
- window.location.reload();
- }
- }
- });
- },
- renameLabel: function renameLabel(item) {
- var _this5 = this;
- this.renameValue = "";
- this.$Modal.confirm({
- render: function render(h) {
- return h('div', [h('div', {
- style: {
- fontSize: '16px',
- fontWeight: '500',
- marginBottom: '20px'
- }
- }, _this5.$L('重命名列表')), h('Input', {
- props: {
- value: _this5.renameValue,
- autofocus: true,
- placeholder: _this5.$L('请输入新的列表名称')
- },
- on: {
- input: function input(val) {
- _this5.renameValue = val;
- }
- }
- })]);
- },
- loading: true,
- onOk: function onOk() {
- if (_this5.renameValue) {
- _this5.$set(item, 'loadIng', true);
- var title = _this5.renameValue;
- $A.apiAjax({
- url: 'project/label/rename',
- data: {
- projectid: _this5.projectid,
- labelid: item.id,
- title: title
- },
- complete: function complete() {
- _this5.$set(item, 'loadIng', false);
- },
- error: function error() {
- _this5.$Modal.remove();
- alert(_this5.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- _this5.$Modal.remove();
- _this5.$set(item, 'title', title);
- setTimeout(function () {
- if (res.ret === 1) {
- _this5.$Message.success(res.msg);
- } else {
- _this5.$Modal.error({ title: _this5.$L('温馨提示'), content: res.msg });
- }
- }, 350);
- }
- });
- } else {
- _this5.$Modal.remove();
- }
- }
- });
- },
- deleteLabel: function deleteLabel(item) {
- var _this6 = this;
- var redTip = item.taskLists.length > 0 ? '<div style="color:red;font-weight:500">' + this.$L('注:将同时删除列表下所有任务') + '</div>' : '';
- this.$Modal.confirm({
- title: this.$L('删除列表'),
- content: '<div>' + this.$L('你确定要删除此列表吗?') + '</div>' + redTip,
- loading: true,
- onOk: function onOk() {
- $A.apiAjax({
- url: 'project/label/delete',
- data: {
- projectid: _this6.projectid,
- labelid: item.id
- },
- error: function error() {
- _this6.$Modal.remove();
- alert(_this6.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- _this6.$Modal.remove();
- _this6.projectLabel.some(function (label, index) {
- if (label.id == item.id) {
- _this6.projectLabel.splice(index, 1);
- _this6.projectSortData = _this6.getProjectSort();
- return true;
- }
- });
- setTimeout(function () {
- if (res.ret === 1) {
- _this6.$Message.success(res.msg);
- $A.triggerTaskInfoListener('deletelabel', { labelid: item.id, projectid: item.projectid });
- } else {
- _this6.$Modal.error({ title: _this6.$L('温馨提示'), content: res.msg });
- }
- }, 350);
- }
- });
- }
- });
- },
- addLabel: function addLabel() {
- var _this7 = this;
- this.labelValue = "";
- this.$Modal.confirm({
- render: function render(h) {
- return h('div', [h('div', {
- style: {
- fontSize: '16px',
- fontWeight: '500',
- marginBottom: '20px'
- }
- }, _this7.$L('添加列表')), h('Input', {
- props: {
- value: _this7.labelValue,
- autofocus: true,
- placeholder: _this7.$L('请输入列表名称')
- },
- on: {
- input: function input(val) {
- _this7.labelValue = val;
- }
- }
- })]);
- },
- loading: true,
- onOk: function onOk() {
- if (_this7.labelValue) {
- var data = {
- projectid: _this7.projectid,
- title: _this7.labelValue
- };
- $A.apiAjax({
- url: 'project/label/add',
- data: data,
- error: function error() {
- _this7.$Modal.remove();
- alert(_this7.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- _this7.$Modal.remove();
- _this7.projectLabel.push(res.data);
- _this7.projectSortData = _this7.getProjectSort();
- $A.triggerTaskInfoListener('addlabel', Object.assign(data, { labelid: res.data.id }));
- setTimeout(function () {
- if (res.ret === 1) {
- _this7.$Message.success(res.msg);
- } else {
- _this7.$Modal.error({ title: _this7.$L('温馨提示'), content: res.msg });
- }
- }, 350);
- }
- });
- } else {
- _this7.$Modal.remove();
- }
- }
- });
- },
- addTaskSuccess: function addTaskSuccess(taskDetail, label) {
- var _this8 = this;
- if (label.taskLists instanceof Array) {
- taskDetail.isNewtask = true;
- if (taskDetail.insertbottom) {
- label.taskLists.push(taskDetail);
- } else {
- label.taskLists.unshift(taskDetail);
- }
- this.$nextTick(function () {
- _this8.$set(taskDetail, 'isNewtask', false);
- });
- } else {
- this.refreshLabel(label);
- }
- },
- openProjectDrawer: function openProjectDrawer(tab) {
- if (tab == 'projectGanttShow') {
- this.projectGanttShow = !this.projectGanttShow;
- return;
- } else if (tab == 'openProjectSettingDrawer') {
- this.openProjectSettingDrawer('setting');
- return;
- }
- this.projectDrawerTab = tab;
- this.projectDrawerShow = true;
- },
- openProjectSettingDrawer: function openProjectSettingDrawer(tab) {
- this.projectSettingDrawerTab = tab;
- this.projectSettingDrawerShow = true;
- },
- projectSortUpdate: function projectSortUpdate(isLabel) {
- var _this9 = this;
- var oldSort = this.projectSortData;
- var newSort = this.getProjectSort();
- console.log(oldSort, newSort);
- if (oldSort == newSort) {
- return;
- }
- this.projectSortData = newSort;
- this.projectSortDisabled = true;
- this.loadIng++;
- $A.apiAjax({
- url: 'project/sort',
- data: {
- projectid: this.projectid,
- oldsort: oldSort,
- newsort: newSort,
- label: isLabel === true ? 1 : 0
- },
- complete: function complete() {
- _this9.projectSortDisabled = false;
- _this9.loadIng--;
- },
- error: function error() {
- _this9.getDetail();
- alert(_this9.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this9.projectLabel.forEach(function (label) {
- var length = label.taskLists.length;
- label.taskLists.forEach(function (task, index) {
- task.inorder = length - index;
- });
- });
- _this9.taskNewSort();
-
- _this9.$Message.success(res.msg);
- $A.triggerTaskInfoListener(isLabel ? 'labelsort' : 'tasksort', { projectid: _this9.projectid, nickname: $A.getNickName(), time: Math.round(new Date().getTime() / 1000) });
- } else {
- _this9.getDetail();
- _this9.$Modal.error({ title: _this9.$L('温馨提示'), content: res.msg });
- }
- }
- });
- },
- projectSort: function projectSort(e) {
- var _this10 = this;
- var newIndex = e.newIndex;
- var oldIndex = e.oldIndex;
- var id = e.item.dataset.id;
- this.projectSortDisabled = true;
- this.loadIng++;
- $A.apiAjax({
- url: 'project/labelsort',
- data: {
- projectid: this.projectid,
- newIndex: newIndex,
- oldIndex: oldIndex,
- id: id
- },
- complete: function complete() {
- _this10.projectSortDisabled = false;
- _this10.loadIng--;
- },
- error: function error() {
- _this10.getDetail();
- alert(_this10.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this10.$Message.success(res.msg);
- $A.triggerTaskInfoListener('labelsort', { projectid: _this10.projectid, nickname: $A.getNickName(), time: Math.round(new Date().getTime() / 1000) });
- } else {
- _this10.getDetail();
- _this10.$Modal.error({ title: _this10.$L('温馨提示'), content: res.msg });
- }
- }
- });
- },
- taskSort: function taskSort(e) {
- var _this11 = this;
- console.log(e);
- var oldSort = this.projectSortData;
- var newSort = this.getProjectSort();
- var newIndex = e.newIndex;
- var oldIndex = e.oldIndex;
- var fromid = e.from.dataset.id;
- var toid = e.to.dataset.id;
- var id = e.item.dataset.id;
- if (oldSort == newSort) {
- return;
- }
- this.projectSortData = newSort;
- this.projectSortDisabled = true;
- this.loadIng++;
- $A.apiAjax({
- url: 'project/tasksort',
- data: {
- projectid: this.projectid,
- newIndex: newIndex,
- oldIndex: oldIndex,
- fromid: fromid,
- toid: toid,
- id: id
- },
- complete: function complete() {
- _this11.projectSortDisabled = false;
- _this11.loadIng--;
- },
- error: function error() {
- _this11.getDetail();
- alert(_this11.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this11.projectLabel.forEach(function (label) {
- if (label.id == res.data.fromid) {
- label.taskLists.forEach(function (task, index) {
- task.inorder = res.data.from_res[task.id].inorder;
- });
- }
- if (label.id == res.data.toid) {
- label.taskLists.forEach(function (task, index) {
- task.inorder = res.data.to_res[task.id].inorder;
- });
- }
- });
- _this11.taskNewSort();
- _this11.$Message.success(res.msg);
- $A.triggerTaskInfoListener('tasksort', { projectid: _this11.projectid, nickname: $A.getNickName(), time: Math.round(new Date().getTime() / 1000) });
- } else {
- _this11.getDetail();
- _this11.$Modal.error({ title: _this11.$L('温馨提示'), content: res.msg });
- }
- }
- });
- },
- projectMouse: function projectMouse(label) {
- var hasScroll = false;
- var el = this.$refs['box_' + label.id];
- if (el && el.length > 0) {
- el = el[0].$el;
- hasScroll = el.scrollHeight > el.offsetHeight;
- }
- this.$set(label, 'hasScroll', hasScroll);
- },
- projectBoxScroll: function projectBoxScroll(e, label) {
- this.$set(label, 'endScroll', e.scrollE < 50);
- },
- projectFocus: function projectFocus(label) {
- var el = this.$refs['add_' + label.id];
- if (el && el.length > 0) {
- el[0].setFocus();
- }
- el = this.$refs['box_' + label.id];
- if (el && el.length > 0) {
- el[0].scrollToBottom(false);
- }
- },
- subtaskProgress: function subtaskProgress(task) {
- var subtask = task.subtask,
- complete = task.complete;
- if (!subtask || subtask.length === 0) {
- return complete ? 100 : 0;
- }
- var completeLists = subtask.filter(function (item) {
- return item.status == 'complete';
- });
- return parseFloat((completeLists.length / subtask.length * 100).toFixed(2));
- },
- openTaskModal: function openTaskModal(taskDetail) {
- this.taskDetail(taskDetail);
- },
- taskNewSort: function taskNewSort() {
- var _this12 = this;
- this.$nextTick(function () {
- _this12.projectLabel.forEach(function (item) {
- item.taskLists = _this12.taskReturnNewSort(item.taskLists);
- });
- });
- },
- taskReturnNewSort: function taskReturnNewSort(lists) {
- var tmpLists = __WEBPACK_IMPORTED_MODULE_13_lodash_orderBy___default()(lists, ['complete', 'inorder'], ['asc', 'desc']);
- var array = [];
- array.unshift.apply(array, _toConsumableArray(tmpLists.filter(function (_ref) {
- var complete = _ref.complete;
- return complete;
- })));
- array.unshift.apply(array, _toConsumableArray(tmpLists.filter(function (_ref2) {
- var complete = _ref2.complete;
- return !complete;
- })));
- return array;
- },
- isPersonsTask: function isPersonsTask(task) {
- var _this13 = this;
- return task.persons && !!task.persons.find(function (_ref3) {
- var username = _ref3.username;
- return username == _this13.usrInfo.username;
- });
- },
- isFollowerTask: function isFollowerTask(task) {
- return task.follower && task.follower.indexOf(this.usrInfo.username) !== -1;
- },
- isCreateTask: function isCreateTask(task) {
- return task.createuser == this.usrInfo.username;
- }
- }
- });
- }),
- 777:
- (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(778)
- __webpack_require__(780)
- }
- var normalizeComponent = __webpack_require__(2)
- var __vue_script__ = __webpack_require__(782)
- var __vue_template__ = __webpack_require__(783)
- var __vue_template_functional__ = false
- var __vue_styles__ = injectStyle
- var __vue_scopeId__ = "data-v-7dae0bfc"
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/project/task/add.vue"
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-7dae0bfc", Component.options)
- } else {
- hotAPI.reload("data-v-7dae0bfc", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- }),
- 778:
- (function(module, exports, __webpack_require__) {
- var content = __webpack_require__(779);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- var update = __webpack_require__(1)("1187e5ab", content, false, {});
- if(false) {
-
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
-
- module.hot.dispose(function() { update(); });
- }
- }),
- 779:
- (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- exports.push([module.i, "\n.enter-module-btn-drop-list .ivu-dropdown-item {\n padding: 5px 16px;\n font-size: 12px !important;\n}\n", ""]);
- }),
- 780:
- (function(module, exports, __webpack_require__) {
- var content = __webpack_require__(781);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- var update = __webpack_require__(1)("42fdf46b", content, false, {});
- if(false) {
-
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
-
- module.hot.dispose(function() { update(); });
- }
- }),
- 781:
- (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- 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", ""]);
- }),
- 782:
- (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- __webpack_exports__["default"] = ({
- name: 'ProjectAddTask',
- props: {
- placeholder: {
- type: String,
- default: ''
- },
- projectid: {
- type: Number,
- default: 0
- },
- labelid: {
- type: Number,
- default: 0
- }
- },
- data: function data() {
- return {
- loadIng: 0,
- addText: '',
- addLevel: 2,
- addUserInfo: {},
- addFocus: false,
- nameTipDisabled: false
- };
- },
- mounted: function mounted() {
- this.addUserInfo = $A.cloneData(this.usrInfo);
- },
- methods: {
- changeUser: function changeUser(user) {
- if (typeof user.username === "undefined") {
- this.addUserInfo = $A.cloneData(this.usrInfo);
- } else {
- this.addUserInfo = user;
- }
- },
- dropAdd: function dropAdd(name) {
- if (name == 'insertbottom') {
- this.clickAdd(true);
- }
- },
- clickAdd: function clickAdd() {
- var _this = this;
- var insertbottom = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
- var addText = this.addText.trim();
- if ($A.count(addText) == 0 || this.loadIng > 0) {
- return;
- }
- this.loadIng++;
- $A.apiAjax({
- url: 'project/task/add',
- data: {
- projectid: this.projectid,
- labelid: this.labelid,
- title: addText,
- level: this.addLevel,
- username: this.addUserInfo.username,
- insertbottom: insertbottom ? 1 : 0
- },
- complete: function complete() {
- _this.loadIng--;
- },
- error: function error() {
- alert(_this.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this.addText = '';
- _this.addFocus = false;
- _this.$Message.success(res.msg);
- res.data.insertbottom = insertbottom;
- _this.$emit('on-add-success', res.data);
- $A.triggerTaskInfoListener('create', res.data);
- $A.triggerTaskInfoChange(res.data.id);
- } else {
- _this.$Modal.error({ title: _this.$L('温馨提示'), content: res.msg });
- }
- }
- });
- },
- addKeydown: function addKeydown(e) {
- if (e.keyCode == 13) {
- if (e.shiftKey) {
- return;
- }
- this.clickAdd(false);
- e.preventDefault();
- }
- },
- setFocus: function setFocus() {
- this.$refs.addInput.focus();
- },
- onFocus: function onFocus(focus) {
- this.addFocus = focus;
- this.$emit('on-focus', focus);
- }
- }
- });
- }),
- 783:
- (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("div", { staticClass: "task-input-box" }, [
- !_vm.addText
- ? _c(
- "div",
- { staticClass: "input-placeholder" },
- [
- _c("Icon", { attrs: { type: "md-create", size: "18" } }),
- _vm._v(
- " " +
- _vm._s(
- _vm.addFocus
- ? "" + _vm.$L("输入任务,回车即可保存")
- : _vm.placeholder
- ) +
- "\n "
- )
- ],
- 1
- )
- : _vm._e(),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "input-enter" },
- [
- _c("Input", {
- ref: "addInput",
- staticClass: "input-enter-textarea",
- class: { bright: _vm.addFocus === true, highlight: !!_vm.addText },
- attrs: {
- type: "textarea",
- "element-id": "project-panel-enter-textarea",
- autosize: { minRows: 1, maxRows: 6 },
- maxlength: 255
- },
- on: {
- "on-focus": function($event) {
- return _vm.onFocus(true)
- },
- "on-blur": function($event) {
- return _vm.onFocus(false)
- },
- "on-keydown": _vm.addKeydown
- },
- model: {
- value: _vm.addText,
- callback: function($$v) {
- _vm.addText = $$v
- },
- expression: "addText"
- }
- }),
- _vm._v(" "),
- !!_vm.addText
- ? _c(
- "div",
- { staticClass: "input-enter-module" },
- [
- _c(
- "Tooltip",
- {
- attrs: {
- content: _vm.$L("重要且紧急"),
- placement: "bottom",
- transfer: ""
- }
- },
- [
- _c(
- "div",
- {
- staticClass: "enter-module-icon p1",
- on: {
- click: function($event) {
- _vm.addLevel = 1
- }
- }
- },
- [
- _vm.addLevel == "1"
- ? _c("Icon", { attrs: { type: "md-checkmark" } })
- : _vm._e()
- ],
- 1
- )
- ]
- ),
- _vm._v(" "),
- _c(
- "Tooltip",
- {
- attrs: {
- content: _vm.$L("重要不紧急"),
- placement: "bottom",
- transfer: ""
- }
- },
- [
- _c(
- "div",
- {
- staticClass: "enter-module-icon p2",
- on: {
- click: function($event) {
- _vm.addLevel = 2
- }
- }
- },
- [
- _vm.addLevel == "2"
- ? _c("Icon", { attrs: { type: "md-checkmark" } })
- : _vm._e()
- ],
- 1
- )
- ]
- ),
- _vm._v(" "),
- _c(
- "Tooltip",
- {
- attrs: {
- content: _vm.$L("紧急不重要"),
- placement: "bottom",
- transfer: ""
- }
- },
- [
- _c(
- "div",
- {
- staticClass: "enter-module-icon p3",
- on: {
- click: function($event) {
- _vm.addLevel = 3
- }
- }
- },
- [
- _vm.addLevel == "3"
- ? _c("Icon", { attrs: { type: "md-checkmark" } })
- : _vm._e()
- ],
- 1
- )
- ]
- ),
- _vm._v(" "),
- _c(
- "Tooltip",
- {
- attrs: {
- content: _vm.$L("不重要不紧急"),
- placement: "bottom",
- transfer: ""
- }
- },
- [
- _c(
- "div",
- {
- staticClass: "enter-module-icon p4",
- on: {
- click: function($event) {
- _vm.addLevel = 4
- }
- }
- },
- [
- _vm.addLevel == "4"
- ? _c("Icon", { attrs: { type: "md-checkmark" } })
- : _vm._e()
- ],
- 1
- )
- ]
- ),
- _vm._v(" "),
- _c("div", { staticClass: "enter-module-flex" }),
- _vm._v(" "),
- _c(
- "Poptip",
- {
- attrs: { placement: "bottom", transfer: "" },
- on: {
- "on-popper-show": function($event) {
- _vm.nameTipDisabled = true
- },
- "on-popper-hide": function($event) {
- _vm.nameTipDisabled = false
- }
- }
- },
- [
- _c(
- "Tooltip",
- {
- attrs: {
- placement: "bottom",
- disabled: _vm.nameTipDisabled
- }
- },
- [
- _c(
- "div",
- { staticClass: "enter-module-icon user" },
- [
- _c("UserImg", {
- staticClass: "avatar",
- attrs: { info: _vm.addUserInfo }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- { attrs: { slot: "content" }, slot: "content" },
- [
- _vm._v(
- "\n " +
- _vm._s(_vm.$L("负责人")) +
- ": "
- ),
- _c("UserView", {
- attrs: { username: _vm.addUserInfo.username }
- })
- ],
- 1
- )
- ]
- ),
- _vm._v(" "),
- _c("div", { attrs: { slot: "content" }, slot: "content" }, [
- _c(
- "div",
- { staticStyle: { width: "240px" } },
- [
- _vm._v(
- "\n " +
- _vm._s(_vm.$L("选择负责人")) +
- "\n "
- ),
- _c("UserInput", {
- staticStyle: { margin: "5px 0 3px" },
- attrs: {
- projectid: _vm.projectid,
- placeholder: _vm.$L("留空默认: 自己")
- },
- on: { change: _vm.changeUser },
- model: {
- value: _vm.addUserInfo.username,
- callback: function($$v) {
- _vm.$set(_vm.addUserInfo, "username", $$v)
- },
- expression: "addUserInfo.username"
- }
- })
- ],
- 1
- )
- ])
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "enter-module-btn" },
- [
- _c(
- "Button",
- {
- staticClass: "enter-module-btn-1",
- attrs: { type: "info", size: "small" },
- on: {
- click: function($event) {
- return _vm.clickAdd(false)
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("添加任务")))]
- ),
- _vm._v(" "),
- _c(
- "Dropdown",
- {
- staticClass: "enter-module-btn-drop",
- attrs: { placement: "bottom-end", transfer: "" },
- on: { "on-click": _vm.dropAdd }
- },
- [
- _c(
- "Button",
- {
- staticClass: "enter-module-btn-2",
- attrs: { type: "info", size: "small" }
- },
- [_c("Icon", { attrs: { type: "ios-arrow-down" } })],
- 1
- ),
- _vm._v(" "),
- _c(
- "DropdownMenu",
- {
- staticClass: "enter-module-btn-drop-list",
- attrs: { slot: "list" },
- slot: "list"
- },
- [
- _c(
- "DropdownItem",
- { attrs: { name: "insertbottom" } },
- [_vm._v(_vm._s(_vm.$L("添加至列表结尾")))]
- )
- ],
- 1
- )
- ],
- 1
- )
- ],
- 1
- )
- ],
- 1
- )
- : _vm._e()
- ],
- 1
- ),
- _vm._v(" "),
- _vm.loadIng > 0
- ? _c(
- "div",
- {
- staticClass: "load-box",
- on: {
- click: function($event) {
- $event.stopPropagation()
- }
- }
- },
- [_c("div", { staticClass: "load-box-main" }, [_c("w-loading")], 1)]
- )
- : _vm._e()
- ])
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-7dae0bfc", module.exports)
- }
- }
- }),
- 784:
- (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(785)
- }
- var normalizeComponent = __webpack_require__(2)
- var __vue_script__ = __webpack_require__(787)
- var __vue_template__ = __webpack_require__(788)
- var __vue_template_functional__ = false
- var __vue_styles__ = injectStyle
- var __vue_scopeId__ = "data-v-11cf9cb6"
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/project/task/lists.vue"
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-11cf9cb6", Component.options)
- } else {
- hotAPI.reload("data-v-11cf9cb6", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- }),
- 785:
- (function(module, exports, __webpack_require__) {
- var content = __webpack_require__(786);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- var update = __webpack_require__(1)("82725c66", content, false, {});
- if(false) {
-
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
-
- module.hot.dispose(function() { update(); });
- }
- }),
- 786:
- (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- 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", ""]);
- }),
- 787:
- (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
- var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
- var __WEBPACK_IMPORTED_MODULE_1__mixins_task__ = __webpack_require__(30);
- __webpack_exports__["default"] = ({
- name: 'ProjectTaskLists',
- components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
- props: {
- projectid: {
- default: 0
- },
- canload: {
- type: Boolean,
- default: true
- },
- labelLists: {
- type: Array
- }
- },
- mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_task__["a" ]],
- data: function data() {
- return {
- keys: {},
- sorts: { key: '', order: '' },
- loadYet: false,
- loadIng: 0,
- exportLoad: 0,
- columns: [],
- lists: [],
- listPage: 1,
- listTotal: 0,
- noDataText: ""
- };
- },
- mounted: function mounted() {
- var _this = this;
- if (this.canload) {
- this.loadYet = true;
- this.getLists(true);
- }
- $A.setOnTaskInfoListener('components/project/task/lists', function (act, detail) {
- if (detail.projectid != _this.projectid) {
- return;
- }
-
- _this.lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.lists.splice(i, 1, detail);
- return true;
- }
- });
-
- switch (act) {
- case "username":
- case "delete":
- case "archived":
-
- _this.lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.lists.splice(i, 1);
- return true;
- }
- });
- break;
- case "unarchived":
-
- var has = false;
- _this.lists.some(function (task) {
- if (task.id == detail.id) {
- return has = true;
- }
- });
- if (!has) {
- _this.lists.unshift(detail);
- }
- break;
- }
- });
- },
- watch: {
- projectid: function projectid() {
- if (this.loadYet) {
- this.getLists(true);
- }
- },
- canload: function canload(val) {
- if (val && !this.loadYet) {
- this.loadYet = true;
- this.getLists(true);
- }
- }
- },
- methods: {
- initLanguage: function initLanguage() {
- var _this2 = this;
- this.noDataText = this.$L("数据加载中.....");
- this.columns = [{
- "title": this.$L("任务名称"),
- "key": 'title',
- "minWidth": 120,
- render: function render(h, params) {
- return _this2.renderTaskTitle(h, params);
- }
- }, {
- "title": this.$L("阶段"),
- "key": 'labelid',
- "minWidth": 80,
- "sortable": true,
- render: function render(h, params) {
- var labelid = params.row.labelid;
- var labelDetail = _this2.labelLists.find(function (item) {
- return item.id === labelid;
- });
- return h('span', labelDetail ? labelDetail.title : labelid);
- }
- }, {
- "title": this.$L("计划时间"),
- "key": 'enddate',
- "width": 160,
- "align": "center",
- "sortable": true,
- render: function render(h, params) {
- if (!params.row.startdate && !params.row.enddate) {
- return h('span', '-');
- }
- return h('div', {
- style: {
- fontSize: '12px',
- lineHeight: '14px'
- }
- }, [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) : '-')]);
- }
- }, {
- "title": this.$L("负责人"),
- "key": 'username',
- "minWidth": 90,
- "sortable": true,
- render: function render(h, params) {
- return h('UserView', {
- props: {
- username: params.row.username
- }
- });
- }
- }, {
- "title": this.$L("优先级"),
- "key": 'level',
- "align": "center",
- "minWidth": 90,
- "maxWidth": 100,
- "sortable": true,
- render: function render(h, params) {
- var level = params.row.level;
- var color = void 0;
- switch (level) {
- case 1:
- color = "#ff0000";
- break;
- case 2:
- color = "#BB9F35";
- break;
- case 3:
- color = "#449EDD";
- break;
- case 4:
- color = "#84A83B";
- break;
- }
- return h('span', {
- style: {
- color: color
- }
- }, "P" + level);
- }
- }, {
- "title": this.$L("状态"),
- "key": 'type',
- "align": "center",
- "minWidth": 80,
- "maxWidth": 100,
- "sortable": true,
- render: function render(h, params) {
- var color = void 0;
- var status = void 0;
- if (params.row.overdue) {
- color = "#ff0000";
- status = _this2.$L("已超期");
- } else if (params.row.complete) {
- color = "";
- status = _this2.$L("已完成");
- } else {
- color = "#19be6b";
- status = _this2.$L("未完成");
- }
- return h('span', {
- style: {
- color: color
- }
- }, status);
- }
- }, {
- "title": this.$L("创建时间"),
- "key": 'indate',
- "width": 160,
- "sortable": true,
- render: function render(h, params) {
- return h('span', $A.formatDate("Y-m-d H:i:s", params.row.indate));
- }
- }, {
- "title": this.$L("最近更新时间"),
- "key": 'update',
- "width": 160,
- "sortable": true,
- render: function render(h, params) {
- return h('span', $A.formatDate("Y-m-d H:i:s", params.row.update));
- }
- }];
- },
- exportTab: function exportTab() {
- var _this3 = this;
- var whereData = $A.cloneData(this.keys);
- whereData.page = Math.max(this.listPage, 1);
- whereData.pagesize = Math.max($A.runNum(this.listPageSize), 10);
- whereData.projectid = this.projectid;
- whereData.sorts = $A.cloneData(this.sorts);
- whereData.export = 1;
- this.exportLoad++;
- $A.apiAjax({
- url: 'project/task/lists',
- data: whereData,
- complete: function complete() {
- _this3.exportLoad--;
- },
- error: function error() {
- alert(_this3.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this3.$Modal.info({
- okText: _this3.$L('关闭'),
- render: function render(h) {
- return h('div', [h('div', {
- style: {
- fontSize: '16px',
- fontWeight: '500',
- marginBottom: '20px'
- }
- }, _this3.$L('导出结果')), h('a', {
- attrs: { href: res.data.url, target: '_blank' }
- }, _this3.$L('点击下载 (%)', res.data.size + " KB"))]);
- }
- });
- } else {
- _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
- }
- }
- });
- },
- sreachTab: function sreachTab(clear) {
- if (clear === true) {
- this.keys = {};
- }
- this.getLists(true);
- },
- sortChange: function sortChange(info) {
- this.sorts = { key: info.key, order: info.order };
- this.getLists(true);
- },
- setPage: function setPage(page) {
- this.listPage = page;
- this.getLists();
- },
- setPageSize: function setPageSize(size) {
- if (Math.max($A.runNum(this.listPageSize), 10) != size) {
- this.listPageSize = size;
- this.getLists();
- }
- },
- getLists: function getLists(resetLoad) {
- var _this4 = this;
- if (resetLoad === true) {
- this.listPage = 1;
- }
- if (this.projectid == 0) {
- this.lists = [];
- this.listTotal = 0;
- this.noDataText = this.$L("没有相关的数据");
- return;
- }
- this.loadIng++;
- var whereData = $A.cloneData(this.keys);
- whereData.page = Math.max(this.listPage, 1);
- whereData.pagesize = Math.max($A.runNum(this.listPageSize), 10);
- whereData.projectid = this.projectid;
- whereData.sorts = $A.cloneData(this.sorts);
- this.noDataText = this.$L("数据加载中.....");
- $A.apiAjax({
- url: 'project/task/lists',
- data: whereData,
- complete: function complete() {
- _this4.loadIng--;
- },
- error: function error() {
- _this4.noDataText = _this4.$L("数据加载失败!");
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this4.lists = res.data.lists;
- _this4.listTotal = res.data.total;
- _this4.noDataText = _this4.$L("没有相关的数据");
- } else {
- _this4.lists = [];
- _this4.listTotal = 0;
- _this4.noDataText = res.msg;
- }
- }
- });
- }
- }
- });
- }),
- 788:
- (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("drawer-tabs-container", [
- _c(
- "div",
- { staticClass: "project-task-lists" },
- [
- _c("Row", { staticClass: "sreachBox" }, [
- _c("div", { staticClass: "item" }, [
- _c(
- "div",
- { staticClass: "item-4" },
- [
- _c("sreachTitle", { attrs: { val: _vm.keys.type } }, [
- _vm._v(_vm._s(_vm.$L("状态")))
- ]),
- _vm._v(" "),
- _c(
- "Select",
- {
- attrs: { placeholder: _vm.$L("全部") },
- model: {
- value: _vm.keys.type,
- callback: function($$v) {
- _vm.$set(_vm.keys, "type", $$v)
- },
- expression: "keys.type"
- }
- },
- [
- _c("Option", { attrs: { value: "" } }, [
- _vm._v(_vm._s(_vm.$L("全部")))
- ]),
- _vm._v(" "),
- _c("Option", { attrs: { value: "未完成" } }, [
- _vm._v(_vm._s(_vm.$L("未完成")))
- ]),
- _vm._v(" "),
- _c("Option", { attrs: { value: "已超期" } }, [
- _vm._v(_vm._s(_vm.$L("已超期")))
- ]),
- _vm._v(" "),
- _c("Option", { attrs: { value: "已完成" } }, [
- _vm._v(_vm._s(_vm.$L("已完成")))
- ])
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "item-4" },
- [
- _c("sreachTitle", { attrs: { val: _vm.keys.username } }, [
- _vm._v(_vm._s(_vm.$L("负责人")))
- ]),
- _vm._v(" "),
- _c("Input", {
- attrs: { placeholder: _vm.$L("用户名") },
- model: {
- value: _vm.keys.username,
- callback: function($$v) {
- _vm.$set(_vm.keys, "username", $$v)
- },
- expression: "keys.username"
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "item-4" },
- [
- _c("sreachTitle", { attrs: { val: _vm.keys.level } }, [
- _vm._v(_vm._s(_vm.$L("级别")))
- ]),
- _vm._v(" "),
- _c(
- "Select",
- {
- attrs: { placeholder: _vm.$L("全部") },
- model: {
- value: _vm.keys.level,
- callback: function($$v) {
- _vm.$set(_vm.keys, "level", $$v)
- },
- expression: "keys.level"
- }
- },
- [
- _c("Option", { attrs: { value: "" } }, [
- _vm._v(_vm._s(_vm.$L("全部")))
- ]),
- _vm._v(" "),
- _c("Option", { attrs: { value: "1" } }, [_vm._v("P1")]),
- _vm._v(" "),
- _c("Option", { attrs: { value: "2" } }, [_vm._v("P2")]),
- _vm._v(" "),
- _c("Option", { attrs: { value: "3" } }, [_vm._v("P3")]),
- _vm._v(" "),
- _c("Option", { attrs: { value: "4" } }, [_vm._v("P4")])
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "item-4" },
- [
- _c("sreachTitle", { attrs: { val: _vm.keys.labelid } }, [
- _vm._v(_vm._s(_vm.$L("阶段")))
- ]),
- _vm._v(" "),
- _c(
- "Select",
- {
- attrs: { placeholder: _vm.$L("全部") },
- model: {
- value: _vm.keys.labelid,
- callback: function($$v) {
- _vm.$set(_vm.keys, "labelid", $$v)
- },
- expression: "keys.labelid"
- }
- },
- [
- _c("Option", { attrs: { value: "" } }, [
- _vm._v(_vm._s(_vm.$L("全部")))
- ]),
- _vm._v(" "),
- _vm._l(_vm.labelLists, function(item) {
- return _c(
- "Option",
- { key: item.id, attrs: { value: item.id } },
- [_vm._v(_vm._s(item.title))]
- )
- })
- ],
- 2
- )
- ],
- 1
- )
- ]),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "item item-button" },
- [
- _c(
- "Button",
- {
- staticClass: "left-btn",
- attrs: {
- type: "info",
- icon: "md-swap",
- loading: _vm.exportLoad > 0
- },
- on: { click: _vm.exportTab }
- },
- [_vm._v(_vm._s(_vm.$L("导出列表")))]
- ),
- _vm._v(" "),
- _vm.$A.objImplode(_vm.keys) != ""
- ? _c(
- "Button",
- {
- attrs: { type: "text" },
- on: {
- click: function($event) {
- return _vm.sreachTab(true)
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("取消筛选")))]
- )
- : _vm._e(),
- _vm._v(" "),
- _c(
- "Button",
- {
- attrs: {
- type: "primary",
- icon: "md-search",
- loading: _vm.loadIng > 0
- },
- on: { click: _vm.sreachTab }
- },
- [_vm._v(_vm._s(_vm.$L("搜索")))]
- )
- ],
- 1
- )
- ]),
- _vm._v(" "),
- _c("Table", {
- ref: "tableRef",
- staticClass: "tableFill",
- attrs: {
- columns: _vm.columns,
- data: _vm.lists,
- loading: _vm.loadIng > 0,
- "no-data-text": _vm.noDataText,
- stripe: ""
- },
- on: { "on-sort-change": _vm.sortChange }
- }),
- _vm._v(" "),
- _c("Page", {
- staticClass: "pageBox",
- attrs: {
- total: _vm.listTotal,
- current: _vm.listPage,
- disabled: _vm.loadIng > 0,
- "page-size-opts": [10, 20, 30, 50, 100],
- placement: "top",
- "show-elevator": "",
- "show-sizer": "",
- "show-total": "",
- transfer: "",
- simple: _vm.windowMax768
- },
- on: {
- "on-change": _vm.setPage,
- "on-page-size-change": _vm.setPageSize
- }
- })
- ],
- 1
- )
- ])
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-11cf9cb6", module.exports)
- }
- }
- }),
- 789:
- (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(790)
- }
- var normalizeComponent = __webpack_require__(2)
- var __vue_script__ = __webpack_require__(792)
- var __vue_template__ = __webpack_require__(798)
- var __vue_template_functional__ = false
- var __vue_styles__ = injectStyle
- var __vue_scopeId__ = null
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/project/gantt/index.vue"
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-91cfb088", Component.options)
- } else {
- hotAPI.reload("data-v-91cfb088", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- }),
- 790:
- (function(module, exports, __webpack_require__) {
- var content = __webpack_require__(791);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- var update = __webpack_require__(1)("87129f5a", content, false, {});
- if(false) {
-
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
-
- module.hot.dispose(function() { update(); });
- }
- }),
- 791:
- (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- 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", ""]);
- }),
- 792:
- (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- var __WEBPACK_IMPORTED_MODULE_0__gantt_index__ = __webpack_require__(793);
- var __WEBPACK_IMPORTED_MODULE_0__gantt_index___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__gantt_index__);
- __webpack_exports__["default"] = ({
- name: 'ProjectGantt',
- components: { GanttView: __WEBPACK_IMPORTED_MODULE_0__gantt_index___default.a },
- props: {
- projectLabel: {
- default: []
- }
- },
- data: function data() {
- return {
- loadFinish: false,
- lists: [],
- editColumns: [],
- editData: [],
- editShowInfo: false,
- editLoad: 0,
- filtrProjectId: 0
- };
- },
- mounted: function mounted() {
- this.editColumns = [{
- title: this.$L('任务名称'),
- key: 'label',
- minWidth: 150,
- ellipsis: true
- }, {
- title: this.$L('原计划时间'),
- minWidth: 135,
- align: 'center',
- render: function render(h, params) {
- if (params.row.notime === true) {
- return h('span', '-');
- }
- return h('div', {
- style: {}
- }, [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)))]);
- }
- }, {
- title: this.$L('新计划时间'),
- minWidth: 135,
- align: 'center',
- render: function render(h, params) {
- return h('div', {
- style: {}
- }, [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)))]);
- }
- }];
-
- this.initData();
- this.loadFinish = true;
- },
- watch: {
- projectLabel: {
- handler: function handler() {
- this.initData();
- },
- deep: true
- }
- },
- methods: {
- initData: function initData() {
- var _this = this;
- this.lists = [];
- this.projectLabel.forEach(function (item) {
- if (_this.filtrProjectId > 0) {
- if (item.id != _this.filtrProjectId) {
- return;
- }
- }
- item.taskLists.forEach(function (taskData) {
- var notime = taskData.startdate == 0 || taskData.enddate == 0;
- var times = _this.getTimeObj(taskData);
- var start = times.start;
- var end = times.end;
-
- var color = '#058ce4';
- if (taskData.complete) {
- color = '#c1c1c1';
- } else {
- if (taskData.level === 1) {
- color = '#ff0000';
- } else if (taskData.level === 2) {
- color = '#BB9F35';
- } else if (taskData.level === 3) {
- color = '#449EDD';
- } else if (taskData.level === 4) {
- color = '#84A83B';
- }
- }
-
- var tempTime = { start: start, end: end };
- var findData = _this.editData.find(function (t) {
- return t.id == taskData.id;
- });
- if (findData) {
- findData.backTime = $A.cloneData(tempTime);
- tempTime = $A.cloneData(findData.newTime);
- }
-
- _this.lists.push({
- id: taskData.id,
- label: taskData.title,
- time: tempTime,
- notime: notime,
- style: { background: color }
- });
- });
- });
-
- if (this.lists.length == 0 && this.filtrProjectId == 0) {
- this.$Modal.warning({
- title: this.$L("温馨提示"),
- content: this.$L('任务列表为空,请先添加任务。'),
- onOk: function onOk() {
- _this.$emit('on-close');
- }
- });
- }
- },
- updateTime: function updateTime(item) {
- var original = this.getRawTime(item.id);
- if (Math.abs(original.end - item.time.end) > 1000 || Math.abs(original.start - item.time.start) > 1000) {
-
- var backTime = $A.cloneData(original);
- var newTime = $A.cloneData(item.time);
- var findData = this.editData.find(function (_ref) {
- var id = _ref.id;
- return id == item.id;
- });
- if (findData) {
- findData.newTime = newTime;
- } else {
- this.editData.push({
- id: item.id,
- label: item.label,
- notime: item.notime,
- backTime: backTime,
- newTime: newTime
- });
- }
- }
- },
- clickItem: function clickItem(item) {
- this.taskDetail(item.id);
- },
- editSubmit: function editSubmit(save) {
- var _this2 = this;
- var triggerTask = [];
- this.editData.forEach(function (item) {
- if (save) {
- _this2.editLoad++;
- var timeStart = $A.formatDate('Y-m-d H:i', Math.round(item.newTime.start / 1000));
- var timeEnd = $A.formatDate('Y-m-d H:i', Math.round(item.newTime.end / 1000));
- var ajaxData = {
- act: 'plannedtime',
- taskid: item.id,
- content: timeStart + "," + timeEnd
- };
- $A.apiAjax({
- url: 'project/task/edit',
- method: 'post',
- data: ajaxData,
- error: function error() {
- _this2.lists.some(function (task) {
- if (task.id == item.id) {
- _this2.$set(task, 'time', item.backTime);
- return true;
- }
- });
- },
- success: function success(res) {
- if (res.ret === 1) {
- triggerTask.push({
- status: 'await',
- act: ajaxData.act,
- taskid: ajaxData.taskid,
- data: res.data
- });
- } else {
- _this2.lists.some(function (task) {
- if (task.id == item.id) {
- _this2.$set(task, 'time', item.backTime);
- return true;
- }
- });
- }
- },
- afterComplete: function afterComplete() {
- _this2.editLoad--;
- if (_this2.editLoad <= 0) {
- triggerTask.forEach(function (info) {
- if (info.status == 'await') {
- info.status = 'trigger';
- $A.triggerTaskInfoListener(info.act, info.data);
- $A.triggerTaskInfoChange(info.taskid);
- }
- });
- }
- }
- });
- } else {
- _this2.lists.some(function (task) {
- if (task.id == item.id) {
- _this2.$set(task, 'time', item.backTime);
- return true;
- }
- });
- }
- });
- this.editData = [];
- },
- getRawTime: function getRawTime(taskId) {
- var _this3 = this;
- var times = null;
- this.projectLabel.some(function (item) {
- item.taskLists.some(function (taskData) {
- if (taskData.id == taskId) {
- times = _this3.getTimeObj(taskData);
- return true;
- }
- });
- if (times) {
- return true;
- }
- });
- return times;
- },
- getTimeObj: function getTimeObj(taskData) {
- var start = taskData.startdate || taskData.indate;
- var end = taskData.enddate || taskData.indate + 86400;
- if (end == start) {
- end = Math.round(new Date($A.formatDate('Y-m-d 23:59:59', end)).getTime() / 1000);
- }
- end = Math.max(end, start + 60);
- start *= 1000;
- end *= 1000;
- return { start: start, end: end };
- },
- tapProject: function tapProject(e) {
- this.filtrProjectId = $A.runNum(e);
- this.initData();
- }
- }
- });
- }),
- 793:
- (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(794)
- }
- var normalizeComponent = __webpack_require__(2)
- var __vue_script__ = __webpack_require__(796)
- var __vue_template__ = __webpack_require__(797)
- var __vue_template_functional__ = false
- var __vue_styles__ = injectStyle
- var __vue_scopeId__ = "data-v-ab75349c"
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/gantt/index.vue"
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-ab75349c", Component.options)
- } else {
- hotAPI.reload("data-v-ab75349c", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- }),
- 794:
- (function(module, exports, __webpack_require__) {
- var content = __webpack_require__(795);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- var update = __webpack_require__(1)("1f2ff96e", content, false, {});
- if(false) {
-
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
-
- module.hot.dispose(function() { update(); });
- }
- }),
- 795:
- (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- 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", ""]);
- }),
- 796:
- (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- 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; };
- __webpack_exports__["default"] = ({
- name: 'GanttView',
- props: {
- lists: {
- type: Array
- },
- menuWidth: {
- type: Number,
- default: 300
- },
- itemWidth: {
- type: Number,
- default: 100
- }
- },
- data: function data() {
- return {
- mouseType: '',
- mouseWidth: 0,
- mouseScaleWidth: 0,
- dateWidth: 100,
- ganttWidth: 0,
- mouseItem: null,
- mouseBak: {},
- dateMove: null
- };
- },
- mounted: function mounted() {
- this.dateWidth = this.itemWidth;
- this.$refs.ganttRight.addEventListener('mousewheel', this.handleScroll, false);
- document.addEventListener('mousemove', this.itemMouseMove);
- document.addEventListener('mouseup', this.itemMouseUp);
- window.addEventListener("resize", this.handleResize, false);
- this.handleResize();
- },
- beforeDestroy: function beforeDestroy() {
- this.$refs.ganttRight.removeEventListener('mousewheel', this.handleScroll, false);
- document.removeEventListener('mousemove', this.itemMouseMove);
- document.removeEventListener('mouseup', this.itemMouseUp);
- window.removeEventListener("resize", this.handleResize, false);
- },
- watch: {
- itemWidth: function itemWidth(val) {
- this.dateWidth = val;
- }
- },
- computed: {
- monthNum: function monthNum() {
- var ganttWidth = this.ganttWidth,
- dateWidth = this.dateWidth;
- return Math.floor(ganttWidth / dateWidth / 30) + 2;
- },
- monthStyle: function monthStyle() {
- var mouseWidth = this.mouseWidth,
- dateWidth = this.dateWidth;
- return function (index) {
- var mouseDay = mouseWidth == 0 ? 0 : mouseWidth / dateWidth;
- var date = new Date();
-
- var nowDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
-
- var curDay = new Date(nowDay.getTime() + mouseDay * 86400000);
-
- var lastDay = new Date(curDay.getFullYear(), curDay.getMonth() + 1, 0, 23, 59, 59);
-
- var diffDay = (lastDay - curDay) / 1000 / 60 / 60 / 24;
-
- var width = dateWidth * diffDay;
- if (index > 0) {
- lastDay = new Date(curDay.getFullYear(), curDay.getMonth() + 1 + index, 0);
- width = lastDay.getDate() * dateWidth;
- }
- return {
- width: width + 'px'
- };
- };
- },
- monthFormat: function monthFormat() {
- var mouseWidth = this.mouseWidth,
- dateWidth = this.dateWidth;
- return function (index) {
- var mouseDay = mouseWidth == 0 ? 0 : mouseWidth / dateWidth;
- var date = new Date();
-
- var nowDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
-
- var curDay = new Date(nowDay.getTime() + mouseDay * 86400000);
-
- if (index > 0) {
- curDay = new Date(curDay.getFullYear(), curDay.getMonth() + 1 + index, 0);
- }
- return $A.formatDate("Y-m", curDay);
- };
- },
- dateNum: function dateNum() {
- var ganttWidth = this.ganttWidth,
- dateWidth = this.dateWidth;
- return Math.floor(ganttWidth / dateWidth) + 2;
- },
- dateStyle: function dateStyle() {
- var mouseWidth = this.mouseWidth,
- dateWidth = this.dateWidth;
- return function (index) {
- var style = {};
-
- var mouseDay = mouseWidth == 0 ? 0 : mouseWidth / dateWidth;
- var mouseData = Math.floor(mouseDay) + index;
- if (mouseDay == Math.floor(mouseDay)) {
- mouseData--;
- }
- var j = mouseWidth == 0 ? index - 1 : mouseData;
- var date = new Date(new Date().getTime() + j * 86400000);
- if ([0, 6].indexOf(date.getDay()) !== -1) {
- style.backgroundColor = '#f9fafb';
- }
-
- var width = dateWidth;
- if (index == 0) {
- width = Math.abs((mouseWidth % width - width) % width);
- }
- style.width = width + 'px';
- return style;
- };
- },
- dateFormat: function dateFormat() {
- var mouseWidth = this.mouseWidth,
- dateWidth = this.dateWidth;
- return function (index, type) {
- var mouseDay = mouseWidth == 0 ? 0 : mouseWidth / dateWidth;
- var mouseData = Math.floor(mouseDay) + index;
- if (mouseDay == Math.floor(mouseDay)) {
- mouseData--;
- }
- var j = mouseWidth == 0 ? index - 1 : mouseData;
- var date = new Date(new Date().getTime() + j * 86400000);
- if (type == 'day') {
- return date.getDate();
- } else if (type == 'wook') {
- return this.$L('\u661F\u671F' + '日一二三四五六'.charAt(date.getDay()));
- } else {
- return date;
- }
- };
- },
- itemStyle: function itemStyle() {
- var mouseWidth = this.mouseWidth,
- dateWidth = this.dateWidth,
- ganttWidth = this.ganttWidth;
- return function (item) {
- var _item$time = item.time,
- start = _item$time.start,
- end = _item$time.end;
- var style = item.style,
- moveX = item.moveX,
- moveW = item.moveW;
- var date = new Date();
-
- var nowTime = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0).getTime();
-
- var diffStartDay = (start - nowTime) / 1000 / 60 / 60 / 24;
- var diffEndDay = (end - nowTime) / 1000 / 60 / 60 / 24;
-
- var left = dateWidth * diffStartDay + mouseWidth * -1;
- var width = dateWidth * (diffEndDay - diffStartDay);
- if (typeof moveX === "number") {
- left += moveX;
- }
- if (typeof moveW === "number") {
- width += moveW;
- }
-
- var customStyle = {
- left: Math.min(Math.max(left, width * -1.2), ganttWidth * 1.2).toFixed(2) + 'px',
- width: width.toFixed(2) + 'px'
- };
- if (left < 0 && Math.abs(left) < width) {
- customStyle.paddingLeft = Math.abs(left).toFixed(2) + 'px';
- }
- if (left + width > ganttWidth && left < ganttWidth) {
- customStyle.paddingRight = Math.abs(left + width - ganttWidth).toFixed(2) + 'px';
- }
- if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) === "object") {
- return Object.assign(customStyle, style);
- }
- return customStyle;
- };
- }
- },
- methods: {
- itemScrollListener: function itemScrollListener(e) {
- if (this.mouseType == 'timeline') {
- return;
- }
- this.$refs.ganttTimeline.scrollTop = e.target.scrollTop;
- },
- timelineScrollListener: function timelineScrollListener(e) {
- if (this.mouseType == 'item') {
- return;
- }
- this.$refs.ganttItem.scrollTop = e.target.scrollTop;
- },
- handleScroll: function handleScroll(e) {
- e.preventDefault();
- if (e.ctrlKey) {
-
- this.dateWidth = Math.min(600, Math.max(24, this.dateWidth - Math.floor(e.deltaY)));
- this.mouseWidth = this.ganttWidth / 2 * ((this.dateWidth - 100) / 100) + this.dateWidth / 100 * this.mouseScaleWidth;
- return;
- }
- if (e.deltaY != 0) {
- var ganttTimeline = this.$refs.ganttTimeline;
- var newTop = ganttTimeline.scrollTop + e.deltaY;
- if (newTop < 0) {
- newTop = 0;
- } else if (newTop > ganttTimeline.scrollHeight - ganttTimeline.clientHeight) {
- newTop = ganttTimeline.scrollHeight - ganttTimeline.clientHeight;
- }
- if (ganttTimeline.scrollTop != newTop) {
- this.mouseType = 'timeline';
- ganttTimeline.scrollTop = newTop;
- }
- }
- if (e.deltaX != 0) {
- this.mouseWidth += e.deltaX;
- this.mouseScaleWidth += e.deltaX * (100 / this.dateWidth);
- }
- },
- handleResize: function handleResize() {
- this.ganttWidth = this.$refs.ganttTimeline.clientWidth;
- },
- dateMouseDown: function dateMouseDown(e) {
- e.preventDefault();
- this.mouseItem = null;
- this.dateMove = {
- clientX: e.clientX
- };
- },
- itemMouseDown: function itemMouseDown(e, item) {
- e.preventDefault();
- var type = 'moveX';
- if (e.target.className == 'timeline-resizer') {
- type = 'moveW';
- }
- if (typeof item[type] !== "number") {
- this.$set(item, type, 0);
- }
- this.mouseBak = {
- type: type,
- clientX: e.clientX,
- value: item[type]
- };
- this.mouseItem = item;
- this.dateMove = null;
- },
- itemMouseMove: function itemMouseMove(e) {
- if (this.mouseItem != null) {
- e.preventDefault();
- var diff = e.clientX - this.mouseBak.clientX;
- this.$set(this.mouseItem, this.mouseBak.type, this.mouseBak.value + diff);
- } else if (this.dateMove != null) {
- e.preventDefault();
- var moveX = (this.dateMove.clientX - e.clientX) * 5;
- this.dateMove.clientX = e.clientX;
- this.mouseWidth += moveX;
- this.mouseScaleWidth += moveX * (100 / this.dateWidth);
- }
- },
- itemMouseUp: function itemMouseUp(e) {
- if (this.mouseItem != null) {
- var _mouseItem$time = this.mouseItem.time,
- start = _mouseItem$time.start,
- end = _mouseItem$time.end;
- var isM = false;
-
- var oneWidthTime = 86400000 / this.dateWidth;
-
- if (typeof this.mouseItem.moveX === "number" && this.mouseItem.moveX != 0) {
- var moveTime = this.mouseItem.moveX * oneWidthTime;
- this.$set(this.mouseItem.time, 'start', start + moveTime);
- this.$set(this.mouseItem.time, 'end', end + moveTime);
- this.$set(this.mouseItem, 'moveX', 0);
- isM = true;
- }
- //修改结束时间
- if (typeof this.mouseItem.moveW === "number" && this.mouseItem.moveW != 0) {
- var _moveTime = this.mouseItem.moveW * oneWidthTime;
- this.$set(this.mouseItem.time, 'end', end + _moveTime);
- this.$set(this.mouseItem, 'moveW', 0);
- isM = true;
- }
- //
- if (isM) {
- this.$emit("on-change", this.mouseItem);
- } else if (e.target.className == 'timeline-title') {
- this.clickItem(this.mouseItem);
- }
- this.mouseItem = null;
- } else if (this.dateMove != null) {
- this.dateMove = null;
- }
- },
- scrollPosition: function scrollPosition(pos) {
- var date = new Date();
-
- var nowDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
-
- var oneWidthTime = 86400000 / this.dateWidth;
-
- var moveWidth = (this.lists[pos].time.start - nowDay) / oneWidthTime - this.dateWidth - this.mouseWidth;
- this.mouseWidth += moveWidth;
- this.mouseScaleWidth += moveWidth * (100 / this.dateWidth);
- },
- clickItem: function clickItem(item) {
- this.$emit("on-click", item);
- }
- }
- });
- }),
- 797:
- (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("div", { staticClass: "wook-gantt" }, [
- _c(
- "div",
- { staticClass: "gantt-left", style: { width: _vm.menuWidth + "px" } },
- [
- _c("div", { staticClass: "gantt-title" }, [
- _c("div", { staticClass: "gantt-title-text" }, [
- _vm._v(_vm._s(_vm.$L("任务名称")))
- ])
- ]),
- _vm._v(" "),
- _c(
- "ul",
- {
- ref: "ganttItem",
- staticClass: "gantt-item",
- on: {
- scroll: _vm.itemScrollListener,
- mouseenter: function($event) {
- _vm.mouseType = "item"
- }
- }
- },
- _vm._l(_vm.lists, function(item, key) {
- return _c(
- "li",
- { key: key },
- [
- _c(
- "div",
- {
- staticClass: "item-title",
- on: {
- click: function($event) {
- return _vm.clickItem(item)
- }
- }
- },
- [_vm._v(_vm._s(item.label))]
- ),
- _vm._v(" "),
- _c("Icon", {
- staticClass: "item-icon",
- attrs: { type: "ios-locate-outline" },
- on: {
- click: function($event) {
- return _vm.scrollPosition(key)
- }
- }
- })
- ],
- 1
- )
- }),
- 0
- )
- ]
- ),
- _vm._v(" "),
- _c("div", { ref: "ganttRight", staticClass: "gantt-right" }, [
- _c("div", { staticClass: "gantt-chart" }, [
- _c(
- "ul",
- { staticClass: "gantt-month" },
- _vm._l(_vm.monthNum, function(item, key) {
- return _c("li", { key: key, style: _vm.monthStyle(key) }, [
- _c("div", { staticClass: "month-format" }, [
- _vm._v(_vm._s(_vm.monthFormat(key)))
- ])
- ])
- }),
- 0
- ),
- _vm._v(" "),
- _c(
- "ul",
- { staticClass: "gantt-date", on: { mousedown: _vm.dateMouseDown } },
- _vm._l(_vm.dateNum, function(item, key) {
- return _c("li", { key: key, style: _vm.dateStyle(key) }, [
- _c("div", { staticClass: "date-format" }, [
- _c("div", { staticClass: "format-day" }, [
- _vm._v(_vm._s(_vm.dateFormat(key, "day")))
- ]),
- _vm._v(" "),
- _vm.dateWidth > 46
- ? _c("div", { staticClass: "format-wook" }, [
- _vm._v(_vm._s(_vm.dateFormat(key, "wook")))
- ])
- : _vm._e()
- ])
- ])
- }),
- 0
- ),
- _vm._v(" "),
- _c(
- "ul",
- {
- ref: "ganttTimeline",
- staticClass: "gantt-timeline",
- on: {
- scroll: _vm.timelineScrollListener,
- mouseenter: function($event) {
- _vm.mouseType = "timeline"
- }
- }
- },
- _vm._l(_vm.lists, function(item, key) {
- return _c("li", { key: key }, [
- _c(
- "div",
- {
- staticClass: "timeline-item",
- style: _vm.itemStyle(item),
- on: {
- mousedown: function($event) {
- return _vm.itemMouseDown($event, item)
- }
- }
- },
- [
- _c("div", { staticClass: "timeline-title" }, [
- _vm._v(_vm._s(item.label))
- ]),
- _vm._v(" "),
- _c("div", { staticClass: "timeline-resizer" })
- ]
- )
- ])
- }),
- 0
- )
- ])
- ])
- ])
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-ab75349c", module.exports)
- }
- }
- }),
- 798:
- (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- { staticClass: "project-gstc-gantt" },
- [
- _c("GanttView", {
- attrs: {
- lists: _vm.lists,
- menuWidth: _vm.windowMax768 ? 180 : 260,
- itemWidth: 80
- },
- on: { "on-change": _vm.updateTime, "on-click": _vm.clickItem }
- }),
- _vm._v(" "),
- _c(
- "Dropdown",
- {
- staticClass: "project-gstc-dropdown-filtr",
- style: _vm.windowMax768 ? { left: "142px" } : {},
- on: { "on-click": _vm.tapProject }
- },
- [
- _c("Icon", {
- staticClass: "project-gstc-dropdown-icon",
- class: { filtr: _vm.filtrProjectId > 0 },
- attrs: { type: "md-funnel" }
- }),
- _vm._v(" "),
- _c(
- "DropdownMenu",
- { attrs: { slot: "list" }, slot: "list" },
- [
- _c(
- "DropdownItem",
- {
- class: { "dropdown-active": _vm.filtrProjectId == 0 },
- attrs: { name: 0 }
- },
- [_vm._v(_vm._s(_vm.$L("全部")))]
- ),
- _vm._v(" "),
- _vm._l(_vm.projectLabel, function(item, index) {
- return _c(
- "DropdownItem",
- {
- key: index,
- class: { "dropdown-active": _vm.filtrProjectId == item.id },
- attrs: { name: item.id }
- },
- [
- _vm._v(
- _vm._s(item.title) +
- " (" +
- _vm._s(item.taskLists.length) +
- ")"
- )
- ]
- )
- })
- ],
- 2
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- {
- staticClass: "project-gstc-close",
- on: {
- click: function($event) {
- return _vm.$emit("on-close")
- }
- }
- },
- [_c("Icon", { attrs: { type: "md-close" } })],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- {
- staticClass: "project-gstc-edit",
- class: { info: _vm.editShowInfo, visible: _vm.editData.length > 0 }
- },
- [
- _c(
- "div",
- { staticClass: "project-gstc-edit-info" },
- [
- _c("Table", {
- staticClass: "tableFill",
- attrs: {
- size: "small",
- "max-height": "600",
- columns: _vm.editColumns,
- data: _vm.editData
- }
- }),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "project-gstc-edit-btns" },
- [
- _c(
- "Button",
- {
- attrs: {
- loading: _vm.editLoad > 0,
- size: "small",
- type: "text"
- },
- on: {
- click: function($event) {
- return _vm.editSubmit(false)
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("取消")))]
- ),
- _vm._v(" "),
- _c(
- "Button",
- {
- attrs: {
- loading: _vm.editLoad > 0,
- size: "small",
- type: "primary"
- },
- on: {
- click: function($event) {
- return _vm.editSubmit(true)
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("保存")))]
- ),
- _vm._v(" "),
- _c("Icon", {
- staticClass: "zoom",
- attrs: { type: "md-arrow-dropright" },
- on: {
- click: function($event) {
- _vm.editShowInfo = false
- }
- }
- })
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "project-gstc-edit-small" },
- [
- _c(
- "div",
- {
- staticClass: "project-gstc-edit-text",
- on: {
- click: function($event) {
- _vm.editShowInfo = true
- }
- }
- },
- [
- _vm._v(
- _vm._s(_vm.$L("未保存计划时间")) +
- ": " +
- _vm._s(_vm.editData.length)
- )
- ]
- ),
- _vm._v(" "),
- _c(
- "Button",
- {
- attrs: {
- loading: _vm.editLoad > 0,
- size: "small",
- type: "text"
- },
- on: {
- click: function($event) {
- return _vm.editSubmit(false)
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("取消")))]
- ),
- _vm._v(" "),
- _c(
- "Button",
- {
- attrs: {
- loading: _vm.editLoad > 0,
- size: "small",
- type: "primary"
- },
- on: {
- click: function($event) {
- return _vm.editSubmit(true)
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("保存")))]
- )
- ],
- 1
- )
- ]
- )
- ],
- 1
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-91cfb088", module.exports)
- }
- }
- }),
- 799:
- (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(800)
- }
- var normalizeComponent = __webpack_require__(2)
- var __vue_script__ = __webpack_require__(802)
- var __vue_template__ = __webpack_require__(803)
- var __vue_template_functional__ = false
- var __vue_styles__ = injectStyle
- var __vue_scopeId__ = "data-v-6f0e28b5"
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/project/setting.vue"
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-6f0e28b5", Component.options)
- } else {
- hotAPI.reload("data-v-6f0e28b5", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- }),
- 800:
- (function(module, exports, __webpack_require__) {
- var content = __webpack_require__(801);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- var update = __webpack_require__(1)("6310644a", content, false, {});
- if(false) {
-
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
-
- module.hot.dispose(function() { update(); });
- }
- }),
- 801:
- (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- 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", ""]);
- }),
- 802:
- (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
- var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
- __webpack_exports__["default"] = ({
- name: 'ProjectSetting',
- components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
- props: {
- projectid: {
- default: 0
- },
- canload: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- loadYet: false,
- loadIng: 0,
- formSystem: {}
- };
- },
- mounted: function mounted() {
- if (this.canload) {
- this.loadYet = true;
- this.getSetting();
- }
- },
- watch: {
- projectid: function projectid() {
- if (this.loadYet) {
- this.getSetting();
- }
- },
- canload: function canload(val) {
- if (val && !this.loadYet) {
- this.loadYet = true;
- this.getSetting();
- }
- }
- },
- methods: {
- getSetting: function getSetting(save) {
- var _this = this;
- this.loadIng++;
- $A.apiAjax({
- url: 'project/setting?act=' + (save ? 'save' : 'get'),
- data: Object.assign(this.formSystem, {
- projectid: this.projectid
- }),
- complete: function complete() {
- _this.loadIng--;
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this.formSystem = res.data;
- _this.formSystem__reset = $A.cloneData(_this.formSystem);
- if (save) {
- _this.$Message.success(_this.$L('修改成功'));
- _this.$emit('on-change', res.data);
- }
- } else {
- if (save) {
- _this.$Modal.error({ title: _this.$L('温馨提示'), content: res.msg });
- }
- }
- }
- });
- },
- handleSubmit: function handleSubmit(name) {
- var _this2 = this;
- this.$refs[name].validate(function (valid) {
- if (valid) {
- switch (name) {
- case "formSystem":
- {
- _this2.getSetting(true);
- break;
- }
- }
- }
- });
- },
- handleReset: function handleReset(name) {
- if (typeof this[name + '__reset'] !== "undefined") {
- this[name] = $A.cloneData(this[name + '__reset']);
- return;
- }
- this.$refs[name].resetFields();
- }
- }
- });
- }),
- 803:
- (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("drawer-tabs-container", [
- _c(
- "div",
- { staticClass: "project-setting" },
- [
- _c(
- "Form",
- {
- ref: "formSystem",
- attrs: { model: _vm.formSystem, "label-width": 110 },
- nativeOn: {
- submit: function($event) {
- $event.preventDefault()
- }
- }
- },
- [
- _c("div", { staticClass: "project-setting-title" }, [
- _vm._v(_vm._s(_vm.$L("项目信息")) + ":")
- ]),
- _vm._v(" "),
- _c(
- "FormItem",
- { attrs: { label: _vm.$L("项目简介") } },
- [
- _c("Input", {
- staticStyle: { "max-width": "450px" },
- attrs: {
- type: "textarea",
- autosize: { minRows: 3, maxRows: 20 }
- },
- model: {
- value: _vm.formSystem.project_desc,
- callback: function($$v) {
- _vm.$set(_vm.formSystem, "project_desc", $$v)
- },
- expression: "formSystem.project_desc"
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c("div", { staticClass: "project-setting-title" }, [
- _vm._v(_vm._s(_vm.$L("项目权限")) + ":")
- ]),
- _vm._v(" "),
- _c(
- "FormItem",
- { attrs: { prop: "project_role_export" } },
- [
- _c(
- "div",
- { attrs: { slot: "label" }, slot: "label" },
- [
- _c(
- "Tooltip",
- {
- attrs: {
- content: _vm.$L("任务列表导出Excel"),
- transfer: ""
- }
- },
- [_vm._v(_vm._s(_vm.$L("导出列表")))]
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
- _vm._v(_vm._s(_vm.$L("项目负责人")))
- ]),
- _vm._v(" "),
- _c(
- "CheckboxGroup",
- {
- staticClass: "project-setting-group",
- model: {
- value: _vm.formSystem.project_role_export,
- callback: function($$v) {
- _vm.$set(_vm.formSystem, "project_role_export", $$v)
- },
- expression: "formSystem.project_role_export"
- }
- },
- [
- _c("Checkbox", { attrs: { label: "member" } }, [
- _vm._v(_vm._s(_vm.$L("项目成员")))
- ])
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c("div", { staticClass: "project-setting-title" }, [
- _vm._v(_vm._s(_vm.$L("任务权限")) + ":")
- ]),
- _vm._v(" "),
- _c(
- "FormItem",
- { attrs: { label: _vm.$L("添加任务") } },
- [
- _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
- _vm._v(_vm._s(_vm.$L("项目负责人")))
- ]),
- _vm._v(" "),
- _c(
- "CheckboxGroup",
- {
- staticClass: "project-setting-group",
- model: {
- value: _vm.formSystem.add_role,
- callback: function($$v) {
- _vm.$set(_vm.formSystem, "add_role", $$v)
- },
- expression: "formSystem.add_role"
- }
- },
- [
- _c("Checkbox", { attrs: { label: "member" } }, [
- _vm._v(_vm._s(_vm.$L("项目成员")))
- ])
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "FormItem",
- { attrs: { label: _vm.$L("修改任务") } },
- [
- _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
- _vm._v(_vm._s(_vm.$L("项目负责人")))
- ]),
- _vm._v(" "),
- _c(
- "CheckboxGroup",
- {
- staticClass: "project-setting-group",
- model: {
- value: _vm.formSystem.edit_role,
- callback: function($$v) {
- _vm.$set(_vm.formSystem, "edit_role", $$v)
- },
- expression: "formSystem.edit_role"
- }
- },
- [
- _c("Checkbox", { attrs: { label: "owner" } }, [
- _vm._v(_vm._s(_vm.$L("任务负责人")))
- ]),
- _vm._v(" "),
- _c("Checkbox", { attrs: { label: "member" } }, [
- _vm._v(_vm._s(_vm.$L("项目成员")))
- ])
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "FormItem",
- { attrs: { label: _vm.$L("标记完成") } },
- [
- _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
- _vm._v(_vm._s(_vm.$L("项目负责人")))
- ]),
- _vm._v(" "),
- _c(
- "CheckboxGroup",
- {
- staticClass: "project-setting-group",
- model: {
- value: _vm.formSystem.complete_role,
- callback: function($$v) {
- _vm.$set(_vm.formSystem, "complete_role", $$v)
- },
- expression: "formSystem.complete_role"
- }
- },
- [
- _c("Checkbox", { attrs: { label: "owner" } }, [
- _vm._v(_vm._s(_vm.$L("任务负责人")))
- ]),
- _vm._v(" "),
- _c("Checkbox", { attrs: { label: "member" } }, [
- _vm._v(_vm._s(_vm.$L("项目成员")))
- ])
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "FormItem",
- { attrs: { label: _vm.$L("归档任务") } },
- [
- _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
- _vm._v(_vm._s(_vm.$L("项目负责人")))
- ]),
- _vm._v(" "),
- _c(
- "CheckboxGroup",
- {
- staticClass: "project-setting-group",
- model: {
- value: _vm.formSystem.archived_role,
- callback: function($$v) {
- _vm.$set(_vm.formSystem, "archived_role", $$v)
- },
- expression: "formSystem.archived_role"
- }
- },
- [
- _c("Checkbox", { attrs: { label: "owner" } }, [
- _vm._v(_vm._s(_vm.$L("任务负责人")))
- ]),
- _vm._v(" "),
- _c("Checkbox", { attrs: { label: "member" } }, [
- _vm._v(_vm._s(_vm.$L("项目成员")))
- ])
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "FormItem",
- { attrs: { label: _vm.$L("删除任务") } },
- [
- _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
- _vm._v(_vm._s(_vm.$L("项目负责人")))
- ]),
- _vm._v(" "),
- _c(
- "CheckboxGroup",
- {
- staticClass: "project-setting-group",
- model: {
- value: _vm.formSystem.del_role,
- callback: function($$v) {
- _vm.$set(_vm.formSystem, "del_role", $$v)
- },
- expression: "formSystem.del_role"
- }
- },
- [
- _c("Checkbox", { attrs: { label: "owner" } }, [
- _vm._v(_vm._s(_vm.$L("任务负责人")))
- ]),
- _vm._v(" "),
- _c("Checkbox", { attrs: { label: "member" } }, [
- _vm._v(_vm._s(_vm.$L("项目成员")))
- ])
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c("div", { staticClass: "project-setting-title" }, [
- _vm._v(_vm._s(_vm.$L("面板显示")) + ":")
- ]),
- _vm._v(" "),
- _c("FormItem", { attrs: { label: _vm.$L("显示已完成") } }, [
- _c(
- "div",
- [
- _c(
- "RadioGroup",
- {
- model: {
- value: _vm.formSystem.complete_show,
- callback: function($$v) {
- _vm.$set(_vm.formSystem, "complete_show", $$v)
- },
- expression: "formSystem.complete_show"
- }
- },
- [
- _c("Radio", { attrs: { label: "show" } }, [
- _vm._v(_vm._s(_vm.$L("显示")))
- ]),
- _vm._v(" "),
- _c("Radio", { attrs: { label: "hide" } }, [
- _vm._v(_vm._s(_vm.$L("隐藏")))
- ])
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _vm.formSystem.complete_show == "show"
- ? _c("div", { staticClass: "form-placeholder" }, [
- _vm._v(
- "\n " +
- _vm._s(_vm.$L("项目面板显示已完成的任务。")) +
- "\n "
- )
- ])
- : _c("div", { staticClass: "form-placeholder" }, [
- _vm._v(
- "\n " +
- _vm._s(_vm.$L("项目面板隐藏已完成的任务。")) +
- "\n "
- )
- ])
- ]),
- _vm._v(" "),
- _c(
- "FormItem",
- [
- _c(
- "Button",
- {
- attrs: { loading: _vm.loadIng > 0, type: "primary" },
- on: {
- click: function($event) {
- return _vm.handleSubmit("formSystem")
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("提交")))]
- ),
- _vm._v(" "),
- _c(
- "Button",
- {
- staticStyle: { "margin-left": "8px" },
- attrs: { loading: _vm.loadIng > 0 },
- on: {
- click: function($event) {
- return _vm.handleReset("formSystem")
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("重置")))]
- )
- ],
- 1
- )
- ],
- 1
- )
- ],
- 1
- )
- ])
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-6f0e28b5", module.exports)
- }
- }
- }),
- 804:
- (function(module, exports, __webpack_require__) {
- var baseOrderBy = __webpack_require__(805),
- isArray = __webpack_require__(16);
- function orderBy(collection, iteratees, orders, guard) {
- if (collection == null) {
- return [];
- }
- if (!isArray(iteratees)) {
- iteratees = iteratees == null ? [] : [iteratees];
- }
- orders = guard ? undefined : orders;
- if (!isArray(orders)) {
- orders = orders == null ? [] : [orders];
- }
- return baseOrderBy(collection, iteratees, orders);
- }
- module.exports = orderBy;
- }),
- 805:
- (function(module, exports, __webpack_require__) {
- var arrayMap = __webpack_require__(437),
- baseGet = __webpack_require__(359),
- baseIteratee = __webpack_require__(811),
- baseMap = __webpack_require__(833),
- baseSortBy = __webpack_require__(839),
- baseUnary = __webpack_require__(20),
- compareMultiple = __webpack_require__(840),
- identity = __webpack_require__(443),
- isArray = __webpack_require__(16);
- function baseOrderBy(collection, iteratees, orders) {
- if (iteratees.length) {
- iteratees = arrayMap(iteratees, function(iteratee) {
- if (isArray(iteratee)) {
- return function(value) {
- return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
- }
- }
- return iteratee;
- });
- } else {
- iteratees = [identity];
- }
- var index = -1;
- iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
- var result = baseMap(collection, function(value, key, collection) {
- var criteria = arrayMap(iteratees, function(iteratee) {
- return iteratee(value);
- });
- return { 'criteria': criteria, 'index': ++index, 'value': value };
- });
- return baseSortBy(result, function(object, other) {
- return compareMultiple(object, other, orders);
- });
- }
- module.exports = baseOrderBy;
- }),
- 806:
- (function(module, exports, __webpack_require__) {
- var memoizeCapped = __webpack_require__(807);
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
- var reEscapeChar = /\\(\\)?/g;
- var stringToPath = memoizeCapped(function(string) {
- var result = [];
- if (string.charCodeAt(0) === 46 ) {
- result.push('');
- }
- string.replace(rePropName, function(match, number, quote, subString) {
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
- });
- return result;
- });
- module.exports = stringToPath;
- }),
- 807:
- (function(module, exports, __webpack_require__) {
- var memoize = __webpack_require__(808);
- var MAX_MEMOIZE_SIZE = 500;
- function memoizeCapped(func) {
- var result = memoize(func, function(key) {
- if (cache.size === MAX_MEMOIZE_SIZE) {
- cache.clear();
- }
- return key;
- });
- var cache = result.cache;
- return result;
- }
- module.exports = memoizeCapped;
- }),
- 808:
- (function(module, exports, __webpack_require__) {
- var MapCache = __webpack_require__(54);
- var FUNC_ERROR_TEXT = 'Expected a function';
- function memoize(func, resolver) {
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- var memoized = function() {
- var args = arguments,
- key = resolver ? resolver.apply(this, args) : args[0],
- cache = memoized.cache;
- if (cache.has(key)) {
- return cache.get(key);
- }
- var result = func.apply(this, args);
- memoized.cache = cache.set(key, result) || cache;
- return result;
- };
- memoized.cache = new (memoize.Cache || MapCache);
- return memoized;
- }
- memoize.Cache = MapCache;
- module.exports = memoize;
- }),
- 809:
- (function(module, exports, __webpack_require__) {
- var baseToString = __webpack_require__(810);
- function toString(value) {
- return value == null ? '' : baseToString(value);
- }
- module.exports = toString;
- }),
- 810:
- (function(module, exports, __webpack_require__) {
- var Symbol = __webpack_require__(18),
- arrayMap = __webpack_require__(437),
- isArray = __webpack_require__(16),
- isSymbol = __webpack_require__(325);
- var INFINITY = 1 / 0;
- var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolToString = symbolProto ? symbolProto.toString : undefined;
- function baseToString(value) {
-
- if (typeof value == 'string') {
- return value;
- }
- if (isArray(value)) {
-
- return arrayMap(value, baseToString) + '';
- }
- if (isSymbol(value)) {
- return symbolToString ? symbolToString.call(value) : '';
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
- }
- module.exports = baseToString;
- }),
- 811:
- (function(module, exports, __webpack_require__) {
- var baseMatches = __webpack_require__(812),
- baseMatchesProperty = __webpack_require__(825),
- identity = __webpack_require__(443),
- isArray = __webpack_require__(16),
- property = __webpack_require__(830);
- function baseIteratee(value) {
-
-
- if (typeof value == 'function') {
- return value;
- }
- if (value == null) {
- return identity;
- }
- if (typeof value == 'object') {
- return isArray(value)
- ? baseMatchesProperty(value[0], value[1])
- : baseMatches(value);
- }
- return property(value);
- }
- module.exports = baseIteratee;
- }),
- 812:
- (function(module, exports, __webpack_require__) {
- var baseIsMatch = __webpack_require__(813),
- getMatchData = __webpack_require__(824),
- matchesStrictComparable = __webpack_require__(442);
- function baseMatches(source) {
- var matchData = getMatchData(source);
- if (matchData.length == 1 && matchData[0][2]) {
- return matchesStrictComparable(matchData[0][0], matchData[0][1]);
- }
- return function(object) {
- return object === source || baseIsMatch(object, source, matchData);
- };
- }
- module.exports = baseMatches;
- }),
- 813:
- (function(module, exports, __webpack_require__) {
- var Stack = __webpack_require__(55),
- baseIsEqual = __webpack_require__(439);
- var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
- function baseIsMatch(object, source, matchData, customizer) {
- var index = matchData.length,
- length = index,
- noCustomizer = !customizer;
- if (object == null) {
- return !length;
- }
- object = Object(object);
- while (index--) {
- var data = matchData[index];
- if ((noCustomizer && data[2])
- ? data[1] !== object[data[0]]
- : !(data[0] in object)
- ) {
- return false;
- }
- }
- while (++index < length) {
- data = matchData[index];
- var key = data[0],
- objValue = object[key],
- srcValue = data[1];
- if (noCustomizer && data[2]) {
- if (objValue === undefined && !(key in object)) {
- return false;
- }
- } else {
- var stack = new Stack;
- if (customizer) {
- var result = customizer(objValue, srcValue, key, object, source, stack);
- }
- if (!(result === undefined
- ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
- : result
- )) {
- return false;
- }
- }
- }
- return true;
- }
- module.exports = baseIsMatch;
- }),
- 814:
- (function(module, exports, __webpack_require__) {
- var Stack = __webpack_require__(55),
- equalArrays = __webpack_require__(440),
- equalByTag = __webpack_require__(820),
- equalObjects = __webpack_require__(823),
- getTag = __webpack_require__(21),
- isArray = __webpack_require__(16),
- isBuffer = __webpack_require__(34),
- isTypedArray = __webpack_require__(63);
- var COMPARE_PARTIAL_FLAG = 1;
- var argsTag = '[object Arguments]',
- arrayTag = '[object Array]',
- objectTag = '[object Object]';
- var objectProto = Object.prototype;
- var hasOwnProperty = objectProto.hasOwnProperty;
- function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
- var objIsArr = isArray(object),
- othIsArr = isArray(other),
- objTag = objIsArr ? arrayTag : getTag(object),
- othTag = othIsArr ? arrayTag : getTag(other);
- objTag = objTag == argsTag ? objectTag : objTag;
- othTag = othTag == argsTag ? objectTag : othTag;
- var objIsObj = objTag == objectTag,
- othIsObj = othTag == objectTag,
- isSameTag = objTag == othTag;
- if (isSameTag && isBuffer(object)) {
- if (!isBuffer(other)) {
- return false;
- }
- objIsArr = true;
- objIsObj = false;
- }
- if (isSameTag && !objIsObj) {
- stack || (stack = new Stack);
- return (objIsArr || isTypedArray(object))
- ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
- : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
- }
- if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
- othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
- if (objIsWrapped || othIsWrapped) {
- var objUnwrapped = objIsWrapped ? object.value() : object,
- othUnwrapped = othIsWrapped ? other.value() : other;
- stack || (stack = new Stack);
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
- }
- }
- if (!isSameTag) {
- return false;
- }
- stack || (stack = new Stack);
- return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
- }
- module.exports = baseIsEqualDeep;
- }),
- 815:
- (function(module, exports, __webpack_require__) {
- var MapCache = __webpack_require__(54),
- setCacheAdd = __webpack_require__(816),
- setCacheHas = __webpack_require__(817);
- function SetCache(values) {
- var index = -1,
- length = values == null ? 0 : values.length;
- this.__data__ = new MapCache;
- while (++index < length) {
- this.add(values[index]);
- }
- }
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
- SetCache.prototype.has = setCacheHas;
- module.exports = SetCache;
- }),
- 816:
- (function(module, exports) {
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
- function setCacheAdd(value) {
- this.__data__.set(value, HASH_UNDEFINED);
- return this;
- }
- module.exports = setCacheAdd;
- }),
- 817:
- (function(module, exports) {
- function setCacheHas(value) {
- return this.__data__.has(value);
- }
- module.exports = setCacheHas;
- }),
- 818:
- (function(module, exports) {
- function arraySome(array, predicate) {
- var index = -1,
- length = array == null ? 0 : array.length;
- while (++index < length) {
- if (predicate(array[index], index, array)) {
- return true;
- }
- }
- return false;
- }
- module.exports = arraySome;
- }),
- 819:
- (function(module, exports) {
- function cacheHas(cache, key) {
- return cache.has(key);
- }
- module.exports = cacheHas;
- }),
- 820:
- (function(module, exports, __webpack_require__) {
- var Symbol = __webpack_require__(18),
- Uint8Array = __webpack_require__(59),
- eq = __webpack_require__(33),
- equalArrays = __webpack_require__(440),
- mapToArray = __webpack_require__(821),
- setToArray = __webpack_require__(822);
- var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
- var boolTag = '[object Boolean]',
- dateTag = '[object Date]',
- errorTag = '[object Error]',
- mapTag = '[object Map]',
- numberTag = '[object Number]',
- regexpTag = '[object RegExp]',
- setTag = '[object Set]',
- stringTag = '[object String]',
- symbolTag = '[object Symbol]';
- var arrayBufferTag = '[object ArrayBuffer]',
- dataViewTag = '[object DataView]';
- var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
- function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
- switch (tag) {
- case dataViewTag:
- if ((object.byteLength != other.byteLength) ||
- (object.byteOffset != other.byteOffset)) {
- return false;
- }
- object = object.buffer;
- other = other.buffer;
- case arrayBufferTag:
- if ((object.byteLength != other.byteLength) ||
- !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
- return false;
- }
- return true;
- case boolTag:
- case dateTag:
- case numberTag:
-
-
- return eq(+object, +other);
- case errorTag:
- return object.name == other.name && object.message == other.message;
- case regexpTag:
- case stringTag:
-
-
-
- return object == (other + '');
- case mapTag:
- var convert = mapToArray;
- case setTag:
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
- convert || (convert = setToArray);
- if (object.size != other.size && !isPartial) {
- return false;
- }
-
- var stacked = stack.get(object);
- if (stacked) {
- return stacked == other;
- }
- bitmask |= COMPARE_UNORDERED_FLAG;
-
- stack.set(object, other);
- var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
- stack['delete'](object);
- return result;
- case symbolTag:
- if (symbolValueOf) {
- return symbolValueOf.call(object) == symbolValueOf.call(other);
- }
- }
- return false;
- }
- module.exports = equalByTag;
- }),
- 821:
- (function(module, exports) {
- function mapToArray(map) {
- var index = -1,
- result = Array(map.size);
- map.forEach(function(value, key) {
- result[++index] = [key, value];
- });
- return result;
- }
- module.exports = mapToArray;
- }),
- 822:
- (function(module, exports) {
- function setToArray(set) {
- var index = -1,
- result = Array(set.size);
- set.forEach(function(value) {
- result[++index] = value;
- });
- return result;
- }
- module.exports = setToArray;
- }),
- 823:
- (function(module, exports, __webpack_require__) {
- var getAllKeys = __webpack_require__(60);
- var COMPARE_PARTIAL_FLAG = 1;
- var objectProto = Object.prototype;
- var hasOwnProperty = objectProto.hasOwnProperty;
- function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
- objProps = getAllKeys(object),
- objLength = objProps.length,
- othProps = getAllKeys(other),
- othLength = othProps.length;
- if (objLength != othLength && !isPartial) {
- return false;
- }
- var index = objLength;
- while (index--) {
- var key = objProps[index];
- if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
- return false;
- }
- }
-
- var objStacked = stack.get(object);
- var othStacked = stack.get(other);
- if (objStacked && othStacked) {
- return objStacked == other && othStacked == object;
- }
- var result = true;
- stack.set(object, other);
- stack.set(other, object);
- var skipCtor = isPartial;
- while (++index < objLength) {
- key = objProps[index];
- var objValue = object[key],
- othValue = other[key];
- if (customizer) {
- var compared = isPartial
- ? customizer(othValue, objValue, key, other, object, stack)
- : customizer(objValue, othValue, key, object, other, stack);
- }
-
- if (!(compared === undefined
- ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
- : compared
- )) {
- result = false;
- break;
- }
- skipCtor || (skipCtor = key == 'constructor');
- }
- if (result && !skipCtor) {
- var objCtor = object.constructor,
- othCtor = other.constructor;
-
- if (objCtor != othCtor &&
- ('constructor' in object && 'constructor' in other) &&
- !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
- typeof othCtor == 'function' && othCtor instanceof othCtor)) {
- result = false;
- }
- }
- stack['delete'](object);
- stack['delete'](other);
- return result;
- }
- module.exports = equalObjects;
- }),
- 824:
- (function(module, exports, __webpack_require__) {
- var isStrictComparable = __webpack_require__(441),
- keys = __webpack_require__(19);
- function getMatchData(object) {
- var result = keys(object),
- length = result.length;
- while (length--) {
- var key = result[length],
- value = object[key];
- result[length] = [key, value, isStrictComparable(value)];
- }
- return result;
- }
- module.exports = getMatchData;
- }),
- 825:
- (function(module, exports, __webpack_require__) {
- var baseIsEqual = __webpack_require__(439),
- get = __webpack_require__(826),
- hasIn = __webpack_require__(827),
- isKey = __webpack_require__(360),
- isStrictComparable = __webpack_require__(441),
- matchesStrictComparable = __webpack_require__(442),
- toKey = __webpack_require__(326);
- /** Used to compose bitmasks for value comparisons. */
- var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
- /**
- * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
- *
- * @private
- * @param {string} path The path of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
- */
- function baseMatchesProperty(path, srcValue) {
- if (isKey(path) && isStrictComparable(srcValue)) {
- return matchesStrictComparable(toKey(path), srcValue);
- }
- return function(object) {
- var objValue = get(object, path);
- return (objValue === undefined && objValue === srcValue)
- ? hasIn(object, path)
- : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
- };
- }
- module.exports = baseMatchesProperty;
- /***/ }),
- /***/ 826:
- /***/ (function(module, exports, __webpack_require__) {
- var baseGet = __webpack_require__(359);
- function get(object, path, defaultValue) {
- var result = object == null ? undefined : baseGet(object, path);
- return result === undefined ? defaultValue : result;
- }
- module.exports = get;
- /***/ }),
- /***/ 827:
- /***/ (function(module, exports, __webpack_require__) {
- var baseHasIn = __webpack_require__(828),
- hasPath = __webpack_require__(829);
- function hasIn(object, path) {
- return object != null && hasPath(object, path, baseHasIn);
- }
- module.exports = hasIn;
- }),
- 828:
- (function(module, exports) {
- function baseHasIn(object, key) {
- return object != null && key in Object(object);
- }
- module.exports = baseHasIn;
- }),
- 829:
- (function(module, exports, __webpack_require__) {
- var castPath = __webpack_require__(438),
- isArguments = __webpack_require__(61),
- isArray = __webpack_require__(16),
- isIndex = __webpack_require__(62),
- isLength = __webpack_require__(35),
- toKey = __webpack_require__(326);
- function hasPath(object, path, hasFunc) {
- path = castPath(path, object);
- var index = -1,
- length = path.length,
- result = false;
- while (++index < length) {
- var key = toKey(path[index]);
- if (!(result = object != null && hasFunc(object, key))) {
- break;
- }
- object = object[key];
- }
- if (result || ++index != length) {
- return result;
- }
- length = object == null ? 0 : object.length;
- return !!length && isLength(length) && isIndex(key, length) &&
- (isArray(object) || isArguments(object));
- }
- module.exports = hasPath;
- }),
- 830:
- (function(module, exports, __webpack_require__) {
- var baseProperty = __webpack_require__(831),
- basePropertyDeep = __webpack_require__(832),
- isKey = __webpack_require__(360),
- toKey = __webpack_require__(326);
- function property(path) {
- return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
- }
- module.exports = property;
- }),
- 831:
- (function(module, exports) {
- function baseProperty(key) {
- return function(object) {
- return object == null ? undefined : object[key];
- };
- }
- module.exports = baseProperty;
- }),
- 832:
- (function(module, exports, __webpack_require__) {
- var baseGet = __webpack_require__(359);
- function basePropertyDeep(path) {
- return function(object) {
- return baseGet(object, path);
- };
- }
- module.exports = basePropertyDeep;
- }),
- 833:
- (function(module, exports, __webpack_require__) {
- var baseEach = __webpack_require__(834),
- isArrayLike = __webpack_require__(32);
- function baseMap(collection, iteratee) {
- var index = -1,
- result = isArrayLike(collection) ? Array(collection.length) : [];
- baseEach(collection, function(value, key, collection) {
- result[++index] = iteratee(value, key, collection);
- });
- return result;
- }
- module.exports = baseMap;
- }),
- 834:
- (function(module, exports, __webpack_require__) {
- var baseForOwn = __webpack_require__(835),
- createBaseEach = __webpack_require__(838);
- var baseEach = createBaseEach(baseForOwn);
- module.exports = baseEach;
- }),
- 835:
- (function(module, exports, __webpack_require__) {
- var baseFor = __webpack_require__(836),
- keys = __webpack_require__(19);
- function baseForOwn(object, iteratee) {
- return object && baseFor(object, iteratee, keys);
- }
- module.exports = baseForOwn;
- }),
- 836:
- (function(module, exports, __webpack_require__) {
- var createBaseFor = __webpack_require__(837);
- var baseFor = createBaseFor();
- module.exports = baseFor;
- }),
- 837:
- (function(module, exports) {
- function createBaseFor(fromRight) {
- return function(object, iteratee, keysFunc) {
- var index = -1,
- iterable = Object(object),
- props = keysFunc(object),
- length = props.length;
- while (length--) {
- var key = props[fromRight ? length : ++index];
- if (iteratee(iterable[key], key, iterable) === false) {
- break;
- }
- }
- return object;
- };
- }
- module.exports = createBaseFor;
- }),
- 838:
- (function(module, exports, __webpack_require__) {
- var isArrayLike = __webpack_require__(32);
- function createBaseEach(eachFunc, fromRight) {
- return function(collection, iteratee) {
- if (collection == null) {
- return collection;
- }
- if (!isArrayLike(collection)) {
- return eachFunc(collection, iteratee);
- }
- var length = collection.length,
- index = fromRight ? length : -1,
- iterable = Object(collection);
- while ((fromRight ? index-- : ++index < length)) {
- if (iteratee(iterable[index], index, iterable) === false) {
- break;
- }
- }
- return collection;
- };
- }
- module.exports = createBaseEach;
- }),
- 839:
- (function(module, exports) {
- function baseSortBy(array, comparer) {
- var length = array.length;
- array.sort(comparer);
- while (length--) {
- array[length] = array[length].value;
- }
- return array;
- }
- module.exports = baseSortBy;
- }),
- 840:
- (function(module, exports, __webpack_require__) {
- var compareAscending = __webpack_require__(841);
- function compareMultiple(object, other, orders) {
- var index = -1,
- objCriteria = object.criteria,
- othCriteria = other.criteria,
- length = objCriteria.length,
- ordersLength = orders.length;
- while (++index < length) {
- var result = compareAscending(objCriteria[index], othCriteria[index]);
- if (result) {
- if (index >= ordersLength) {
- return result;
- }
- var order = orders[index];
- return result * (order == 'desc' ? -1 : 1);
- }
- }
-
-
-
-
-
-
-
- return object.index - other.index;
- }
- module.exports = compareMultiple;
- }),
- 841:
- (function(module, exports, __webpack_require__) {
- var isSymbol = __webpack_require__(325);
- function compareAscending(value, other) {
- if (value !== other) {
- var valIsDefined = value !== undefined,
- valIsNull = value === null,
- valIsReflexive = value === value,
- valIsSymbol = isSymbol(value);
- var othIsDefined = other !== undefined,
- othIsNull = other === null,
- othIsReflexive = other === other,
- othIsSymbol = isSymbol(other);
- if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
- (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
- (valIsNull && othIsDefined && othIsReflexive) ||
- (!valIsDefined && othIsReflexive) ||
- !valIsReflexive) {
- return 1;
- }
- if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
- (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
- (othIsNull && valIsDefined && valIsReflexive) ||
- (!othIsDefined && valIsReflexive) ||
- !othIsReflexive) {
- return -1;
- }
- }
- return 0;
- }
- module.exports = compareAscending;
- }),
- 842:
- (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- { staticClass: "w-main project-panel" },
- [
- _c("v-title", [_vm._v(_vm._s(_vm.$L("项目面板")))]),
- _vm._v(" "),
- _c("div", { staticClass: "w-nav" }, [
- _c("div", { staticClass: "nav-row" }, [
- _c("div", { staticClass: "w-nav-left" }, [
- _c("div", { staticClass: "page-nav-left" }, [
- _c("span", { staticClass: "bold" }, [
- _vm._v(_vm._s(_vm.projectDetail.title))
- ]),
- _vm._v(" "),
- _vm.loadIng > 0
- ? _c(
- "div",
- { staticClass: "page-nav-loading" },
- [_c("w-loading")],
- 1
- )
- : _c("div", { staticClass: "page-nav-refresh" }, [
- _c(
- "em",
- {
- on: {
- click: function($event) {
- return _vm.getDetail(true)
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("刷新")))]
- )
- ])
- ])
- ]),
- _vm._v(" "),
- _c("div", { staticClass: "w-nav-flex" }),
- _vm._v(" "),
- _c("div", { staticClass: "w-nav-right" }, [
- _c(
- "span",
- {
- staticClass: "ft hover",
- class: { active: _vm.filtrTask != "" }
- },
- [
- _c(
- "Dropdown",
- {
- attrs: { transfer: "" },
- on: {
- "on-click": function(res) {
- _vm.filtrTask = res
- }
- }
- },
- [
- _c("Icon", {
- staticClass: "icon",
- attrs: { type: "md-funnel" }
- }),
- _vm._v(
- " " +
- _vm._s(_vm.$L("筛选")) +
- "\n "
- ),
- _c(
- "DropdownMenu",
- { attrs: { slot: "list" }, slot: "list" },
- [
- _c(
- "DropdownItem",
- {
- class: { "dropdown-active": _vm.filtrTask == "" },
- attrs: { name: "" }
- },
- [_vm._v(_vm._s(_vm.$L("全部任务")))]
- ),
- _vm._v(" "),
- _c(
- "DropdownItem",
- {
- class: {
- "dropdown-active": _vm.filtrTask == "persons"
- },
- attrs: { name: "persons" }
- },
- [_vm._v(_vm._s(_vm.$L("我负责的任务")))]
- ),
- _vm._v(" "),
- _c(
- "DropdownItem",
- {
- class: {
- "dropdown-active": _vm.filtrTask == "follower"
- },
- attrs: { name: "follower" }
- },
- [_vm._v(_vm._s(_vm.$L("我关注的任务")))]
- ),
- _vm._v(" "),
- _c(
- "DropdownItem",
- {
- class: {
- "dropdown-active": _vm.filtrTask == "create"
- },
- attrs: { name: "create" }
- },
- [_vm._v(_vm._s(_vm.$L("我创建的任务")))]
- )
- ],
- 1
- )
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "span",
- { staticClass: "m768-show-i" },
- [
- _c(
- "Dropdown",
- {
- attrs: { trigger: "click", transfer: "" },
- on: { "on-click": _vm.openProjectDrawer }
- },
- [
- _c("Icon", { attrs: { type: "md-menu", size: "18" } }),
- _vm._v(" "),
- _c(
- "DropdownMenu",
- { attrs: { slot: "list" }, slot: "list" },
- [
- _c("DropdownItem", { attrs: { name: "lists" } }, [
- _vm._v(_vm._s(_vm.$L("列表")))
- ]),
- _vm._v(" "),
- _c(
- "DropdownItem",
- { attrs: { name: "projectGanttShow" } },
- [_vm._v(_vm._s(_vm.$L("甘特图")))]
- ),
- _vm._v(" "),
- _c("DropdownItem", { attrs: { name: "files" } }, [
- _vm._v(_vm._s(_vm.$L("文件")))
- ]),
- _vm._v(" "),
- _c("DropdownItem", { attrs: { name: "logs" } }, [
- _vm._v(_vm._s(_vm.$L("动态")))
- ]),
- _vm._v(" "),
- _c(
- "DropdownItem",
- { attrs: { name: "openProjectSettingDrawer" } },
- [_vm._v(_vm._s(_vm.$L("设置")))]
- )
- ],
- 1
- )
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c("span", { staticClass: "m768-hide-i" }, [
- _c(
- "span",
- {
- staticClass: "ft hover",
- on: {
- click: function($event) {
- return _vm.openProjectDrawer("lists")
- }
- }
- },
- [
- _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
- _vm._v(" " + _vm._s(_vm.$L("列表")))
- ]
- ),
- _vm._v(" "),
- _c(
- "span",
- {
- staticClass: "ft hover",
- class: { active: _vm.projectGanttShow },
- on: {
- click: function($event) {
- _vm.projectGanttShow = !_vm.projectGanttShow
- }
- }
- },
- [
- _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
- _vm._v(" " + _vm._s(_vm.$L("甘特图")))
- ]
- ),
- _vm._v(" "),
- _c(
- "span",
- {
- staticClass: "ft hover",
- on: {
- click: function($event) {
- return _vm.openProjectDrawer("files")
- }
- }
- },
- [
- _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
- _vm._v(" " + _vm._s(_vm.$L("文件")))
- ]
- ),
- _vm._v(" "),
- _c(
- "span",
- {
- staticClass: "ft hover",
- on: {
- click: function($event) {
- return _vm.openProjectDrawer("logs")
- }
- }
- },
- [
- _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
- _vm._v(" " + _vm._s(_vm.$L("动态")))
- ]
- ),
- _vm._v(" "),
- _c(
- "span",
- {
- staticClass: "ft hover",
- on: {
- click: function($event) {
- return _vm.openProjectSettingDrawer("setting")
- }
- }
- },
- [
- _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
- _vm._v(" " + _vm._s(_vm.$L("设置")))
- ]
- )
- ])
- ])
- ])
- ]),
- _vm._v(" "),
- _c(
- "w-content",
- [
- _c(
- "draggable",
- {
- staticClass: "label-box",
- style: {
- visibility: _vm.projectGanttShow ? "hidden" : "visible"
- },
- attrs: {
- draggable: ".label-draggable",
- animation: 150,
- disabled: _vm.projectSortDisabled || _vm.windowMax768
- },
- on: { sort: _vm.projectSort },
- model: {
- value: _vm.projectLabel,
- callback: function($$v) {
- _vm.projectLabel = $$v
- },
- expression: "projectLabel"
- }
- },
- [
- _vm._l(_vm.projectLabel, function(label) {
- return _vm.projectLabel.length > 0
- ? _c(
- "div",
- {
- key: label.id,
- staticClass: "label-item label-draggable",
- class: {
- "label-scroll":
- label.hasScroll === true && label.endScroll !== true
- },
- attrs: { "data-id": label.id },
- on: {
- mouseenter: function($event) {
- return _vm.projectMouse(label)
- }
- }
- },
- [
- _c(
- "div",
- { staticClass: "label-body" },
- [
- _c(
- "div",
- { staticClass: "title-box" },
- [
- label.loadIng === true
- ? _c(
- "div",
- { staticClass: "title-loading" },
- [_c("w-loading")],
- 1
- )
- : _vm._e(),
- _vm._v(" "),
- _c("h2", [_vm._v(_vm._s(label.title))]),
- _vm._v(" "),
- _c(
- "Dropdown",
- {
- attrs: { trigger: "click", transfer: "" },
- on: {
- "on-click": function($event) {
- return _vm.handleLabel($event, label)
- }
- }
- },
- [
- _c("Icon", { attrs: { type: "ios-more" } }),
- _vm._v(" "),
- _c(
- "DropdownMenu",
- { attrs: { slot: "list" }, slot: "list" },
- [
- _c(
- "Dropdown-item",
- { attrs: { name: "refresh" } },
- [_vm._v(_vm._s(_vm.$L("刷新列表")))]
- ),
- _vm._v(" "),
- _c(
- "Dropdown-item",
- { attrs: { name: "rename" } },
- [_vm._v(_vm._s(_vm.$L("重命名")))]
- ),
- _vm._v(" "),
- _c(
- "Dropdown-item",
- { attrs: { name: "delete" } },
- [_vm._v(_vm._s(_vm.$L("删除")))]
- )
- ],
- 1
- )
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "ScrollerY",
- {
- ref: "box_" + label.id,
- refInFor: true,
- staticClass: "task-box",
- on: {
- "on-scroll": function($event) {
- return _vm.projectBoxScroll($event, label)
- }
- }
- },
- [
- _c(
- "draggable",
- {
- staticClass: "task-main",
- class: [
- _vm.filtrTask
- ? "filtr-" + _vm.filtrTask
- : ""
- ],
- attrs: {
- group: "task",
- draggable: ".task-draggable",
- animation: 150,
- disabled:
- _vm.projectSortDisabled ||
- _vm.windowMax768,
- "data-id": label.id
- },
- on: { sort: _vm.taskSort },
- model: {
- value: label.taskLists,
- callback: function($$v) {
- _vm.$set(label, "taskLists", $$v)
- },
- expression: "label.taskLists"
- }
- },
- [
- _vm._l(label.taskLists, function(task) {
- return _c(
- "div",
- {
- key: task.id,
- staticClass:
- "task-item task-draggable",
- class: {
- "persons-item": _vm.isPersonsTask(
- task
- ),
- "follower-item": _vm.isFollowerTask(
- task
- ),
- "create-item": _vm.isCreateTask(
- task
- )
- },
- attrs: { "data-id": task.id }
- },
- [
- _c(
- "div",
- {
- staticClass: "task-shadow",
- class: [
- "p" + task.level,
- task.complete ? "complete" : "",
- task.overdue ? "overdue" : "",
- task.isNewtask === true
- ? "newtask"
- : ""
- ],
- on: {
- click: function($event) {
- return _vm.openTaskModal(task)
- }
- }
- },
- [
- _c(
- "div",
- {
- staticClass:
- "subtask-progress"
- },
- [
- _c("em", {
- style: {
- width:
- _vm.subtaskProgress(
- task
- ) + "%"
- }
- })
- ]
- ),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "task-title" },
- [
- _vm._v(_vm._s(task.title)),
- task.desc
- ? _c("Icon", {
- attrs: {
- type:
- "ios-list-box-outline"
- }
- })
- : _vm._e()
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- {
- staticClass: "task-plantime"
- },
- [
- _c(
- "span",
- {
- staticClass:
- "task-title-time"
- },
- [
- _vm._v(
- _vm._s(task.plantime)
- )
- ]
- )
- ]
- ),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "task-more" },
- [
- task.overdue
- ? _c(
- "div",
- {
- staticClass:
- "task-status"
- },
- [
- _vm._v(
- _vm._s(
- _vm.$L("已超期")
- )
- )
- ]
- )
- : task.complete
- ? _c(
- "div",
- {
- staticClass:
- "task-status"
- },
- [
- _vm._v(
- _vm._s(
- _vm.$L("已完成")
- )
- )
- ]
- )
- : _c(
- "div",
- {
- staticClass:
- "task-status"
- },
- [
- _vm._v(
- _vm._s(
- _vm.$L("未完成")
- )
- )
- ]
- ),
- _vm._v(" "),
- _c(
- "div",
- {
- staticClass:
- "task-persons",
- class: {
- "persons-more":
- task.persons.length >
- 1
- }
- },
- _vm._l(
- task.persons,
- function(person, iper) {
- return _c(
- "Tooltip",
- {
- key: iper,
- staticClass:
- "task-userimg",
- attrs: {
- content:
- person.nickname ||
- person.username,
- transfer: ""
- }
- },
- [
- _c("UserImg", {
- staticClass:
- "avatar",
- attrs: {
- info: person
- }
- })
- ],
- 1
- )
- }
- ),
- 1
- )
- ]
- )
- ]
- )
- ]
- )
- }),
- _vm._v(" "),
- _c(
- "div",
- {
- attrs: { slot: "footer" },
- slot: "footer"
- },
- [
- _c("project-add-task", {
- ref: "add_" + label.id,
- refInFor: true,
- attrs: {
- placeholder:
- _vm.$L("添加任务至") +
- '"' +
- label.title +
- '"',
- projectid: label.projectid,
- labelid: label.id
- },
- on: {
- "on-add-success": function($event) {
- return _vm.addTaskSuccess(
- $event,
- label
- )
- }
- }
- })
- ],
- 1
- )
- ],
- 2
- )
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- {
- staticClass: "label-bottom",
- on: {
- click: function($event) {
- return _vm.projectFocus(label)
- }
- }
- },
- [
- _c("Icon", {
- staticClass: "label-bottom-icon",
- attrs: { type: "ios-add" }
- })
- ],
- 1
- )
- ]
- )
- : _vm._e()
- }),
- _vm._v(" "),
- _vm.loadDetailed
- ? _c(
- "div",
- {
- staticClass: "label-item label-create",
- attrs: { slot: "footer" },
- on: { click: _vm.addLabel },
- slot: "footer"
- },
- [
- _c("div", { staticClass: "label-body" }, [
- _c("div", { staticClass: "trigger-box ft hover" }, [
- _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
- _vm._v(_vm._s(_vm.$L("添加一个新列表")))
- ])
- ])
- ]
- )
- : _vm._e()
- ],
- 2
- ),
- _vm._v(" "),
- _vm.projectGanttShow
- ? _c("project-gantt", {
- attrs: { projectLabel: _vm.projectLabel },
- on: {
- "on-close": function($event) {
- _vm.projectGanttShow = false
- }
- }
- })
- : _vm._e()
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "WDrawer",
- {
- attrs: { maxWidth: "1080" },
- model: {
- value: _vm.projectDrawerShow,
- callback: function($$v) {
- _vm.projectDrawerShow = $$v
- },
- expression: "projectDrawerShow"
- }
- },
- [
- _vm.projectDrawerShow
- ? _c(
- "Tabs",
- {
- model: {
- value: _vm.projectDrawerTab,
- callback: function($$v) {
- _vm.projectDrawerTab = $$v
- },
- expression: "projectDrawerTab"
- }
- },
- [
- _c(
- "TabPane",
- { attrs: { label: _vm.$L("任务列表"), name: "lists" } },
- [
- _c("project-task-lists", {
- attrs: {
- canload:
- _vm.projectDrawerShow &&
- _vm.projectDrawerTab == "lists",
- projectid: _vm.projectid,
- labelLists: _vm.projectSimpleLabel
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "TabPane",
- { attrs: { label: _vm.$L("文件列表"), name: "files" } },
- [
- _c("project-task-files", {
- attrs: {
- canload:
- _vm.projectDrawerShow &&
- _vm.projectDrawerTab == "files",
- projectid: _vm.projectid
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "TabPane",
- { attrs: { label: _vm.$L("项目动态"), name: "logs" } },
- [
- _c("project-task-logs", {
- attrs: {
- canload:
- _vm.projectDrawerShow &&
- _vm.projectDrawerTab == "logs",
- projectid: _vm.projectid
- }
- })
- ],
- 1
- )
- ],
- 1
- )
- : _vm._e()
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "WDrawer",
- {
- attrs: { maxWidth: "1000" },
- model: {
- value: _vm.projectSettingDrawerShow,
- callback: function($$v) {
- _vm.projectSettingDrawerShow = $$v
- },
- expression: "projectSettingDrawerShow"
- }
- },
- [
- _vm.projectSettingDrawerShow
- ? _c(
- "Tabs",
- {
- model: {
- value: _vm.projectSettingDrawerTab,
- callback: function($$v) {
- _vm.projectSettingDrawerTab = $$v
- },
- expression: "projectSettingDrawerTab"
- }
- },
- [
- _c(
- "TabPane",
- { attrs: { label: _vm.$L("项目设置"), name: "setting" } },
- [
- _c("project-setting", {
- attrs: {
- canload:
- _vm.projectSettingDrawerShow &&
- _vm.projectSettingDrawerTab == "setting",
- projectid: _vm.projectid
- },
- on: { "on-change": _vm.getDetail }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "TabPane",
- {
- attrs: { label: _vm.$L("已归档任务"), name: "archived" }
- },
- [
- _c("project-archived", {
- attrs: {
- canload:
- _vm.projectSettingDrawerShow &&
- _vm.projectSettingDrawerTab == "archived",
- projectid: _vm.projectid
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "TabPane",
- {
- attrs: { label: _vm.$L("项目统计"), name: "statistics" }
- },
- [
- _c("project-statistics", {
- ref: "statistics",
- attrs: {
- canload:
- _vm.projectSettingDrawerShow &&
- _vm.projectSettingDrawerTab == "statistics",
- projectid: _vm.projectid
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "TabPane",
- { attrs: { label: _vm.$L("成员管理"), name: "member" } },
- [
- _c("project-users", {
- attrs: {
- canload:
- _vm.projectSettingDrawerShow &&
- _vm.projectSettingDrawerTab == "member",
- projectid: _vm.projectid
- }
- })
- ],
- 1
- )
- ],
- 1
- )
- : _vm._e()
- ],
- 1
- )
- ],
- 1
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-4bac3242", module.exports)
- }
- }
- })
- });
|